Skip to content

Plan Pipeline: how fanout coding works

State as of 2026-11-21

Every plan now runs as one agent session. Plans with planItems (many small isolated agents, one per item) are no longer accepted. Item plans that were already running finish as before. This page replaces the old item-plan runbook.

You decide what to build and why. One agent session builds it across every repo, answers every review, tests it on dev and fixes what it finds, then hands it to a QA engineer. Your time goes into decisions, reviews and refinement, not into writing the code.

What is better now

  • One agent knows the whole plan. It builds every repo of a plan with one memory, so the backend, the frontend and the data work fit together. No more isolated agents that never saw each other's work.
  • Agents have every CRED skill. Both you and the agents load the same cred-skills plugin: db migrations, GraphQL federation, frontend safety patterns, PostHog analytics, Playwright tests, ClickHouse sync, CRM integrations, notifications, and more. The skills a repo needs load for it automatically.
  • The same agent answers its own reviews. cred-rabbit's findings, your comments and merge conflicts go back to the agent that wrote the code. It fixes them and replies with what it fixed or kept and why.
  • Real refinement on dev. After merge, the agent signs in to dev as a test user and uses the app like a customer. It drives every flow and each kind of input, makes real writes at the smallest credit spend, and checks the network answers and the data. It also tries to get protected data for free. It fixes what it finds in a new PR, with screenshots of each problem and a test that failed first, and posts a report each round.
  • Better plans. Plans state every decision, check field names against the real schema, list every read path of protected data and every user flow, and tie each acceptance criterion to a decision.
  • You stay in the loop in Slack. One DM thread per plan. It asks only real decisions, and your reply goes straight to the same agent.
  • QA gets a clear hand-over. When refine ends, a QA engineer is assigned on the Linear epic, with steps to test each flow and the evidence so far.
  • Cheaper and calmer. No reviews or builds of half-done work (PRs stay drafts while the agent works), no empty turns, and memory that compacts as it grows.

The flow at a glance

flowchart LR
  A["1. Install the<br/>cred plugins"] --> B["2. Write a session plan<br/>(create-plan skill)"]
  B --> C["3. Plan PR:<br/>validator + cred-rabbit"]
  C --> D["4. Merge the plan"]
  D --> E["5. One agent session<br/>builds, opens one PR per repo"]
  E --> F["6. Reviews go back<br/>to the same session"]
  F --> G["7. You merge the PRs"]
  G --> H["8. Refine rounds on dev<br/>(up to 7 per version)"]
  H --> I["9. Hand-over to QA<br/>(Linear epic)"]

1. Install the cred plugins (once)

All CRED skills now ship in two Claude Code plugins in credinvest/cred-fanout. Install them once; every Claude Code session then has them.

/plugin marketplace add credinvest/cred-fanout
/plugin install cred-skills@cred
/plugin install cred-team@cred

Restart Claude Code after you install. To get new versions later:

/plugin marketplace update cred
Plugin What it gives you
cred-skills The coding skills the agents use, per repo: ponytail, plan-refine, db-migration, frontend-safety-patterns, federate-graphql-entity, posthog-analytics, playwright-ui-test-authoring and more.
cred-team The agents' working rules, loaded at session start, and the create-plan skill that writes session plans.

The repo is private, so the install uses your GitHub credentials.


2. Write a session plan

In Claude Code, say "plan this" or "create a plan for COM-…". The create-plan skill:

  1. Settles every decision with you first, one point at a time. The agent that builds the plan never guesses; anything left open becomes a wrong guess.
  2. Researches before it writes:
    • checks every field name against the real schema (Postgres, BigQuery, Elasticsearch, GraphQL) and cites it;
    • finds every read path of anything the plan protects (list, by-id, sidebar, detail page, export, counts, search, quotes, API);
    • lists every user flow the plan changes, with each input kind.
  3. Writes the plan to plans/<slug>/v<n>.md in plan-and-design-repo, from templates/plan-template.md (templateVersion: 8, execution: session).
  4. Runs a self-check and the validators, shows you the draft, then opens the plan PR.

The ten sections of a session plan

# Section What goes in it
1 Goal The customer goal: who uses it and what measurable success is.
2 Decisions D1…Dn: the rule, a worked example, the reason, the rejected alternative. No open questions.
3 Current state What exists now, with file:line, tables and known bugs; what to reuse.
4 Data and access contract Every field read or written, with its exact name and source; what is protected, paid or hidden; every read path and how each one hides it.
5 User flows Each changed flow, its entry point and every input kind. The refine rounds test this list.
6 Technical execution plan Ordered steps per repo: files, change, the test that must fail first. Merge order, migrations, flags. Ends with a Proof: paragraph.
7 Do not change Contracts, prices, flows and other teams' decisions that stay as they are.
8 Acceptance criteria AC1…ACn, each citing its D-numbers and how to check it on dev. One abuse case per protected thing: "a user cannot get X for free via Y".
9 Verification The dev test user and workspace, the smallest dev credit spend, screenshots, data checks. Never prod.
10 Rollout and risks Flags or kill switch, backfill, cost, rollback.

