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.
{ "id": "report", "do": "Write report/report.md from report/sales.csv.", "by": "agent", "proof": { "by": "agent", "check": "Every number matches report/sales.csv." } }idis how other steps name it: small letters, digits and-, at most 24.dosays what to do, in words. Whoever does the step is also told the plan'swish.bysays who does it.
Who does a step
by | The work | Its proof |
|---|---|---|
agent | An agent does what do says. | Required. An agent does not set its own measure. |
algorithm | The command in run. It did its work when it ended with 0. | The command itself, and any proofs you add. |
person | The person is asked what do says and answers. | None. Their word stands. |
plan | Another 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.
{ "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}}.
{ "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.