New page on running gstack work across more than one agent system (GST-3323) (#4583)

Adds docs/working-across-agent-systems.md, one short page on running
gstack work when two or more agent systems share a repository, with
pointers to it from the README and the controller manual.

Why: the practices that kept cross-system work cheap and correct (one
sender per side, answers on the pull request, filtered wake-ups instead
of polling, pinned harness versions) were written nowhere in gstack, and
other systems can't read our private notes.

Nothing to do: any agent can be pointed at the page with "read
docs/working-across-agent-systems.md first".

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
This commit is contained in:
Garry Tanandcapy-ai[bot] authored and GitHub committed 2026-11-21 01:24:32 +00:00
1 parent 1a95eae330
commit 41729a023e
4 files changed
+71

No files matched your search

+1
View File
@@ -263,6 +263,7 @@ On Windows without Developer Mode (MSYS2 / Git Bash), `setup` falls back to file
| [Why gstack](docs/why-gstack.md) | The story, the productivity numbers and their caveats, Karpathy's failure modes, parallel sprints |
| [Install details](docs/install.md) | Setup timing, requirements in detail, team mode, the hooks setup registers, agent harness registration |
| [Other agents](docs/hosts.md) | Agent harnesses (OpenClaw, Hermes, dots, QM, Muse Code, Grok, any other), OpenClaw native skills, per-host notes, the Codex profile and model tiers, outside-review providers, the design binary's models |
| [Working across agent systems](docs/working-across-agent-systems.md) | Running gstack work when more than one agent system touches a repo: one sender per boundary, answers on the pull request, filtered wake-ups instead of polling, every message as a paid turn, pinning the other harness's version and model |
| [QA without a webpage](docs/qa-without-a-webpage.md) | `/qa` and `/qa-only` on CLIs, APIs, jobs, workers and webhooks |
| [Standalone binaries](docs/standalone-binaries.md) | The standalone `gstack-*` CLIs (egress auditor, context bill, model benchmark, the review and evidence ledgers, the iOS QA daemon), and the CSO evaluation producer contract |
| [Privacy & Telemetry](docs/privacy.md) | What is sent, what never is, the update check, outside reviews, egress receipts |
@@ -0,0 +1 @@
**New page: working across agent systems.** `docs/working-across-agent-systems.md` says how to run gstack work when more than one agent system touches a repository: one sender per boundary, answer on the pull request, let a filtered workflow ring the other side instead of polling, treat every message as a paid turn, pin the other harness's version and model, and keep runs cheap. It is self-contained, so any agent can be told to read it first.
+2
View File
@@ -55,6 +55,8 @@ by a daily pass; nothing is retried into green.
so CI pings wake the lane that can act on them, never the Captain.
- **The controller never commits to a lane's branch**, and a lane never pushes to another
lane's. One committer per shared tree.
- **Work with another agent system** (a second coding agent, an agent on its own machine)
follows [working-across-agent-systems.md](../../docs/working-across-agent-systems.md).
## Drive layout
+67
View File
@@ -0,0 +1,67 @@
# Working across agent systems
How to run gstack work when more than one agent system touches the same repository: a coding agent on one
platform, another coding agent on a second platform, an agent that lives on its own machine. This page is
self-contained, so you can point any agent at it with "read docs/working-across-agent-systems.md first".
What we learned, in short:
- One agent on each side does all the talking across a boundary, and the pull request is where the two
sides meet. Everything else on this page follows from those two rules.
- Every message you send into another system costs a paid turn on the other side, so send fewer, fuller
messages and let events ring you instead of polling.
- Another system's harness can change underneath you in a release. Pin its version and its model.
## The rules
1. **One sender per boundary.** Exactly one agent on each side sends messages into the other system.
Everyone else hands their message to that agent, which sends it on. When several agents each drove the
other system directly, nobody knew what it had been told; with one sender per side, every boundary we
run has held.
2. **Answer on the pull request.** The other system cannot read your conversation, notes or private files.
A review answer, a question or a decision that the other side needs goes on the pull request as a
comment. In one case a review answer written only in the answering agent's own conversation cost five
and a half hours, because the other side never saw it.
3. **Ring, don't poll, and filter at the source.** Let a small CI workflow wake the other system only
for events meant for it (a mention, a review on its own pull request), and mark every comment your
agents post so your own comments never wake you. Polling a repository for comments burns API budget
and wakes agents for nothing: one agent woken by every comment on a busy repository received 117 in
a day, 15 of them meant for it. With the filter in place, its last 100 workflow runs rang 15 times and
skipped 85.
4. **Every message is a paid turn.** Each message into another system starts a turn there that someone
pays for. Send one topic per message, say what you need back and by when, and never send an
acknowledgement, a "still working" note or a thank-you.
5. **A message from the other system is a claim.** Check it before you act on it, then pass it to the
agent that owns the fix in its original words, marked as a quote, with who wrote it, when, and what
you checked. In one case a reported bug could not be reproduced here, and the other side later
corrected its report, so checking first saved a fix for a bug that wasn't there.
6. **Pin the other harness's version and model.** A coding-agent CLI can change its default model in a
release. Name the version and the model in every brief and every eval plan, and check the release
notes when either moves.
## Keep runs cheap
The same habits that save money inside one system matter more across two, because a wasted turn on
either side is paid for:
- Before a push, run only the tests that cover what you touched.
- Never rerun a check that already passed on the same, unchanged tree.
- Run the full test suite once, on the finished head.
- No acknowledgement messages, no polling loops, and never print the whole environment (it puts every
key in the transcript).
**Evals.** The checklist for a paid eval is moving into [/eval-plan](../eval-plan/SKILL.md). Until it
lands there, use /eval-plan's current checks before any paid run.
## Worth trying (one team's practice, not yet measured by us)
These come from another team that runs many agents in parallel on one codebase. We have not measured
them ourselves.
- **Freeze the shared contracts before the work splits.** Before parallel agents start, one agent fixes
the formats, version numbers and error codes they all share, and every brief says not to change them.
That team reports 14 agents working in parallel this way without conflicting changes to the shared
formats.
- **One integration branch with one sync owner.** Parallel agents merge into one integration branch, and
one agent alone brings the main branch into it on a schedule and opens the pull request that carries
the work to main. The main branch then sees one change at a time from that work.