Use cases

Build, review, document.

A three-agent chain: one agent writes the code, a second reviews it, a third updates the docs to match what actually shipped. It is a shipped template, and it keeps the README, the docs and the changelog in step with the code.

15 minClaude Code · Codex · Auto-codetemplate: Code + review + docs · Mo-driven

1Choose the three-agent template

Open Folder Settings → Auto-code, turn Auto-code on, and choose Code + review + docs · Mo-driven. The graph has three cli_agent nodes: an implementer, a reviewer with Claude as fallback, whose review can send the diff back to the implementer, and a docs agent that runs only after the review passes.

Mo sits between every pair of stages. After the implementer, Mo can stop the run and ask you in chat, through a human_gate, when the diff raises a question only you can answer. After the reviewer approves, the docs agent starts, and Mo checks the docs against the diff before the ticket closes.

There is a four-agent variant, "Code + review + docs + QA", where a QA agent adds functional tests or a manual checklist after the docs.

Auto-code Workflows Habit Tracker
Code + review + docs · Mo-drivenSaved
VisualJSON
+ cli_agent+ mcp_tool_call+ Mo stage+ Reject sink+ Complete sink+ human_gate+ branch
accept reject success review reject ask_human reply success approve reopen reject success finish reopen reject done tools_failed MO · PROCESS STARTmo_start2 branches · entryacceptreject CLI AGENTfixclaude MO STAGEmo_after_fix3 branchesreviewask_humanreject HUMAN · IN THE LOOPhuman_chatMo asks the user · text d… CLI AGENTreviewcodex MO STAGEmo_after_review3 branchesapprovereopenreject CLI AGENTdocsclaude MO STAGEmo_after_docs3 branchesfinishreopenreject MO STAGEmo_tools2 branchesdonetools_failed REJECT SINKreject_terminalBacklog + Mo comment COMPLETE SINKcomplete_terminalDone + Mo comment

2Tell the docs agent what must not drift

The docs node’s prompt is yours to edit. Name the files that must stay in sync: README, the docs folder, the changelog. Then state the rule: describe what shipped, in the diff, not what the ticket asked for.

The agent sees the ticket, the implementer’s summary, the review and the list of changed files. So it documents the real change, not the plan.

The docs agent works in the repository only: it edits files such as the README, the docs and the changelog, and it cannot write Morion notes. If you keep a release log in Morion, write that note after the run, yourself or through your agent over MCP.

docs node · prompt You are the documentation step. Read the ticket, the implementer's summary and the review. Update README.md, docs/ and CHANGELOG.md so they describe what the diff does, not what the ticket asked for. Do not touch code. Report the files you changed.

3Run a ticket through the chain

Move a ticket to Todo. The implementer builds. The reviewer writes a review, and Mo decides. The docs agent updates three files. The ticket lands in Done with the diff and the docs on its own branch; you merge it with one click in the Auto-code drawer, or let the folder auto-merge.

When the review asks for changes, Mo sends the diff back to the implementer in the same run, with the review in context. The docs step waits until a review passes, so it never documents a rejected diff.

Auto-code drawer
Mo · auto-code activity
Export to Markdown keeps attachments
Auto-code workflowUse folder default
DONEattempts: 1reopens: 0Merge into mainShow filesOpen in editorauto-01m3d4r8wz2y6c5v7n9b3k1q0x
Ready to mergeWhat Mo did
Mo finished the ticket. Click "Merge into main" above to land the worktree branch on your trunk.
Mo changed 6 files.+205 · −23 lines(6 files changed, 205 insertions(+), 23 deletions(-))
Files (6)
src/export/markdown.ts+46−12
src/export/attachments.ts+58
test/export.test.ts+72−4
README.md+6−2
docs/export.md+19−5
CHANGELOG.md+4
Session● docs · claude · done
Updated README.md, docs/export.md and CHANGELOG.md. They now say that an export copies attachments next to the .md file and rewrites links as relative paths, so a moved folder keeps working. No code touched.

4Answer when the run asks

When the implementer comes back with a question, Mo stops the run at the human_gate and asks you in chat. Answer there.

you → the run, in chatKeep the old export path as an alias for one release.

The run resumes with your reply in context, and the implementer gets your words in its packet. The docs step still waits for a passing review.

5What you have now

Docs that describe the code as it is, written by an agent that read the diff and the review, after the reviewer approved the diff. If you keep a release log in Morion, have your agent write the entry after the run; Ask Mo can then answer questions about it with citations.

you → Claude CodeRead the Done ticket “Export to Markdown keeps attachments” in Morion and add a note to the folder Release Logs: what shipped, the files touched, follow-ups.
you → Claude CodeAsk Mo what changed in export last month, with the notes it comes from.
Download