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

Introduction

Flock is a Rust coordination runtime where agents wake from a decaying pressure field, verify work through typed harness recursion (RAH), and improve topology from episode logs.

This book is the curated entry point for operators and contributors. Canonical long-form design docs live in the repository docs/ tree.

What makes Flock different

DimensionTypical harness (Claude Code, OpenCode)Flock
CoordinationScripts / chat / managerStigmergic pressure field + scheduler
TopologyFixedEvolved from .flock/episodes/
RecursionAPI subagentsRAH verified depth in multiplexer panes
ExecutionVendor PTYIn-tree flock-multiplexer + flock dashboard

Flock is not a meta-harness wrapper or workflow DSL. Default flock run uses deterministic plugins (gridworld, shell) — wire your LLM via MCP, ACP, or remote panes.

Episode flywheel

flock run  →  .flock/episodes/*.json  →  flock evolve  →  flock drift-check
  1. Run — scheduler-led goal loop (flock run) or RLM verify/act (flock run --rlm)
  2. Log — reproducible episode JSON with optional pane topology
  3. Evolve — topology mutations from episode corpus
  4. Gateflock drift-check manifest guardrails

Quick paths

Build this book locally

cargo install mdbook
mdbook build book
mdbook serve book   # http://localhost:3000

Or run ./scripts/smoke-docs.sh (included in ./scripts/verify.sh).

Live site: deploy via .github/workflows/docs.yml (Cloudflare Pages flock-docs).