Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions docs/plans/2026-10-22-cut-model-cost.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
---
canonical: relais:docs/plans/2026-10-22-cut-model-cost.md
phases: [A]
status: active
---
# Cut model cost where the money is (pointer)

The plan lives in relais, which owns ADR-0001 (the session router) and
ADR-0006 (typed research routing). This repository carries Part A: an Opus
advisor behind the routed session (`advisorModel`), with the reviewer agents
pinned to Opus first so the router never lowers them.

## Verification

- Probe: `claude -p --model sonnet --advisor opus` → advisor ran:
`~/.claude/projects/-private-tmp-claude-501-advisor-probe/5992a938-81bb-4e8a-b5ff-812c65d64eb4.jsonl:29`
holds `"type":"server_tool_use",…,"name":"advisor"`; Opus 26,185 input tokens, $0.116 per consult,
uncached. `--model haiku --advisor opus` → Opus $0.115. Both through the local proxy.
- `grep -L '^model:' dot_claude/agents/*.md` → empty (13 pinned).
- Deviation from Part A step 4: no full `chezmoi apply`. The live `~/.claude/settings.json` holds keys the
source lacks (apiKeyHelper, ANTHROPIC_BASE_URL, amont-agent hooks, relais paths; `chezmoi status`: MM),
so only the 13 agent targets are applied, and the same `advisorModel` line goes into the live file by
hand. holds-until: the live-only keys are reconciled into the source.

## Implementation review

approve-with-changes. Both findings fixed here: the targeted-apply deviation and the probe record above.
29.8k tokens, 38 s.
1 change: 1 addition & 0 deletions dot_claude/agents/implementation-review.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
name: implementation-review
description: The one independent reviewer of an implementation before its push (ADR-0022, work.implementation-review). Reads the diff against the landed plan and the repository's active rules, reports findings only, never edits or waives anything. Launched by worktree-task F4b with a `<<<TREE repo=… sha=…>>>` block; the amont-agent implementation-review hook checks at `git push` that it ran for the tree being pushed.
tools: Read, Grep, Glob, LSP
model: opus
---
Catches: a change about to be pushed that departs from its approved plan, records a check it cannot have run, breaks an active rule, or adds a test that cannot fail.

Expand Down
1 change: 1 addition & 0 deletions dot_claude/agents/interface-review.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
name: interface-review
description: Independent interface reviewer of a change before its push, launched by worktree-task F4b step 2b. Follows ~/.claude/skills/interface-review/SKILL.md on the diff in its brief, reports findings only, never edits.
tools: Read, Grep, Glob, LSP, mcp__duro-ds__duro_ds_lookup
model: opus
---
Catches: an interface change that breaks accessibility, layout, copy or the design system's rules before the person sees it.

Expand Down
1 change: 1 addition & 0 deletions dot_claude/agents/plan-review-architect.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
name: plan-review-architect
description: Architect on a plan's review panel (ADR-0022, work.plan-review-panel), for large or long-lived repositories. Reviews a plan before it is presented; never edits anything.
tools: Read, Grep, Glob, LSP
model: opus
---
Catches: a plan that puts a concept in the wrong module or tool, couples parts that should stay apart, or contradicts an active decision.

Expand Down
1 change: 1 addition & 0 deletions dot_claude/agents/plan-review-backend.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
name: plan-review-backend
description: Staff backend engineer on a plan's review panel (ADR-0022, work.plan-review-panel). Always part of the panel, and always re-runs on the final body and on every delta. Reviews a plan before it is presented; never edits anything.
tools: Read, Grep, Glob, LSP
model: opus
---
Catches: a plan whose data flow, failure handling, concurrency or verification would not hold under real use.

Expand Down
1 change: 1 addition & 0 deletions dot_claude/agents/plan-review-game-ux.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
name: plan-review-game-ux
description: Game developer and UX designer from the video game industry on a plan's review panel (ADR-0022, work.plan-review-panel), for repositories with an interface. Reviews a plan before it is presented; never edits anything.
tools: Read, Grep, Glob
model: opus
---
Catches: a plan whose interaction lacks the feedback, onboarding, flow or discoverability a player would expect.

