Agents
Claude Code
The baton hooks, the handoff skill and 13 MCP tools.
Add Relief as an MCP server
claude mcp add --scope user frontier -- frontier mcp
claude mcp list # should show: frontier ... Connected
claude mcp remove frontier # to undo--scope user makes it available in every project. Claude Code asks you before each MCP tool call unless you allow it in its own settings.
Trust each project once
Claude Code is another program, so Relief does not let it aim the agent at just any folder. In each project you want Claude to delegate to, run this once in a terminal:
cd your-project
frontier trustUntil you do, frontier_task, or frontier_ask with a directory, answers FOLDER_NOT_TRUSTED with this exact instruction, at no model cost. A frontier_ask with no directory needs no trust, because it has no tools and reads nothing. See Trusted folders.
The tools
Claude Code sees these 13 tools. frontier_feedback, the last one, arrived in release 2.0.3; releases before it have 12.
| Tool | Use it for |
|---|---|
frontier_ask | A second opinion from a different model family. Read only. |
frontier_task | Delegate a scoped task to Relief's agent in a trusted folder. |
frontier_task_start and frontier_task_status | The same task in the background, polled by job id. |
frontier_models | The configured models by tier. |
frontier_handoff_save, _load, _list | Save and read redacted session handoffs. |
frontier_compare | Two or three families on one question, with a summary. |
frontier_recommend_model | The best configured model for a task. |
frontier_redact | Mask keys and tokens in text before pasting it. |
frontier_audit_repo | Look for rules file poisoning and exposed secrets. |
Inputs and outputs for each are on MCP tools.
How it behaves
ping,tools/listandinitializeare answered at once, even while a long task runs, so Claude Code never mistakes a busy server for a dead one.- Tool calls run one at a time, in arrival order. Two edit tasks in one folder at once would be unsafe.
- When Claude Code cancels a request, a running task stops (the model request is aborted and any shell command it started is killed) and a queued task never starts.
- With
allowEditson, shell commands run only if they match an allow rule in that project's.frontier/settings.json, because nobody can answer y/n inside an MCP call. A chained command never matches. - If the quality floor stays busy, the tool returns
QUALITY_UNAVAILABLE, so Claude knows and can do the work itself. - Claude Code has its own time limit for tool calls. For long tasks, start it with a higher one, for example
MCP_TOOL_TIMEOUT=1800000(30 minutes, in milliseconds).
Tell Claude when to use it
Paste this into a project's CLAUDE.md. Relief reads CLAUDE.md too, so both tools share it:
## Working with Relief (MCP server "frontier")
- Before finalizing an architecture or a risky change, call `frontier_ask` for a second
opinion from a different model family, and reconcile any disagreement explicitly.
- For well scoped, independent sub-tasks, you may delegate with `frontier_task`
(allowEdits only when the task and files are clearly bounded), then REVIEW the diff yourself.
- If Relief returns QUALITY_UNAVAILABLE, continue the work yourself; do not retry in a loop.The baton hooks
frontier connect claude adds hooks and a handoff skill to Claude Code's own settings so Relief can take over when you hit a limit. It is in release 2.0.3. The takeover has been run end to end twice on free models, with hook events sent through the real frontier hook command but written by hand. A genuine Claude Code rate limit through these hooks has not been seen yet. See How the baton works and Connect it once.
Your account is not involved
All of this goes through hooks and MCP, which Claude Code documents. Relief never reads, stores or forwards your Claude login and never reroutes Claude Code's requests. See Your Claude account.