# tonone-ai/tonone architecture

> Architecture diagram of the GitHub repository tonone-ai/tonone, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-30). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/tonone-ai/tonone
- Repository: https://github.com/tonone-ai/tonone

## Overview

Tonone is a Claude Code specialist-agent roster and workflow system. The principal workflow starts with a founder describing a task to a team lead: the lead scopes depth and cost, routes work to selected specialists, and produces a handoff or report. Major documented capabilities also include specialist routing and takeover reconnaissance, project-based roster profiling, skill discovery through MCP, and design and transcript utilities. The README documents many agent capabilities, but most agent implementations were not sampled; those links are shown only where documented, and source-level detail is limited to indexed or excerpted files.

Main entry points: [`team/apex/hooks/apex-decisions.js`](https://github.com/tonone-ai/tonone/blob/main/team/apex/hooks/apex-decisions.js) (Apex engineering lead), [`lib/jev/client.js`](https://github.com/tonone-ai/tonone/blob/main/lib/jev/client.js) (Decision scoring), [`team/helm/scripts/helm_agent`](https://github.com/tonone-ai/tonone/tree/main/team/helm/scripts/helm_agent) (Helm product lead), [`team/apex/scripts/apex_agent`](https://github.com/tonone-ai/tonone/tree/main/team/apex/scripts/apex_agent) (System takeover)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_lead["Lead workflows"]
  node_apex["Apex engineering lead<br/>[apex-decisions.js]"]
  node_helm["Helm product lead"]
  node_route["Specialist routing<br/>[apex-guard.js]"]
  node_takeover["System takeover"]
end

subgraph group_teams["Specialist teams"]
  node_engineering["Engineering specialists"]
  node_product["Product specialists"]
  node_revenue["Revenue specialists"]
  node_marketing["Marketing specialists"]
  node_otherteams["Other domain teams"]
end

subgraph group_intelligence["Shared intelligence"]
  node_report["Shared agent reports<br/>[report_schema.py]"]
  node_pipeline["Pipeline scanner"]
  node_profile["Roster profiling<br/>[project-shape.js]"]
  node_jev["Decision scoring<br/>[client.js]"]
  node_local["Local scorer<br/>[local.js]"]
  node_cache["Decision cache<br/>[cache.js]"]
  node_transcript["Transcript selection"]
  node_design["Design system generator<br/>[design_system.py]"]
  node_designsearch["Design data search<br/>[search.py]"]
  node_designlint["Design linter<br/>[design-lint.js]"]
  node_lintparse["Lint parsing rules<br/>[parse.js]"]
  node_lintrules["Lint rule set<br/>[rules.js]"]
end

subgraph group_interfaces["Claude interfaces"]
  node_lint_hook["Edit-time lint hook"]
  node_mcp["MCP discovery server<br/>[server.mjs]"]
  node_skills["Agent skills"]
end

node_founder(("Founder"))
node_claude(("Claude Code"))

node_founder -->|"describes task"| node_apex
node_founder -->|"requests product work"| node_helm
node_apex -->|"scopes and runs"| node_engineering
node_apex -->|"routes specialist"| node_route
node_route -->|"dispatches to"| node_otherteams
node_helm -->|"orchestrates"| node_product
node_helm -->|"hands off brief"| node_apex
node_apex -->|"starts recon"| node_takeover
node_takeover -->|"targets deep dive"| node_engineering
node_takeover -->|"runs parallel recon"| node_otherteams
node_engineering -.->|"formats findings"| node_report
node_revenue -.->|"scans artifacts"| node_pipeline
node_pipeline -->|"uses schema"| node_report
node_claude -->|"profiles project"| node_profile
node_profile -->|"scores roster choice"| node_jev
node_jev -->|"falls back to"| node_local
node_jev -->|"reads and writes"| node_cache
node_transcript -->|"asks decision batch"| node_jev
node_design -->|"searches design data"| node_designsearch
node_designlint -->|"uses parser"| node_lintparse
node_designlint -->|"loads rules"| node_lintrules
node_lint_hook -->|"invokes lint"| node_designlint
node_claude -.->|"edits project files"| node_lint_hook
node_claude -->|"asks agent fit"| node_mcp
node_claude -->|"uses workflows"| node_skills

click node_apex "https://github.com/tonone-ai/tonone/blob/main/team/apex/hooks/apex-decisions.js"
click node_helm "https://github.com/tonone-ai/tonone/tree/main/team/helm/scripts/helm_agent"
click node_route "https://github.com/tonone-ai/tonone/blob/main/team/apex/hooks/apex-guard.js"
click node_takeover "https://github.com/tonone-ai/tonone/tree/main/team/apex/scripts/apex_agent"
click node_engineering "https://github.com/tonone-ai/tonone/tree/main/team/spine/scripts/spine_agent"
click node_product "https://github.com/tonone-ai/tonone/tree/main/team/crest/scripts/crest_agent"
click node_revenue "https://github.com/tonone-ai/tonone/tree/main/team/deal/scripts/deal_agent"
click node_marketing "https://github.com/tonone-ai/tonone/tree/main/team/buzz/scripts/buzz_agent"
click node_otherteams "https://github.com/tonone-ai/tonone/tree/main/team"
click node_report "https://github.com/tonone-ai/tonone/blob/main/team/shared/report_schema.py"
click node_pipeline "https://github.com/tonone-ai/tonone/blob/main/team/deal/scripts/deal_agent/pipeline_scanner.py"
click node_profile "https://github.com/tonone-ai/tonone/blob/main/lib/signals/project-shape.js"
click node_jev "https://github.com/tonone-ai/tonone/blob/main/lib/jev/client.js"
click node_local "https://github.com/tonone-ai/tonone/blob/main/lib/jev/local.js"
click node_cache "https://github.com/tonone-ai/tonone/blob/main/lib/jev/cache.js"
click node_transcript "https://github.com/tonone-ai/tonone/blob/main/lib/compact/transcript-select.js"
click node_design "https://github.com/tonone-ai/tonone/blob/main/lib/uiux/uiux/design_system.py"
click node_designsearch "https://github.com/tonone-ai/tonone/blob/main/lib/uiux/uiux/search.py"
click node_designlint "https://github.com/tonone-ai/tonone/blob/main/team/form/scripts/design-lint/design-lint.js"
click node_lintparse "https://github.com/tonone-ai/tonone/blob/main/team/form/scripts/design-lint/parse.js"
click node_lintrules "https://github.com/tonone-ai/tonone/blob/main/team/form/scripts/design-lint/rules.js"
click node_lint_hook "https://github.com/tonone-ai/tonone/blob/main/team/form/hooks/form-design-lint.js"
click node_mcp "https://github.com/tonone-ai/tonone/blob/main/mcp/server.mjs"
click node_skills "https://github.com/tonone-ai/tonone/tree/main/team"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_apex,node_helm,node_route,node_takeover toneBlue
class node_engineering,node_product,node_revenue,node_marketing,node_otherteams toneAmber
class node_report,node_pipeline,node_profile,node_jev,node_local,node_cache,node_transcript,node_design,node_designsearch,node_designlint,node_lintparse,node_lintrules toneMint
class node_lint_hook,node_mcp,node_skills toneRose
class node_founder,node_claude toneIndigo
```

## Components

### Lead workflows

- [Apex engineering lead](https://github.com/tonone-ai/tonone/blob/main/team/apex/hooks/apex-decisions.js): `team/apex/hooks/apex-decisions.js`
- [Helm product lead](https://github.com/tonone-ai/tonone/tree/main/team/helm/scripts/helm_agent): `team/helm/scripts/helm_agent`
- [Specialist routing](https://github.com/tonone-ai/tonone/blob/main/team/apex/hooks/apex-guard.js): `team/apex/hooks/apex-guard.js`
- [System takeover](https://github.com/tonone-ai/tonone/tree/main/team/apex/scripts/apex_agent): `team/apex/scripts/apex_agent`

### Specialist teams

- [Engineering specialists](https://github.com/tonone-ai/tonone/tree/main/team/spine/scripts/spine_agent): `team/spine/scripts/spine_agent`
- [Product specialists](https://github.com/tonone-ai/tonone/tree/main/team/crest/scripts/crest_agent): `team/crest/scripts/crest_agent`
- [Revenue specialists](https://github.com/tonone-ai/tonone/tree/main/team/deal/scripts/deal_agent): `team/deal/scripts/deal_agent`
- [Marketing specialists](https://github.com/tonone-ai/tonone/tree/main/team/buzz/scripts/buzz_agent): `team/buzz/scripts/buzz_agent`
- [Other domain teams](https://github.com/tonone-ai/tonone/tree/main/team): `team`

### Shared intelligence

- [Shared agent reports](https://github.com/tonone-ai/tonone/blob/main/team/shared/report_schema.py): `team/shared/report_schema.py`
- [Pipeline scanner](https://github.com/tonone-ai/tonone/blob/main/team/deal/scripts/deal_agent/pipeline_scanner.py): `team/deal/scripts/deal_agent/pipeline_scanner.py`
- [Roster profiling](https://github.com/tonone-ai/tonone/blob/main/lib/signals/project-shape.js): `lib/signals/project-shape.js`
- [Decision scoring](https://github.com/tonone-ai/tonone/blob/main/lib/jev/client.js): `lib/jev/client.js`
- [Local scorer](https://github.com/tonone-ai/tonone/blob/main/lib/jev/local.js): `lib/jev/local.js`
- [Decision cache](https://github.com/tonone-ai/tonone/blob/main/lib/jev/cache.js): `lib/jev/cache.js`
- [Transcript selection](https://github.com/tonone-ai/tonone/blob/main/lib/compact/transcript-select.js): `lib/compact/transcript-select.js`
- [Design system generator](https://github.com/tonone-ai/tonone/blob/main/lib/uiux/uiux/design_system.py): `lib/uiux/uiux/design_system.py`
- [Design data search](https://github.com/tonone-ai/tonone/blob/main/lib/uiux/uiux/search.py): `lib/uiux/uiux/search.py`
- [Design linter](https://github.com/tonone-ai/tonone/blob/main/team/form/scripts/design-lint/design-lint.js): `team/form/scripts/design-lint/design-lint.js`
- [Lint parsing rules](https://github.com/tonone-ai/tonone/blob/main/team/form/scripts/design-lint/parse.js): `team/form/scripts/design-lint/parse.js`
- [Lint rule set](https://github.com/tonone-ai/tonone/blob/main/team/form/scripts/design-lint/rules.js): `team/form/scripts/design-lint/rules.js`

### Claude interfaces

- [Edit-time lint hook](https://github.com/tonone-ai/tonone/blob/main/team/form/hooks/form-design-lint.js): `team/form/hooks/form-design-lint.js`
- [MCP discovery server](https://github.com/tonone-ai/tonone/blob/main/mcp/server.mjs): `mcp/server.mjs`
- [Agent skills](https://github.com/tonone-ai/tonone/tree/main/team): `team`

### Other components

- **Founder**
- **Claude Code**

## Connections

- Founder → Apex engineering lead: describes task (evidence: `README.md`)
- Founder → Helm product lead: requests product work (evidence: `README.md`)
- Apex engineering lead → Engineering specialists: scopes and runs (evidence: `README.md`)
- Apex engineering lead → Specialist routing: routes specialist (evidence: `README.md`)
- Specialist routing → Other domain teams: dispatches to (evidence: `README.md`)
- Helm product lead → Product specialists: orchestrates (evidence: `README.md`)
- Helm product lead → Apex engineering lead: hands off brief (evidence: `README.md`)
- Apex engineering lead → System takeover: starts recon (evidence: `README.md`)
- System takeover → Engineering specialists: targets deep dive (evidence: `README.md`)
- System takeover → Other domain teams: runs parallel recon (evidence: `README.md`)
- Engineering specialists → Shared agent reports: formats findings
- Revenue specialists → Pipeline scanner: scans artifacts
- Pipeline scanner → Shared agent reports: uses schema (evidence: `team/deal/scripts/deal_agent/pipeline_scanner.py`)
- Claude Code → Roster profiling: profiles project (evidence: `README.md`)
- Roster profiling → Decision scoring: scores roster choice (evidence: `lib/signals/project-shape.js`)
- Decision scoring → Local scorer: falls back to (evidence: `lib/jev/client.js`)
- Decision scoring → Decision cache: reads and writes (evidence: `lib/jev/client.js`)
- Transcript selection → Decision scoring: asks decision batch (evidence: `lib/compact/transcript-select.js`)
- Design system generator → Design data search: searches design data (evidence: `lib/uiux/uiux/design_system.py`)
- Design linter → Lint parsing rules: uses parser (evidence: `team/form/scripts/design-lint/design-lint.js`)
- Design linter → Lint rule set: loads rules (evidence: `team/form/scripts/design-lint/design-lint.js`)
- Edit-time lint hook → Design linter: invokes lint (evidence: `team/form/hooks/form-design-lint.js`)
- Claude Code → Edit-time lint hook: edits project files
- Claude Code → MCP discovery server: asks agent fit (evidence: `README.md`)
- Claude Code → Agent skills: uses workflows (evidence: `README.md`)
