8. From your terminal and your coding agent
By the end of this chapter you will connect your coding agent in one command, hand off and start a side task without leaving your session, and follow it to its pull request.
Install and set up maku
Download maku from a Maku release and put it on your PATH. One command configures your rooms URL, signs in through OIDC, registers the maku MCP server and /maku skill, and runs the doctor checks:
maku setup claude # or opencode, codex, gemini, cursor, copilotIt ends on maku doctor’s lines (dns, tls, login, github, skill). Pass --advanced (maku setup claude --advanced) if you also want room_tail, room_fork, room_checkout, and the coordination_* tools exposed to your coding agent.
For full flag reference, shell completion, and manual configuration, see the maku CLI.
Six tools and /maku
maku setup registers the server as maku with three /maku verbs:
| You type | What it does |
|---|---|
/maku handoff <what> | Plans the work (handoff), then opens a form (start) to file and start it |
/maku task [task or #issue] | Shows where a task stands, what it needs, what changed, its budget, and the gate’s decision |
/maku inbox | Lists everything waiting for you across your tasks |
Under the hood, your coding agent calls six MCP tools: handoff, start, inbox, task, wait, and answer. Full schemas and inputs live in CLI › The MCP server.
Hand off a side task or a spec
Spot a bug while working and tell your agent:
/maku handoff fix the dead link in the install guideChapter 3 walks through a full hand-off.
- For a short, concrete fix, your agent calls
handoff({text})immediately with zero local file reads; the broker planner drafts the issue and returns the text, workflow, and budget (with no merge policy line until a pull request exists). For an existing spec/design (Superpowers, Spec Kit, OpenSpec, Kiro, RFC, or chat design) or a multi-file feature, your agent reads the spec or repo, compiles 1 to 5 Default Spec PR slices (chapter 4), and submits them deterministically viahandoff({issues})at $0 broker LLM cost (private-repo safe). If anything remains ambiguous,handoffasks one question and your reply updates the stored plan by id. startre-validates the stored plan and opens a form you answer yourself: File (defaults to no) and Start now (defaults to yes wherever the planner serves the repository and you can write to it). You can also change the workflow in the form.- On confirmation,
makufiles the issue — or every slice in dependency order whenwholePlansis on (the default) — with your ownghand appliesfactory/ready. Where the planner is disabled,handoff({text})returnsPlanning is not available here; file on GitHub.(compiledhandoff({issues})still validates whenever the broker has the repository catalogue and handoff store wired).
Follow and come back
While you keep working, your agent runs wait in the background and wakes when the task needs you, opens a pull request, or ends. Ask /maku task (or run maku status <task>) at any time:
#412 docs: install guide never says where the key lives owner/repo
State waiting for a review
Needs you nothing
Budget $0.31 of $1.50 (21 %)
Merge Waits for a human: policy docs is in shadow here
Since you last looked (12 min)
11:02 pull request #418 opened
11:04 review started
Room https://rooms.example/r/k3f7q2abBefore the gate evaluates a pull request, the Merge row is omitted.
When you return after time away, run /maku inbox (or maku needs) to see every task waiting on you, /maku task <id> to inspect state and milestones, maku checkout <id> to try a branch in a separate worktree, or answer to reply to a question or queue a note. Every CLI command and flag is documented in the maku CLI.
Next: chapter 9 plans one change across two repositories.