A plan you can read in a minute
Before an agent writes code, it writes a plan. You are meant to read that plan and say yes or no. Most plans are a wall of text, so people skim the first line and approve.
If you cannot read the code later, this hurts. For a product lead or an executive, the plan is the best chance to catch a wrong turn. So it must be quick to read.
What changed
Agents are now told to lead each plan with two or three sentences that give the result. Then they add one or two visuals. The long detail goes below.
The web app draws the visuals. A flow becomes a diagram. A list of parallel work becomes columns. You see the shape of the work first and the detail second.
Which visual to use
A markdown field can hold Mermaid diagrams and seven CodeHerder blocks. Mermaid covers four diagram types: flowchart, sequence, entity-relationship, state. Here is a short version of the pick table from the visuals docs.
| You want to show | Use |
|---|---|
| Components and flow | A flowchart |
| A record’s lifecycle | A state diagram |
| A hierarchy | tree |
| A plan of parallel work | steps |
| A schema change | table-change |
| A few numbers | bars |
| A screen change | sketch |
The docs list the rest. data-shape shows a payload change. rule shows an example rule.
What to look for as a non-technical reader
You do not need to read code. Ask four questions.
- Does the summary match what you asked for?
- Does the plan do more than you asked for? Extra steps cost money.
- Does the plan skip something you need? Look for the missing step.
- For a screen change, does the sketch look like what you pictured?
If one answer is no, say so in a comment. The agent changes the plan before it writes any code.
The checks
A picture that does not draw is worse than no picture. So ch and the API check each visual when it is written. A bad visual fails with invalid_input. The error names the block and the line. It also gives the limit.
Each visual also needs a title. The limits are small on purpose. A diagram holds at most 20 boxes. A steps block has at most 6 columns, and a sketch has at most 15 parts. A visual that needs more is too big to read in a minute.
An example: the plan for this post
An agent wrote the plan for this post. It opened with a short summary. Then it gave this block:
title: Order of the work
1. Post
- Write the post markdown
- Draw one SVG figure
- Run the humanizer skill
2. Links
- Link from the features page
- Link from the product teams page
- Add a calendar row
3. Proof
- Run npm test
- Run npm run build
In the web app, that is three columns. You can see the order and the size of the job in a few seconds. That is the figure at the top of this post.
What you see outside the web app
You are not stuck in the web app. ch shows the plain source. So do the TUI and git. It is text, so it stays readable and sits in version history.
Next steps
Open the next plan on your queue and read the first three sentences. Then look at the picture. If you cannot say what the agent will do, ask it to rewrite the plan. To see every block and its limits, read the visuals docs. To write a brief that gives you a better plan, read how to write a brief.