What Makes an AI Coding Agent Worth Trusting

Theo recently posted on X: “If you still have your tech stack in your bio, you’re probably gonna be unemployed in 6 months.” It is a hot take, and I would not bet on the six months, but it made me look at my own homepage. The first section after the hero was a scrolling wall of framework logos.

The logos said very little about my work. Most of my time now goes into a different question: how do I get an AI coding agent to produce changes I would sign off on? An agent writes code faster than I can review it, so the work moves to the parts around the code. These are the rules it follows, the review it gets, the checks that prove it works, and the actions it may not take alone.

I recently rebuilt this site’s homepage with an agent, and the examples below come from that work.

Write the rules down

An agent follows the instructions it can read, so my habits live in files. My global AGENTS.md starts with rules like these:

- Do not modify, design, or implement anything unless the user explicitly asks.
  Discuss issues without acting on them.
- Make the smallest change that solves the request. Avoid speculative or
  unrelated changes. Preserve the existing code style.
- Verify changes with relevant tests or checks. Report failures clearly.
- Run destructive file or Git commands only when the user explicitly requests
  the exact operation.

Each repository adds its own file, and it is most useful for what an agent cannot find by looking. This site’s AGENTS.md says which command checks which kind of change, and it records conventions no config file shows: dark-mode rules use a :where([data-theme="dark"]) selector, and the positioning copy lives in six places that must change together. I added that list after I found the old bio still in the author card at the end of every post.

When I asked what the tweet meant, the agent read the homepage, explained the idea, and proposed changes, but it did not edit a file until I said “implement”.

Keep every change small enough to review

I review agent work commit by commit, so the history has to make sense. The homepage redesign ended as nine commits: the new hero, the “What I build” section, the featured projects, a layout fix, the order of social links, the theme switch, the logo, the share metadata, and the footer text.

When a later review found problems, the agent amended each fix into the commit that introduced the problem instead of adding a “fix review comments” commit at the end. Then it proved that every commit still builds on its own:

git rebase -x 'pnpm build' origin/main

git rebase -x runs the command after each commit and stops at the first failure. If all commits pass, the SHAs do not change, so the check costs nothing but time.

Let a different agent review the work

The agent that wrote a change is a poor reviewer of it, for the same reason I am a poor reviewer of my own code. So the review goes to a separate agent, in a separate session, on a different model.

I use a reviewer agent in opencode. Its definition denies it the tools it does not need:

---
description: Independently reviews a code diff, plan, proposed solution, ...
mode: subagent
permissions:
  - action: edit
    resource: "*"
    effect: deny
  - action: subagent
    resource: "*"
    effect: deny
  - action: question
    resource: "*"
    effect: deny
---

It cannot edit files, start more agents, or ask questions. Its instructions require every finding to have a priority (P0, P1, or P2), an exact location, evidence, the impact, and the smallest fix. It must drop findings that rest on preference or speculation.

For the redesign I ran Matt Pocock’s code-review skill, which splits the review into two axes. One reviewer checks the diff against the repository’s documented standards and a list of code smells. The other checks it against the spec, which here was my own requests from the session, written down as a list. Both ran at the same time, each on deepseek-v4.1-flash at high reasoning effort:

opencode run --agent reviewer \
  -m 'opencode-go/deepseek-v4.1-flash#high' \
  "$(cat standards-prompt.md)"

They returned eight findings, all P2. Some were real problems:

  • The “What I build” card tagged Markdown Studio with React. The project uses Vue and Electron.
  • The site title and description had changed for social cards, and the RSS feed reads the same constants. AGENTS.md says the RSS output stays unchanged unless a request changes it, so the reviewer flagged scope creep. The agent had mentioned the feed title when it made the change, but I had never approved it. The finding made me decide, and I kept the new title.
  • Without JavaScript, the site ignored a dark system setting and showed the light theme, and native form controls stayed light in dark mode.

One finding was wrong. The same reviewer said the “PWA” tag was also unsupported, but the Markdown Studio README says it is “Available as a web app, desktop application, or installable PWA”. A reviewer is one more agent, and I check its claims the same way I check the author’s.

Check the result in a real browser

A passing build only proves that the code compiles.

The agent checks visual changes in a headless browser with agent-browser, takes screenshots, and inspects them before it reports back. That found a bug no build would catch: the “View Project” links in the project cards sat at different heights. The section’s CSS made each card a flex column, but the shared Card component’s a.card { display: block; } rule had higher specificity. The cards had never been flex containers. The fix scoped the rule under the grid, .projects-grid :global(.project-card), so it wins.

For the theme switch, the agent tested a matrix of states instead of one click: the system setting with nothing saved, a click, a reload, another page, a saved choice that disagrees with the system, and a live change of the system setting. For each one it read the data-theme attribute, the saved value, the button’s label, and the computed background color.

Put a policy in front of risky actions

Some actions are cheap to undo, such as an edit in a working tree. Others are not, such as a push, a public repository, or a deleted branch. I want an agent to stop before the second kind.

My global rules already say so, and the agent follows them: it did not push the redesign until I asked it to, and it asked me before it created the public repository for my GitHub profile README. When it then tried to update my GitHub bio, the API refused, because the token lacked the user scope. The agent reported that and asked me to refresh the login. It did not look for a way around the refusal.

Written rules depend on the model reading them. So I also built decision-model-mcp-server, an MCP server that asks a decision model about a proposed tool call before it runs. Its decision_action_policy tool skips routine actions and returns allow, review, or block for consequential ones. In Codex, a PreToolUse hook sends supported tool calls to the server automatically.

The README is explicit about the limit: “Policy outputs are advisory, not an authorization boundary.” The host’s own permissions, confirmation steps, and sandbox stay on. The policy is one more check in front of them.

Give each agent one job

My package for the pi coding agent has six built-in agents: generalist, oracle, scout, researcher, implementer, and reviewer. Each one has its own context window. The scout reads the codebase and reports where things live. The implementer changes code. The reviewer reads the result with none of the implementer’s reasoning in its context, so it cannot inherit the implementer’s assumptions.

Separation is the common thread: the author writes, a separate reviewer reviews, the browser verifies, and a policy sits in front of actions that are hard to undo. None of these steps needs a smarter model. Each one is a place where a mistake can surface before it reaches main.

What changed on the homepage

The logo wall is gone. In its place, the homepage now lists what I build: MCP servers, agent workflows, and developer tools, with links to each repository. The stack is still there in small tags under each area of work, where it tells you what the projects are made of.

The tools from this post are open source:

  • decision-model-mcp-server: advisory allow, review, or block decisions for agent tool calls.
  • tb-pi-package: subagents, workflow prompts, and cost reports for pi.
  • skills: agent skills for pull requests, commit messages, stacked branches, and more.

I drafted this post with the same agent, then checked every claim against the session and the repository READMEs.