# vedanta/the-system architecture

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

- Interactive diagram: https://gitdiagram.com/vedanta/the-system
- Repository: https://github.com/vedanta/the-system

## Overview

1. **Repository purpose**
   This repo is not a single business app; it is a productized framework called **The System / ASDO**. Its main output is a coordinated AI-development workflow: command packs, agent personas, documentation, and a small website that presents and ships the framework.

2. **Primary architecture surface: Claude Code orchestration**
   The most important subsystem is `.claude/`. It contains:
   - **agents**: role definitions for the 26 specialist agents
   - **commands**: the `/ts-*` command surface used to drive the workflow
   - **config / presets / integrations**: runtime configuration for how commands behave
   - **hooks**: lifecycle automation, such as checkpoint behavior
   - **styles / templates**: UI/content templates used by design-oriented workflows  
   Architecturally, this is the control plane of the repo.

3. **Workflow model and human approval gates**
   The system is staged rather than ad hoc. The README describes a pipeline from architecture to design, product, development, release, and operations, with explicit approval points like architecture lock, green light, development signoff, and production approval. That gate structure is a key boundary: agents execute work, humans approve state transitions.

4. **Documentation is a first-class subsystem**
   The `docs/` tree is large and split by audience:
   - `docs/user/` for end-user guidance
   - `docs/dev/` for design notes, implementation plans, and reports
   - `docs/status/` for progress/state snapshots
   - `docs/the-system-ui/` for UI-specific documentation  
   This repo treats documentation as a maintained product artifact, not just reference material.

5. **Main web UI / landing site**
   The `app/`, `components/`, `public/`, `tailwind.config.js`, and related Next.js files form the primary website. It appears to be a marketing/documentation site for The System, with a small set of React components such as `Hero` and `Navigation`. The build output in `out/` indicates a static-export-style deployment target.

6. **Secondary static web surface**
   The `web/` directory is a separate lightweight web implementation with its own `index.html`, `install.sh`, deployment config (`netlify.toml`, `vercel.json`), and `api/` scripts. This suggests an alternate or legacy delivery surface, likely used for simple static hosting or platform-specific deployment paths.

7. **Automation and maintenance scripts**
   The `scripts/` directory contains operational tooling rather than application logic. Examples include verification, docs maintenance, language cleanup, link fixing, and install helpers. These scripts support repository health, documentation compliance, and release readiness.

8. **Testing and validation layer**
   There are multiple validation entry points: `test/`, `tests/`, Docker-based test fixtures, shell runners, and Python integration scripts. The tests focus on installability, system verification, and agent/architecture compliance rather than typical unit testing of a product backend.

9. **Build and deployment flow**
   GitHub Actions in `.github/workflows/deploy-web.yml` plus deployment configs in `web/` show that publishing is automated. The repo supports static-site style delivery as well as framework-driven agent workflows. The presence of `out/` implies generated static artifacts are part of the release path.

10. **Generated and reference artifacts**
   Files like `CHANGELOG*`, `VERSION`, `version.json`, `ARCHITECTURE_v1.3.0.md`, and the many `diagrams/*.mermaid` files act as durable reference outputs. They document the system’s own architecture, workflows, and agent interactions, which is important because the repo’s “product” is partly its methodology and not just executable code.

11. **Boundary between content and execution**
   Most of the repo is Markdown, configuration, and templates; the executable code footprint is comparatively small. That means the architecture is content-driven and command-driven: the `.claude` layer orchestrates behavior, while the Next.js site and scripts present, validate, and operationalize it.

12. **How to diagram this repo**
   A good architecture diagram should show:
   - a **control plane**: `.claude` agents/commands/config
   - a **knowledge plane**: docs, diagrams, templates, and versioned guidance
   - a **presentation plane**: Next.js site plus `web/` static site
   - a **operations plane**: scripts, tests, GitHub Actions, and deployment outputs  
   The major flows are user input → command orchestration → staged agent work → generated docs/site artifacts → validation/deployment.

