Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

flock run

Scheduler-led goal loop with a plugin verifier. Writes episode JSON to .flock/episodes/<goal-id>.json.

Usage

flock run --goal <GOAL> [--plugin gridworld] [--rlm] [--max-steps 8]
          [--audit <PATH>] [--json] [--mcp] [--model <URL_OR_NAME>]
          [--genome <ID>] [--seed-archive] [--archive .flock/topology_archive.json]
          [--write-back] [--no-write-back] [--mux] [--no-mux]

Key flags

FlagDefaultNotes
--goalrequiredNatural-language goal text
--plugingridworldVerifier plugin (flock plugin list)
--rlmoffIn-tree RLM verify/act loop
--max-steps8Max RLM steps when --rlm
--jsonoffNDJSON flock-events on stdout
--mcpoffProcess mcp_tools from observation payload
--muxoffScheduler-led run via in-process multiplexer panes
--seed-archiveoffSeed topology from evolve archive before run
--write-backauto with --seed-archiveMerge fitness into archive after success

--mux runs via MuxHarnessHost; episode JSON includes pane_tree. Set FLOCK_MUX_AUTO=1 to auto-enable when the default multiplexer socket is live (--no-mux overrides).

--json events

EventSummary
episode_startgoal_id, plugin, goal
scheduler_ticktick, pending
task_dispatchedtick, task_id, zone
verify_resulttick, zone, goal_met
depositzone signal deposit
archive_write_backoptional genome merge
episode_endgoal_id, status, fitness, episode_path

See statusline for dashboard consumption.

Recipes

Gridworld smoke (verify.sh default):

flock run --goal "reach target" --plugin gridworld

RLM verify/act:

flock run --goal "reach target" --plugin gridworld --rlm --max-steps 4

Mux topology in episode:

flock run --goal "reach target" --plugin gridworld --mux

Evolve round-trip:

flock evolve --episodes 5 --workspace .flock/episodes
flock run --goal "reach target" --plugin gridworld --seed-archive --write-back