moo.agent.brain

Brain: perception-action loop for moo-agent.

See docs/source/explanation/agent-internals.md for the full design narrative — the Perception-Action Loop, Script Queue, and One LLM Cycle sections cover everything in this module.

Functions

looks_like_error(text)

Classes

Brain(soul, config, connection, on_thought)

Async perception-action loop.

Status(value[, names, module, qualname, ...])

Modules

chain

Token chain text processing — pure function over server output.

deps

BrainDeps — the RunContext.deps payload Stage-2 tools see.

plans

Plan persistence helpers — traversal plan and build plan YAML I/O.

prompt

Pure prompt builders.

state

BrainState — mutable per-session state.