Hand over a coding task. Get back reviewed, verified code and a report. It learns from every miss.
An autonomous delivery workflow for Hermes Agent, built entirely from skills.
Quick start · How it works · Core concepts · Configuration · The report · FAQ
cpipe turns one chat message into a finished delivery. You send the task and wait. cpipe sets up an isolated worktree, maps the code the change touches, settles open questions itself, writes a plan a builder can follow, writes the tests first, builds one verified change at a time, runs the project's own checks, uses the change like a user would, has it reviewed by a context that did not write it, cleans up, commits, and reports back with the proof. Every miss, whether review, QA or you caught it, becomes a learning for the step that should have caught it, so your next runs get better without ever overriding cpipe's core rules.
It is a set of skills, not a program. The model in your chat runs every step with its normal tools, so it adapts to any repository, language and toolchain: when a command is blocked, a test runner is broken or a dependency is missing, it works around the obstacle, records what it could not verify, and keeps going.
- Highlights
- Quick start
- What a run looks like
- How it works
- Core concepts
- Steps · Playbooks
- Configuration
- The report
- Files and state
- Guard rails
- How it is built
- FAQ
- Contributing
- Unattended, end to end. The task is the last message you send. No plan approval, no stops to ask: open questions are decided and listed with their reasons in the report.
- A watcher that keeps it going. After every turn of a run, cpipe reads the run's gate. When a turn ended with work left and nothing running to wake it (a turn-limit pause, a wait on nothing, a summary instead of the next step), it queues the next turn with the gate's facts and asks the run to check its last reply against the goal and the spec. When several nudges in a row change nothing, it tells the run to change approach. It never nudges a turn you stopped, a ❓ question waiting on you, or a finished report.
- Like the rest of the project. For each thing a change outputs or does (a message or email, a date or time,
a page, an endpoint, a job), explore finds the existing feature of the same kind and the spec names it in an
L line: the fields it carries, its template, whose time zone and locale it uses.
gatestays at FIX until the spec has one, and each is proven by a test and a QA step that show both outputs side by side, field by field, in a non-UTC zone. The review checks the same on its own. - Spec questions that never block. Each run writes
spec.md: every requirement and constraint quoting your words, checked against the code. Where the two disagree and nothing settles it, the run posts a❓question and keeps building on its recommended answer; it waits for you only when nothing else is left, and never reports around an open question. Plan first however you like (your host's plan mode, or a conversation) and then start cpipe: that plan becomes the spec, the planner turns it into the builder's steps, and each spec line is proven and listed with its proof in the report./cpipe-speclets your plan profile work out the spec with you first, on its own bot, model and skills, in the same chat, its questions put to you as choices to pick, after it shows you the related features it found and where the change would go; then the run delivers it on its own. A change people see is placed where the same kind of thing already shows, in its format, or where your screenshot shows, and that placement is a spec line the run proves on the screen. - Your instructions are the contract. Every instruction you give, in the task or later, is kept word for word in the run's state, joins its checklist the moment it arrives, settles the questions it answers and wins over cpipe's defaults. The gate holds while one is not on the checklist, and the run is done when each one is met (a merge when there are no regressions included), not when the steps have run once. Each line is checked against what you wrote in the chat, so the run's own reading of an answer never passes as yours, and an answer that rules out one fix narrows how the goal is met, never the goal.
- Tests first, proof per kind. A bug is reproduced with a failing test before the plan is written; a feature
shows new tests red then green; a refactor keeps the same checks green before and after. Acceptance is written
as
When <trigger>, <result>rules, edges and user sequences (retry, cancel and reopen) included, and each rule's test starts where the user does. Verify takes the fix out and checks every new test fails without it. - The project's own checks. Lint, typecheck, tests and build run with the commands the project and its CI use, inside the delivery worktree, with honest states: pass, fail, baseline or not run here.
- Today's behavior is the spec. Before planning, the run records what each role, caller and kind of stored data gets today, on both sides of each boundary. Only what you asked for may change; everything else must keep working.
- Independent review. A reviewer that did not write the code reads the diff and hunts for regressions the plan missed; a second reviewer joins for security-sensitive changes.
- A look designed before it is built. For a new screen or a redesign, design picks one visual direction with your UI design skill and renders it as a mockup from the project's own fonts, tokens and components, with the values to match at each width. The plan makes those values acceptance rules, the builder ports the mockup and screenshots its page against it, QA compares its shots with it, and the design profile checks QA's shots once.
- QA on the real surface. The change is used the way a user would use it: the page, the endpoint, the CLI. It starts the app and signs in the way your own skills and notes say (a name the app runs under, the address a saved login fills on) before the project's defaults. UI changes are screenshotted before and after, at desktop and phone width, and judged by eye, including the pages that must not change. Whatever QA could not verify goes to the report's Test it list, never silently passed, and a missing sign-in or credential is named every run with the command that provides it. A pull request for a visible change carries the screenshots when they can be attached, and goes out without them when they cannot.
- Self-learning. Every miss teaches your install: a problem review, QA or you catch after the fact becomes a one-line learning for the step that should have caught it, and the report's confidence shows the measured record. Learnings only add to cpipe's rules and never override them, so updating cpipe keeps its fixes.
- A graph, not a script. Steps, gates, fork and join, bounded loops and re-entry, all written as skill text and run by the model.
- Lean on tokens. The code is explored once per run, each role resumes one session so its history stays cached, the chat stays thin, review and QA rounds are capped, instructions load only when a step starts, checks are narrowed while building, and results are reused while the tree is unchanged.
- Your setup comes first. Your own skills for commits, pull requests, review or UI design override cpipe's defaults; your Hermes profiles can take over any role.
- As good as your Hermes agent. cpipe sets the flow and the bar for done; the work itself is done by your
Hermes setup. The quality of each step follows the profile that does it: its model, its persona (
SOUL.md) and its skills. A designer profile with a UI design skill gives better screens, a reviewer on a strong model finds more, a builder that knows your stack writes code that fits. Without profiles, every step runs on the chat's own model and skills. - A floor under a thin setup. With no skills, personas or profiles of your own, every step still has cpipe's defaults: a full procedure per step (plan, build, review, security, QA, commit, pull request), a stance for a role with no profile of yours (how a senior builder, reviewer, tester or designer works), a built-in UI design guide, and a headless-browser fallback for QA. A role you give a profile works by that profile's persona and skills alone, and your own skills win over cpipe's defaults wherever they cover a step. The report's Needs attention names each gap the run hit, with the profile line, kind of skill or toolset that would close it.
- Safe by default. One worktree per delivery, your checkout untouched, no push, pull request, merge or message unless you ask for it.
- Hermes Agent with plugin support (developed against 0.22).
git. The GitHub CLI (gh) for pull requests and for tidying up merged worktrees.- The project's own toolchain (its package manager, test runner and build), as its CI uses it.
- Optional: Hermes profiles for the roles, and a running kanban dispatcher for
/cpipe-kanban.
cpipe has no Python dependencies and needs no configuration.
git clone https://github.com/chryzxc/cpipe ~/.hermes/plugins/cpipe
hermes plugins enable cpipeUpdate with git -C ~/.hermes/plugins/cpipe pull. Check the manifest with
hermes plugins validate ~/.hermes/plugins/cpipe.
In any Hermes chat, inside or near the repository:
/cpipe fix the discount that disappears when an invoice is edited
| Command | Does |
|---|---|
/cpipe <task> |
Delivers the task unattended and reports back in the same chat |
/cpipe-parallel <issues> |
Each issue delivered in its own background session, up to four at once, each reporting back here |
/cpipe-kanban <task> |
The same, with the role steps handed to your profiles as cards on your kanban board |
/cpipe-inherit <task> |
The same, with every profile inheriting this chat's model and provider for this run only |
/cpipe-spec <task> |
Your plan profile works out the spec with you first, its questions shown as choices to pick; then the run delivers it unattended |
/cpipe-budget [<tier>|off] |
Shows the default budget, or saves or clears it in cpipe.yaml |
/cpipe-continue [<note>] |
Picks up a run that stopped, at its first unfinished step; continue in the chat does the same |
/cpipe-restart [<step>] |
Redoes the run from that step (Explore by default) on its own roles, in the same chat |
/cpipe-stop |
Ends the run in this chat now: its background steps stop and your next messages are plain chat work. Saying "stop" or "don't use cpipe" does the same |
/cpipe-feedback <what you found> |
A problem you found after the report: reproduced, recorded as a miss and a learning, fixed as a follow-up |
/cpipe-learnings |
What cpipe has learned from your runs, and the problems that reached you per step |
/cpipe-rules [<what to change>] |
Shows your own rules for cpipe runs, or changes them in words: every run, one profile or one repository (Your rules, below) |
/cpipe:run <task> |
The skill itself, for chats where the command is not available |
Ask for anything that leaves your machine in the task or a later message: … and open a draft pull request,
merge it if there are no regressions.
/cpipe answers with the task, the flow, a table of who runs each step and how many learnings apply.
Then the run posts one line as each step starts and ends, a progress line every 10 minutes of a long wait, and a
single report at the end:
cpipe · fix the discount that disappears when an invoice is edited
plan → tests → build → verify → QA + review → commit
Step Runs on plan @planner build @builder review @reviewer everything else this chat's model
- Budget: each profile's own setting ·
/cpipe-budget <tier>sets one- Your rules: 1 standing rule ·
/cpipe-rules- Learned: 4 rules from past runs, added to this one ·
/cpipe-learningsRuns on its own and reports here. Open questions are decided and listed in the report; nothing is pushed unless you asked.
✅ done · ⏳ waiting, resumes on its own ·
⚠️ problem, handledQuiet with no ⏳?
/cpipe-continue
1/11 Set up · this chat · worktree, dependencies, baseline
✅ 1/11 Set up · 3 min · fix/invoice-discount, baseline: 412 tests pass
2/11 Explore · @planner · callers of updateInvoice(), the invoice API and its consumers
— 3/11 Design · skipped: no screen changes
✅ 5/11 Plan · 11 min · 4 build steps, 1 assumption, 2 learnings applied
6/11 Build · @builder · tests first, then the change
⏳ 6/11 Build · waiting on @builder · done by 2:40 PM · resumes on its own
✅ 6/11 Build · 14 min · 2 files, 3 new tests RED → GREEN
✅ 7/11 Verify · 6 min · lint, types, 415 tests, build pass
⚠️ 9/11 Review · @reviewer failed to start (provider error) · running it in this chat
✅ 8/11 QA · 9 min · 5 scenarios pass, screenshots before and after
✅ 9/11 Review · 12 min · 1 finding fixed
✅ 10/11 Clean · 4 min · last verify passes
11/11 Report · this chat · commit and report
The report that follows is shown in The report.
flowchart TD
T(["/cpipe task"]) --> S1["1 · Set up<br/>worktree, dependencies, baseline"]
S1 --> S2["2 · Explore<br/>flow map, premortem"]
S2 --> S3["3 · Design<br/>states, flow, copy, mockup"]
S3 --> S4["4 · Decide<br/>open questions become assumptions"]
S4 --> S5["5 · Plan<br/>numbered build steps"]
S5 -->|plan gate| S6["6 · Build<br/>tests first, one change at a time"]
S6 --> S7["7 · Verify<br/>the project's checks"]
S7 -->|a check fails| S6
S7 -->|completion gate| FORK{{"side by side"}}
FORK --> S8["8 · QA<br/>the real surface"]
FORK --> S9["9 · Review<br/>independent reviewer"]
S8 --> JOIN{{"findings join"}}
S9 --> JOIN
JOIN -->|"findings to act on (one fix round, one delta review)"| S6
JOIN -->|nothing left to act on| S10["10 · Clean<br/>last verify on the final tree"]
S10 --> S11["11 · Report<br/>commit, report"]
Every step runs on every task. A step that does not apply (design for an internal fix, QA for a docs change) is passed with its reason in the run log. Verify and the report are always done by the chat itself: the checks and the final word are never handed to anyone else.
A task with several issues becomes one delivery per issue, each with its own branch, worktree, commit and pull request, run one after another and reported together. The role sessions carry over from one delivery to the next, so the codebase is explored once per run. When you ask for parallel, each issue runs in a lane of its own (In parallel). Issues ship together only when one cannot work without the other.
A run is an explicit graph. Each node is a step with its own instructions file, loaded only when the run reaches it. Each edge is a condition the chat checks on the current tree: a gate that passes, a check that fails, findings that come back. The graph is written in the skill, and nothing outside the model picks the next step.
- Gates guard the two expensive edges. The plan gate checks the plan before any code is written: every path and function exists, no step is vague or leaves a choice open, every acceptance, must-not-change and risk item is covered, no file is pushed past its size budget. A large or risky plan also gets one read by the review profile before the build. The completion gate searches the change before anyone reviews it: no skipped or focused tests, no placeholders, nothing outside the scope, no secrets, no silenced type or lint errors or empty catches, proof for every acceptance criterion, and every new test failing with the fix taken out. New typecheck and lint errors are compared with the base by id, so a base that is already red hides none of them. The builder runs the same searches before it hands back. A failed gate item is fixed on the spot, never a stop.
- Fork and join. The review only reads the code, so it starts once the narrow tests pass, beside the full suite and the build; QA joins when they finish. Their findings join into one fix round, followed by one delta review alongside a QA re-run of the items that failed; that is the last round.
- Pass-through. A node that does not apply is passed with a one-line reason, never silently.
- Re-entry. The run log is the graph's state. continue, a completion notification or a restart re-enters
at the first unfinished step or unmet instruction. The report closes the run: a plain message after it is
ordinary chat work, and only
/cpipere-enters, at the plan for the follow-up only. - One graph per delivery. Several issues run as several graphs, one after another, sharing the role sessions, or one lane each when you ask for parallel.
The run loops until the goal is met: fix, verify, check the goal, and go round again. Only what the user alone
may do, or what the machine cannot run, ends it early. A bound limits one approach, not the run: reaching it
changes the approach, and an attempt that failed is never repeated. What the user alone may do is a closed list
(credentials, destructive actions, anything that leaves the machine, an approval Hermes asked for); a choice of
fix or scope never is. A checklist item is skipped only when it does not exist in the change or the machine cannot
run it, and never when it is one of your instructions. The run cannot end a turn on a question while its gate
still has work, nor on a wait while nothing it started is running: through Hermes' pre_verify hook, the gate's
verdict goes back to the chat, which keeps working. A continue carries the gate's verdict and the skill's version,
so the chat starts from the facts on the current rules, and every run message carries your standing answer on
scope: whatever the goal needs inside the worktree is authorized, and a limit you wrote yourself still holds.
| Loop | Bound |
|---|---|
| Build: change, narrow test, keep or undo | One change at a time; never two unverified changes stacked |
| A failing check, back to build | 3 attempts per approach, each a different idea; then a new approach |
| QA failures, back to build | Fix and re-run the failed items until they pass; a new idea after 3 rounds |
| Review, back to build | 2 rounds: one full review, one delta review of the fixes; a fix after that is proven by its test and the checks (plus a security delta). Review and security rounds count over the whole run, so a re-plan never starts them again |
| Fixes for checks, conflicts, the cleanup | No review or QA round; the last verify is their proof |
| No progress | 3 rounds in a row: change the approach and loop again |
| Build rounds | 3 since the last plan or review: re-plan before another, so a fix that keeps growing is cut back early. Each step prints the run's round counts, and a role at its cap gets no further round |
| Fixes that fight or chain | A fix that breaks working behavior, or two rounds whose fix raised new findings: back to the last green tree, narrower approach; the finding goes to the report |
| A role's profile | Its time budget, then the chat does the step; a card not picked up in 10 minutes counts as failed |
The chat's context is the scarcest resource in a long run, so cpipe decides what enters it and when.
- Load late. Only the current step's instructions are loaded, when the run reaches the step, and only for a step the chat does itself: a profile loads its own. A file is loaded again only when its text has left the context (a follow-up or a compaction), so no step is worked from memory and nothing is loaded twice.
- Read once. One session explores and plans, so the code is read once per run: a plan profile on its own model,
or the builder in the session it builds in. The flow map and the plan go to
plan.mdwith paths and line numbers, and a builder working from a planner's plan reads only those. Each plan step is written for a builder on a weaker model: the exact change, its test, its check, and the new code itself where it is not obvious (at most 8 lines), so the builder follows instead of designing. The chat never reads the project's code: it works from the replies,git status, the diff stats, the completion gate's searches, the result lines of the checks and the sections of the plan it needs, found by heading. - A short plan. The plan is facts in a fixed format, at most 12,000 characters, with code cited by path and line rather than quoted, because the builder resends it with every reply.
- Output to files. Long command output goes to a file beside the run log; the chat reads the result lines or the tail.
- Distilled skills. Your skills are loaded once per run, only for work done in the chat and only when the
step that uses them starts, and the rules that apply are written to
now.mdas one line each. - Compaction-proof. A short state file,
now.md, holds your instructions word for word, the current step, the running processes, the roles and the rules from your skills. Beside it,track.jsonholds the run's checklist, each item closed only with its evidence. The run's core rules, your instructions and the open items are pinned in the system prompt of every session of the run, so a compaction never drops them; after one, the chat readsnow.mdand reloads only the run skill and the current step, never every skill it loaded before. - One header. The launcher puts the same header of working rules in front of every role brief (
header.md), and only those rules in front of a follow-up, so no brief can drop or reword them. - Lean briefs. A role's brief holds facts (goal, acceptance, diff, check states), not reasoning, and points
to
plan.mdby its path instead of copying it or the run log. A fix round lists the findings themselves, not the reviewers' reports. A profile replies in at most 20 lines; findings, failures and corrections that do not fit go in a file, each in at most 5 lines, without what passed or what it did not do. - Lean reading. Every reply resends all the context, so a profile reads the line ranges it needs, never a file twice, batches independent reads, edits and commands in one reply (a change's edits and the command that checks it go out together, without waiting for the edits' results), sends test output to a file with the same command printing only the summary and failures, and loads only the cpipe step files its brief names. Review, security and QA never run the suite or the build again: the brief gives their results. A diff is read by its stat, then each file once; the planner reads a commit's message, never its whole patch.
- Fast checks. While building, only the narrow tests run. Every verify runs the tests related to the changed files, never the full suite, which the pull request's CI runs; the build runs once, in the first verify, never beside another heavy job, with the runner's own parallel workers. Serial or single-worker flags are used only when the project's CI uses them. Long checks run in the background with a completion notification.
- Same tree, same result. Each check result carries a tree id built from the content of the files, so a commit does not change it; a check is not run again while the id is unchanged, and QA reuses verify's result.
- New failures, once each. A failure not in the baseline is rerun alone once; a test that passes alone is recorded as flaky. One with no baseline result is run once in the base worktree, and that decides it.
- Baseline once, never in the way. The light checks and the build run once on the base, in a worktree of the base commit with its own install, started in set up and running in the background while the code is explored and built. Only verify waits for them. Deliveries from the same base commit share one baseline, and a check that was already red is never chased.
- Nothing hangs the run. Every background job (installs, checks, profiles) runs under a time limit that also stops everything it started, so a hung test still ends and its notification still wakes the run.
- The machine stays usable. Background jobs run at low priority (on macOS also clamped to utility QoS, so the apps you use always win the fast cores), and installs, test runs and builds take turns across every run on the machine, so two lanes never load every core at once.
- Proven cause. A bug is reproduced with a failing test during explore, so the plan is built on the cause, not a guess.
- A thin chat. The chat resends its whole history with every reply, so with a build profile it never reads the project's code; anything that needs the code is a follow-up for the builder.
- Reproductions go to QA. A request mid-run to reproduce or try a behavior (a browser, an emulator, a device) is a QA brief that runs alongside the build, never work in the chat.
- Local test setup is done at once. A request mid-run to set up your own testing (start the app, a test login, a temporary local-only edit such as skipping a password check) is done in the chat right away, exactly as asked and no bigger, never sent to a role. A temporary edit is named in each build brief, kept out of every commit and reverted when you and QA are done.
- Few writes per round. The builder writes a new file whole and sends one change's edits in one reply, since each reply resends its whole session.
- Roles where they pay. A profile starts cold and reads the code again, so one profile explores (a plan profile, else the builder, and an explore profile only without either), design gets a profile only for a new or changed screen, QA only where its profile can use the change, a second reviewer only for security-sensitive areas, and mechanical work (formatting, a commit, a pull request body, a rebase without conflicts) stays in the chat.
- Code that builds. The builder runs the build or typecheck, the narrow tests and its own cleanup before it hands a round back, so a compile error never costs a round.
- Replies, not calls. Every reply resends the whole chat, so independent tool calls go out together in one reply (calls run in order, so a brief and the command that starts its profile go out together), and long work runs in the background so its notification resumes a turn the cap ended. A profile's command prints the end of its log when it ends, so the notification carries the reply and no reply goes to reading it.
- Waiting ends the turn. While only a profile or a check is running, the chat ends its turn with one status line naming the latest time it ends, and the completion notification starts the next one; it never polls, sleeps or lists processes. A wait past 10 minutes gets a progress tick: every 10 minutes one line on what changed (the diff's size, the last test run), read from the run's own files.
- Deltas and resumed sessions. The delta review and every follow-up see only the diff since the last one, and a
QA re-run covers only the items that failed. Each role has one session per worktree: fix rounds, corrections,
conflicts, the delta review, the next delivery and a later
/cpipein the same worktree resume it instead of starting cold, so most of what it resends is a prefix the provider has cached. Every follow-up repeats the header's working rules, so a session resumed after an update or a compaction works by the current ones. Profile briefs load only their step's file and skip the project's general guides. - The project's commands only. Checks run with the project's own commands, with no wrapper scripts, harnesses or receipts around them. Fixes for checks or compile errors, conflicts, the cleanup and an update onto a moved base are proven by their tests and the last verify, not by another review round.
Nothing counts until a command has run on the current tree and its result has been read.
- Honest states. Every check is pass, fail, baseline (already failing on the base) or not run here (with the reason and the other proof gathered).
- Facts decided in code. A small helper (
bin/cpipe.py, standard library only) reads the runners' own machine-readable output and decides what the model must not guess: which failures are new, baseline or flaky and what to rerun, whether every checklist item is closed with evidence, and whether the run may report. The model runs what it asks for and never stops on "not sure". A port gets the list of source lines its diff does not contain, so a line lost inside a ported hunk shows. - Baseline by name. The baseline saves the names of failing tests and lint errors, and verify compares names, not counts: one new failing name is a fail even when the total went down.
- The standard way. Every change follows how the codebase already does the same thing, else the documented way of the installed framework or library, else the language's standard, and the plan names that source. A change that plugs into another system uses that system's own extension point, never a way around it. Timers to order events, casts and ignore comments, disabled checks, edits to generated or vendored code, copied code, hard-coded values and "temporary" code are not shipped; review sends them back.
- Root cause first. Every failure, finding and QA item gets a Cause line (the mechanism, file and line) and the class of places it can happen, before its fix, and the fix goes where every caller passes through. A special-cased input, a weakened test, a retry, a sleep, a timeout bump or a silenced error is not a fix.
- Claims are checked. A profile's "done" is a claim until the chat has run and read the check itself. A QA failure is reproduced by a failing test before it is fixed.
- Tests that catch something. Each new test names the break it catches, the line or behavior that makes it fail. Tests that catch no realistic break (a constant, a getter, the framework, a mock returning what it was told) are not written.
- Small files. Every file the change adds or grows stays within 5,000 tokens (bytes / 4, about 500 lines), or the project's own size rule. New code for a file already over the limit goes in a new file beside it.
- No shortcuts. A test is never skipped, weakened or deleted to make a check pass, and a red lint or format baseline is never cleared by reformatting code the change does not touch.
The kind of task decides what counts as proof. Explore picks the kind and loads its playbook; a task that mixes kinds uses the stricter one. See Playbooks.
Before planning, explore traces every path through the code that will change:
- Entrances: routes, pages and UI actions, jobs, event and queue handlers, CLI commands, other modules.
- Exits: responses, data written, events emitted, UI rendered, and the code on the other side that consumes them.
- Guards: authentication, permissions, tenancy, feature flags, validation, rate limits, on both sides.
- Behavior today: a table of what each actor and case gets now (each role, the owner and a stranger, signed out, jobs, other clients, new and older stored data), read from the code on both sides of each boundary. A rule that lives on one side only, such as a permission the client enforces by hiding an action, is today's policy: a check added elsewhere copies its exact conditions.
- Why it is there: the history of each check or line the change removes or tightens, and the recent fixes and reverts in the files it touches.
A premortem then imagines the change shipped and broken, through contracts (anything a caller can observe, old clients during a rollout, a rollback), data as stored, roles and environments, failure paths (a new error a caller handles wrongly), concurrency (two writes at once, retries), resources (connections, handles and listeners closed on every path, nothing unbounded), performance (queries in loops, missing indexes, unbounded results, hot-path work) and user-facing states. Each risk gets a check or a reason it cannot happen. The plan gives the table an After column: a row changes only where the request asks for it, and every other row becomes a numbered must-not-change item, each with the test or QA step that proves it. A large table, such as a permission matrix, becomes one table-driven test written first with today's results, so its diff is the behavior change. The reviewer rebuilds the before and after from the base on its own, and searches the whole repository again for any usage the map missed.
A run never waits for you. Open questions (which base, which of two behaviors, a product detail) are settled from the request, the code, the project's history and the conversation: the most likely answer, and of two equally likely ones the more reversible. Each becomes an assumption in the report's Approach table.
Obstacles are worked around, never reasons to stop: a blocked command runs another way, a missing tool is replaced by the project's own binary, a check that cannot run here is recorded as not run here with the other proof gathered. Things only you may do (credentials, anything destructive or irreversible, anything leaving your machine you did not ask for) are skipped and named in the report's status line.
A message mid-run is steering, not a stop: it gets a one-line answer, and new work either joins the plan as
numbered steps or waits for a follow-up after the report. The one exception ends the run: /cpipe-stop, or a
message that says to stop the run or not to use cpipe. The run is closed at once, its background steps are killed,
and the message is done as plain chat work.
The builder never approves its own work. The reviewer reads only a short brief and the diff, in a context that did not write the code, and reviews for correctness, behavior before and after for each actor, proof, regressions across the whole repository, risks the plan missed, security, concurrency and resources, performance, and simplicity. Before a round leaves, the builder checks the same: resources closed, shared writes safe, bounds in place, no queries in loops. Changes to authentication, permissions, payments, data deletion or migrations also get a security reviewer in parallel, on a brief of its own (access per actor, injection, secrets, concurrent writes) so the two never read the same things twice. A run has one full review and at most one delta review; a fix after the delta review is proven by its test and the checks (a security fix also gets a delta from the security reviewer) and listed as fixed after the last review. The scope is the goal, not the planned files: a finding that the change does not do what the goal says yet (a bypassable guard, a race in the new check) is fixed wherever the fix lands, never left for you.
Every finding is given a disposition and checked against the code (by the builder, when there is one), so nothing is filtered silently:
| Disposition | Means | What happens |
|---|---|---|
| act | Real, and the goal needs it fixed | Fixed in the fix round, then checked by the delta review |
| consider | Real, but a judgment call or a problem the goal does not cover | Listed in the report |
| noted | Minor or stylistic | Listed in the report |
| dismissed | Wrong: the code already handles it | The evidence is written in the run log |
A security finding is never dismissed without evidence, and an open one leads the report.
A finding is not a requirement: what the goal needs comes from your words and the spec. A reviewer's "should"
(bounded work everywhere, fairness under any load, volumes the project does not have) is fixed only for a concrete
case the project really has; otherwise it is consider and offered as follow-up work. The run sticks to the
task's scope: a problem the code already had, hardening beside the fix, and a fix that takes a large refactor (a
new transaction or lock layer, logic moved across modules) are follow-up deliveries in the report. A fix never
grows into a new subsystem you did not ask for, and a later /cpipe in the same worktree carries the earlier run's
instructions and spec, so a review before merge checks the change against them instead of growing it.
A port, backport or replay of named pull requests or commits measures against its source: a problem the source has in the same form is consider, and only what the adaptation to the target caused is fixed. A range or list that reads two ways (both ends, or every item between) is asked, never guessed. What a builder reports as remaining is sorted like a finding before it becomes another round.
Each run keeps an append-only run log at <git-dir>/cpipe/run.md in its worktree: one row per round, every
workaround, every finding and what became of it. Beside it are the plan (plan.md) and a short state file
(now.md) that is rewritten at each step. None of them is committed, and they are how a run resumes.
- A chat turn has a cap on tool calls. Long work (installs, checks, profiles) runs in the background with a completion notification, and the notification starts the next turn at the first unfinished step.
- A turn the cap ends with nothing running posts a short pause message: where the run is, what it finished, the
exact next action, the decision on anything open, and that your next message resumes it. Hermes sets the cap
with
agent.max_turns;agent.budget_warning_ratio(such as0.8) warns the run before it, so it saves its place and starts the next long work first. - A restart of the Hermes backend ends the turn; continue picks the run up again. Profiles and checks it started keep running, and continue uses their results instead of starting them again.
- A notification that arrives after the report gets one line and nothing more. A note about a kanban card the
run did not create gets one
ignored:line; it is never taken as the task. - The log also marks the worktree as cpipe's: each new run removes cpipe worktrees whose pull request is merged and that hold no uncommitted work. Other worktrees are never touched.
Standing rules for cpipe runs, and only cpipe, kept apart from your Hermes memory and skills, at three levels like
cpipe.yaml, one - line each:
| Applies to | File |
|---|---|
| every run | ~/.hermes/cpipe/rules.md |
| one profile's sessions | ~/.hermes/profiles/<name>/cpipe/rules.md |
| one repository's runs | <repo>/.git/cpipe/rules.md, shared by its worktrees, never committed |
They are pinned in every session of a run, a role's too, so a compaction never drops them, and the more specific
wins where two differ: the project's, then the profile's, then everywhere's. Each one counts as your
instruction for the run, so it can change how the run works and gives the permission a push asks for; the
task's own instructions win where they differ, and the report checks each rule like an instruction.
/cpipe-rules lists them; /cpipe-rules <what to change> changes them in words, and the chat picks the level
from what you say: /cpipe-rules commit and push after each commit, only in this project.
cpipe is self-learning: each install gets better at its user's work.
- Misses are recorded. When review, QA or you catch something a run should have seen, the run logs a miss
(the kind of change, the area, who found it, the step that should have caught it) in
history.jsonl, and writes a one-line learning for that step: something to check, where to look, a state to cover. A problem you find after the report (/cpipe-feedback <what you found>, or just say it) is reproduced first; only a real one inside the task's scope counts, and it is fixed as a follow-up. - Learnings are per step, per user. They live in
~/.hermes/cpipe/learnings/(plan,design,build,qa,review, andgeneralfor how you work in any project), with optional per-profile files for what is specific to one profile. Facts about one repository stay in its own lessons file. - Every run uses them. Explore reads them once and puts each one that fits into the plan as a check, a QA item or a question for review, so whoever does the step gets it. A step that let problems through in recent runs gets those areas checked by name.
- Confidence is measured. With at least five runs of the same kind, the report's Confidence line shows the
record:
Past: QA missed 1 of 20 UI changes you checked. - Core rules always win. A learning only adds detail; it never skips a step, loosens a check, a gate or a
limit, or contradicts cpipe's files, and the guard rails always hold. After you update cpipe, the first run
checks each older learning against the new instructions: one the update now covers, or that conflicts with
it, is retired to
retired.mdwith the reason, so an update's fixes are never undone by a local learning. - Kept small. Matching learnings are merged, a learning that failed to prevent a repeat is rewritten, each file holds at most 30, and one unused for 90 days is retired. Nothing is committed or shared.
A message after the report is a follow-up on the same worktree: it is reproduced, fixed, verified and reviewed, then reported again.
Only cpipe:run is registered; the steps are files inside it, so they never show up as separate commands.
| # | Step | Does | File |
|---|---|---|---|
| 1 | Set up | Finds the repository and base, moves a chat that is in no project into your project that holds the repository, creates the worktree, starts the run log, removes merged cpipe worktrees, finds the checks, and starts the installs and the baseline in a base worktree in the background | steps/setup.md |
| 2 | Explore | Reads the project's instructions, learnings and lessons, maps entrances, exits, guards and today's behavior, runs the premortem, reproduces a bug | steps/plan.md |
| 3 | Design | States, flow, copy, accessibility and edge cases of anything user-facing; for a look change, a visual direction and a mockup the build and QA are held to | steps/design.md |
| 4 | Decide | Settles open questions as assumptions with a one-line reason each | steps/plan.md |
| 5 | Plan | Goal, scope, behavior change, acceptance, must-not-change, risks, tests, checks, and numbered build steps that pass the plan gate | steps/plan.md |
| 6 | Build | Tests first, then the change, one verified step at a time; it builds and is cleaned before it is handed back | steps/build.md |
| 7 | Verify | The plan's checks with honest states, workarounds for checks that will not run, the completion gate | steps/verify.md |
| 8 | QA | Uses the change on the real surface, walks the acceptance criteria, tries to break it | steps/qa.md |
| 9 | Review | Independent review by a context that did not write the code, findings sorted into act, consider, noted and dismissed | steps/review.md |
| 10 | Clean | The cleanup is part of every build round; this is the last verify on the final tree | steps/build.md |
| 11 | Report | Commit, a draft pull request only when asked (then waits for CI), a merge only when asked and its conditions hold, the app left running, the report | steps/publish.md, steps/report.md |
Each plan step is written so a builder who has not read the code can follow it:
S1 src/invoices/update.ts updateInvoice()
Do: change the line-item rebuild to merge into the stored invoice, keeping discount
Test first: update.test.ts "keeps the discount on edit", fails now because discount is dropped
Verify: npx vitest run src/invoices -> 1 new test passes
Covers: A1, M2
| Kind | When | Proof |
|---|---|---|
| bug | Something that worked, or should work, is broken | A test that fails before the fix and passes after it; the cause found by tracing a working and a failing case to where they differ, or by bisecting to the commit that broke it |
| feature | New or changed behavior | New tests red then green, existing checks still green, behavior exercised on the real surface |
| refactor | Structure changes, behavior must not | The same checks green before and after |
| chore | Docs, config, dependency bumps, renames | Checks green, change read back |
| port | A change brought from another branch, commit or repository | Every hunk ported or marked not applicable with its reason, plus the proof of the change it carries |
| hotfix | The task says hotfix or urgent, or production is broken now | The failure reproduced and gone, narrow checks green, one review round; the root-cause work named as its own delivery |
| review | An existing change or pull request to check, no new work | Verified on its head commit, QA and an independent review, and a verdict: ✅ Approved or ⚠️ Changes needed; asked to fix it or make it right, the fixes are pushed to it |
cpipe works with no configuration: build, QA and review each run in a fresh session on the chat's own profile and model, and the chat runs the flow and the checks.
To hand steps to your own Hermes profiles, create ~/.hermes/cpipe.yaml (the Hermes root, or $HERMES_HOME
outside profile mode). Every profile's chat reads that one file, so a run started from any chat hands the same
steps to the same profiles; a profile with a cpipe.yaml of its own uses that one instead:
roles:
plan: <profile> # explores, decides and plans, on its own model
build: <profile> # builds, makes every fix and cleans its own diff; plans too without a plan profile
design: <profile> # the designer: a new or changed screen's look and mockup
qa: <profile> # uses the change like a user would, where it can
review: <profile> # reviews the change
security: <profile> # second reviewer for security-sensitive changes
explore: <profile> # maps the code, only when no plan or build profile is setEvery role is optional. Build, QA and review always run in a session of their own: on the profile you name, else on the chat's own profile and model, so a step never starts on a weaker model or inherits the chat's long history. The chat stays in charge: it runs the flow and the checks, writes each brief to a file, and treats each answer as a claim to verify. One builder session builds and makes every fix for the whole run, and the chat never reads the project's code. Each step session has the run's rules pinned in its system prompt too, and one that reaches its turn or time limit with work left hands off to a fresh session instead of growing further. The builder explores and plans too, unless a plan profile does: then planning runs on the plan profile's model, in its own session, and the builder works from its plan. Each role keeps one session per worktree.
| Role | Does | Without its profile |
|---|---|---|
| plan | Explores the code, settles open questions, writes the plan; turns a mockup's values into acceptance rules | The builder plans |
| design | The designer: for a new or changed screen, the states, copy and a visual direction, rendered as a mockup from the project's own fonts, tokens and components; after QA, checks QA's screenshots against it once | Whoever plans designs, with no mockup check after QA |
| build | Writes the tests and the code, porting the mockup instead of choosing a look; makes every fix and cleans its diff | The chat's own profile and model, in a session of its own |
| qa | Uses the change like a user; compares screenshots with the base and the mockup | The chat's own profile and model, in a session of its own |
| review | Reads the diff fresh for regressions and quality | The chat's own profile and model, in a session of its own |
| security | A second review for security-sensitive changes | Review covers it |
| explore | A read-only map of the code, only when no plan or build profile is set | Not needed |
The designer decides how a screen looks, and the builder follows it. With no design profile, whoever plans decides the look before any code is written (the builder too, when it plans), never while building.
Whichever profile's chat runs /cpipe, the flow is cpipe's: that chat's persona and standing rules set its tone,
not the steps, the roles or the bar for done. A chat without a skill tool reads cpipe's files from the plugin's
folder. For each step it does, the chat looks for your skill across every profile's skills, not only its own, so a
skill kept in another profile (one for pull-request content, say) still shapes the run.
| Role | Time budget |
|---|---|
| plan | 30 minutes |
| design | 15 minutes, and 10 for its check of QA's shots |
| explore | 10 minutes |
| qa, review, security | 15 minutes |
| build | 60 minutes for a delivery's first brief, 25 for a follow-up |
The budgets are fixed. A profile that fails is retried once with a shorter brief, then the chat does the step itself; a profile that runs past its budget is stopped and the chat does the step at once. A failed plan profile's steps go to the build profile instead, when one is set. Either way you are told in one line.
The budget sets how hard your profiles reason, as the reasoning effort of every profile run cpipe starts:
| Budget | Reasoning effort |
|---|---|
unlimited |
max |
large |
xhigh |
medium |
high |
small |
medium |
Save a default with /cpipe-budget <tier> (it writes budget: <tier> in cpipe.yaml) and clear it with
/cpipe-budget off. Without a budget, each profile
reasons at its own setting. The budget only applies to the profile runs cpipe starts: your chat keeps its own
reasoning setting, no Hermes setting changes, and kanban cards take no reasoning setting.
/cpipe-inherit <task> (or --inherit at the start of a task), or asking for it in words, runs every
profile on the model and provider of the chat that started the run, for that run only. Each role keeps its own
profile, with its skills, rules and tools, and its own session; only the model changes, passed to each profile
run as -m and --provider, with the chat's speed (/fast) as HERMES_SERVICE_TIER (a Hermes that does not
read it runs the profile at its own speed). The roles file, the profiles and Hermes' settings stay as they are,
so the next run uses each profile's own model again. Kanban cards run on their profile's own model.
With /cpipe-kanban <task>, each handed-over step becomes a card assigned to its profile and run by the board's
dispatcher, so the work shows on the board. A card that ends blocked, times out, or is not picked up within 10
minutes counts as a failed role. The run only ever touches cards it created.
Without a flag, the issues of one task are delivered in the chat, one after another, so the role sessions carry
over and two issues that belong together can share a delivery. With /cpipe-parallel <issues>, or when you ask
for parallel in words, each issue gets a lane, one issue included: a Hermes sub-agent of the chat
(delegate_task) named Lane <n> · <issue>, which runs in the background, shows inside the chat, where you open
it to watch its activity, and stays out of the session list (role sessions stay hidden too). The chat is only a
status monitor and delivers nothing itself: a delivery it was already running becomes a lane that continues its
run. It starts lanes, posts each lane's report as it arrives, and writes a summary once every lane has reported.
- The chat finds each issue's repository once and hands it to the lane. When the chat is not in that repository, a candidate counts only when its own remote holds the branch the task branches from; the task's issues decide between candidates that do.
- Up to four lanes run at once (name another number in the task, at most Hermes'
max_concurrent_children); the rest start as lanes finish. Hermes' delegation config sets each lane's turns and time (delegation.max_iterations,delegation.child_timeout_seconds). - A lane runs on the model Hermes gives sub-agents. When that is a pinned
delegation.modelrather than the chat's own, the chat posts a⚠️ reminder at the start: with Advanced Delegation's profile routes and no default profile, lanes run on the chat's model. The reminder never stops the batch. - A lane runs each role step in the background and waits on it with one foreground command of up to 390 seconds
(
bin/wait.sh), so a long step is never cut off by Hermes' limit on one tool call and a lane spends one short reply per wait, whatever terminal timeout the user's config sets. - A lane that stops before its report (a turn or time limit, a crash, the chat stopped) is started again and continues its run from its files; one that stopped within five minutes waits ten before it is resumed.
- Steering for a lane goes to its
inbox.md, which the lane reads at each step. - A lane's run can be continued by hand in a chat of your own: that chat takes the lane over, the dispatcher no
longer starts it, and posts the run's
report.md. To take over a lane that still runs, tell the dispatcher: it stops the sub-agent and the role steps it started. - Lanes and role steps run where Hermes asks no one for an approval and blocks the command at once. They edit with file tools and run scripts from files, so nothing needs one; a blocked command is done that way instead of retried. An action that needs you in itself is named in the lane's report, and you approve it by continuing the lane's run in a chat of your own, where Hermes can ask.
cpipe.py lanes <batch dir>reads each lane's state from its files, so a lost notification loses nothing:/cpipe-continuepicks every lane up again.- Heavy jobs (installs, large test runs, builds) from all lanes take turns on the machine.
cpipe sets the order of the steps; your skills say how a step is done. At each step it does itself, the chat looks for one of your skills that covers that work (commit messages, pull-request content, code review, security review, UI design, testing a web app, a project's conventions) and follows it over cpipe's defaults, including its scripts and checks. cpipe's guard rails still apply: a skill never authorizes a push, merge or message the task did not ask for.
The project's agent and contributor instructions (AGENTS.md, CLAUDE.md, CONTRIBUTING.md, the README's
development section) win over cpipe's steps where they conflict, apart from the guard rails. Branch names,
worktree locations, commit conventions and check commands follow the project.
The run reports only once the work is finished: findings fixed and proven, CI waited for when a pull
request was asked for. It is written to the run folder's report.md and posted word for word once
cpipe.py report <run dir> --check passes: the status line and Proof facts kept, every section and cell written,
so it reads the same way every time. It is short, one line per row, and complete:
- Status line:
✅ Done,✅ Done, test by handor⚠️ Done except …; for a review,✅ Approvedor⚠️ Changes needed. - Summary: two to four lines. For a bug, what happened, the cause and the fix; for a feature, what was added and how; otherwise before, after and why.
- Test it: the app left running from the worktree when there is something to see or use, plus only what this machine could not verify, with steps and the expected result. Every QA gap is listed here.
- Before and after: QA's screenshots or output for each change you would see, shown in the chat.
- Needs attention: whatever is not simply done: a role that failed and who did its part instead, open or noted findings, baseline failures, limits, follow-ups, each with a recommendation.
- Proof: one line each for the tests (RED → GREEN), the checks, QA, the review (fixed findings named) and the rest of the eleven steps.
- Where to look: the two or three
file:linespots a reviewer should read first, and why. - Risk: what else reaches the changed code, how to roll it back, and what the confidence rests on.
- Approach: up to four choices a reviewer would question and each assumption, with why and what was avoided.
- Run graph: a flow chart of the whole run: each step and round with its role, minutes and result, fix
rounds as arrows back, and retries, interruptions and stalls in red. The run folder also gets
run-graph.html, which shows the flow and a timeline per role in any browser. A chat app that renders structured views (graphs, workflows) gets the run graph as one of those instead of a chart's source. - Cost: minutes and measured usage since capture, by profile, model, provider and task: non-cached input, cache reads, cache writes, output and calls. Model-ledger rows separate main and auxiliary tasks without double counting. Setup captures private baselines; resumed roles keep their existing baselines. Missing attribution is marked partial, and older runs without capture are labeled lifetime selection, not exact run usage. Counters are not a provider bill or a claim of token savings.
- Details: one line: branch, commit, pull request, files, skills, learnings.
When Needs attention holds work for later, the report ends with a yes-or-no question for each separate piece of it: each yes adds its own unassigned card to your kanban board, so nothing runs it until you assign it. Only in your own chat, never in a lane or a scheduled run.
What went as planned is a count, not a row, so the report reads in about a minute. It never asks you to fix, install, run, review or verify anything the run could have done itself.
Example report
✅ Done, test by hand: invoices keep their discount after an edit
What happened: editing an invoice dropped its discount. Cause: `updateInvoice()` rebuilt the line items
without the discount field. Fix: the update merges into the stored invoice instead of replacing it.
## Test it
App: http://localhost:3000 (worktree ../app-worktrees/fix-invoice-discount)
| # | What to check | How | Expected |
| 1 | Discount survives | open an invoice with 10% off, edit, save | still shows 10% off |
## Needs attention
| What | Why it matters | Recommended |
| 2 date tests fail on the base too | same names before and after | a separate fix; not this change |
## Proof
✅ Tests: the bug reproduced; 2 new tests RED → GREEN
✅ Checks: lint pass · typecheck pass · 412 tests pass, 2 baseline
✅ QA: 4/4 on the running app; the invoice list unchanged
✅ Review: 1 fixed (bulk edit had the same overwrite), 1 noted
✅ Steps 1–11; — 3 Design: nothing user-facing changed
## Where to look
| Where | Why |
| `src/invoices/update.ts:58` | the merge that replaces the full overwrite |
| `src/invoices/bulk.ts:21` | now goes through the same update |
Risk: 2 routes, 1 import job · Rollback: revert the commit · Confidence: tests and QA; import job by tests only
## Approach
| Choice | Why | Instead of |
| Fix in `updateInvoice()` | every edit path calls it | a fix per caller: bulk edit stays broken |
## Cost
Time: 34 min
| Who | Model | Tokens | Cached |
| build builder | sonnet | 0.7M | 74% |
| review reviewer | opus | 0.2M | 65% |
| plan, QA this chat | opus | 0.2M | 66% |
| **Total** | | 1.1M | 71% |
Details: fix/invoice-discount · a1b2c3d fix(invoices): keep the discount on edit · 3 files +41 −9
| Path | Holds | Committed |
|---|---|---|
~/.hermes/cpipe.yaml |
The roles and the default budget, written by you or /cpipe-budget |
— |
<repo>-worktrees/<branch>/ |
The delivery worktree, beside the repository (or where the project's instructions say) | The delivery commit only |
$TMPDIR/…/base/ |
A worktree of the base commit for the baseline, removed at the report | — |
<git-dir>/cpipe/run.md |
The run log: rounds, workarounds, findings | Never |
<git-dir>/cpipe/plan.md |
The plan, the builder's instructions | Never |
<git-dir>/cpipe/now.md |
Your instructions, the current step, running processes, roles and skill rules; read to resume | Never |
<git-dir>/cpipe/track.json |
The run's checklist (each step's Done when, your instructions, the merge conditions), each item closed with its evidence | Never |
<git-dir>/cpipe/results/ |
Each check's failing names on the base and the change, as JSON, for the comparison | Never |
<Hermes root>/cpipe/active/ |
Which sessions are running a delivery, so their rules are pinned; removed at the report | — |
<git-dir>/cpipe/logs/ |
Long command output | Never |
<git-dir>/cpipe/brief-<role>-<round>.md, <role>-reply.md |
Briefs to profiles and their long replies | Never |
<git-common-dir>/cpipe/lessons.md |
The project's lessons, shared by all its worktrees | Never |
~/.hermes/cpipe/learnings/<step>.md |
Your learnings per step, and general.md for how you work; retired.md holds retired ones |
— |
~/.hermes/profiles/<name>/cpipe/learnings/<step>.md |
Optional learnings specific to one profile | — |
~/.hermes/cpipe/history.jsonl |
One line per run and per miss, for the measured confidence | — |
Only when you ask for it, in the task or later:
- merging, pushing, opening a pull request, deploying or messaging anyone;
- reformatting files or the repository beyond the lines the change touches.
Never:
- editing your own checkout, other branches or other worktrees; scope that has to grow is named in one line;
- destructive commands outside the delivery worktree, apart from removing cpipe's own merged worktrees;
- skipping, weakening, deleting or marking as expected-failure a test to make a check pass;
- reporting a check as passed that was not run and read on the current tree;
- credentials, tokens or secrets in code, commits, logs, briefs or the report, or
.envcontents in the chat; - AI attribution in commits or pull requests;
- changes to your Hermes profiles, config, skills or plugins.
The main skill keeps the flow, user contract and safety rules in context. Detailed waiting/recovery procedures
and helper syntax load from lifecycle.md and facts.md when needed. Role follow-ups reuse their session and
read the current acceptance contract and instructions rather than starting exploration again.
Checks can use bin/check.sh to save full logs and print a short tail while preserving the actual exit status.
The checklist distinguishes code that is implemented from an outcome verified as done. A not-verified
item requires a concrete machine limitation and stays visible in the final report as an exception; missing CI
records are not reported as green. These distinctions do not remove QA or independent review.
flowchart LR
U["You"] -->|"/cpipe task"| P["__init__.py<br/>registers the skill and the command"]
P -->|injects the task| C["Chat model<br/>runs the flow"]
C -->|loads step by step| K["skills/run<br/>flow, steps, playbooks, roles"]
C <-->|appends, resumes| L[("Run log")]
C -->|commands| W["Delivery worktree<br/>the project's checks"]
C -->|briefs| R["Your profiles<br/>direct or kanban cards"]
C -->|diff only| V["Reviewer<br/>did not write the code"]
C -->|report| U
The plugin's code only registers one skill and the /cpipe command, which injects the task into the chat with the
instruction to run the skill, plus a one-line reminder on any message you send while a run is going, so the model
treats it as steering and keeps the run moving, and a system prompt section that pins the run's rules, instructions
and open checklist items in every session of the run. It renders text and decides nothing. Everything else (the
flow, the decisions, the recovery) is skill text that the model follows with the tools it already has.
cpipe/
├── plugin.yaml manifest
├── __init__.py registers cpipe:run, /cpipe, the mid-run reminder and the pinned rules
├── AGENTS.md rules for changing cpipe
└── skills/run/
├── SKILL.md the flow, unattended rules, run log, limits, guard rails
├── lifecycle.md detailed waits, steering, notifications and turn-limit recovery, loaded when needed
├── facts.md helper syntax and evidence rules, loaded when needed
├── roles.md handing steps to profiles
├── kanban.md --kanban: role steps as cards on the board
├── spec.md the spec: your words and plan, ❓ questions, --spec, proof per line
├── continue.md continue and restart of a run
├── learning.md where learnings live, how they are read, written and retired
├── contract.md the rules pinned in the system prompt while a run is going
├── bin/cpipe.py facts: check results, comparison, checklist, gate, report skeleton
├── parallel.md --parallel: one sub-agent per issue, reporting to the chat
├── header.md the working rules in front of every role brief; a stance for a role with no profile
├── bin/step.sh runs one role session from its brief, under the time limit
├── bin/check.sh captures a check's log and returns its real exit status
├── bin/limit.pl the time limit and low priority of every background job
├── bin/tick.sh the progress tick of a long wait
├── run-graph.html page template that draws the run graph
├── guides/ui.md how a screen looks, when you have no UI design skill
├── steps/ one file per step, loaded when the run reaches it
│ ├── setup.md worktree, installs, baseline in a base worktree, time limit, tidy-up
│ ├── plan.md explore, decide, plan
│ ├── design.md design
│ ├── build.md build and clean
│ ├── verify.md checks, workarounds, fast checks, completion gate
│ ├── qa.md QA on the real surface
│ ├── review.md independent review and dispositions
│ ├── publish.md commit, pull request, CI, merge
│ └── report.md finish and the report
└── playbooks/ proof per task kind
├── bug.md feature.md refactor.md chore.md
└── port.md hotfix.md review.md
Will it ask me anything? No. Open questions become assumptions with a reason each, listed in the report's Approach table. If one is wrong, reply after the report; the follow-up reuses the same worktree.
Will it push, open a pull request or merge? Only when you ask, in the task or later. Asking it to fix an existing pull request ("make sure there are no regressions") pushes the fixes to that pull request. With a pull request it pushes the branch, opens a draft, and waits up to 30 minutes for CI, fixing failures the change caused. Asked for a draft on the first commit, it opens the draft right after the first verify and pushes each later round to it. With a merge ("merge it if there are no regressions") it merges once every check is pass or baseline, no new test fails by name against the baseline (checked again after updating onto a moved base), no review finding or QA item is open, CI passes and your conditions hold; a failed condition is fixed first, not handed back. A skipped CI job, or one that fails on the base commit too (such as a job that never started), is not the change's failure and never holds the merge.
Where does the work happen? In a new worktree and branch beside your repository, created from the base. Your checkout is never edited. Merged cpipe worktrees are removed by later runs; the branches stay.
The run went quiet. What now?
Send /cpipe-continue. It reads now.md and the run log and picks up at the first unfinished step without redoing finished
ones, using the results of profiles and checks that kept running in the meantime.
Can I steer it mid-run? Yes. A message mid-run is steering: its instructions join the run's contract, it gets a one-line answer, and extra work joins the plan or waits for a follow-up after the report. A request such as "change the PR title" is done inside the run, and the run continues in the same reply. Setting up your own testing ("start the app", "bypass the password locally") is done right away in the chat, the way you said.
Several issues in one task? Each issue is its own delivery with its own branch, worktree and commit, run one after another (or one lane each when you ask for parallel) and reported together. The role sessions carry over between deliveries, so the code is read once per run.
Which languages and frameworks does it support? Any. It uses the project's own install, test, lint, typecheck and build commands, found in its scripts, instructions and CI workflow.
Do I need profiles?
No. Without cpipe.yaml, build, QA and review run in fresh sessions on the chat's own model. A profile lets a
different model or setup take a role. A review profile makes the review independent of the builder's model. A
plan profile lets planning run on a different model from building.
Can two runs share a machine? Yes, in different chats. Installs, test runs and builds from every run on the machine take turns, one at a time, and every background job runs at low priority, so your own work stays responsive.
cpipe is skill text first; AGENTS.md holds the rules for changing it:
- Skills drive the flow.
__init__.pyonly registers and adds context. No code decides the next step, calls a model or stops a run; change the skill text instead. - Keep going. A change never adds a reason to stop or a message that asks the user to fix or run something.
- No tool lock-in. Describe a capability ("a code index, if you have one"), never a specific tool, server, skill or model.
- Repository-agnostic. No repository-, client- or person-specific names, paths or rules.
- Skill format. A description of at most 60 characters ending in a period; long material in a file beside
the skill, loaded with
skill_view.
Keep version in plugin.yaml and skills/run/SKILL.md in step, and run hermes plugins validate . before
opening a pull request.