My coding agent works like a small team.
Every task gets a size, its own worktree, a reviewer that didn't write it, and a check that actually runs. Skills, agents, hooks and rules, synced to four coding agents.
| id | task | size | stage | waiting on |
|---|
Sized before it starts.
I hand the session several tasks at once. It splits them, sizes each one, and runs up to three at a time, so a typo fix doesn't get a research team and a billing change doesn't skip review.
The main session makes the edit itself and runs the focused check. No agents at all.
One implementer in its own worktree, then the check. Review only for schema, auth, billing or queues.
Research, a plan, parallel implementers and an adversarial review before anything merges.
The full loop, in eight steps.
Each step has an owner. The main session decides and checks. Agents do the reading, building and reviewing.
a "passing" reportis not proof →
- 01
Research
Independent read-only questions go out in parallel, two to four at once.
- 02
Verify the research
Every claim is re-read at its cited path:line before anything acts on it.
- 03
Plan
Schema, public APIs, auth or more than ~5 files: the plan waits for my OK.
- 04
Implement
One task per git worktree. Changes that share no files run in parallel. Bugs get a failing test first.
- 05
Check the setup
node_modules and vendor must be real folders, not symlinks back to the main checkout.
- 06
Verify
The main session reruns the implementer's check itself and reads the output.
- 07
Adversarial gate
Only Blocker and High findings go back. Two rounds at most, then it stops and asks me.
- 08
Merge back
Squash into my branch, rerun the check, remove the worktree.
One command tests the whole app.
The plan comes from the code: every route, role, screen and locale. Testers run in parallel while an observer reads the logs and the error tracker for the same window.
It asks me four things at most: local or deployed, where issues go, one OK before filing, and anything destructive.
Plan from the code
One planner per part, in parallel.
Drive every flow
Every action is confirmed against the API or the database.
Read the logs
Maps every error to the flow that caused it and its file:line, including ones no tester saw.
Draft the issues
Merges duplicates, splits backend from frontend, sets severity, marks regressions.
File and retest
After one OK. A later retest run checks only what it filed.
Rules the agent can't skip.
A rule in a prompt is a request. A hook runs before or after the tool call and can refuse it. These are the replies the agent actually gets back.
Every rule came from a mistake.
Fifteen short files. Each line is there because the agent got it wrong at least once, and I wrote it down so it wouldn't happen again.
Reproduce first, find the root cause, then fix. No retries, sleeps or workarounds that hide the symptom.
A failing test comes before any fix, and it stays as the regression test.
Before saying something works, run the smallest check that exercises the changed behaviour.
A route listing or a clean compile proves wiring, not behaviour.
Never add an empty catch, or a fallback that hides a value that's missing because something failed.
Let it fail loudly, or log it with enough context to debug.
Only Blocker and High findings get fixed. After two rounds, stop and ask.
A redesign is my call, not another fix round.
For every read-then-write, decide what happens when two run at once.
Uniqueness comes from a unique constraint or an atomic upsert, never a prior exists check.
If the agent has the access to do a step, it does it instead of handing me a to-do.
It hands me a step only when it needs my login, 2FA or a value only I have.
Thirty-two agents, one job each.
Readers return conclusions instead of file dumps. Reviewers are read-only and only review work someone else wrote. Each one pins a model that fits the job.
Build
3- implementer
- Writes the code for one scoped task in its own worktree.
- repro-writer
- Turns a bug report into one failing test. Never the fix.
- feature-test-writer
- Scenario tests: journeys, permissions, side effects.
Review
7- adversarial-reviewer
- Reviews a diff as an opponent, not an author.
- api-reviewer
- Endpoints against the project's API style.
- query-reviewer
- N+1s, missing indexes, read-then-write races.
- migration-reviewer
- Schema changes and the code that depends on them.
- ui-reviewer
- A built screen against its design.
- browser-tester
- Drives a changed flow in a real browser.
- accessibility-auditor
- WCAG 2.2 AA plus iOS and Android rules.
Read
6- investigator
- How or why code works, every claim cited.
- bulk-reader
- One question about files too big to open.
- diff-summarizer
- A large diff, summarized by file and intent.
- log-triager
- Logs and CI output grouped into distinct errors.
- docs-lookup
- Library docs pinned to the installed version.
- web-researcher
- One question from the web, with sources.
E2E testing
6- e2e-planner
- One part of the test plan, from the code.
- e2e-ui-tester
- Web, Electron and Tauri, every width and locale.
- e2e-native-tester
- One native app on one emulator or device.
- e2e-api-tester
- Auth, IDOR, validation, races, side effects.
- e2e-observer
- Logs and error tracker for the run's window.
- e2e-triager
- Findings merged, deduped and drafted as issues.
Design
7- mobile-ux-architect
- IA, navigation and flows for the mobile app.
- web-ux-architect
- The same for site, dashboard and admin.
- penpot-builder
- Foundations, components and screens in Penpot.
- brand-illustrator
- Logos, icons and illustrations in one style.
- motion-designer
- Interactive animations as Rive state machines.
- design-critic
- Critiques every design round before it's settled.
- product-designer
- Every screen and state as HTML mockups.
Plan
3- upgrade-planner
- Only the breaking changes this codebase hits.
- product-owner
- Designs turned into a Linear backlog.
- schema-diagrammer
- A schema as ER diagrams and plain rules.
Write once, run in four agents.
One script converts the rules, agents, skills and MCP servers for the other coding agents, and rewrites the lines that name tools only one of them has.
python sync-harness.pyCopy one skill, or the whole thing.
Everything on this page is in the repo, as plain Markdown, bash and one Python script.
built by Hisham Medhat, web and mobile products