Main entry points: [`docs/dev`](https://github.com/vedanta/the-system/tree/main/docs/dev) (Dev docs), [`.claude/commands`](https://github.com/vedanta/the-system/blob/main/.claude/commands) (Commands), [`app`](https://github.com/vedanta/the-system/tree/main/app) (Next.js site), [`.claude/agents`](https://github.com/vedanta/the-system/blob/main/.claude/agents) (Agents)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_control["Control plane"]
  node_claude_commands["Commands<br/>command surface<br/>[commands]"]
  node_claude_agents["Agents<br/>specialist personas<br/>[agents]"]
  node_claude_config["Config<br/>[config]"]
  node_claude_hooks["Hooks<br/>lifecycle automation<br/>[hooks]"]
  node_claude_styles["Styles<br/>presentation templates<br/>[styles]"]
end

subgraph group_knowledge["Knowledge plane"]
  node_docs_user["User docs<br/>end-user guidance"]
  node_docs_dev["Dev docs<br/>implementation notes"]
  node_docs_status["Status docs<br/>progress snapshots"]
  node_docs_ui["UI docs<br/>ui reference"]
  node_diagrams["Diagrams<br/>architecture visuals"]
end

subgraph group_presentation["Presentation plane"]
  node_app_site["Next.js site<br/>static web app"]
  node_site_components["UI components<br/>react components"]
  node_public_assets["Public assets<br/>static assets"]
  node_web_site["Static web<br/>alternate delivery"]
end

subgraph group_operations["Operations plane"]
  node_scripts["Scripts<br/>automation tools"]
  node_tests["Tests<br/>validation suite"]
  node_test_legacy["Test harness<br/>legacy validation"]
  node_github_actions["CI workflow<br/>deployment automation<br/>[deploy-web.yml]"]
  node_build_out[("Build output<br/>generated static site")]
end

node_claude_commands -->|"dispatches work to"| node_claude_agents
node_claude_commands -->|"reads policy"| node_claude_config
node_claude_commands -->|"triggers lifecycle"| node_claude_hooks
node_claude_commands -->|"produces updates"| node_docs_dev
node_claude_agents -->|"write artifacts"| node_docs_dev
node_claude_agents -->|"reference workflow"| node_diagrams
node_claude_styles -.->|"informs UI"| node_app_site
node_docs_dev -->|"distills guidance"| node_docs_user
node_docs_dev -->|"reports progress"| node_docs_status
node_docs_dev -->|"captures flows"| node_diagrams
node_docs_ui -->|"describes site"| node_app_site
node_app_site -->|"composes"| node_site_components
node_app_site -->|"serves"| node_public_assets
node_web_site -->|"publishes via"| node_github_actions
node_scripts -->|"maintains"| node_docs_user
node_scripts -->|"checks quality"| node_docs_dev
node_tests -->|"validates"| node_scripts
node_test_legacy -.->|"extends"| node_tests
node_github_actions -->|"creates"| node_build_out
node_build_out -->|"exports from"| node_app_site
node_build_out -.->|"supports"| node_web_site
node_claude_commands -->|"operates through"| node_docs_user

click node_claude_commands "https://github.com/vedanta/the-system/blob/main/.claude/commands"
click node_claude_agents "https://github.com/vedanta/the-system/blob/main/.claude/agents"
click node_claude_config "https://github.com/vedanta/the-system/blob/main/.claude/config"
click node_claude_hooks "https://github.com/vedanta/the-system/blob/main/.claude/hooks"
click node_claude_styles "https://github.com/vedanta/the-system/blob/main/.claude/styles"
click node_docs_user "https://github.com/vedanta/the-system/tree/main/docs/user"
click node_docs_dev "https://github.com/vedanta/the-system/tree/main/docs/dev"
click node_docs_status "https://github.com/vedanta/the-system/tree/main/docs/status"
click node_docs_ui "https://github.com/vedanta/the-system/tree/main/docs/the-system-ui"
click node_diagrams "https://github.com/vedanta/the-system/tree/main/diagrams"
click node_app_site "https://github.com/vedanta/the-system/tree/main/app"
click node_site_components "https://github.com/vedanta/the-system/tree/main/components"
click node_public_assets "https://github.com/vedanta/the-system/tree/main/public"
click node_web_site "https://github.com/vedanta/the-system/tree/main/web"
click node_scripts "https://github.com/vedanta/the-system/tree/main/scripts"
click node_tests "https://github.com/vedanta/the-system/tree/main/tests"
click node_test_legacy "https://github.com/vedanta/the-system/tree/main/test"
click node_github_actions "https://github.com/vedanta/the-system/blob/main/.github/workflows/deploy-web.yml"
click node_build_out "https://github.com/vedanta/the-system/tree/main/out"

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_claude_commands,node_claude_agents,node_claude_config,node_claude_hooks,node_claude_styles toneBlue
class node_docs_user,node_docs_dev,node_docs_status,node_docs_ui,node_diagrams toneAmber
class node_app_site,node_site_components,node_public_assets,node_web_site toneMint
class node_scripts,node_tests,node_test_legacy,node_github_actions,node_build_out toneRose
```

## Components

### Control plane

Claude Code orchestration surface that drives the framework workflow.

- [Commands](https://github.com/vedanta/the-system/blob/main/.claude/commands): command surface · The /ts command layer used to initiate and steer staged work. · `.claude/commands`
- [Agents](https://github.com/vedanta/the-system/blob/main/.claude/agents): specialist personas · Role definitions for the specialist agent fleet that executes work. · `.claude/agents`
- [Config](https://github.com/vedanta/the-system/blob/main/.claude/config): runtime config · Presets, integrations, preferences, and build/runtime settings. · `.claude/config`
- [Hooks](https://github.com/vedanta/the-system/blob/main/.claude/hooks): lifecycle automation · Automation such as checkpoint behavior and command lifecycle actions. · `.claude/hooks`
- [Styles](https://github.com/vedanta/the-system/blob/main/.claude/styles): presentation templates · Design styles and reusable UI/content templates used by workflow commands. · `.claude/styles`

### Knowledge plane

Documentation, diagrams, templates, and versioned guidance.

- [User docs](https://github.com/vedanta/the-system/tree/main/docs/user): end-user guidance · User-facing documentation for commands, workflow, configuration, and tutorials. · `docs/user`
- [Dev docs](https://github.com/vedanta/the-system/tree/main/docs/dev): implementation notes · Working documentation for plans, designs, reports, and internal decisions. · `docs/dev`
- [Status docs](https://github.com/vedanta/the-system/tree/main/docs/status): progress snapshots · State and progress reporting for the system over time. · `docs/status`
- [UI docs](https://github.com/vedanta/the-system/tree/main/docs/the-system-ui): ui reference · Documentation focused on the The System UI site and its architecture. · `docs/the-system-ui`
- [Diagrams](https://github.com/vedanta/the-system/tree/main/diagrams): architecture visuals · Mermaid diagrams that capture org structure, workflow, agents, and gates. · `diagrams`

### Presentation plane

Primary website and alternate static delivery surface.

- [Next.js site](https://github.com/vedanta/the-system/tree/main/app): static web app · Primary site built from the Next.js app router and shared components. · `app`
- [UI components](https://github.com/vedanta/the-system/tree/main/components): react components · Core site components such as hero and navigation. · `components`
- [Public assets](https://github.com/vedanta/the-system/tree/main/public): static assets · Images and other public files served by the main site. · `public`
- [Static web](https://github.com/vedanta/the-system/tree/main/web): alternate delivery · Separate lightweight static web surface with its own deployment paths. · `web`

### Operations plane

Scripts, tests, build outputs, and deployment automation.

- [Scripts](https://github.com/vedanta/the-system/tree/main/scripts): automation tools · Repository maintenance, validation, docs cleanup, and install helpers. · `scripts`
- [Tests](https://github.com/vedanta/the-system/tree/main/tests): validation suite · Install, integration, and repository-wide verification entry points. · `tests`
- [Test harness](https://github.com/vedanta/the-system/tree/main/test): legacy validation · Additional test runners and Docker-based validation fixtures. · `test`
- [CI workflow](https://github.com/vedanta/the-system/blob/main/.github/workflows/deploy-web.yml): deployment automation · GitHub Actions pipeline that publishes the web surface. · `.github/workflows/deploy-web.yml`
- [Build output](https://github.com/vedanta/the-system/tree/main/out): generated static site · Static-export artifacts produced by the web build and release path. · `out`

## Connections

- Commands → Agents: dispatches work to · Commands select specialist agents for staged execution.
- Commands → Config: reads policy · Command behavior is shaped by presets, integrations, and preferences.
- Commands → Hooks: triggers lifecycle · Hooks automate checkpoints and other command lifecycle steps.
- Commands → Dev docs: produces updates · Command-driven work creates and refreshes implementation documentation.
- Agents → Dev docs: write artifacts · Specialist agents generate plans, reports, and design documents.
- Agents → Diagrams: reference workflow · Agent and workflow diagrams document the multi-agent system.
- Styles → Next.js site: informs UI · Style templates influence the visual presentation layer.
- Dev docs → User docs: distills guidance · Internal design and implementation notes are turned into user-facing docs.
- Dev docs → Status docs: reports progress · Project state and completion snapshots feed status documentation.
- Dev docs → Diagrams: captures flows · Architecture and workflow decisions are represented as diagrams.
- UI docs → Next.js site: describes site · UI documentation explains the presentation layer and its behavior.
- Next.js site → UI components: composes · The site is assembled from reusable React components.
- Next.js site → Public assets: serves · Static assets are delivered with the main site.
- Static web → CI workflow: publishes via · The alternate static web surface is deployed through automation.
- Scripts → User docs: maintains · Maintenance scripts update and validate user documentation.
- Scripts → Dev docs: checks quality · Scripts enforce docs conventions and repository hygiene.
- Tests → Scripts: validates · Test runners exercise install and verification tooling.
- Test harness → Tests: extends · Legacy harnesses and Docker fixtures supplement the main test suite.
- CI workflow → Build output: creates · CI publishes the generated static output used for deployment.
- Build output → Next.js site: exports from · The static output is generated from the primary web application.
- Build output → Static web: supports · Generated artifacts can support lightweight web delivery paths.
- Commands → User docs: operates through · Command workflows surface documentation and user guidance.
