jackherd
v1.45.0
Published
Jack herds your coding agents. An agentic engineering workflow for Claude Code, from planning and parallel execution to code reviews and continuous improvement. You stay in control.
Maintainers
Readme
Jack herds your coding agents.
For developers who'd rather decide than supervise.
jackherd is an agentic engineering workflow built around Claude Code. From planning and parallel execution to code reviews and continuous improvement, Jack coordinates the work while you stay in control.
Your agents do the work. You make the decisions. Your project keeps the knowledge.
curl -fsSL https://unpkg.com/jackherd/install.sh | shThen run /jh-start in a repository, and Jack offers your first plan. → Quickstart
Works in a single Claude Code session out of the box, where independent phases run as parallel subagents. With herdr, a terminal for coding agents, every phase runs in a lane (a Claude Code session of its own, on its own branch and worktree), and you watch them side by side in the herd view, a live list of every lane and of what waits for you.
Quickstart
Install (needs Claude Code and git; the installer adds Bun 1.3+ if it is missing). → Install guide
curl -fsSL https://unpkg.com/jackherd/install.sh | shRather not pipe a script into
sh?bun add -g jackherd(ornpm install -g jackherd), thenjh init --global. Already in a coding agent? Paste this instead:Install jackherd by following https://unpkg.com/jackherd/INSTALL.md. Ask me the setup questions it lists; herdr is recommended, not required.Start Claude Code in a repository.
/jh-startchecks your setup and offers your first plan, written todocs/plans/./jh-startBuild the first phase (one section of the plan), in one session, no herdr needed.
/jh-implement docs/plans/<the plan /jh-start wrote>.md phase 1Run phases in parallel with herdr and
gh(recommended). In Claude Code inside herdr (requirements), hand Jack the board, a Markdown file that lists the lanes of your plans and which phases each one builds;/jh-planwrites it beside the plan when you ask:/jh-orchestrate docs/plans/board-<name>/board.md
Linux and macOS (Windows through WSL). Requirements, the install by hand and the setup for a team are in the install guide.
In detail
| On his own | After your approval | Never | | --- | --- | --- | | Starting a ready phase in a lane | Commits, push and pull request, once per pull request | Writing lane code himself | | Answering what the plan or a rule settles, on record in the board | Every other decision a lane raises | Merging a pull request on a path that always asks, without asking you | | Merging a plan's pull requests on green checks for a while | A standing approval, until a time you pick | Storing a permission on your behalf | | Having the lanes rebase after a merge | Migrations and writes against a shared environment | | | Handing a lane over to a fresh chat at the end of a phase, once its context runs high | Closing a lane | |
Code decides first. jh check runs before any reviewer: types, lint and the tests that reach what you touched, then the plan and board checks; a failed one stops the commit. In a lane it reads the whole plan before the pull request question, so a merged phase with an open box, or a finished plan not yet marked done, fails.
Then the reviewers the change calls for. /jh-pre-commit starts them as subagents: jh-spec-review reads the diff against the plan (a box ticked without its work, work whose box is still open; in the light round only when the plan changed beyond ticks), jh-skill-review reads changed agent texts, jh-public-content what a package publishes, and your routes add more by path (check.reviewerRoutes, such as jh-uncle-bob on src/**). Risk paths in check.reviewTiers.full (auth, money, migrations, secrets) bring jh-security-audit. A change off them, with no agent text and no published file, gets the light round, one routed reviewer and no audit, and jh check says so. Without a risk path of your own every round is full; jh init fills the list from your files, and jh config --adopt adds what new files call for.
A second round looks at what is new. jh review record keeps what the reviewers judged and left open; jh check --since then checks only what changed after it, and the reviewers with open findings see that delta. A changed lock file, config or base runs everything again, and the CI on the pull request stays the full gate.
A bug gets a failing command first. /jh-diagnose turns it into a command that fails, then fixes it with a regression test.
Lessons become rules only when you choose. Jack notes a lesson as a line in the board's history. When you ask, /jh-rules-audit reads those lines and your agent's feedback memories not yet decided (jh lessons) and proposes for each a rule line, a task for a check or a test, or nothing; it also measures your rules and points at duplicates and passages a check now holds. It changes only what you pick, and never writes the agent's memory. Until the next audit, Your turn shows them as 3 lessons unreviewed.
A project install adds two hooks to Claude Code's permission rules:
merge-guardasks beforegh pr mergeandgh workflow run, however they are wrapped. Calls that only read pass.git-guardrefuses hidden commits and pushes (git -C … push), pushes to the base branch, force pushes without lease, skipped hooks and hard resets.
jh sync also adds ask rules for check reruns and gh api writes.
A merge passes without a question only on green checks, under self-merge or a standing approval for one plan's lanes, at most 24 hours; workflows, migrations, env files and the guards' own files still ask. guard.approvals.standing.tools does the same for single writes against stage, never production, each statement checked by Jack. A pull request whose files all match merge.withoutChecks, such as docs only, merges without checks. With merge.openAsDraft lanes open drafts, which the guard never merges.
The guards catch mistakes, not intent; for that, use branch protection. What the hooks and jh check hold is code; the rest, such as asking you before a commit, is an instruction the skills give the agent. The hooks need Bun and come only with a project install (jh init in the repository); a global install ships none.
A plan is Markdown with phases, checkbox tasks, a model and a review gate per phase, and under each phase heading one sentence on what is different afterwards and for whom. A board lists the lanes of one or more plans: which phases each lane builds, on which model, after what. A lane is one agent session in its own git worktree (a second checkout of your repository), and Jack is the session in the main checkout that runs /jh-orchestrate on a board. Plan, board and a hand-over file hold the state, not the chat (see Context, hand-overs and recovery).
| Skill | Does |
| --- | --- |
| /jh-start | checks the setup and offers a first plan; writes nothing without your yes |
| /jh-grill | questions a loose idea until every decision is settled |
| /jh-plan | writes the plan and proposes the board's rows |
| /jh-implement | builds and tests one phase and ticks it off; independent phases run as parallel subagents |
| /jh-orchestrate | runs a board's lanes in herdr, as Jack |
| /jh-pre-commit | runs jh check and the reviewers, proposes the commit message and asks before committing |
| /jh-follow | follows a source: a ticket, error logs, a status page |
| /jh-diagnose | turns a bug into a failing command, fixes it with a regression test |
| /jh-rules-audit | on request: which lessons from your boards and your memories belong into your rules, and what has settled into sediment; changes only what you choose |
- Your own skills stay. jackherd's skills take a
jh-prefix where a name is taken (a global install always), andjh syncnever writes over a file you changed: the new version lands beside it as<file>.kit-new. - Leave out what you don't use.
"kit": { "exclude": ["devops", "grill"] }keeps those skills and agents out on the nextjh sync;/jh-orchestrateand/jh-startalways stay. - A lane builds with any skill. The lane's rules hold over it: report each task with
jh task, send questions as text, leave git to Jack. - A plan from another planner, or one in an issue, runs once it meets the plan contract: Jack adds what is missing and shows you the diff before committing it.
jh herd shows every lane of a board: plan progress, pull request and checks, and with herdr agent state and context fill. It changes nothing in your repository.
Inside herdr the herd opens beside your session by itself once a board exists, and herdr's plugin brings the panes back after a restart.
It has five blocks, top down. Your turn holds everything that waits on you, one row per topic: a question (?, amber), a file or Artifact sent to you (📎) and an appointment (◷, teal); what blocks a lane comes first. Sources is one line for your sources outside GitHub. Lanes shows the lanes at work, Waiting the lanes not started yet, and Backlog the plans no lane works on. A block with ▸ opens on a click; ? shows every mark, colour and key.
🐾 Board 01 groomed today
▾ Your turn · 3 1 blocks lanes · oldest 2 h ───────────────────────────
? Ship the fee change before Friday? since 09:40
unblocks checkout-fee
📎 search-box-mockup.html since 11:02
◷ Release 1.4 to production Mo 09:00
▸ Sources sentry-errors 3 entries, 1 new · status-page 20 min ago
▾ Lanes · 3 ◆ 1 · ○ 1 ─────────────────────────────────────────────────
▾ ◇ search-ui 🥣 62 % P3 ██████░░░░
⎇ feat/search-ui ↑1 ±4 · claude-opus-5-5 :5173 ↗
[📄 Plan] [📡 PROJ-123 · In Progress] [🔗 Mockup] +1
P3 Docs · 4 min ago · gate ████████░░ 2/3
● Review gate
▸ 2 done
▸ next P4
▸ done P2
▸ ◆ checkout-fee Ship the fee change before… P2/5 ↗ #42 💬 2 ███░░░░░░░
▸ ● search-index Rebuild the index on deploy P4/5 ████████░░
● Rebuild the index on deploy
▸ Waiting · 1 docs-site
▸ Backlog · 4 next: Billing P1, Onboarding P3
────────────────────────────────────────────────────────────────────────
↑↓ select →← open s html q quit ? help- Your turn: at a row,
[ask]has Jack put the question to you,[done]closes it,[run]and[move]run or move an appointment;unblocks …names the lanes a row frees. - A lane opens with its branch, model, link chips and pull requests with their checks, then its phases with their tasks in plan order. Folded, its line starts with a mark for its state (
◆waits on you,◇is blocked or waits for others,●works,○rests), then its task, the phase count (P2/5) and the bar; the question it waits on, its subagents and a dim↳line with what the agent does right now stand below it. - A running task is marked
●when an agent reported it (jh task),◌when the herd guesses it. A phase that a merged pull request touched but that still has an open box stands under▸ merged. - What still runs after an agent ends its turn gets its own row,
● Shell: <name>or● Monitor: <name>, while its process runs, and the lane keeps●; where the process cannot be checked, the row is dim and reads◌ Shell: <name> running?. The watcher reports the same. sopens every lane and plan as one HTML page;plans.shimmer: falsekeeps the running task still.
The state of the work lives in files, not in a chat: the plan with its ticked boxes, the board, and per lane a hand-over and a report (status and open questions; answered ones move to an archive beside it). A fresh chat reads those and picks up from the last state written; what a session never wrote down is not there. jh plan show --phase <n> prints the part of a plan one phase needs. After a crash, jh resume wakes the coordinator and the lanes that were working.
The status line (kit/hooks/statusline.sh) records each session's tokens and the auto-compact window Claude Code reports under ~/.jackherd/context/; the herd, the watcher and jh context read the fill from there (estimated when it comes from the session log). Thresholds are percent of that window (plans.context.warnPercent, alertPercent; defaults lanes 60/80, coordinator 70/85), so they hold for every model and leave room for a hand-over. plans.context.windowCap (default 400000) caps the window a lane counts against, so a lane on a 1M model is handed over as if it had 400k; the herd names a window beside the value only where it differs (🥣 45 % of 200k). Claude Code also compacts a resting session on its own ("Compacted while idle", off with "idleCompaction": false in settings.json); such a lane's hand-over then rests on its report.
Jack doesn't watch the terminals himself. jh watch, which he starts, wakes him when a lane is blocked or done, a check turns red, a pull request gets feedback, a lane's context fills up, a lane waits for an approval or works for ten minutes without reporting its task; deploys and previews too, when configured. A report carries only the lane lines that changed since the last one.
Tickets, error logs, status pages: if a command or an API call can read it as JSON with your login, Jack can watch it. Recipes cover Jira, Linear, GitHub issues and Projects, Sentry, Google Calendar and status pages; for anything else, /jh-follow writes the command with you. One yes, and every change shows up like this:
The herd sums up your sources in one Sources line, red and marked failing since … while one fails; an entry that needs you lands in Your turn under the source's label, and a ticket shows on the lane that works it.
/jh-follow PROJ-123 checks the tool and its login, shows you a dry run and writes the source to watch.sources after your yes. A token stays in the environment, never in an argument. The reports need herdr; a source can be set up and dry-run without it.
A source that is yours alone, such as your calendar, goes into ~/.jackherd/sources.json instead and runs for nobody else; its secrets live in the system keychain (jh secret set <NAME>), and only the source that lists one receives it. The watcher takes up a changed source without a restart.
Each phase names its model: the planning model (Opus by default) where a mistake is expensive, such as data, security or a migration, the implementation model (Sonnet by default) for the rest. /jh-implement and Jack start each phase on its model; in a project install a hook stops a subagent started on a weaker one, and the watcher names a lane that runs on one. The security audit runs on the planning model. Set the models per role under models.
jackherd sets the model, not the effort and not the advisor: those come from Claude Code. Lanes and subagents inherit what you set there (/effort, /advisor).
| Command | Does |
| --- | --- |
| jh init | creates .jackherd/config.json and installs the kit (--global for ~/.claude) |
| jh sync | updates the kit; a file you edited gets the new version beside it as .kit-new |
| jh update | installs the newest release and syncs |
| jh check | types, lint and tests of what you touched, the plan and board checks and the lockfile versions; prints the failed checks, the review tier and reviewers and a summary (--full every check; --since [tree] only what changed since the last review record; --skip-slow, --parallel <plan>, --lockfile; --hook for a git hook: lint of the staged files, lockfile versions and the check.checks they fire, no types, no tests); jh review record --from <file> keeps what the reviewers judged and left open, jh review show prints the branch's newest record; jh plan check <plan> checks one plan against the plan contract, jh plan show --phase <n> <plan> prints its head, its decisions and that phase |
| jh herd | the live view (--once, --lane <name>) |
| jh watch | the watcher Jack runs |
| jh resume | after a crash, wakes the coordinator and the lanes that were working; --coordinator lists what Jack takes up after /clear, with the board's history rows written since the last call (--no-mark reads them without moving the mark) |
| jh secret | a personal source's secrets in the system keychain (set, list, delete); never shows a value |
| jh lane prompt <lane> | writes a lane's first prompt from its board row and plan; your additions below its marker line stay |
| jh lane close <lane> | removes a finished lane (agent, worktree, workspace, branch) once nothing would be lost; --dry-run only checks. A resting lane with open phases is parked instead: parked (geparkt in a German board) in its name cell; the herd and jh resume --coordinator only count it, the watcher leaves it out |
| jh backend | the shared backend of the lanes (lanes.backend): restart, release <service> --lane <lane>, return <service> |
| jh preview <file> | renders a Markdown file in GitHub and npm style |
| jh waiting | files and Artifacts sent to you and not answered yet; close <id> or close "<text of a board row>" once you have; answer <lane> <number> marks a question of a lane's report as answered; archive moves closed and old board rows to board-archive.md beside the board (--dry-run changes nothing) |
| jh lessons | what /jh-rules-audit reads: your rules measured, new lessons from your boards, feedback memories not yet decided; never writes your memory |
| jh brief | goal, status and what it needs from you, for each open lane; Jack shows it when you come back after plans.briefAfterMinutes (default 60, 0 is off) |
| jh context | how full an agent's context is, against the window Claude Code reports for the session (--usage for the tokens a lane used) |
| jh config | the commands and the base branch the repository uses; --adopt writes the suggested risk paths into check.reviewTiers.full |
Without a global install, run them as bunx jackherd <command>. The config is .jackherd/config.json in a project and ~/.jackherd/config.json globally, checked against one schema, which your editor completes in the project config. What usually needs setting:
{
"responseLanguage": "de",
"terminal": { "adapter": "herdr" },
"lanes": { "copy": ["apps/web/.env"] },
"check": {
"reviewerRoutes": [{ "reviewer": "jh-uncle-bob", "globs": ["src/**/*.ts"], "why": "Code" }],
"skillBudgets": { ".claude/skills/release/SKILL.md": 1200 }
}
}More you may want to set:
| Key | Does |
| --- | --- |
| check.reviewTiers | full: the risk paths (globs) that get the full review round and jh-security-audit; declined: suggested patterns you turned down |
| check.skillBudgets | your own word budgets for skills, agents and rules, by path or glob; jh check warns above them |
| check.packageCommands | the cacheable form of commands.test and commands.typecheck (test, typecheck): a command with {root} for the package root, run once per changed package from the repository root, so a task runner with a content cache skips an unchanged package. Turbo: bunx turbo run test --filter=./{root}. Directories that are no package of the runner keep commands.test and run in their own directory |
| check.checks | your own checks: name, command, globs (without them the check runs on every change), kind (tests, types) and level: warn makes a non-zero exit a warning that lets the commit through, fail (the default) stops it; a git hook runs the same list through jh check --hook |
| check.fullRunGlobs | paths from the project root (patches/**) whose change makes jh check --since run everything instead of the delta; the lock file, the jackherd config, a file in the project root, a moved merge base and a new kit version always do |
| check.lintPointers | jh check warns where a rule you wrote could be a lint rule and names none; answer with `lint:<rule id>` or `lint:none` and a reason (level: warn, fail, off; exclude) |
| check.architectureDocs | holds the form of docs/architecture (rules/kit/arc42.md): index rows, topic files, links, ADR files (level; chapterWords, default 5000, is a hint to split) |
| lanes.backend | one pane in the main checkout runs the services every lane's app talks to, kept by the watcher (INSTALL.md) |
| check.backendServices | fails jh check when a service in the repository is missing from lanes.backend (packages, globs, optional ports) |
| watch.parallelTasks.auto | lets Jack start up to two extra subagents in a running lane without asking, for at most seven days; he asks you first |
| planLanguage, boardLanguage | the language of plans and of the board jh writes; English and German are always read |
/jh-orchestratestops right away. It needs herdr: start Claude Code in a herdr pane, or use/jh-implement.- Every lane shows
no agent. Set"terminal": { "adapter": "herdr" }; worktree, board lane and herdr agent need the same name. - Pull requests and checks are missing. Install
ghand log in.
License
MIT, see LICENSE. Four kit files adapt mattpocock/skills (MIT, Copyright (c) Matt Pocock), see NOTICE. The artwork in assets/branding is all rights reserved.
