Skip to content
8. Terminal and coding agent

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, copilot

It 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 typeWhat 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 inboxLists 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

Spot a bug while working and tell your agent:

/maku handoff fix the dead link in the install guide

Chapter 3 walks through a full hand-off.

  1. handoff stores the plan on the broker and returns the issue text, the workflow, and the budget (with no merge policy line until a pull request exists). If something is ambiguous, it asks one question; your reply updates the stored plan by id.
  2. start re-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.
  3. On confirmation, maku files the issue with your own gh and applies factory/ready. Where the planner is disabled, handoff returns Planning is not available here; file on GitHub.

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/k3f7q2ab

Before 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.