Docs menu

Chief

With many Claude Code sessions open it gets hard to know which one should take a new task, which ones are about to lose their prompt cache, and which ones are editing the same files. Chief is one chat that handles that. You tell it what you want; it sends the work to the right session, starts a new one, or answers you itself.

Set it up

Open a computer in Melta and tap Set up Chief at the top of its screen. That installs the melta-chief command on the computer, makes a ~/Melta Chief folder with Chief's instructions, opens a Chief workspace in Herdr and starts Claude Code in it. The same line works in a terminal on the computer:

curl -fsSL https://getmelta.app/chief/install.sh | sh

Chief is an ordinary Claude Code session on your own computer, using your own Claude plan. Nothing runs anywhere else.

What it does

  • Routes a task. Chief reads its session board first: every session's title, status, context size, whether its prompt cache is still warm, its git branch and uncommitted files, and its last prompt. A task on the same topic goes to that session, cheapest when its cache is warm. A new topic gets a new session; if it will edit code, Chief gives it its own git worktree and branch so it can't trip over the others.
  • Cares for caches. Continuing a warm session costs about a tenth of its context; rereading a cold one costs it all, or twice that with a one-hour cache. Chief suggests a handoff file while a big session is still warm, a /compact for one that will keep going, and a warm-up only when you'll be back soon. With Chief v2, Chief compares the cost of each choice and warms only sessions with queued work.
  • Remembers. With Melta Notes connected, Chief keeps your goals per project, your shorthand and its decisions in notes you can read and fix on your phone. Without Notes it keeps them as Markdown files in ~/Melta Chief/notes.

Chief v2 adds task records, lean workers, routing by rule and a weekly review.

On the host screen

Every Claude Code session row shows its context size and cache countdown, such as 191k · warm 42m; with Chief v2 it adds both cost estimates and the queue, such as append 63k / handoff 101k · 2 queued. Long-press a session for Warm cache, Compact and Hand off; a handoff asks that session to write a file with its goal, state, next steps and decisions, which a fresh session can pick up.

Chief's tools

Chief sees and steers the other sessions through melta-chief, which it has as MCP tools: session_board, session_detail, send_to_session, new_session, warm_session, compact_session and handoff_session. Its standard rules are in ~/Melta Chief/CHIEF.md, which updates refresh; put your own rules in ~/Melta Chief/CLAUDE.md, which is yours and never overwritten. Running the setup line again is safe: it keeps the Chief session you have. Herdr's own agents can't be driven by Chief while they are blocked on a question: answer it in Melta first.

Accounts and models

New sessions can start under other Claude or Codex logins, or an API-key provider, with usage bars and Smart switch. Default model on the host screen sets the model and effort new sessions start with, and Chief's own (applied the next time Chief starts). See Accounts and models.

Model routing

With Chief v2, a fixed rule picks where a task goes and which model plans, builds, runs and reviews it. See Chief routing.

Pull requests

For repos that need pull requests, with CHIEF_V2=1. Chief uses your computer's own GitHub CLI login, so run gh auth login there once; Melta never stores a GitHub token. A task ready for review on a branch gets one card action for its pull request: Create PR pushes the branch and opens a PR with the task's goal as title and its receipt as body; Fix CI sends the failing check's log to the session that built it; Address comments sends it the unresolved review comments; Merge it asks you to confirm, then merges only when the checks pass. Chief never merges with admin rights and never force-pushes. The card shows the PR number and its check status.

Suggestions

With New Melta and Chief v2 on, Ask Chief and the chat help you write the next task. As you type, the rest of the line appears in grey: swipe right on the box, or tap the grey text, to take it. Up to three suggestions sit by the box, each with a short tag saying where it came from: your history (your past tasks in this repo), repo (a folder of the repo), CI red now or tests failing (what Chief's records show). Tap one to put it in the box. Nothing is sent until you tap Send.

Type / first to see the skills, commands and mods on that computer: your Claude Code skills and commands (your own, the repo's and installed plugins'), Codex prompts and skills, Chief's own skills, Herdr mods and the agent's built-in commands, each with one line. The list is read on the computer with melta-chief catalog; only names and that one line reach the phone.

When a task finishes, the Chief tab and the task's screen show Next steps: two or three actions that follow from what the task changed, such as Review the diff, Open a PR, Run the tests or Fix the failing CI. A tap opens Ask Chief with the task planned; Start still asks. The chat's quick replies follow the agent's last turn the same way (Fix the failing tests, Show the diff, Go on), with your own quick replies after them.

Turn it off in Settings › Chief › Suggestions. Typing suggestions and the / list never use a model. Smarter next steps (off by default) asks a small model on your computer once per finished task, using a few tokens. Suggestions need melta-chief 0.1.22 or later; the app updates an older one when Chief v2 is on.