# jonathandrobles805/agents-system architecture

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

- Interactive diagram: https://gitdiagram.com/jonathandrobles805/agents-system
- Repository: https://github.com/jonathandrobles805/agents-system

## Overview

agents-system is a Claude Code agent kit that bootstraps projects and enforces a human-approved research-to-retro workflow. A user starts a goal and runs a feature lane; lane logic advances stages based on project files and Git state, while hooks and CI checks enforce boundaries and completion criteria. The kit also provides project status, a live architecture/worktree dashboard, and an evaluation harness. Some subsystem links below are documented in the README or SOURCE INDEX; unsampled implementation details are not inferred.

Main entry points: [`kit/scripts/lane.js`](https://github.com/jonathandrobles805/agents-system/blob/main/kit/scripts/lane.js) (Lane orchestration), [`dashboard-app/src/App.tsx`](https://github.com/jonathandrobles805/agents-system/blob/main/dashboard-app/src/App.tsx) (Dashboard interface), [`kit/dashboard/server.js`](https://github.com/jonathandrobles805/agents-system/blob/main/kit/dashboard/server.js) (Dashboard server), [`kit/scripts/kit_status.js`](https://github.com/jonathandrobles805/agents-system/blob/main/kit/scripts/kit_status.js) (Project status)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_pipeline["Feature pipeline"]
  node_lane["Lane orchestration<br/>[lane.js]"]
  node_prgate["PR and merge gate<br/>[pr_gate.js]"]
end

subgraph group_enforcement["Guards and gates"]
  node_sandbox["Sandbox controls<br/>[sandbox.js]"]
  node_hooks["Hook enforcement"]
  node_postedit["Post-edit checks"]
  node_shellchanges["Change inspection<br/>[shell_changes.js]"]
  node_ci["CI checks<br/>[ci_common.js]"]
  node_docsvalidate["Document validation<br/>[validate_docs.js]"]
end

subgraph group_project["Project setup"]
  node_bootstrap["Project bootstrap<br/>[bootstrap.js]"]
  node_kitlib["Shared kit utilities<br/>[kitlib.js]"]
  node_args["CLI argument parsing<br/>[args.js]"]
end

subgraph group_visibility["Status and dashboard"]
  node_status["Project status<br/>[kit_status.js]"]
  node_archmanifest["Architecture manifest<br/>[arch_manifest.js]"]
  node_archlive["Live architecture data<br/>[arch_live.js]"]
  node_dashserver["Dashboard server<br/>[server.js]"]
  node_dashmodel["Dashboard model<br/>[model.js]"]
  node_dashapp["Dashboard interface<br/>[App.tsx]"]
  node_dashstore["Dashboard state<br/>[store.ts]"]
  node_dashviews["Architecture views<br/>[Views.tsx]"]
  node_worktrees["Worktree view<br/>[Worktrees.tsx]"]
  node_inspector["Component inspector<br/>[Inspector.tsx]"]
  node_collector["Telemetry collector<br/>[collector.js]"]
end

subgraph group_evaluation["Evaluation"]
  node_evalharness["Evaluation harness<br/>[harness.js]"]
  node_clauderunner["Claude task runner<br/>[claude.js]"]
  node_score["Outcome scoring<br/>[score.js]"]
end

node_human(("Project owner"))
node_claude(("Claude Code agents"))
node_git[("Project files and Git")]

node_human -->|"starts feature"| node_lane
node_lane -->|"coordinates stages"| node_claude
node_human -->|"approves stage"| node_lane
node_lane -->|"reads and updates"| node_git
node_lane -->|"invokes gate"| node_prgate
node_lane -->|"uses controls"| node_sandbox
node_lane -->|"invokes upgrade"| node_bootstrap
node_lane -->|"validates docs"| node_docsvalidate
node_lane -->|"queries status"| node_status
node_claude -->|"triggers hooks"| node_hooks
node_hooks -.->|"runs checks"| node_postedit
node_postedit -->|"inspects changes"| node_shellchanges
node_ci -->|"uses utilities"| node_kitlib
node_bootstrap -->|"writes project setup"| node_git
node_lane -->|"parses options"| node_args
node_lane -->|"uses utilities"| node_kitlib
node_status -->|"reads lane state"| node_lane
node_archmanifest -->|"derives map"| node_git
node_archlive -->|"loads manifest"| node_archmanifest
node_dashserver -->|"reads status"| node_status
node_dashserver -->|"reads lane data"| node_lane
node_dashserver -->|"loads live map"| node_archlive
node_dashserver -.->|"serves dashboard"| node_dashapp
node_dashapp -->|"uses state"| node_dashstore
node_dashapp -->|"renders views"| node_dashviews
node_dashapp -->|"renders lanes"| node_worktrees
node_dashapp -->|"renders details"| node_inspector
node_dashstore -->|"derives view state"| node_dashmodel
node_evalharness -->|"runs tasks"| node_clauderunner
node_evalharness -->|"scores outcomes"| node_score
node_lane -->|"starts telemetry"| node_collector

click node_lane "https://github.com/jonathandrobles805/agents-system/blob/main/kit/scripts/lane.js"
click node_prgate "https://github.com/jonathandrobles805/agents-system/blob/main/kit/scripts/pr_gate.js"
click node_sandbox "https://github.com/jonathandrobles805/agents-system/blob/main/kit/scripts/sandbox.js"
click node_hooks "https://github.com/jonathandrobles805/agents-system/tree/main/kit/scripts"
click node_postedit "https://github.com/jonathandrobles805/agents-system/blob/main/kit/scripts/hook_post_edit_check.js"
click node_shellchanges "https://github.com/jonathandrobles805/agents-system/blob/main/kit/scripts/shell_changes.js"
click node_ci "https://github.com/jonathandrobles805/agents-system/blob/main/kit/scripts/ci_common.js"
click node_docsvalidate "https://github.com/jonathandrobles805/agents-system/blob/main/kit/scripts/validate_docs.js"
click node_bootstrap "https://github.com/jonathandrobles805/agents-system/blob/main/kit/scripts/bootstrap.js"
click node_kitlib "https://github.com/jonathandrobles805/agents-system/blob/main/kit/scripts/kitlib.js"
click node_args "https://github.com/jonathandrobles805/agents-system/blob/main/kit/scripts/args.js"
click node_status "https://github.com/jonathandrobles805/agents-system/blob/main/kit/scripts/kit_status.js"
click node_archmanifest "https://github.com/jonathandrobles805/agents-system/blob/main/kit/scripts/arch_manifest.js"
click node_archlive "https://github.com/jonathandrobles805/agents-system/blob/main/kit/scripts/arch_live.js"
click node_dashserver "https://github.com/jonathandrobles805/agents-system/blob/main/kit/dashboard/server.js"
click node_dashmodel "https://github.com/jonathandrobles805/agents-system/blob/main/kit/dashboard/model.js"
click node_dashapp "https://github.com/jonathandrobles805/agents-system/blob/main/dashboard-app/src/App.tsx"
click node_dashstore "https://github.com/jonathandrobles805/agents-system/blob/main/dashboard-app/src/store.ts"
click node_dashviews "https://github.com/jonathandrobles805/agents-system/blob/main/dashboard-app/src/Views.tsx"
click node_worktrees "https://github.com/jonathandrobles805/agents-system/blob/main/dashboard-app/src/Worktrees.tsx"
click node_inspector "https://github.com/jonathandrobles805/agents-system/blob/main/dashboard-app/src/Inspector.tsx"
click node_evalharness "https://github.com/jonathandrobles805/agents-system/blob/main/kit/eval/harness.js"
click node_clauderunner "https://github.com/jonathandrobles805/agents-system/blob/main/kit/eval/runners/claude.js"
click node_score "https://github.com/jonathandrobles805/agents-system/blob/main/kit/eval/score.js"
click node_collector "https://github.com/jonathandrobles805/agents-system/blob/main/kit/telemetry/collector.js"

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_lane,node_prgate toneBlue
class node_sandbox,node_hooks,node_postedit,node_shellchanges,node_ci,node_docsvalidate,node_git toneAmber
class node_bootstrap,node_kitlib,node_args toneMint
class node_status,node_archmanifest,node_archlive,node_dashserver,node_dashmodel,node_dashapp,node_dashstore,node_dashviews,node_worktrees,node_inspector,node_collector toneRose
class node_evalharness,node_clauderunner,node_score,node_human,node_claude toneIndigo
```

## Components

### Feature pipeline

- [Lane orchestration](https://github.com/jonathandrobles805/agents-system/blob/main/kit/scripts/lane.js): `kit/scripts/lane.js`
- [PR and merge gate](https://github.com/jonathandrobles805/agents-system/blob/main/kit/scripts/pr_gate.js): `kit/scripts/pr_gate.js`

### Guards and gates

- [Sandbox controls](https://github.com/jonathandrobles805/agents-system/blob/main/kit/scripts/sandbox.js): `kit/scripts/sandbox.js`
- [Hook enforcement](https://github.com/jonathandrobles805/agents-system/tree/main/kit/scripts): `kit/scripts`
- [Post-edit checks](https://github.com/jonathandrobles805/agents-system/blob/main/kit/scripts/hook_post_edit_check.js): `kit/scripts/hook_post_edit_check.js`
- [Change inspection](https://github.com/jonathandrobles805/agents-system/blob/main/kit/scripts/shell_changes.js): `kit/scripts/shell_changes.js`
- [CI checks](https://github.com/jonathandrobles805/agents-system/blob/main/kit/scripts/ci_common.js): `kit/scripts/ci_common.js`
- [Document validation](https://github.com/jonathandrobles805/agents-system/blob/main/kit/scripts/validate_docs.js): `kit/scripts/validate_docs.js`

### Project setup

- [Project bootstrap](https://github.com/jonathandrobles805/agents-system/blob/main/kit/scripts/bootstrap.js): `kit/scripts/bootstrap.js`
- [Shared kit utilities](https://github.com/jonathandrobles805/agents-system/blob/main/kit/scripts/kitlib.js): `kit/scripts/kitlib.js`
- [CLI argument parsing](https://github.com/jonathandrobles805/agents-system/blob/main/kit/scripts/args.js): `kit/scripts/args.js`

### Status and dashboard

- [Project status](https://github.com/jonathandrobles805/agents-system/blob/main/kit/scripts/kit_status.js): `kit/scripts/kit_status.js`
- [Architecture manifest](https://github.com/jonathandrobles805/agents-system/blob/main/kit/scripts/arch_manifest.js): `kit/scripts/arch_manifest.js`
- [Live architecture data](https://github.com/jonathandrobles805/agents-system/blob/main/kit/scripts/arch_live.js): `kit/scripts/arch_live.js`
- [Dashboard server](https://github.com/jonathandrobles805/agents-system/blob/main/kit/dashboard/server.js): `kit/dashboard/server.js`
- [Dashboard model](https://github.com/jonathandrobles805/agents-system/blob/main/kit/dashboard/model.js): `kit/dashboard/model.js`
- [Dashboard interface](https://github.com/jonathandrobles805/agents-system/blob/main/dashboard-app/src/App.tsx): `dashboard-app/src/App.tsx`
- [Dashboard state](https://github.com/jonathandrobles805/agents-system/blob/main/dashboard-app/src/store.ts): `dashboard-app/src/store.ts`
- [Architecture views](https://github.com/jonathandrobles805/agents-system/blob/main/dashboard-app/src/Views.tsx): `dashboard-app/src/Views.tsx`
- [Worktree view](https://github.com/jonathandrobles805/agents-system/blob/main/dashboard-app/src/Worktrees.tsx): `dashboard-app/src/Worktrees.tsx`
- [Component inspector](https://github.com/jonathandrobles805/agents-system/blob/main/dashboard-app/src/Inspector.tsx): `dashboard-app/src/Inspector.tsx`
- [Telemetry collector](https://github.com/jonathandrobles805/agents-system/blob/main/kit/telemetry/collector.js): `kit/telemetry/collector.js`

### Evaluation

- [Evaluation harness](https://github.com/jonathandrobles805/agents-system/blob/main/kit/eval/harness.js): `kit/eval/harness.js`
- [Claude task runner](https://github.com/jonathandrobles805/agents-system/blob/main/kit/eval/runners/claude.js): `kit/eval/runners/claude.js`
- [Outcome scoring](https://github.com/jonathandrobles805/agents-system/blob/main/kit/eval/score.js): `kit/eval/score.js`

### Other components

- **Project owner**
- **Claude Code agents**
- **Project files and Git**

## Connections

- Project owner → Lane orchestration: starts feature
- Lane orchestration → Claude Code agents: coordinates stages
- Project owner → Lane orchestration: approves stage
- Lane orchestration → Project files and Git: reads and updates (evidence: `kit/scripts/lane.js`)
- Lane orchestration → PR and merge gate: invokes gate (evidence: `kit/scripts/lane.js`)
- Lane orchestration → Sandbox controls: uses controls (evidence: `kit/scripts/lane.js`)
- Lane orchestration → Project bootstrap: invokes upgrade (evidence: `kit/scripts/lane.js`)
- Lane orchestration → Document validation: validates docs (evidence: `kit/scripts/lane.js`)
- Lane orchestration → Project status: queries status (evidence: `kit/scripts/lane.js`)
- Claude Code agents → Hook enforcement: triggers hooks
- Hook enforcement → Post-edit checks: runs checks (evidence: `kit/scripts/hook_post_edit_check.js`)
- Post-edit checks → Change inspection: inspects changes (evidence: `kit/scripts/hook_post_edit_check.js`)
- CI checks → Shared kit utilities: uses utilities (evidence: `kit/scripts/ci_common.js`)
- Project bootstrap → Project files and Git: writes project setup
- Lane orchestration → CLI argument parsing: parses options (evidence: `kit/scripts/lane.js`)
- Lane orchestration → Shared kit utilities: uses utilities (evidence: `kit/scripts/lane.js`)
- Project status → Lane orchestration: reads lane state (evidence: `kit/scripts/kit_status.js`)
- Architecture manifest → Project files and Git: derives map
- Live architecture data → Architecture manifest: loads manifest (evidence: `kit/scripts/arch_live.js`)
- Dashboard server → Project status: reads status (evidence: `kit/dashboard/server.js`)
- Dashboard server → Lane orchestration: reads lane data (evidence: `kit/dashboard/server.js`)
- Dashboard server → Live architecture data: loads live map (evidence: `kit/dashboard/server.js`)
- Dashboard server → Dashboard interface: serves dashboard
- Dashboard interface → Dashboard state: uses state (evidence: `dashboard-app/src/App.tsx`)
- Dashboard interface → Architecture views: renders views (evidence: `dashboard-app/src/App.tsx`)
- Dashboard interface → Worktree view: renders lanes (evidence: `dashboard-app/src/App.tsx`)
- Dashboard interface → Component inspector: renders details (evidence: `dashboard-app/src/App.tsx`)
- Dashboard state → Dashboard model: derives view state (evidence: `dashboard-app/src/store.ts`)
- Evaluation harness → Claude task runner: runs tasks (evidence: `kit/eval/harness.js`)
- Evaluation harness → Outcome scoring: scores outcomes (evidence: `kit/eval/harness.js`)
- Lane orchestration → Telemetry collector: starts telemetry (evidence: `kit/scripts/lane.js`)
