sysgraph Docs
Decisions & projects

Agent teams

Coding agents (Claude Code, Cursor, Copilot, agents in CI) write more and more of the code. They fail when they lack context (which service, which rules), a clear goal (what "done" means) and a check (does the code match the design). sysgraph already holds all three, so it can hand work to agents and check what comes back.

Agents never run inside sysgraph. A developer runs them locally or an automation runs them in CI; they connect through MCP. sysgraph defines the work, shows progress and verifies the result against code.

Turn it on in Workspace › General › Modules › Agent teams (off by default).

Teams

An agent team is defined in Workspace › Agent teams (the workspace owner edits it):

  • Responsible — the person or team who reviews the agents' work.
  • Runs — locally (a developer) or in automation (CI).
  • Components and zones — the team's scope. Project tasks that touch these items suggest this team.
  • Roles — e.g. implementer, standards reviewer, test writer, each with instructions for the agent.

Agent teams are separate from people teams: they never own catalog items or approve anything.

Roles carry a workflow and a model: Architect (turns a request into a draft project), Developer (implements an approved task), Reviewer (checks the request, the code and the architecture). Standard roles adds the missing ones: the architect on Opus, developer and reviewer on Sonnet. The model is the Claude Code subagent's model; leave it empty for the client's default.

Agent kit (on the team card and on the Agents page) downloads the files to put in the repository so every agent uses the same definition: AGENTS.md (workflow per role, components in scope with their code names, accepted decisions, boundary rules), CLAUDE.md (points Claude Code to AGENTS.md), one subagent per role with its model in .claude/agents/, the /sg-design, /sg-implement and /sg-review commands, a hook that reports the session's token usage (.claude/settings.json, .sysgraph/usage-hook.mjs), .mcp.json (the sysgraph MCP server; the token comes from the SYSGRAPH_TOKEN environment variable, never from the file) and setup steps (SYSGRAPH-AGENTS.md). Download it again after the standards change. The whole flow: Agent teams end to end.

Project tasks

A project can be split into tasks (PRJ-001-TASK-2). A project without tasks is one task (PRJ-001); rows not linked to any task form one more task. Pick the team on the task card.

Each task shows its acceptance criteria, derived from your content (nothing extra to write):

  • create / change / remove each component and endpoint of the task (endpoints with a contract must match it),
  • implement the call sequence of the project's design flows that touch the task,
  • follow the project's decisions and the accepted decisions of the task's components,
  • respect the zone boundary rules.

Copy for an agent puts a Markdown summary on the clipboard for a prompt or an issue.

Working with an agent

  1. The agent calls tasks and task (MCP) to read the task, its design flows in Mermaid and the standards.
  2. It works on a branch whose name contains the task key, e.g. prj-001-task-2-retry (older prj-001-part-2-… branches still work).
  3. Before calling the task done it runs sysgraph-scan on the repository and calls check_task (MCP): it fixes the differences from the design (endpoint path and method, response codes, calls the design does not have) until the check is ok. The agent kit's AGENTS.md says so, and that contracts are implemented exactly.
  4. With MCP in can write mode it calls report_task: started, working, blocked (with the reason), review (pull request ready), done or failed.
  5. The code scan of the branch (sysgraph-scan --base, see Code) is linked to the task: the task is verified when every row of the task changed in code and nothing outside it did. With sysgraph context in the pull request comment on (Radar), the pull request comment shows the task as a checklist.

Following the work

The Agents page lists every team with its open tasks, the latest report (status, summary, who and which agent, pull request), blocked and quiet tasks (no report for 24 hours), the report history and the code state of each task. Tasks without a team are listed separately. Blocked, ready-for-review and failed tasks also reach the responsible person as notifications.

Office view (Agents › Office view) shows the same data as an office: each team is a room, each open task a desk, and the agent at the desk is drawn by its latest report — typing, hand raised (blocked), holding a pull request (review), coffee break (done), red screen (failed), asleep (quiet for 24 hours), or an empty chair when there is no report yet. The speech bubble shows the latest summary; select a desk for the task details. The team's human lead stands in the room, without a name. A desk with a new report lights up briefly. Presentation mode hides the app bars and goes full screen with a clock, for a screen in the office; Esc leaves it. It refreshes every minute and respects reduced motion.

Reports are summaries only; sysgraph does not store agent output or code.

Local and Lite workspaces: agents connect through the local MCP server (sysgraph-mcp.mjs, see MCP), which writes their reports to sysgraph-agents.jsonl next to the backup file. Use Import reports on the Agents page; importing the same file again adds nothing twice. Reports are not part of backups.