Skip to content

docs: Team Server Mode — running a fleet of concurrent agents on one shared machine#2313

Open
shulam-pay wants to merge 1 commit into
garrytan:mainfrom
shulam-pay:docs/team-server-mode
Open

docs: Team Server Mode — running a fleet of concurrent agents on one shared machine#2313
shulam-pay wants to merge 1 commit into
garrytan:mainfrom
shulam-pay:docs/team-server-mode

Conversation

@shulam-pay

Copy link
Copy Markdown

What

A pattern doc for the topology gstack doesn't cover yet: many concurrent AI agents sharing one machine (cloud devbox, Codespace, CI runner pool). Default mode is 1 human/1 laptop; team mode is N humans/N laptops/1 repo; this is N agents/1 machine.

Why

We run gstack-style multi-agent fleets in production at Skoor (x402 payments platform) — several Claude Code sessions working one shared checkout 24/7. Everything in this doc came from real collisions: branch switches under another agent's feet, unattributable checkpoint commits, double-ship races, and a shared-memory secret near-miss.

The pattern

Seven rules, all implementable with gstack as shipped today: per-agent identity (GSTACK_AGENT_ID), worktree isolation (no branch switching in the shared checkout), one sanctioned writer per shared artifact, git-backed brain as the coordination substrate (memory sync promoted from optional to load-bearing), a flock-serialized ship lane, scoped per-command credentials + redact_prepush_hook, and headless sessions that block instead of self-approving. Includes a threat model and an adoption checklist, structured so a future gstack-server-init could automate it.

Docs only — one new file + one README docs-table row. Happy to iterate on scope/placement, or to follow up with the gstack-server-init script if the pattern lands.

…ne shared machine

Documents the third topology beyond default and team mode: N agents
sharing a single server (devbox, Codespace, CI pool). Seven rules —
per-agent identity, worktree isolation, sanctioned writers, git-backed
brain, ship-lane locks, scoped per-command credentials, headless
block-don't-guess — plus a threat model and adoption checklist.
Extracted from a production multi-agent deployment; everything works
with gstack as shipped, and the doc is structured so a future
gstack-server-init could automate it.
@trunk-io

trunk-io Bot commented Jul 21, 2026

Copy link
Copy Markdown

Merging to main in this repository is managed by Trunk.

  • To merge this pull request, check the box to the left or comment /trunk merge below.

After your PR is submitted to the merge queue, this comment will be automatically updated with its status. If the PR fails, failure details will also be posted here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant