By the end of this guide you’ll have a concrete Maxxwell workflow where multiple coding agents work across several repos, all aligned to one feature goal.
By the end of this guide you’ll have a concrete Maxxwell workflow where multiple coding agents work across several repos, all aligned to one feature goal instead of dragging your attention in twelve directions.
You’ll set up:
If you want a deeper argument for why herded workflows beat unmanaged “herds of agents”, see the companion piece: Herd vs herded coding agent workflows: impact on developer attention.
You’ll get the most value if all of these are true:
Tooling prerequisites:
docs.maxxwell.dev.git clone [email protected]:your-org/web-app.git
git clone [email protected]:your-org/payments-api.git
git clone [email protected]:your-org/events-service.git
If you skip this, you get exactly the failure you already know: three agents all doing slightly different interpretations of “add refunds”. Herded means one feature goal, spelled out.
Create a feature-brief.md in a small control repo or a notes/ directory:
Feature: Billing portal refund flow
Goal:
- Add refund initiation UI in web-app
- Add refund endpoint in payments-api
- Add audit event emission in events-service
Success criteria:
- UI can request refund for eligible charges
- API validates permissions and idempotency
- Audit event appears in logs for successful and failed attempts
- All repos pass tests and CI is green
In-scope repos:
- web-app
- payments-api
- events-service
Out of scope:
- No new payment processor integration
- No historic backfill
- No changes to existing settlement logic
Owner for final integration:
- @you (Tech lead)
Why this matters
Common failure here
Make the brief concrete enough that a senior dev could implement the feature without a meeting.
Multi-repo Maxxwell workflows work best when each worker owns one lane, not “help wherever”.
Create a lane map in the same brief file or a separate lanes.md:
Lane map for: Billing portal refund flow
Lane A (UI):
- Repo: web-app
- Responsibility: UI changes for refund initiation
- Depends on: API contract from payments-api
Lane B (API):
- Repo: payments-api
- Responsibility: Refund endpoint, validation, idempotency
- Defines: API contract for web-app and events-service
Lane C (Audit):
- Repo: events-service
- Responsibility: Consume refund events and emit audit logs
- Depends on: Event schema from payments-api
Lane D (Integration):
- Repo: web-app + payments-api + events-service
- Responsibility: End-to-end tests, wiring, sanity checks
- Depends on: Lanes A-C being green
Why this matters
When every lane has one repo and one responsibility, you avoid:
Common failure here
Now you create a single orchestrator seat in Maxxwell. This is a real coding-agent session whose output you read and answer, instead of juggling all workers directly.
In Maxxwell:
orchestrator: refund-flow.feature-brief.md).You are the orchestrator for the "Billing portal refund flow" feature.
Your job:
- Keep one worker per lane as defined in lanes.md.
- Maintain scope according to feature-brief.md.
- Ask me only for:
- Cross-repo contract decisions
- Risky changes (data model, security, money movement)
- Merge or rollout decisions
How to work:
- When you want to start a worker, draft the exact instruction I should send to that worker session.
- Never run git commands, shell commands, or agent controls yourself. Draft them instead.
- Summarize each lane frequently in this format:
- Lane A (web-app): [state] - one-line summary
- Lane B (payments-api): [state] - one-line summary
Valid states:
- working
- idle
- waiting on you
- needs sign-in
- blocked (name the dependency)
- done
- dead (explain why)
- not heard from
If you think a lane is stalled, say "possibly stalled" in the summary, but do not guess the reason.
Maxxwell will run this orchestrator with whatever model you configure (Claude, Codex, etc.) as a normal coding agent.
You now talk to this session, not directly to each worker, for most coordination.
Common failure here
Keep the orchestrator focused on planning, assignment, and reporting, not implementation.
Next, you create actual worker sessions. In Maxxwell, each worker is just your usual agent (Claude, Codex, Cursor agent, etc.) running in a real terminal session. Maxxwell does not wrap or replace them; it manages them.
Create one session per lane, for example:
worker: lane-a web-appworker: lane-b payments-apiworker: lane-c events-serviceworker: lane-d integrationFor each worker, start from a concrete, copyable prompt.
Lane A (web-app UI) worker brief:
You are the UI worker for the "Billing portal refund flow" feature.
Repo: web-app
Scope:
- Implement a refund initiation UI in the billing portal.
- Use the refund API contract that payments-api defines.
- Add tests for the new UI behavior.
Out of scope:
- No changes to non-billing sections.
- No design system overhaul.
When the refund API contract is unclear, stop and ask for clarification instead of guessing.
When you finish a coherent chunk of work, summarize what changed and the tests you added.
Mirror this pattern for the API and audit workers, adjusting repo and scope to match lanes.md.
How to link orchestrator and workers
In the orchestrator session, tell it the worker names and roles:
Workers available:
- "worker: lane-a web-app" - UI
- "worker: lane-b payments-api" - API
- "worker: lane-c events-service" - Audit
- "worker: lane-d integration" - End-to-end
When you want work done in a lane, draft a message I can paste into that worker's session.
Common failure here
Maxxwell’s main value is attention management: many sessions, one window, each marked with a state. You use that to decide where to look next.
Every session carries a readable state, e.g.:
workingidlewaiting on younot startedneeds sign-inblockeddonedeadnot heard fromThese states show in the fleet view. Maxxwell never lies: if it hasn’t heard from a session it says not heard from, not “working”.
Practical pattern:
working and look for the next one that is waiting on you.waiting on you and let that be an explicit queue item.For the orchestrator, ask it to keep a text-based mirror of these states in each summary:
Every 15-20 minutes, summarize lanes like this:
- Lane A (web-app): working - refining refund modal interactions.
- Lane B (payments-api): waiting on you - needs contract decision for POST /refunds route.
- Lane C (events-service): blocked on Lane B - needs final event schema.
- Lane D (integration): not started.
Now your attention loop is trivial:
needs sign-in or waiting on you flags.blocked lanes and clear dependencies in priority order.working outputs for deeper review.Common failure here
Stay disciplined: act on states, not on which tab you last touched.
One of Maxxwell’s distinctive properties: fleet controls draft rather than act.
Anything that would change the fleet (e.g. stop a worker, spawn a new one, send a cross-session command) writes a fully formed, unsent sentence into the composer. Nothing happens until you hit Enter.
Use this deliberately:
Example decision cycle:
You (to orchestrator):
We’ll require "reason" and "amount" fields for refunds. Draft updates for:
- Lane B: API contract change + validation.
- Lane A: UI to collect these fields.
- Lane C: audit event payload including reason and amount.
Orchestrator (reply):
Here’s what to send to Lane B...
Here’s what to send to Lane A...
Here’s what to send to Lane C...
You review each, then send them to the respective workers.
Why this matters
This matches Maxxwell’s stance: it conducts, it doesn’t fly the plane.
Common failure here
As workers finish their lanes, you need to integrate and shut things down without killing useful context.
Integration lane setup
In worker: lane-d integration, use a prompt like:
You are the integration worker for the "Billing portal refund flow" feature.
Your job:
- Pull changes from web-app, payments-api, and events-service branches for this feature.
- Run tests and basic end-to-end flows.
- Report:
- What passes
- What fails
- The minimal steps to reproduce failures
Do NOT merge to main or push to production. Draft the commands and steps; I will run them.
You run the actual git and CI commands.
Sessions outlive the app
Maxxwell’s sessions outlive the app: quitting the desktop app detaches, it never kills workers.
That means:
At the end:
done once their changes are merged to the feature branch.done.Common failure here
Use Maxxwell’s dead or done states when you genuinely intend to end a lane. Don’t rely on closing windows.
Here’s a compressed checklist you can tape next to your monitor:
feature-brief.md with scope, success, out-of-scope.lanes.md with one repo per lane.orchestrator: <feature> session on the brief repo.needs sign-in → waiting on you → blocked → working.done, leave sessions alive until you’re confident you’re finished.This is a herded Maxxwell workflow: explicit goals, explicit lanes, explicit states, and one orchestrator seat that lets you run multiple coding agents without becoming the bottleneck.
Start with one worker per repo involved in the feature. For the example above, that’s 3-4 workers plus the orchestrator.
If you go beyond that, your attention becomes the constraint again. Some teams find 4-6 total sessions (including the orchestrator) is the sweet spot before they need stricter rules.
Maxxwell will show that session as not heard from or overlay possibly stalled.
When that happens:
blocked with a named dependency.Maxxwell does not automatically restart or compact bloated sessions, so you do this manually.
Use three guardrails:
feature-brief.md with explicit out-of-scope items.If you see drift, update the briefs and tell the orchestrator to restate scope to the affected lane. Maxxwell won’t auto-correct drift for you.
Yes. Workers in Maxxwell are your own unmodified tools running in real terminal sessions.
You can:
This is deliberate: your tools stay yours, and Maxxwell does not hide the real terminal behind a wrapper UI.
Your tmux scripts probably give you parallel sessions already. Maxxwell adds:
If your pain is “I have eight tmux panes and I am the slowest part of this”, Maxxwell addresses that attention bottleneck directly.