Skip to content

Steps ​

A plan is a list of steps, done in the order they are written. Each step says what to do, who does it and what proves it.

json
{ "id": "report", "do": "Write report/report.md from report/sales.csv.", "by": "agent", "proof": { "by": "agent", "check": "Every number matches report/sales.csv." } }
  • id is how other steps name it: small letters, digits and -, at most 24.
  • do says what to do, in words. Whoever does the step is also told the plan's wish.
  • by says who does it.

Who does a step ​

byThe workIts proof
agentAn agent does what do says.Required. An agent does not set its own measure.
algorithmThe command in run. It did its work when it ended with 0.The command itself, and any proofs you add.
personThe person is asked what do says and answers.None. Their word stands.
planAnother plan, named in plan, runs as this step.None here. Its own steps carry its proofs.

An agent's step may name the agent (agent), the model (model) and the only kinds of tools it may use (tools: read, write, commands, internet, screen). Give an agent only the tools the step needs.

An agent behind a command ​

A command that fails can get help. With "on_fail": "agent", an agent is given what the command wrote, fixes what stands in its way, and then the same command runs again as the proof of the agent's work.

json
{ "id": "tests", "do": "Run the whole test suite.", "by": "algorithm", "run": "make test", "on_fail": "agent" }

Naming what came before ​

A text of a step can use the answer of an earlier step, {{id}}, or what the run was started with, {{asked}}.

json
{ "id": "welcome", "do": "Write onboarding/welcome.md for {{asked}}.", "by": "agent", "proof": { "by": "person" } }

A step's work may only name steps written before it. Its proofs come after the work, so they may also name the step itself.

See the specification of steps for every rule.

Code, schema and examples under the Apache License 2.0. Guide text also under CC BY 4.0.