MODE: AI-AUGMENTED

How I Work With AI

I run coding agents the way I'd run a team: written rules, automated checks, and nothing merged that I haven't read. The agents do the typing. The decisions, the diff, and the commit are mine.

// The System

Every agent I work with reads the same working agreement before it touches a file. The green lines are quoted straight from it.

The smallest diff wins

An agent left alone will refactor your file, add three helpers, and wrap everything in error handling nobody asked for. Mine is told that the failure to avoid is not a missing feature. It's a diff bigger than the task.

The deliverable is the smallest change that does exactly what was asked and is verified.

Plan before code

Anything that spans several files starts as a written plan: every file it will touch, every new file with the reason it has to exist, and an explicit list of what is out of scope. I approve it, change it, or throw it out before a line is written.

Plan first (plan mode) when the change spans several files or the approach is uncertain.

Nothing is assumed

Models are confident about APIs that don't exist. So the agent has to find the method in the repo or in the package's own type definitions before it calls it, and it stops and asks when a schema or contract is missing.

Required context missing (schema, API shape, component contract): stop and ask. Never invent it.

Checks are enforced, not requested

Hooks run the formatter, the linter, and the typechecker on whatever a turn changed, and the turn can't end until they pass. Asking an agent to be careful is a suggestion. A hook that blocks it is a guarantee.

Hooks format, lint, and typecheck what the turn changed when it ends. Fix what they report before replying.

Specialists over one generalist

Narrow subagents do narrow jobs. One reads other repos and returns contracts. One fetches facts from documentation and has to cite the source. One runs the tests. One reviews the finished diff cold, with no idea what I was hoping to see.

Subagents: `explorer` reads other repos and returns locations and contracts; `runner` runs a command with long output and returns the outcome; `researcher` fetches facts that are not in the repo.

I make every commit

The agent never stages, commits, or pushes. It hands me a diff, the results of the checks, and a one-line commit message. I read all of it, and my name goes on the commit because the decision was mine.

Never stage, commit, or push.

// One Task, Start to Finish

01Scope

I write down what done looks like and what is out of scope before any code exists. Open questions get asked once, in one batch, here and not in review.

02Plan

The agent proposes the work as vertical slices, naming the files and lines it expects to change. This is where most of my time goes, because a wrong plan is cheap to fix and wrong code is not.

03Build

One slice at a time, written the way the repo already does that kind of thing. When the answer isn't in the code, a research subagent brings back the documented fact with its source.

04Verify

Format, lint, and typecheck run automatically. The existing tests run for the code that was touched. Failures come back with their output, and nothing gets labeled as someone else's problem.

05Review and commit

I read the full diff, cut anything the task did not need, and commit it myself. Then the next slice starts from a green build.

// How the Rules Change

The system is never finished. I audit all of it the way I'd audit a codebase: the rules, the skills, the stack files, the hooks, the agents. Anything that isn't making the output better comes out.

Every rule has a failure behind it

Nothing is in the agreement because it sounds like good practice. A rule goes in when an agent does something wrong that one line could have stopped, and it gets worded against that exact failure. Vague rules get vague compliance.

"Best practice", "clean", "robust", "production-ready", "maintainable", "future-proof", "scalable", "flexible", and "extensible" are not reasons.

Everything has to earn its place

Every line an agent reads costs it attention, so the setup is held to the standard it enforces. Thirteen skills that came bundled with the tooling are switched off. The agent that runs the tests reports in 25 lines. The reviewer gets ten findings and drops any it can't prove.

A new file, export, type, hook, helper, option, or layer exists only when the task cannot be done without it.

A budget, not a request

The agreement asks for a small diff. A hook makes it non-negotiable: a turn that adds more than 150 lines, or a third new file, can't end. The agent gets sent back to read its own diff, delete what the task didn't need, and name the requirement behind everything it keeps.

The Stop hook demands this pass when a turn changes more than its budget.

// The Same Rules, With People

None of this started with agents. The working agreement is how I already worked with engineers, written down strictly enough for a machine to follow.

Decisions get written down

Before a change of any size, I write a short proposal: the problem, the options I weighed, and what I am choosing not to do. It can be challenged before code exists, and found again a year later.

Standards live in tooling

If a rule matters, it goes into the linter, the type system, or a shared component. A convention that depends on everyone remembering a wiki page is not a standard yet.

Review is for the next engineer

I review for whether someone new could change this code safely. When something is hard to follow I say so, explain why, and offer a cleaner path.

Small slices, always shippable

Work lands as vertical slices that each leave the main branch green with one behavior complete. Big-bang merges hide risk until the worst possible moment.

The tools change every few months, the system doesn't: clear scope, small diffs, enforced checks, and a human who reads everything.

Currently in the rotation: Claude Code and Codex, extended with MCP servers, custom subagents, skills, and hooks.

Want to see this workflow in action on your next project? Let's build something great together!