← Back to library

Keep agent-built features in small, testable pull requests

Software engineer Christos Athanasiadis normally builds with Claude in small steps, five to ten files per pull request. Curious about claims of autonomy, he agreed a concrete plan and let it build a whole feature alone. It returned changes across 70 files, with no tests, and the feature didn't work, so he went back to working in small increments.

  • OutcomeGet reliable results from a coding agent by agreeing a plan, then having it deliver a feature as a series of small pull requests with tests, instead of one big autonomous run.
  • SetupMinutes
  • LevelIntermediate
  • CreditChristos Athanasiadis (@ckathanasiadis)
View original
Works with
Claude CodeCustom agentGrok Bot

Published Oct 20, 2026Updated Oct 20, 2026AI dry run on sample input: passed Oct 20, 2026Source verified Oct 23, 2026

When should you use it?

  • You're tempted to let an agent build a large feature in one go
  • Reviews of agent pull requests take longer than writing the code
  • Agent changes keep breaking things you didn't expect

Not for: Throwaway prototypes where nobody will maintain the code

What do you need, and what do you get?

You need

  • A feature description and the plan you agreed with the agent
  • Your test setup
  • A rule on maximum pull request size

You get

  • A list of small slices, each a pull request of a few files
  • Tests written with or before each slice
  • A working feature assembled step by step

How does it work, step by step?

  1. Plan togetherDiscuss the feature until the plan names concrete files, interfaces and tests.
  2. Slice itUse our prompt to split the plan into pull requests of five to ten files each.
  3. Test every sliceRequire tests that pass before moving to the next slice.
  4. Review as you goRead each small pull request; fix the plan when something surprises you.

The prompt

Our own prompt, inspired by Christos Athanasiadis (@ckathanasiadis) and written to work in Claude Code, Custom agent and Grok Bot. Values in lime are placeholders.

Fill in the blanks (optional; the copied prompt uses your values)

Prompt3 variables
We've agreed this plan for {feature}: {plan}.
Don't build it in one go. First, split it into slices that each fit in one pull request of at most {max_files} files, in an order where each slice works on its own. Show me the list and wait.
For each slice I approve: write or update tests first, implement, run the full test suite, and open a pull request with a short summary.
If a slice needs more files than the limit, or the plan doesn't cover something you find, stop and tell me rather than expanding the change.

Inspired by Christos Athanasiadis (@ckathanasiadis): Letting Claude deliver an entire feature autonomously. The prompt above is written by playbooks.bot in our own words; nothing from the original is quoted.

What can go wrong?

  • Agents often skip tests when the task is large. Make tests part of 'done' for every slice.
  • A slice that grows beyond its limit is a sign the plan was vague. Stop and re-plan.

Our take

It's useful to hear from an experienced engineer who tried the fully autonomous approach and documented the result plainly. Christos agreed a concrete plan with the agent, let it run, and got back 70 changed files, no tests and a feature that didn't work. His normal practice of small pull requests of five to ten files that build toward a feature is what two years of use taught him works, and this experiment reinforced it. The lesson isn't that agents are useless. It's that review effort grows faster than change size, and tests are the first thing an agent drops when a task is big. Our prompt turns his habit into a rule: slice the plan, write tests per slice, and stop when a slice outgrows its limit. In our dry run on a sample repository, the prompt split a 'team invitations' feature into 5 slices of 3 to 8 files, wrote tests with each, and paused after slice 3 when it found the plan hadn't covered expired invitations.

Where the time goes back: Small slices are quick to review and easy to undo, so you don't lose a day untangling a 70-file change that doesn't work.

FAQ

Does this mean agents can't build features?
They can, in this poster's experience, when work is broken into small steps you check. One large unsupervised run is what failed.
How big is too big?
The poster's working size is five to ten files per pull request. Pick a size you can review properly in one sitting.

Source and credit

Inspired by Christos Athanasiadis (@ckathanasiadis). We describe the idea in our own words, link to the original, and wrote the prompt ourselves; nothing is quoted.

Inspired by
Letting Claude deliver an entire feature autonomously
Creator
Christos Athanasiadis (@ckathanasiadis)
Published on
X
Original date
Oct 1, 2026
License
Not openly licensed (the poster keeps all rights), so we quote nothing and link to the original
Originally for
Claude Code
AI dry run
Oct 20, 2026: passed. Dry-run tested by our AI test agent on sample input. Size limit and stop rule respected.
AI dry run on sample data; not run with live connected accounts. The playbooks.bot test agent filled the prompt with synthetic inputs, produced the output and checked it against the page's stated outputs and guardrails.
Verified
Oct 23, 2026: source link resolves to the original, the credited creator published it, our excerpt or prompt matches it, and the license allows our use.

Are you the creator? Claim or correct this page.

More in IT & Security

All 82 IT & Security playbooks →

Related playbooks

IT & SecurityWorkflow✓ AI dry run

Let a coding agent triage your app-feedback Slack channel

Route user feedback into one Slack channel where a coding agent triages each report, investigates with read-only access and proposes fixes for an engineer to merge.

Credit: Sid Nanda (@sidstronaut)

An afternoon+
IT & SecurityWorkflow✓ AI dry run

Split coding work across six bots, from issue to draft PR

Run each code change through separate bots for research, routing, building, testing, review and a risk check, so a draft pull request arrives with its context and checks attached.

Credit: Morlex (@0xMorlex)

An afternoon+
IT & SecurityWorkflow✓ AI dry run

Get consent first, then audit with a second agent

Have a different coding agent review your work in an isolated copy with editing turned off, and require it to ask before using any account or login.

Credit: u/Bulldagshunter on r/ClaudeCode

Under an hour
IT & SecurityWorkflow✓ AI dry run

Read an unknown compiled program with an agent's help

Understand an unknown compiled program when you barely know Ghidra, by letting an agent call it over MCP and explain what the code does.

Credit: Huli

An afternoon+