# niklasschaeffer/supercode-revised architecture

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

- Interactive diagram: https://gitdiagram.com/niklasschaeffer/supercode-revised
- Repository: https://github.com/niklasschaeffer/supercode-revised

## Overview

SuperCode is an OpenCode extension framework whose principal workflow is project initialization, context loading, command-driven task execution, agent delegation, and memory persistence. Its repository also contains a React landing page. The framework’s command and agent files are present in the tree, but their implementations were not sampled; workflow links below rely on explicit README descriptions. The sampled flag parser only echoes a query, so it does not establish behavioral-flag execution.

Main entry points: [`command`](https://github.com/niklasschaeffer/supercode-revised/tree/main/command) (Command workflows), [`landingpage/src/components`](https://github.com/niklasschaeffer/supercode-revised/tree/main/landingpage/src/components) (Landing sections), [`agent`](https://github.com/niklasschaeffer/supercode-revised/tree/main/agent) (Specialist agents), [`landingpage/src/App.tsx`](https://github.com/niklasschaeffer/supercode-revised/blob/main/landingpage/src/App.tsx) (Landing app)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_framework["Framework workflow"]
  node_commands["Command workflows"]
  node_flags["Flag parser<br/>[flag-parser.ts]"]
end

subgraph group_knowledge["Memory and integrations"]
  node_knowledge_graph["Knowledge Graph"]
  node_memory_bank["Memory Bank<br/>[MCP_Memory_Bank.md]"]
  node_mcp_configs["MCP integrations"]
  node_memory_files[("Project memory files<br/>[.aim]")]
end

subgraph group_resources["Agent and command resources"]
  node_agents["Specialist agents"]
  node_templates["Templates"]
end

subgraph group_web["Landing page"]
  node_landing_app["Landing app<br/>[App.tsx]"]
  node_landing_sections["Landing sections"]
  node_landing_constants["Page content data<br/>[constants.ts]"]
  node_code_block["Code examples<br/>[code-block.tsx]"]
  node_installation["Installation guide<br/>[Installation.tsx]"]
  node_hero["Hero section<br/>[Hero.tsx]"]
  node_landing_entry["Browser entry<br/>[main.tsx]"]
end

node_developer(("Developer"))
node_opencode["OpenCode"]
node_web_visitor(("Web visitor"))

node_developer -->|"uses framework"| node_opencode
node_opencode -->|"runs commands"| node_commands
node_commands -->|"delegates tasks"| node_agents
node_commands -.->|"accepts flags"| node_flags
node_commands -->|"initializes and saves"| node_knowledge_graph
node_commands -->|"initializes and saves"| node_memory_bank
node_commands -->|"creates memory"| node_memory_files
node_agents -.->|"uses integrations"| node_mcp_configs
node_commands -->|"uses templates"| node_templates
node_web_visitor -->|"opens page"| node_landing_entry
node_landing_entry -->|"renders"| node_landing_app
node_landing_app -->|"renders sections"| node_landing_sections
node_landing_sections -->|"reads content"| node_landing_constants
node_landing_sections -->|"renders examples"| node_code_block
node_landing_sections -->|"includes"| node_installation
node_landing_sections -->|"includes"| node_hero
node_installation -->|"renders"| node_code_block
node_hero -->|"reads content"| node_landing_constants

click node_commands "https://github.com/niklasschaeffer/supercode-revised/tree/main/command"
click node_agents "https://github.com/niklasschaeffer/supercode-revised/tree/main/agent"
click node_flags "https://github.com/niklasschaeffer/supercode-revised/blob/main/tool/flag-parser.ts"
click node_templates "https://github.com/niklasschaeffer/supercode-revised/tree/main/templates"
click node_knowledge_graph "https://github.com/niklasschaeffer/supercode-revised/blob/main/MCP_Knowledge_Graph.md"
click node_memory_bank "https://github.com/niklasschaeffer/supercode-revised/blob/main/MCP_Memory_Bank.md"
click node_mcp_configs "https://github.com/niklasschaeffer/supercode-revised/blob/main/MCP_Chrome_Dev_Tools.md"
click node_memory_files "https://github.com/niklasschaeffer/supercode-revised/tree/main/.aim"
click node_landing_app "https://github.com/niklasschaeffer/supercode-revised/blob/main/landingpage/src/App.tsx"
click node_landing_sections "https://github.com/niklasschaeffer/supercode-revised/tree/main/landingpage/src/components"
click node_landing_constants "https://github.com/niklasschaeffer/supercode-revised/blob/main/landingpage/src/utils/constants.ts"
click node_code_block "https://github.com/niklasschaeffer/supercode-revised/blob/main/landingpage/src/components/ui/code-block.tsx"
click node_installation "https://github.com/niklasschaeffer/supercode-revised/blob/main/landingpage/src/components/Installation.tsx"
click node_hero "https://github.com/niklasschaeffer/supercode-revised/blob/main/landingpage/src/components/Hero.tsx"
click node_landing_entry "https://github.com/niklasschaeffer/supercode-revised/blob/main/landingpage/src/main.tsx"

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_commands,node_flags toneBlue
class node_knowledge_graph,node_memory_bank,node_mcp_configs,node_memory_files toneAmber
class node_agents,node_templates toneMint
class node_landing_app,node_landing_sections,node_landing_constants,node_code_block,node_installation,node_hero,node_landing_entry toneRose
class node_developer,node_opencode,node_web_visitor toneIndigo
```

## Components

### Framework workflow

- [Command workflows](https://github.com/niklasschaeffer/supercode-revised/tree/main/command): `command`
- [Flag parser](https://github.com/niklasschaeffer/supercode-revised/blob/main/tool/flag-parser.ts): `tool/flag-parser.ts`

### Memory and integrations

- [Knowledge Graph](https://github.com/niklasschaeffer/supercode-revised/blob/main/MCP_Knowledge_Graph.md): `MCP_Knowledge_Graph.md`
- [Memory Bank](https://github.com/niklasschaeffer/supercode-revised/blob/main/MCP_Memory_Bank.md): `MCP_Memory_Bank.md`
- [MCP integrations](https://github.com/niklasschaeffer/supercode-revised/blob/main/MCP_Chrome_Dev_Tools.md): `MCP_Chrome_Dev_Tools.md`
- [Project memory files](https://github.com/niklasschaeffer/supercode-revised/tree/main/.aim): `.aim`

### Agent and command resources

- [Specialist agents](https://github.com/niklasschaeffer/supercode-revised/tree/main/agent): `agent`
- [Templates](https://github.com/niklasschaeffer/supercode-revised/tree/main/templates): `templates`

### Landing page

- [Landing app](https://github.com/niklasschaeffer/supercode-revised/blob/main/landingpage/src/App.tsx): `landingpage/src/App.tsx`
- [Landing sections](https://github.com/niklasschaeffer/supercode-revised/tree/main/landingpage/src/components): `landingpage/src/components`
- [Page content data](https://github.com/niklasschaeffer/supercode-revised/blob/main/landingpage/src/utils/constants.ts): `landingpage/src/utils/constants.ts`
- [Code examples](https://github.com/niklasschaeffer/supercode-revised/blob/main/landingpage/src/components/ui/code-block.tsx): `landingpage/src/components/ui/code-block.tsx`
- [Installation guide](https://github.com/niklasschaeffer/supercode-revised/blob/main/landingpage/src/components/Installation.tsx): `landingpage/src/components/Installation.tsx`
- [Hero section](https://github.com/niklasschaeffer/supercode-revised/blob/main/landingpage/src/components/Hero.tsx): `landingpage/src/components/Hero.tsx`
- [Browser entry](https://github.com/niklasschaeffer/supercode-revised/blob/main/landingpage/src/main.tsx): `landingpage/src/main.tsx`

### Other components

- **Developer**
- **OpenCode**
- **Web visitor**

## Connections

- Developer → OpenCode: uses framework (evidence: `README.md`)
- OpenCode → Command workflows: runs commands (evidence: `README.md`)
- Command workflows → Specialist agents: delegates tasks (evidence: `README.md`)
- Command workflows → Flag parser: accepts flags
- Command workflows → Knowledge Graph: initializes and saves (evidence: `README.md`)
- Command workflows → Memory Bank: initializes and saves (evidence: `README.md`)
- Command workflows → Project memory files: creates memory (evidence: `README.md`)
- Specialist agents → MCP integrations: uses integrations
- Command workflows → Templates: uses templates (evidence: `README.md`)
- Web visitor → Browser entry: opens page (evidence: `landingpage/src/main.tsx`)
- Browser entry → Landing app: renders (evidence: `landingpage/src/main.tsx`)
- Landing app → Landing sections: renders sections (evidence: `landingpage/src/App.tsx`)
- Landing sections → Page content data: reads content (evidence: `landingpage/src/components/Installation.tsx`)
- Landing sections → Code examples: renders examples (evidence: `landingpage/src/components/Installation.tsx`)
- Landing sections → Installation guide: includes
- Landing sections → Hero section: includes
- Installation guide → Code examples: renders (evidence: `landingpage/src/components/Installation.tsx`)
- Hero section → Page content data: reads content (evidence: `landingpage/src/components/Hero.tsx`)
