sysgraph Docs
Decisions & projects

Agent teams end to end

sysgraph is the memory and the gate of an agent team: every decision (business ones too), project, application and endpoint lives in one place, agents read it as their context, and nothing an agent writes goes live without people approving it.

request ─► architect agent ─► draft project + proposed decisions ─► people approve
        ─► developer agents ─► pull requests ─► reviewer agent ─► people merge ─► code check closes the project

Roles

RoleModel (default)DoesNever does
ArchitectOpusReads the architecture through MCP, opens a draft project with propose_project (scope, tasks, design flows), proposes a decision with propose_decision when a new standard or a deviation is neededWrite production code, approve anything
DeveloperSonnetImplements one task of an approved or active project on a branch named after the task, checks it with check_task, opens a pull request, reports with report_taskWork on a draft project, call what the design does not call
ReviewerSonnetCompares the pull request with the request (the project goal), the design and the decisions, runs the code check, comments the verdict on the projectMerge

Set them up in Workspace › Agent teams with Standard roles; change the model per role. The design step is short but needs judgment; most tokens are spent in the implement-test-fix loop, which runs on the cheaper model.

Set up

  1. Turn on Workspace › General › Modules › Agent teams, add a team and Standard roles.
  2. Cloud: the owner sets MCP to Read and write (Workspace › Integrations); whoever runs the agents creates a personal MCP token and exports it as SYSGRAPH_TOKEN. Local / Lite: take sysgraph-mcp.mjs from the Lite package and back up the workspace (Settings › Data). Agents read the backup; what they write is appended to sysgraph-agents.jsonl next to it and imported on the Agents page.
  3. Download the team's agent kit (Agents page or Workspace › Agent teams) into the repository and follow SYSGRAPH-AGENTS.md.

The Agents page has a setup panel that ticks these steps off.

The flow in Claude Code

  1. /sg-design <request> — the architect writes the draft project. Read its warnings: they say what could not be linked to the catalog.
  2. In sysgraph, review the project: scope, tasks, design flows (open them in the editor's compare mode), the proposed decisions. Change what you want, then approve through the project and decision boards. Locally: import the report file, Save, approve, back up again.
  3. /sg-implement PRJ-004-TASK-1 — a developer implements the task. Several developers can work on different tasks at the same time.
  4. /sg-review PRJ-004-TASK-1 <pull request> — the reviewer comments Approve or Changes requested with findings.
  5. People merge. The main branch's scan closes the project against code (Code).

Code checks

check_task compares a sysgraph-scan output with the task design: endpoint method and path, response codes, calls to other components, calls the design does not have, zone rules. sysgraph-scan reads C# / .NET and Java (Spring, JAX-RS, Micronaut). For other languages the agents skip the scan and say so; the reviewer compares the code with the design flows by hand.

Cost

The Agents page shows tokens per task and model (and per team), reported by the kit's hook after every Claude Code turn. Compare a few projects: design on Opus, development and review on Sonnet. Several agents use more tokens in total than one session (each reads its own context); the saving comes from the cheaper model doing the long loops and from narrow context — a developer reads only its task (task), not the whole system.

Context: sysgraph or skill files?

Both, for different things. Skill and agent files (the kit) say how to work: the steps, the branch name, when to check. sysgraph holds what is true now: decisions with their status, contracts, boundary rules, approvals. Copying decisions into skill files makes them stale the day a decision changes; the MCP tools return only what a task needs, so the context stays small.

Models and keys

sysgraph needs no AI key for this: agents run on your side. Claude Code works with a Claude subscription (no API key) or an API key; in CI you need an API key. The kit is plain files, so other clients (Cursor, Copilot) can use AGENTS.md and the MCP server too; the /sg-* commands and the usage hook are Claude Code specific.

Try it

npm run demo -- trial in the sysgraph repository prepares a folder with a backup of the showcase workspace (agent team with standard roles), the demo Orders API repository with the kit installed, a request (partial refunds) and the steps (TRIAL.md). Everything runs locally.