agent workflows
A subagent is not a shortcut It is a contractor Give it a complete brief, clear boundaries, and a definition of done
Decomposition
Break the task before you start it One file, one concern, one verification step If a task needs three unrelated changes, it is three tasks wearing one label
The brief
- what to produce
- where it goes
- what to read first
- what not to touch
- how to verify
Missing any of those, the agent fills the gap with something plausible Plausible is the enemy of correct
Verification
The agent reports what it ran You run it again yourself A reported pass is not a pass until you see the output
For code that means compiling and running For content that means reading the file and checking the format rules For links that means resolving them against the filesystem
Stopping
Know when to stop the agent If it has failed twice on the same point, the brief is wrong Rewrite the brief, do not argue with the tool
What works
- small, well scoped tasks
- explicit file paths
- a checklist of passes
- permission to say “I cannot verify this”
What does not
- vague goals
- asking for a whole section in one prompt
- trusting a summary instead of the diff
- letting the agent touch files outside its scope
Rule
The agent does the typing You own the result
Posted