Expand Down
1 change: 1 addition & 0 deletions dot_claude/agents/plan-review-language.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
name: plan-review-language
description: Language expert on a plan's review panel (ADR-0022, work.plan-review-panel). Launched by /plan-review with a review block naming the language (lang=rust, lang=typescript, …). Reviews a plan before it is presented; never edits anything.
tools: Read, Grep, Glob, LSP
model: opus
---
Catches: a plan that fights the language's idioms, type system or toolchain, or claims behaviour no test would catch.

Expand Down
1 change: 1 addition & 0 deletions dot_claude/agents/plan-review-platform.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
name: plan-review-platform
description: Staff platform engineer on a plan's review panel (ADR-0022, work.plan-review-panel), for repositories with Kubernetes, Flux, Helm or Terraform. Reviews a plan before it is presented; never edits anything.
tools: Read, Grep, Glob
model: opus
---
Catches: a plan that would break deployment, GitOps reconciliation, cluster resources or rollback.

Expand Down
1 change: 1 addition & 0 deletions dot_claude/agents/plan-review-po.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
name: plan-review-po
description: Product owner on a plan's review panel (ADR-0022, work.plan-review-panel), for large or long-lived repositories. Reviews a plan before it is presented; never edits anything.
tools: Read, Grep, Glob
model: opus
---
Catches: a plan that solves the wrong problem, misses the person's goal, or has no outcome anyone can observe.

Expand Down
1 change: 1 addition & 0 deletions dot_claude/agents/plan-review-react.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
name: plan-review-react
description: React staff engineer on a plan's review panel (ADR-0022, work.plan-review-panel), for repositories with an interface. Reviews a plan before it is presented; never edits anything.
tools: Read, Grep, Glob, mcp__duro-ds__duro_ds_lookup
model: opus
---
Catches: a plan whose React state, effects, rendering or component boundaries would misbehave.

Expand Down
1 change: 1 addition & 0 deletions dot_claude/agents/plan-review-tui.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
name: plan-review-tui
description: TUI expert on a plan's review panel (ADR-0022, work.plan-review-panel), for repositories that ship a command line: what a person sees and types. Reviews a plan before it is presented; never edits anything.
tools: Read, Grep, Glob
model: opus
---
Catches: a plan whose command-line output, prompts or terminal behaviour would confuse the person reading it.

Expand Down
1 change: 1 addition & 0 deletions dot_claude/agents/plan-review-ui-design.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
name: plan-review-ui-design
description: UI designer on a plan's review panel (ADR-0022, work.plan-review-panel), for repositories with an interface. Reviews a plan before it is presented; never edits anything.
tools: Read, Grep, Glob, mcp__duro-ds__duro_ds_lookup
model: opus
---
Catches: a plan whose hierarchy, spacing, states or consistency departs from the design system.

Expand Down
1 change: 1 addition & 0 deletions dot_claude/agents/plan-review-unix.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
name: plan-review-unix
description: Unix expert on a plan's review panel (ADR-0022, work.plan-review-panel), for repositories that ship a command line. Reviews a plan before it is presented; never edits anything.
tools: Read, Grep, Glob
model: opus
---
Catches: a plan whose command line breaks Unix conventions: exit codes, streams, signals, flags or pipes.

Expand Down
1 change: 1 addition & 0 deletions dot_claude/agents/plan-review-ux-research.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
name: plan-review-ux-research
description: UX researcher on a plan's review panel (ADR-0022, work.plan-review-panel), for repositories with an interface: backs each UX choice with cited research or flags it as unbacked. Reviews a plan before it is presented; never edits anything.
tools: Read, Grep, Glob, WebSearch, WebFetch
model: opus
---
Catches: a plan that makes a UX choice no cited research backs.

Expand Down
1 change: 1 addition & 0 deletions dot_claude/settings.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"advisorModel": "opus",
"env": {
"RUST_BACKTRACE": "1"
},
Expand Down
Loading