🇬🇧 English | 🇫🇷 Français
A small, file-based control room for running several AI coding agents on several projects at once, while keeping the human owner's attention for the decisions that matter. It is built on Herdr (a terminal workspace manager for AI coding agents), Claude Code and Codex CLI.
Driving coding agents by hand means copying prompts between terminals, re-reading long logs, and remembering which agent works on what. This station turns that into a repeatable mission loop:
- one pilot agent frames each mission, splits it into verifiable steps, dispatches them and routes reviews;
- each step is done by a separate executor agent in the project folder;
- an independent reviewer agent (a different model) checks the result adversarially;
- the owner only takes the reserved decisions (scope, merge, publication, extra review cycles) and asks for a status in one sentence.
Everything needed to resume lives in plain files (TOML registries + Markdown artifacts),
so a restarted agent, or a different one, picks up where the last one stopped.
A target is measured: the owner's active time per mission stays ≤ 20 % of doing the work
without the workflow (bin/aw attention summary).
Owner ── « Fais-moi le point » / « Reprends la mission <id> » ──┐
▼
┌────────────────── Herdr session (persistent, detachable) ─────────────────┐
│ PILOTAGE — Claude (this folder; rules: CLAUDE.md) │
│ │ frames mission.md, dispatches, routes reviews, records state │
│ ├──► EXÉCUTION — <project> Claude Code in the project folder │
│ │ writes code + report.md (Verdict:, Version: <sha>) │
│ ├──► REVUE — Codex independent reviewer (rules: AGENTS.md) │
│ │ writes review-N.md (VERDICT:, findings, AC table) │
│ └──► REVUE SECOURS — Claude fallback reviewer when Codex is out │
│ NOTIFICATIONS tab: bin/aw-watch → Herdr notification on new artifacts │
└───────────────────────────────────────────────────────────────────────────┘
│ pointers + resume state │ artifacts
▼ ▼
projects.local.toml / missions.local.toml <project>/docs/missions/<date>-<slug>/
state/*.local.toml (append-only ledgers) mission.md, report.md, review-N.md
| Role | Who | Writes |
|---|---|---|
| Pilot | Claude Code session pilotage, started in this folder |
mission.md, registries, decisions |
| Executor | a separate Claude Code session in the project folder | code, report.md |
| Reviewer | Codex session review (fallback: a fresh Claude Code session review-claude) |
review-N.md only |
| Arbiter | the owner | reserved decisions (scope, merge, publication, cycles beyond the cap) |
Every executor and reviewer signals the pilot when its report.md / review-N.md is final, or
when it is blocked: one REPORT READY …, REVIEW READY … or BLOCKED … line sent to the pilot
terminal (Claude Code with hc send; Codex through the pre-approved aw-review-signal, installed
from bin/review-tools/ to ~/.local/libexec/agent-workflow/ outside the reviewer's writable
roots, which needs no approval prompt). bin/aw-watch stays an
optional desktop notification.
Full pilot rules: CLAUDE.md. Reviewer and common rules: AGENTS.md.
Since 2026-11-28 the pilot runs in Herdr App (herdr-app/). Since
2026-12-04 its layout is tipunch-native: header with the ATTENTION · N counter, Attention
Center, mission list, context tabs (Validation, Files, Changes, Report), AMW: entries in the
command palette and a statistics overlay. tipunch-mission, the previous layout, stays
installed as fallback. One window shows who pilots, which workers and reviewers work on which
mission, what waits for the owner and the acceptance criteria.
The panels read only what the workflow writes: herdr-core terminal labels set by
bin/aw herdr … and .amw-herdr.json, generated by bin/aw check / bin/aw ack.
herdr-app/install.sh # install or update the layout and its mods
bin/aw herdr pilot # in the pilot's terminal: register the only pilot
bin/aw herdr focus <mission id> # mission shown by the panels
bin/aw herdr launch <name> --role worker --mission <id> --subject "<2-4 words>"
bin/aw herdr launch review --role reviewer --mission <id> --subject "<2-4 words>"
bin/aw herdr close <name> # close a worker's or reviewer's own tab
bin/aw herdr status # who is whoIn Herdr App, agents are read with hc read <t> and prompted with hc send <t> "<text>".
hc send wraps the text in <hc from=…>, so a slash command (e.g. /new before each Codex
brief) must be typed with hc keys <t> / n e w then enter. Herdr TUI (next section) stays
available as fallback. Full rules: CLAUDE.md §4c.
Herdr (source, agent guide) keeps agents running in persistent terminals and exposes them through a CLI/socket API. The pilot uses it instead of copy-paste:
| Need | Herdr command used |
|---|---|
| Persistent session, detach/reattach from any terminal | herdr |
| One workspace per area, tabs and panes inside | herdr workspace …, herdr tab create, herdr pane split --cwd <path> |
| Labels visible in pane borders and the sidebar | herdr pane rename <pane> "<label>" |
| Start a named agent of a given kind in a pane | herdr agent start <name> --kind claude|codex --pane <id> -- <args> |
Know if an agent is idle, working, blocked or done before sending anything |
herdr agent get <name> (wrapped by bin/aw agent-check) |
| Send a prompt to an agent | herdr agent prompt <name> "<text>" |
| Read what an agent shows (e.g. a permission dialog) | herdr agent read <name> --source visible|recent-unwrapped |
| Desktop notification when an artifact is written | herdr notification show (used by bin/aw-watch) |
| Git worktrees for parallel steps | herdr worktree … |
Safety rules applied on top: the pilot never answers a trust, permission, hooks or sandbox dialog itself, never resends a prompt blindly after a timeout, and only closes panes it created.
- Different models, different roles. Claude Code pilots and executes; Codex reviews, so the review is not done by the model that wrote the code.
- Several executors in parallel. One executor pane per mission or step, each in its own project folder, or in its own git worktree when steps touch the same repository. Steps run in parallel only when their files and effects are isolated.
- Fallback reviewer. If Codex hits its usage limit (
bin/aw codex-signal→QUOTA_EXHAUSTED), the pilot can hand the review to a fresh Claude Code session, then returns to Codex as soon as it is available.bin/aw review-statusprevents two reviews of the same cycle and commit. - Other agent kinds. Herdr can start many agent CLIs (
--kind, see the Herdr docs);bin/aw agent-checkcurrently validatesclaudeandcodexonly. - No double work.
bin/aw ackrecords each handled artifact by sha256; an artifact already handled returnsALREADY_HANDLEDand is never reviewed or relaunched again.
Step-by-step guide, with tested commands and their expected output:
docs/quickstart.md. In short:
Linux, git, Python ≥ 3.11 (stdlib only), Herdr App (herdr-app, hc),
Claude Code (pilot and executors) and Codex CLI (reviewer). Optional tools (Herdr TUI, jq,
inotifywait): docs/quickstart.md §1.
git --version && python3 --version && herdr-app --version && hc --version && claude --version && codex --versiongit clone https://github.com/TiPunchLabs/agent-workflow.git && cd agent-workflow
# write projects.local.toml with absolute paths: docs/quickstart.md, section 3
printf 'schema = 1\n' > missions.local.toml
printf 'schema = 1\n' > state/attention.local.toml
bin/aw check # must print OK (create the project's missions_dir first: §3)
herdr-app/install.sh # copies layouts/*.json and mods/tp-* into ~/.config/herdr-appIn a terminal of the Herdr App window, at the station folder:
herdr-app do layout.switch --name tipunch-native # the AMW layout; fallback: tipunch-mission
bin/aw herdr pilot # this terminal becomes the only pilot
claude --permission-mode acceptEdits --allowedTools "Bash(bin/aw:*)" "Bash(herdr:*)" "Bash(git -C:*)" "Bash(jq:*)"Then say « Nouvelle mission sur : … ». Without Herdr App (Herdr TUI):
docs/quickstart.md §5.
The window is one layout file, herdr-app/layouts/tipunch-native.json (blocks, sizes, colours,
options), whose blocks show the tp-* mods of herdr-app/mods/. install.sh copies both into
$HERDR_APP_HOME (default ~/.config/herdr-app); Herdr App reloads them live. From the lightest
change to the heaviest:
| Tier | What changes | How | After install.sh |
|---|---|---|---|
| 1. Options | Zone Attention (Complète, Compacte, Masquée), Notifications d'attention, Métriques dans l'en-tête, Workers inactifs | Settings › Look while tipunch-native is shown (palette: « AMW: Layout Settings »); no file to edit |
kept (settings.json) |
| 2. Shortcuts | keys for the column toggles or the AMW palette entries | edit <home>/keys.json by hand: herdr-app/README.md |
kept: the installer never writes keys.json |
| 3. Layout JSON | structure, sizes, colours, context tabs | edit a copy under your own name (below) | your copy is kept; an edit to the installed tipunch-native.json is reported DIFFERS by --check and replaced by the next run (old file in <home>/backups/) |
4. tp-* mods |
what a panel shows or does | source change in herdr-app/mods/ and herdr-app/shared/amw.js, then install.sh: development, not configuration |
Native capabilities used, and extending, ADR 0016 |
Minimal example (tier 3), a layout of your own without the Changes tab:
H=${HERDR_APP_HOME:-$HOME/.config/herdr-app}
cp "$H/layouts/tipunch-native.json" "$H/layouts/my-amw.json" # the file name is the layout name
# in my-amw.json, delete the block whose "id" is "ctx-changes"
herdr-app do layout.switch --name my-amw
herdr-app status # layout my-amw, errors []The copy keeps "props": {"native": true}, so the tp-* mods behave as in tipunch-native.
Its options start at their defaults (they are saved per layout name) and a "layout:tipunch-native"
section of keys.json does not apply to it. install.sh never updates it: copy again after an update.
Instead of cp, herdr-app do layout.clone '{"name":"tipunch-native","as":"my-amw"}' makes the
copy with your saved options and switches to it (the name must not exist yet).
What these tiers can organize: zone 02 shown or hidden (tier 1; hidden, the Attention Center
opens from ATTENTION · N), idle workers listed or only counted (tier 1), header metrics
(tier 1), the left column (Spaces, 04 — Missions, 01 — Équipe) and the right one (05 — Contexte
and its tabs) folded with the top-bar buttons or tier 2 keys, context tabs removed (tier 3).
tipunch-mission shows zone 02 and 03 — Validation side by side. Reordering panels or adding a
view is tier 3 or 4.
bin/aw check # OK: … 0 error(s)
herdr-app/install.sh --check # check: N unchanged, 0 differ or missing
bin/aw herdr status # last line: pilot: <terminal>The window shows « TiPunch Labs / AMW » in the header, 04 — MISSIONS and 01 — ÉQUIPE
(« Pilote · 1 ») on the left, 05 — CONTEXTE on the right. « Pilote · 0 »: run bin/aw herdr pilot
in the pilot's terminal. Other symptoms: docs/quickstart.md §9,
herdr-app/README.md.
In the pilotage pane:
- « Fais-moi le point » — read-only: grouped decisions + one line per active mission.
- « Reprends la mission » — chains the steps already authorized (corrections, reviews) and stops at the owner's decisions.
- New idea: « Nouvelle mission sur : … ».
Find the pilot at a glance: herdr agent focus pilotage. Pane labels (workspace w2D):
PILOTAGE — Claude, REVUE — Codex, REVUE SECOURS — Claude (temporary),
EXÉCUTION — <projet> (temporary), NOTIFICATIONS (tab Notifications). Labels show in
each pane's border and in the Herdr sidebar (workspaces, tabs, agents and their states);
config.toml has no custom keybinding, so the sidebar uses Herdr's defaults (see Herdr's
keybinding help in the TUI). No global configuration was changed for the labels.
The registries are machine-local and gitignored; the versioned templates document their schema:
| Template | Copy to | Content |
|---|---|---|
projects.example.toml |
projects.local.toml |
pilot, reviewers, projects, Herdr panes |
missions.example.toml |
missions.local.toml |
missions, steps, decisions, resume state |
state/attention.example.toml |
state/attention.local.toml |
owner's minutes and baselines |
bin/aw does not expand ~ or environment variables: use absolute paths.
state/transitions.local.toml and state/reviews.local.toml are created by bin/aw ack
and bin/aw review-log. Installation evidence (report.md, review.md, evidence/) is
kept locally and not versioned.
Herdr App: start Claude Code in a terminal at this folder, run bin/aw herdr pilot in it, then
bin/aw herdr launch review --role reviewer --mission <id> --subject "<2-4 words>" when a
review is due (argv from projects.local.toml). Until bin/aw herdr pilot runs, the panels show
« Pilote · 0 ».
Herdr TUI (fallback), from a shell pane at this folder in workspace agent-workflow:
# Pilot (start_args from projects.local.toml [pilot])
herdr agent start pilotage --kind claude --pane "$HERDR_PANE_ID" -- \
--permission-mode acceptEdits --allowedTools "Bash(bin/aw:*)" "Bash(herdr:*)" "Bash(git -C:*)" "Bash(jq:*)"
herdr pane rename "$HERDR_PANE_ID" "PILOTAGE — Claude"
# Reviewer (in another shell pane)
herdr agent start review --kind codex --pane "$HERDR_PANE_ID" -- \
-C "$PWD" \
--sandbox workspace-write --ask-for-approval on-request \
-c sandbox_workspace_write.network_access=false -c check_for_update_on_startup=false
herdr pane rename "$HERDR_PANE_ID" "REVUE — Codex"Codex note: with network off, the Codex Linux sandbox refuses the Herdr unix socket
(Operation not permitted, observed 2026-11-14). A reviewer does not need Herdr; only
the pilot drives Herdr, from Claude Code.
State survives a restart: everything is in missions.local.toml and state/.
The pilot already receives the workers' REPORT READY / REVIEW READY / BLOCKED lines (see
How it works); bin/aw-watch adds a desktop notification on each artifact write.
# Own tab, out of the main view; one instance only (check: pgrep -c inotifywait → 1)
P=$(herdr tab create --workspace w2D --label Notifications --cwd "$PWD" --no-focus | jq -er .result.root_pane.pane_id)
herdr pane rename "$P" NOTIFICATIONS
herdr pane run "$P" bin/aw-watch # Herdr notification on each new report.md / review*.mdbin/aw check # registries + paths
bin/aw point # what the pilot would report
bin/aw attention summary # the owner's minutes vs baseline
bin/aw herdr status # Herdr App roles (exit 1 unless exactly one live pilot)
herdr-app/install.sh --check # installed layout vs herdr-app/Tests, lint, pre-commit and gitleaks: docs/development.md.
| Path | Versioned | Role |
|---|---|---|
CLAUDE.md |
yes | pilot rules |
AGENTS.md |
yes | reviewer and common rules |
*.fr.md |
yes | French twins of every doc above (English is authoritative) |
bin/aw |
yes | registry checks, status point, ack ledger, agent checks, attention, review relay, Herdr App wiring (herdr) |
bin/review-tools/ |
yes | sources of the pre-approved Codex reviewer wrappers (pytest, docker, trash, signal), their Codex rules template and install (trusted copies in ~/.local/libexec/agent-workflow/) |
herdr-app/ |
yes | Herdr App layouts tipunch-native (default) and tipunch-mission (fallback), tp-* mods, install.sh |
docs/ |
yes | architecture and development notes |
docs/adr/ |
yes | architecture decision records: why the station is built this way (index) |
tests/ |
yes | bin/aw herdr (pytest) and herdr-app/shared/amw.js (node) tests |
.pre-commit-config.yaml, ruff.toml |
yes | hooks (lint, format, gitleaks) and ruff settings |
.env.example |
yes | optional environment overrides (AW_ROOT, HERDR_APP_HOME) |
bin/aw-watch |
yes | inotify watcher → Herdr notifications |
*.example.toml, state/attention.example.toml |
yes | registry templates |
*.local.toml, state/*.local.toml |
no | machine-local registries and ledgers |
report.md, review.md, evidence/ |
no | local installation evidence |
.amw-herdr.json |
no | Herdr App panel data generated by bin/aw |
MIT © TiPunchLabs
