← Home

Tinkering

How I work
with Claude.

The working parts of my Claude Code setup: what each piece does, why it exists, and what it depends on.

This is a menu, not a kit. Take an idea, leave the rest. Most of the value is in the reasoning, and some pieces only make sense alongside my own notes and systems. Where that is the case, I say so.

01 / The pieces

Pick what is useful

01

Plan and test, then hand off

Standalone

The frontier model writes the spec, a stub and failing tests. A small engine I call forge passes them to a cheaper model, which implements until the tests pass. The change is applied only when they are green. If it cannot get there, the work comes back to me.

Why. Judgement is the expensive part. Typing is not. Putting implementation behind a test gate keeps the strongest model for deciding what to build and how to know it works. The catch is that forge ships whatever passes, so weak tests produce wrong-but-green code. Most of the effort goes into tests that cannot be satisfied the wrong way.

Needs. A repo with a test command. Node for the engine. A model to implement with (Haiku right now).

02

Corrections become checks

Adaptable

When I correct an agent, the fix goes into code rather than into another line of instructions. forge now refuses a task before spending a single model call if it has no whole-suite test gate, if a TypeScript target is never typechecked, or if the failing test is the test itself not compiling. It rejects a result that deletes an export the file used to have. After a pass, it makes small deliberate changes to the new code and lists the ones no test caught.

Why. A rule in an instructions file is a request the agent may or may not follow. A check runs every time, for every project that hands work to forge. Each of these checks started as a written lesson from a run that went wrong, and a test keeps the list of checks and the code in step. The list of uncaught changes gives review something concrete to look at, instead of reading the diff and hoping to spot what the tests missed.

Needs. A test runner you can wrap. The habit itself needs nothing: when you correct an agent, ask whether the correction could be a lint rule, a type or a test before you write it down as prose.

Source. Lauren Tan, All Code Is Slop (Except Mine), AI Engineer CODE 2026

03

Work continuity across agents

Standalone

A small protocol and helper script. Every piece of work gets a checkpoint file with its goal, constraints, decisions, progress and next action. Each agent run owns its own checkpoint, and the helper writes atomically, so two agents never overwrite each other.

Why. Sessions end, contexts get compacted, and I run more than one agent at once. Without a written checkpoint, the reasoning behind half-finished work disappears with the session that held it.

Needs. Python 3, standard library only. Works with Claude Code and Codex.

04

A guard on automatic compaction

Standalone

A hook that runs before the context is summarised. It lets compaction through when I am idle or changing topic, and holds it back in the middle of an operation, up to a hard ceiling.

Why. Being summarised halfway through a multi-step change is where work quietly goes wrong.

Needs. Claude Code hooks. Python.

05

Flag the tangent before building it

Adaptable

A standing instruction: before building anything that is not the current priority, name the divergence, show where it ranks, and ask whether to commission it or park it.

Why. My biggest risk to focus is an interesting thread that is not the priority. An agent that builds whatever I find interesting makes that worse, not better.

Needs. Just the instruction. The ranking comes from my own system, but a plain priority list works.

06

Secrets never enter the conversation

Adaptable

Credentials are injected into the processes that need them through a secrets manager. The agent refers to variable names and never prints values.

Why. Anything that appears in a conversation ends up in logs and scrollback.

Needs. Any secrets manager that can run a command with injected environment variables.

07

Configuration as a repository

Standalone

Instructions, settings and skills live in one git repository, symlinked into place and synced automatically.

Why. One place to change things, a history of every change, and a fresh machine set up in minutes.

Needs. Git.

Standalone pieces work on their own. Adaptable ones are ideas you would rewire to your own tools. The source is not public yet.

02 / Skills

The portable ones

Skills are packaged instructions Claude loads for a particular kind of task. These six do not depend on anything personal.

security-audit
A risk check before installing any third-party tool, plugin, package or server.
setup-mcp
Adding an MCP server end to end: audit, install, configure, verify.
triage
Git hygiene for any repo, with a merge, keep or kill verdict for each stale branch, worktree and pull request.
frontend-design
Guardrails against interfaces that look generated rather than designed.
qa-orchestrate
A QA pass where I call out findings rapidly and background agents draft fixes in parallel.
handoff
The trigger that passes a spec and failing tests to forge.

The rest are tied to my knowledge vault, writing voice and review rhythms, so they would not travel well.

03 / What changed, and why

A setup that keeps moving

The setup changes most weeks. Here is what changed recently and the reasoning behind it.

  1. Lessons from forge runs that went wrong stopped being notes and became checks: refusals before any model call, a gate before a change is applied, and a report of changes no test caught. forge implemented three of the checks itself, each passing on the first try. On its first run, the report found two real gaps in that new code, which now have tests.
  2. Project setup gained a track for static sites built from a shared template.
  3. forge switched its implementer from a local model to Haiku, with Sonnet for retries. The local model is paused for now. The engine did not change, because the model was always a swappable part.
  4. forge started recording what each run uses to a ledger, so the trade-off between models is measured rather than assumed.

One lesson from keeping this log: syncing configuration automatically records what changed but not why. The reason has to be written down when the change is made.