Skip to content
pearse.dev

07 ToolingJul 2026 – Present

Agentic engineering workflow

A Claude Code harness for a one-person, many-agent team — worktree isolation enforced by hooks, model routing by issue size, adversarial PR review and a shift handover protocol.

Role
Designer and operator
Period
Jul 2026 – Present
Code
Private repository
  • Claude Code
  • git worktrees
  • Bash hooks
  • GitHub CLI
  • ntfy
  • Tailscale

What it does

  • One planning session, cheaper delegate agents chosen by issue size, each in its own git worktree.
  • PreToolUse hooks that block destructive git commands and writes in a shared checkout.
  • Adversarial PR review — a prosecutor model argues against the change, a judge from a different model family rules.
  • Risk classification, phone notifications, and remote control from a tablet.
  • Start- and end-of-shift handover protocols so the next session rebuilds context from the repo alone.
  • Around 30 custom skills. Tutto, an earlier headless orchestrator with auto-merge under a deterministic risk policy, was retired in favour of this lighter design.
How it fits together
Planner to mergeOne planning session turns a request into an issue on the tracker, which is the only coordination surface. A delegate claims the issue first, and the size of the issue picks the delegate: small issues go to a cheaper model, medium ones to a stronger model and large ones to the top model. Each delegate works in its own git worktree. PreToolUse hook guardrails block destructive git commands and writes in the shared checkout, which belongs to no agent. The delegate opens a pull request, which has a size cap, and CI runs the full suite once. Review works to a budget: a prosecutor tries to break the pull request, and a judge on a different, stronger model rules on its findings. Findings go back to the delegate as a fix round, up to a fix-round limit. Then the pull request merges, and leftover findings go back to the tracker as new issues.one git worktree eachreview budgetPlannerone planningsessionIssue trackercoordinationclaim firstSize Scheaper modelSize Mstronger modelSize Ltop modelHook guardrailsPreToolUse hooksShared checkoutbelongs to no agentPull requestsize capCIfull suite onceProsecutortries to break itJudgedifferent, strongermodelMergeblockedfix roundleftoversone git worktree eachreview budgetPlannerone planningsessionIssue trackercoordinationclaim firstSize ScheapermodelSize MstrongermodelSize Ltop modelPull requestsize capHook guardrailsPreToolUse hooksCIfull suite onceShared checkoutbelongs to no agentProsecutortries to break itJudgedifferent, strongermodelMergeblockedfix roundleftovers

Everything on this site from mid-2026 onwards was built with agents, under review. This is the harness that made that safe enough to do every day: hooks that make the dangerous commands impossible in the wrong place, a tracker that is the only coordination surface, and a review process that assumes the author is wrong until proven otherwise.

The honest version is that most of the design came from failures — two agents picking up the same issue within an hour, a review loop that found two new majors every round, a suite that ran four times per PR and took the CI runners down with it. Each one became a rule.

An agentic engineering workflow that actually ships

One planner model, cheaper delegates by issue size, worktrees enforced by hooks, adversarial PR review and review budgets. What it costs and where it fails.

4 min

Want to see the code?

The code is private. Happy to walk you through how it was built on a call.

Email me about Agentic engineering workflow