repositories / smith

smith

There are many coding harnesses - but this one is fast

owned by bugabinga

Add a Fable mission-critical tier and per-agent thinking levels (#29)

9c446231ddccf9a96ba285e1b16a8c26db10d98a

Oliver Jan Krylow <oliver@bugabinga.net> ·

SSH signature · not checked

Browse filesCompare with HEAD

## What forced this
Model was the only quality dial, and all judgment agents sat flat on
Opus. The two autonomous merge gates deserve the top model and the
deepest reasoning — a wrong approve there is the least reversible, least
supervised failure in the whole cycle.

## The call
Two dials per agent. **Fable** runs the mission-critical gates
(`reviewer`, `security-reviewer`); **thinking** climbs with the stakes
via the `think` / `think hard` / `ultrathink` keyword — minimal
(triager, sweeper), think (builder et al.), think-hard (surveyor,
planner, adw-doctor), ultrathink (the gates).

## What we deliberately didn't do
Didn't put Fable on everything — cost tracks both dials, so they rise
together only where it pays; `release-manager` and `planner` are named
as the next candidates if the tier widens. Kept `reviewer` a different
model than `builder` (Sonnet) so review stays a second opinion.

## Evidence
`reviewer`/`security-reviewer` frontmatter → `fable`; `adw-review` both
jobs → `claude-fable-5` + `ultrathink`; `think hard` on survey/plan,
`think` on build. Model + thinking tiers documented as a table in
AGENTIC-DEVELOPMENT.

## Surface touched
`.claude/agents/{reviewer,security-reviewer}.md`,
`.github/workflows/{adw-review,adw-survey,adw-plan,adw-build}.yml`, and
the tiering table + roster in `docs/plans/AGENTIC-DEVELOPMENT.md`.

## If this ages badly
Rebalance the tiers in the one table + the agent frontmatter; the
thinking keyword is per-prompt and trivially tuned.

---
_Generated by [Claude
Code](https://claude.ai/code/session_01LABEHeVpg74oyZNtWLUWpB)_

Co-authored-by: Claude <noreply@anthropic.com>

Changed files (7)

+32 / −15 text lines

Diff layout

.claude/agents/reviewer.md

Modified

+1 / −1 text lines

22name: reviewer
33description: Adversarially review a PR for correctness and quality against the spec and invariants. Posts a review verdict; edits no code. Runs on a different model than the builder.
44tools: Read, Grep, Glob, Bash
5model: opus
5model: fable
66---
88You are the **reviewer**. Every PR passes your bench before it can merge. You

.claude/agents/security-reviewer.md

Modified

+1 / −1 text lines

22name: security-reviewer
33description: Security-review a PR and triage security alerts — sandbox escape, secrets, unsafe, injection, supply chain. Escalates high severity to the owner; edits no code.
44tools: Read, Grep, Glob, Bash
5model: opus
5model: fable
66---
88You are the **security-reviewer**. Smith runs untrusted Lua plugins, brokers

.github/workflows/adw-build.yml

Modified

+1 / −1 text lines

4040 #${{ github.event.issue.number }} in ${{ github.repository }}.
4141 Follow .claude/agents/builder.md exactly: one slice per
4242 WALKING-SKELETON, tests, self-harden with /sabotnik and /handmade,
43 open a PR that closes the issue. Do not merge.
43 open a PR that closes the issue. Do not merge. Think.
4444 claude_args: --model claude-sonnet-5

.github/workflows/adw-plan.yml

Modified

+1 / −1 text lines

5858 ${{ github.event.inputs.base_sha }} (its previous state on main); for
5959 each newly-specced or materially-changed surface with no tracking
6060 issue, open one work-order issue and refresh docs/plans/*. Do not edit
61 the spec.
61 the spec. Think hard.
6262 claude_args: --model claude-opus-4-8

.github/workflows/adw-review.yml

Modified

+4 / −2 text lines

6060 `reviewed` and remove `changes-requested`; on request-changes, add
6161 `changes-requested` (this wakes builder to revise) and remove
6262 `reviewed`. Leave your findings as comments either way.
63 claude_args: --model claude-opus-4-8
63 You are a mission-critical gate — ultrathink.
64 claude_args: --model claude-fable-5
6566 security-reviewer:
6667 needs: reset
8485 Verdict as a label (the merge-gate reads it): if nothing high-severity,
8586 add `security-cleared`; on a high finding, add `risk:high` and ensure
8687 `security-cleared` is absent, holding the merge for the owner.
87 claude_args: --model claude-opus-4-8
88 You are a mission-critical gate — ultrathink.
89 claude_args: --model claude-fable-5

.github/workflows/adw-survey.yml

Modified

+1 / −1 text lines

4646 terms. If the next slice needs a spec decision, open it `needs:spec`
4747 (owner, not ready); if it rests on an unproven spec claim, open it
4848 `needs:prototype`. One issue per tick, or none. Never edit the spec,
49 never write code.
49 never write code. Think hard.
5050 claude_args: --model claude-opus-4-8

docs/plans/AGENTIC-DEVELOPMENT.md

Modified

+23 / −8 text lines

9797| `triager` | issue opened | triage a raw issue into a labeled, routed, spec-anchored work-order | the **Issue** + board card | Haiku |
9898| `planner` | spec change lands on `main` | turn the spec diff into tracked work-orders + refresh the plan | **Issues** + `docs/plans/*` | Opus |
9999| `builder` | issue labeled `ready` | build one slice per `WALKING-SKELETON`, hardened, tested | a **branch + PR** | Sonnet |
100| `reviewer` | `pull_request` | adversarial correctness review vs the spec — a *second* model | a **PR review** | Opus |
101| `security-reviewer` | PR on sensitive surface / `needs:security` / scanner alert | security review; escalate high severity | a **PR review** + `risk:*` | Opus |
100| `reviewer` | `pull_request` | adversarial correctness review vs the spec — a *second* model | a **PR review** | Fable |
101| `security-reviewer` | PR on sensitive surface / `needs:security` / scanner alert | security review; escalate high severity | a **PR review** + `risk:*` | Fable |
102102| `docs-writer` | merged PR changes user-facing / SDK behavior | keep user + plugin-author docs and the site true to the product | doc sources + Pages, via **PR** | Sonnet |
103103| `dependency-manager` | Dependabot bump PR | shepherd version bumps through the gates; escalate risky ones | **Dependabot PRs** | Sonnet |
104104| `release-manager` | milestone green / `v*` tag | draft notes, verify the §14 matrix, publish the Release | a **GitHub Release** | Sonnet |
112112wield `/sabotnik` and `/handmade`; `pioneer` and `smith` stay
113113owner/skill-invoked, since the spec is touchpoint 1.
115Model tiering favours **quality over speed** (see *Two phases*): mechanical work
116(triager, sweeper) on Haiku; building/docs/deps/release on Sonnet; everything
117adversarial or judgment-heavy (surveyor, reviewer, security-reviewer, planner) on
118Opus —
119and `reviewer` is deliberately a *different* model from `builder` so review is a
120second opinion, not self-congratulation.
115### Model and thinking tiers
117Two dials per agent, both favouring **quality over speed**: which *model* runs it,
118and how hard it *thinks* (extended-reasoning budget, set by the `think` /
119`think hard` / `ultrathink` keyword in the workflow prompt). Cost tracks both, so
120they climb together only where the stakes justify it.
122| Tier | Model | Thinking | Agents | Why |
123|---|---|---|---|---|
124| mechanical | Haiku | minimal | `triager`, `sweeper` | label/route/sweep — pattern work, not judgment |
125| build | Sonnet | `think` | `builder`, `docs-writer`, `dependency-manager`, `release-manager` | implement and maintain — competent, bounded |
126| judgment | Opus | `think hard` | `surveyor`, `planner`, `adw-doctor` | plan the build and heal the machine — one wrong call ripples |
127| **mission-critical** | **Fable** | **`ultrathink`** | `reviewer`, `security-reviewer` | the two autonomous gates into `main`; a wrong approve merges a defect or a sandbox escape with no human in the loop |
129**Fable is reserved for the gates** because their errors are the least reversible
130and the least supervised — everything else has a backstop (CI, the owner on
131`risk:high`, `sweeper`, the owner on protected paths), but a clean-looking bad PR
132that both reviewers wave through merges itself. `reviewer` on Fable also keeps the
133invariant that review runs a *different* model than `builder` (Sonnet), so it stays
134a second opinion, not self-congratulation. `release-manager` and `planner` are the
135next candidates if the mission-critical tier ever widens.
122137## How the cycle pushes Smith forward