How yasir2000/archipilot works
archipilot is a VS Code Copilot Chat extension for managing TOGAF-aligned architecture work in Obsidian vaults. The main workflow is an architect command routed through the chat participant, which builds a prompt using vault context, receives a Copilot response, and may validate and apply structured updates; read-only analysis and exports are other outcomes. The graph preserves documented scanning, governance, diagramming, and export capabilities. Some subsystem links come from the README workflow because the participant implementation is only partially excerpted.
Main entry points: index.ts Core engine · participant.ts Chat participant · updater.ts File updater · sidebar.ts Vault sidebar
Components 22
User interaction
- Chat participant
src/participant.ts - Vault sidebar
src/sidebar.ts - Extension commands
src/extension.ts
Chat orchestration
- Prompt builder
src/prompts.ts - Context windowing
src/core/context.ts
Vault management
- Vault manager
src/vault.ts - Obsidian vault
- TOGAF templates
src/vault-template.ts
Architecture capabilities
- Workspace scanner
src/source-scanner.ts - Core engine
src/core/index.ts - Command parser
src/core/parser.ts - Vault validator
src/core/validator.ts - TOGAF action items
src/core/todo-extractor.ts - ArchiMate export
src/core/archimate-exporter.ts - ArchiMate viewpoints
src/core/archimate-templates.ts - Draw.io export
src/core/drawio-exporter.ts - C4 scaffolding
src/core/c4-scaffold.ts - Sizing and timeline
src/core/sizing-scaffold.ts
Governed changes
- File updater
src/updater.ts - Vault mutations
src/core/mutations.ts
Other components
- Enterprise architect
- Copilot LLM
Connections 24
- Enterprise architect → Chat participant: sends commands
README.md - Enterprise architect → Vault sidebar: opens explorer
README.md - Enterprise architect → Extension commands: runs commands
README.md - Vault sidebar → Extension commands: routes actions
README.md - Chat participant → Prompt builder: builds prompts
src/participant.ts - Chat participant → Vault manager: loads vault
src/participant.ts - Chat participant → Core engine: uses core
src/participant.ts - Chat participant → Workspace scanner: scans workspace
src/participant.ts - Chat participant → TOGAF templates: creates vault
src/participant.ts - Prompt builder → Copilot LLM: sends prompt
README.md - Vault manager → Obsidian vault: reads vault
README.md - Context windowing → Obsidian vault: filters context
README.md - Core engine → Obsidian vault: scans read-only
README.md - Core engine → File updater: hands off changes
README.md - File updater → Obsidian vault: writes updates
README.md - File updater → Command parser: parses commands
src/updater.ts - File updater → Vault validator: validates updates
src/updater.ts - File updater → Vault mutations: applies edits
src/updater.ts - Core engine → TOGAF action items: provides actions
src/core/index.ts - Core engine → ArchiMate export: exports models
src/core/index.ts - Core engine → ArchiMate viewpoints: builds viewpoints
src/core/index.ts - Core engine → Draw.io export: exports diagrams
src/core/index.ts - Core engine → C4 scaffolding: scaffolds C4
src/core/index.ts - Core engine → Sizing and timeline: scaffolds plans
src/core/index.ts