Hi, I'm Hisham 32 agents · 7 hooks nobody reviews their own work
Open source my daily coding setup

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.

three tasks, one session ↓ it replays on a loop ↑
~/app · orchestrate turn 1 / 6
idtasksizestagewaiting on
session log
known failures: LegacyExportTest (2)
01 · orchestrate

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.

Direct
1 file, under ~30 lines

The main session makes the edit itself and runs the focused check. No agents at all.

main session
Light
2–3 known files

One implementer in its own worktree, then the check. Review only for schema, auth, billing or queues.

implementer
Full
everything else

Research, a plan, parallel implementers and an adversarial review before anything merges.

investigatorimplementeradversarial-reviewer

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" report
is not proof →
  1. 01

    Research

    Independent read-only questions go out in parallel, two to four at once.

    investigatorExploredocs-lookup
  2. 02

    Verify the research

    Every claim is re-read at its cited path:line before anything acts on it.

    main session
  3. 03

    Plan

    Schema, public APIs, auth or more than ~5 files: the plan waits for my OK.

    you
  4. 04

    Implement

    One task per git worktree. Changes that share no files run in parallel. Bugs get a failing test first.

    repro-writerimplementerfeature-test-writer
  5. 05

    Check the setup

    node_modules and vendor must be real folders, not symlinks back to the main checkout.

    main session
  6. 06

    Verify

    The main session reruns the implementer's check itself and reads the output.

    main sessionlog-triager
  7. 07

    Adversarial gate

    Only Blocker and High findings go back. Two rounds at most, then it stops and asks me.

    adversarial-reviewer
  8. 08

    Merge back

    Squash into my branch, rerun the check, remove the worktree.

    main session
02 · e2e-test

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.

discover1

Plan from the code

One planner per part, in parallel.

e2e-planner uie2e-planner nativee2e-planner apie2e-planner enve2e-planner access
test2

Drive every flow

Every action is confirmed against the API or the database.

e2e-ui-tester Playwrighte2e-native-tester adb, sime2e-api-tester real tokens
observe3

Read the logs

Maps every error to the flow that caused it and its file:line, including ones no tester saw.

e2e-observer
triage4

Draft the issues

Merges duplicates, splits backend from frontend, sets severity, marks regressions.

e2e-triager
file5

File and retest

After one OK. A later retest run checks only what it filed.

you approve
every tester checks →FunctionalSecurity and IDORUXAccessibilityPerformanceBrowsersTime zonesEmail contentRealtimeSessions
03 · hooks

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.

secret-guardbefore edit, write, commit
Blocks keys, tokens and private keys in files and commits, and secrets in browser-bundled env vars.$ edit .env.localdeniedA client-bundled env var (NEXT_PUBLIC_/EXPO_PUBLIC_/VITE_) holds a secret. Anything with that prefix ships to the browser/app; drop the prefix and read it server-side.
check-file-sizebefore read
Big files go to a reader agent, so the main session keeps its context for decisions.$ read src/routes.tsdeniedroutes.ts is 1240 lines / 52 KB (threshold 350 lines). Delegate to the bulk-reader agent with your question, or read just the section you need.
check-package-managerbefore shell
Reads the lockfile and refuses the wrong package manager.$ npm install zoddeniedThis project uses pnpm, but the command runs npm. Use pnpm instead (pnpm add / pnpm exec / pnpm dlx).
protect-generatedbefore edit, write
Lockfiles and generated files change through their tools, never by hand.$ edit pnpm-lock.yamldeniedpnpm-lock.yaml is a lockfile; change it through the package manager instead of editing it.
lint-rulesafter edit, write
Checks only the lines just added against my code rules, so old code stays untouched.$ edit billing.tsnoteRule check on lines you just added to billing.ts: empty catch. Fix those added lines unless the user asked for them; leave pre-existing code alone.
ci-after-pushafter git push
A push isn't the end of the task. The session watches CI until it finishes.$ git pushnotePushed. Watch the CI run to completion now. If it fails because of your change, fix and push; for any other failure, stop and ask the user.
All real, from my ~/.claude
32Agents, each with one narrow job and its own tools
15Rule files loaded into every session
7Hooks that can refuse a tool call
4Coding agents synced from one source
3maxTasks running at the same time
2maxReview rounds before it stops and asks me
04 · rules

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.

H
Hishamon a bug fix
sdlc.md

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.

rule added✓ Resolved
H
Hishamon "it works"
verify-before-done.md

Before saying something works, run the smallest check that exercises the changed behaviour.

A route listing or a clean compile proves wiring, not behaviour.

rule added✓ Resolved
H
Hishamon error handling
code-hygiene.md

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.

rule added✓ Resolved
H
Hishamon endless reviews
delegation.md

Only Blocker and High findings get fixed. After two rounds, stop and ask.

A redesign is my call, not another fix round.

rule added✓ Resolved
H
Hishamon a race condition
sdlc.md

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.

rule added✓ Resolved
H
Hishamon to-do lists
do-it-yourself.md

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.

rule added✓ Resolved
05 · agents

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.
06 · sync-harness.py

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.

the Monitor toolthe available command and wait tools
Start Monitor with an until-loopStart a bounded polling loop
Claude Code~/.claudepython sync-harness.py
Codex~/.codex
OpenCode~/.config/opencode
Gemini CLI~/.gemini
07 · take it

Copy 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
hisham / harnessskills · agents · hooks · rules