A worked example is in plan-and-design-repo at examples/session-plan-v8-sample.md.

Why these sections

The Data and access contract and the User flows exist because of real misses: locked data leaked through read paths no plan listed, a wrong field name shipped because nobody checked the schema, and some filter types went untested.


3. The plan PR

Check What it does
Plan validator (Plan Review workflow, no AI) Requests changes when a section is missing, an AC cites no decision, a target repo has no file path, or the plan has planItems.
cred-rabbit The one AI reviewer. On a plan PR it reviews against the plan-review skill: unchecked field names, missing read paths, ACs with no dev check.

Fix the findings, get a person's approval, make sure the PR has the run-fanout label, and merge. Merging starts the session.


4. The session builds the plan

  • One session per plan, with one memory for the whole life of the plan, across every version. A v2 of the plan continues the same session; it does not start blank.
  • The session runs in turns. Each turn is one pod on GKE. It resumes the same conversation, does the work, pushes, and stops. A new turn starts when there is something to do: a review, your message, a merge, the next refine round.
  • It works on one branch per repo, plan-session/<slug>-v<n>, and opens one PR per repo. It can use subagents, one per repo at a time.
  • While a turn works, its PRs are drafts: its checkpoint pushes (every 5 minutes) start no review, CI run or preview build. At the end of a finished turn the PR is marked ready once, and cred-rabbit and CI run on finished work.
  • It never adds or removes PR labels.

Talking to the session

The session has one Slack DM thread with the plan owner. It posts when it starts, when it opens a PR, each refine round and when it is done. When it needs a real decision it asks there; reply in the thread and the same session wakes up with your answer. With no answer in 6 hours it decides on its best judgement and tells you what it chose.

You can also write in the thread any time (up to 30 days after it is done) to ask for a change.


5. Reviews go back to the same session

  • cred-rabbit reviews every PR when it is marked ready. Findings are labelled review:blocking.
  • Every review, comment, merge conflict and @cred-author-agent mention on a session PR goes to the same session, never to a separate resolve agent. At its next turn the session fixes each finding, writes an "Author reply" (fixed / kept, with reasons) and updates the PR.
  • A clean "no issues found" review wakes nothing, so it costs nothing.
  • You merge. A PR cannot merge until cred-rabbit's review is clear. If you merge while the session still has work for that PR, its next turn moves the work to a new follow-up branch and opens a new PR.

6. Refine rounds on dev

When every PR is merged and dev serves the merge (the backend dev deploy, plus the real Vercel build), the same session starts refine round 1. Each round follows the plan-refine skill:

  1. Builds a test list from the plan's User flows, Data and access contract, acceptance criteria and the merged diff.
  2. Drives every flow on dev in the browser as the dev test user, with real writes at the smallest credit spend, and checks the network answers and the data.
  3. Tries to get protected data for free: forged page cursors, other read paths, filters inside filter groups, exports, other sorts, counts and quotes.
  4. Judges the UX and improves what is clearly weak.
  5. Fixes in a refine PR, with a "What was wrong and how it is fixed" section, screenshots and a test that failed first.
  6. Writes a round report (βœ… / ❌ / ⚠️ with evidence), posted on the plan PR and in Slack.

The refine PR goes through the same review loop. When it is merged and on dev, the next round starts. A plan version gets up to 7 rounds. Refine stops when everything is green, when only items for a person are left, or at the round limit. A new plan version starts again from round 0 and tests every decision it keeps.


7. Hand-over to QA

When refine ends, the plan goes to a person:

  • The session's QA note is posted on the plan's Linear epic: what changed, each flow to test on dev with steps and the expected result (including the abuse cases), the evidence, the open items, and the test setup.
  • The QA assignment picks a QA engineer from the QA pool, adds the QA Assigned label and posts the checklist from the plan's acceptance criteria. If nobody is free, the QA manager is told.
  • The owner gets a note in the Slack thread.

Run many plans at once

  • Each merged plan gets its own session, so you can run several plans in parallel. Write the next plan while the last one builds or refines.
  • Sessions share the agent pool with the rest of the fanout work. When the pool is full, a session waits a few minutes and tries again; it never loses its place or its memory.
  • Your time goes where it matters: deciding (the plan), reviewing (the PRs and the refine reports), and refining (replies in the Slack thread, or a new plan version when a decision changes).

What it costs

  • The agents run on the fanout OAuth pool. There is no turn cap or spend cap per plan.
  • A turn re-reads the session's memory, so the session compacts its memory when it grows past about 150k tokens, at each new plan version and at each refine round.
  • Write complete plans: a decision you settle up front is cheaper than a review round or a new version.

Quick reference

You want to… Do this
Start new work Say "plan this" in Claude Code (cred-team create-plan), merge the plan PR with run-fanout.
Change a decision Write v<n+1> of the plan (same slug, supersedes: <n>). The same session continues.
Answer the agent Reply in the plan's Slack DM thread.
Ask for a change after it is done Write in the Slack thread within 30 days.
See what it tested The round reports on the plan PR, and the screenshots in the refine PRs.
Get the latest skills /plugin marketplace update cred.