How vedanta/the-system works
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: dev Dev docs · commands Commands · app Next.js site · agents Agents
Components 19
Control plane
Claude Code orchestration surface that drives the framework workflow.
- Commands · The /ts command layer used to initiate and steer staged work.
.claude/commands - Agents · Role definitions for the specialist agent fleet that executes work.
.claude/agents - Config · Presets, integrations, preferences, and build/runtime settings.
.claude/config - Hooks · Automation such as checkpoint behavior and command lifecycle actions.
.claude/hooks - Styles · Design styles and reusable UI/content templates used by workflow commands.
.claude/styles
Knowledge plane
Documentation, diagrams, templates, and versioned guidance.
- User docs · User-facing documentation for commands, workflow, configuration, and tutorials.
docs/user - Dev docs · Working documentation for plans, designs, reports, and internal decisions.
docs/dev - Status docs · State and progress reporting for the system over time.
docs/status - UI docs · Documentation focused on the The System UI site and its architecture.
docs/the-system-ui - Diagrams · Mermaid diagrams that capture org structure, workflow, agents, and gates.
diagrams
Presentation plane
Primary website and alternate static delivery surface.
- Next.js site · Primary site built from the Next.js app router and shared components.
app - UI components · Core site components such as hero and navigation.
components - Public assets · Images and other public files served by the main site.
public - Static web · Separate lightweight static web surface with its own deployment paths.
web
Operations plane
Scripts, tests, build outputs, and deployment automation.
- Scripts · Repository maintenance, validation, docs cleanup, and install helpers.
scripts - Tests · Install, integration, and repository-wide verification entry points.
tests - Test harness · Additional test runners and Docker-based validation fixtures.
test - CI workflow · GitHub Actions pipeline that publishes the web surface.
.github/workflows/deploy-web.yml - Build output · Static-export artifacts produced by the web build and release path.
out
Connections 22
- 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.