Solo builder playbook

Ship a Tested Change With a Terminal Agent

Use a terminal coding agent to generate tests, run them, and fix the failure before you read the diff yourself.

For Solo developers and technical founders who review their own pull requests.

A terminal agent is only useful when it can prove its change works. This playbook keeps the loop small: one file, one test command, one reviewable diff.

Playbook template

Ship a Tested Change With a Terminal Agent

Requirements:
- A Git repository with a working test command
- A terminal coding agent installed locally — Aider, Codex CLI, Claude Code, or Goose
- An API key for the model provider you want to pay for

Checklist:
- [ ] The test command passes before the agent starts.
- [ ] The agent touched only the files you named.
- [ ] The failing test fails for the right reason when you revert the fix.
- [ ] The commit message explains why the change exists.

Requirements

  • A Git repository with a working test command
  • A terminal coding agent installed locally — Aider, Codex CLI, Claude Code, or Goose
  • An API key for the model provider you want to pay for

Start with the test command

Before you prompt anything, run the project's test command yourself and confirm it passes. An agent that starts from a red suite cannot tell you whether its change broke something or was already broken.

Constrain the agent to one file and one outcome

Name the file, the behavior, and the test command in the same prompt. Broad prompts like 'improve this codebase' produce wide diffs you cannot review. Aider's documentation describes exactly this pattern: add a file to context, request the change, review the commit.

Read the test, not just the implementation

The most common failure is a test that asserts what the implementation already does instead of what the requirement says. Compare the new test to the requirement before you compare the diff to the tests.

Keep the commit reversible

Ask the agent to commit its change as a single commit with a descriptive message. If the review goes badly, reverting one commit returns you to a known state.

Checklist

  • The test command passes before the agent starts.
  • The agent touched only the files you named.
  • The failing test fails for the right reason when you revert the fix.
  • The commit message explains why the change exists.