Skip to content

Setups

Steve Scargall's 22-agent Claude Code team for MemMachine

Steve Scargall · Catalog date October 31, 2026

After the engineer who owned MemMachine's Semantic Memory subsystem left the open-source project, Steve Scargall built a 22-agent maintenance team on Claude Code's experimental Agent Teams. It lives inside the repository under a gitignored .claude/ folder. Each agent may edit only a listed set of paths. Agents triage, draft specs, implement, test, review security, and update docs, but never commit, push, merge, open pull requests, or cut releases. He works on MemMachine, so the post also describes that project.

Evidence. Author's own post

Goal
Keep weekly releases on track and every issue and PR reviewed after losing a core maintainer, with him approving everything
Use
Software
Platforms
Claude CodeClaude Code Agent Teams, experimental, behind CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1. The architect runs Claude Opus; every other role runs Claude Sonnet.
Crew size
22 agents

Roles

The post groups the 22 as coordination (3), code specialists (5), maintenance (6), quality gates (2), and six PR-review agents imported from anthropics/claude-plugins-official. He is the fixed team lead, and Agent Teams spawns only the roles a task needs.

  • pm

    Owns. Decomposes issues into tasks and proposes milestones.

    Constraints specific to this role

    • Has no code access.
  • architect

    Owns. Runs on Opus. Cross-package tradeoffs, spec review, advisor to other teammates by mailbox, and tiebreaker on disagreements.

    Constraints specific to this role

    • Edits only paths in its write scope.
  • gh-triage

    Owns. Reads issues and PRs, classifies them, drafts labels, milestones, and comments, and proposes a team from a GitHub issue URL using a role-selection rubric in its prompt.

    Constraints specific to this role

    • Never spawns a team on its own. The proposal is a draft he approves.
  • semantic-memory-architect

    Owns. Owns the orphaned Semantic Memory subsystem. First priority is backfilling its missing tests.

    Constraints specific to this role

    • Edits only paths in its write scope.
  • episodic-memory-architect

    Owns. Owns episodic memory.

    Constraints specific to this role

    • Edits only paths in its write scope.
  • server-architect

    Owns. FastAPI and FastMCP surface, routing, middleware, OpenAPI, Alembic migrations, and settings.

    Constraints specific to this role

    • Edits only paths in its write scope.
  • dev-python

    Owns. General Python glue for the client, common, and meta packages.

    Constraints specific to this role

    • Stays out of semantic_memory/, per its write scope.
  • dev-typescript

    Owns. The TypeScript client package.

    Constraints specific to this role

    • Edits only paths in its write scope.
  • integrations-maintainer

    Owns. Tracks nine framework integrations against upstream changes.

    Constraints specific to this role

    • Edits only paths in its write scope.
  • openclaw-tracker

    Owns. Polls OpenClaw releases, diffs the API surface, and drafts adapter updates.

    Constraints specific to this role

    • Edits only paths in its write scope.
  • examples-maintainer

    Owns. Verifies every example runs against the latest release.

    Constraints specific to this role

    • Edits only paths in its write scope.
  • benchmark

    Owns. Runs the evaluation suites, which are not in CI, and flags regressions.

    Constraints specific to this role

    • Edits only paths in its write scope.
  • docs-maintainer

    Owns. Works a queue of todo-docs- files left by code-touching agents, and lands docs updates as a draft PR for the human documentation writer.

    Constraints specific to this role

    • Edits only paths in its write scope.
  • upstream-sync

    Owns. Compares the fork to upstream and drafts a merge or rebase plan.

    Constraints specific to this role

    • Edits only paths in its write scope.
  • qa

    Owns. Runs the local CI mirror of every workflow under .github/workflows/ and writes a sign-off line.

    Constraints specific to this role

    • Edits only paths in its write scope.
  • security

    Owns. Diff review, pip-audit, npm audit, SBOM, and Dependabot triage, and writes a sign-off line.

    Constraints specific to this role

    • Edits only paths in its write scope.
  • code-reviewer

    Owns. One of six PR-review agents imported from anthropics/claude-plugins-official. The post does not describe each one separately.

  • code-simplifier

    Owns. One of six PR-review agents imported from anthropics/claude-plugins-official. The post does not describe each one separately.

  • comment-analyzer

    Owns. One of six PR-review agents imported from anthropics/claude-plugins-official. The post does not describe each one separately.

  • pr-test-analyzer

    Owns. One of six PR-review agents imported from anthropics/claude-plugins-official. The post does not describe each one separately.

  • silent-failure-hunter

    Owns. One of six PR-review agents imported from anthropics/claude-plugins-official. The post does not describe each one separately.

  • type-design-analyzer

    Owns. One of six PR-review agents imported from anthropics/claude-plugins-official. The post does not describe each one separately.

Routines

  • Triage sweep

    On demand with /mm:triage. No cadence is stated.

    gh-triage sweeps all open issues and PRs and writes a dated classification digest.

  • Team per issue

    On demand with /mm:team <github-url>, then /mm:assemble <issue>

    Propose a team for an issue, confirm it, and spawn each teammate constrained to its write scope.

Guardrails

  • Agents never run git commit, git push, gh pr create, or gh release create. They hand him ready-to-run commands and PR body text. Commits are signed by him.
  • Each agent has a strict write scope and refuses edits outside it.
  • A TaskCompleted hook blocks completion of any code-touching task until qa and security have both written sign-off lines to .claude/audit.log.
  • A PreToolUse hook warns about risky edit patterns before every edit.
  • Any task touching more than two files, a public API, or the memory subsystems needs a markdown spec first.
  • Every code-touching agent loads a karpathy-guidelines skill: think before coding, simplicity first, surgical changes, goal-driven execution.
  • Everything lives under a gitignored .claude/ plus a gitignored root CLAUDE.md, so other contributors see the same project as before.

Handoffs

He is the fixed team lead. Teammates share a task list and a mailbox and can message each other directly, for example dev-python and semantic-memory-architect negotiating where a fix belongs, and they consult the architect for hard calls. Code-touching agents leave .claude/todos/todo-docs-<slug>.md files, which docs-maintainer scans as its queue. qa and security sign off in the audit log before a task can close.

Recorded handoff
  • pm
  • architect
  • gh-triage
  • semantic-memory-architect
  • episodic-memory-architect
  • server-architect
  • dev-python
  • dev-typescript
  • integrations-maintainer
  • openclaw-tracker
  • examples-maintainer
  • benchmark
  • docs-maintainer
  • upstream-sync
  • qa
  • security
  • code-reviewer
  • code-simplifier
  • comment-analyzer
  • pr-test-analyzer
  • silent-failure-hunter
  • type-design-analyzer

Human operator

He is the fixed team lead. Teammates share a task list and a mailbox and can message each other directly, for example dev-python and semantic-memory-architect negotiating where a fix belongs, and they consult the architect for hard calls. Code-touching agents leave .claude/todos/todo-docs-<slug>.md files, which docs-maintainer scans as its queue. qa and security sign off in the audit log before a task can close.

Results

What worked
The build produced 22 agents, 19 skills, 22 slash commands, 4 hooks, and 11 seeded TODOs, and only .gitignore became a tracked change. Phase 6 ran a first real triage digest and walked one real issue end to end. He reports no release or issue counts after that.
Lessons
It works for repositories that already have code, not greenfield ones. The roster, write scopes, CI mirror, and triage rubric must be re-derived per repository. He would start populating the agent memory layer immediately, dogfood MemMachine as that memory, and read the per-agent weekly token tally to retire agents whose spend outpaces their value.

Source

Notes

The catalog date is the day this entry was drafted. The post is dated April 14, 2026.

He chose Agent Teams over subagents because teammates can talk to each other, each has its own context window, and the human session stays the lead. He notes its limits: /resume does not restore teammates, teams cannot nest, and token cost scales with teammate count. The architect-on-Opus design follows Anthropic's advisor pattern; the benchmark figures he cites are Anthropic's, not his.

The post describes MemMachine, a long-term memory layer for AI agents, a project he works on. He plans a follow-up skill, agent-team-bootstrap, to propose a starter roster for any existing repository. The post does not include the agent files themselves.