Architecture
System Architecture
Monorepo layout, system topology, and core architectural invariants of Andromity.
Andromity is engineered as a modular, open-source system consisting of the Python core runtime, native VS Code extension, and developer tooling.
Core Subsystems
| Subsystem | Tech Stack | Responsibility |
|---|---|---|
src/andromity/ | Python 3.11+, Textual, LiteLLM, Rich | Core agent runtime, tool execution engine, MCP client, memory, subagent tree, and TUI. |
vscode-extension/ | TypeScript, VS Code Webview API, esbuild | Official VS Code extension: Secondary Sidebar pairing, inline plans, and live diffs. |
landing-page-next/ | Next.js 16, React 19, Tailwind CSS v4 | Official documentation, marketing, and onboarding portal. |
High-Level Topology
graph TD
subgraph Local Developer Machine
ClientIDE[VS Code Secondary Sidebar]
ClientCLI[Terminal TUI / CLI]
AgentCore[Python Agent Core: src/andromity]
LocalOllama[(Local Ollama - 100% Offline)]
end
subgraph LLM Providers
Claude[Anthropic Claude 3.7]
GPT[OpenAI GPT-4o]
Gemini[Google Gemini 2.5]
Groq[Groq LPU]
end
ClientIDE <--> AgentCore
ClientCLI <--> AgentCore
AgentCore -.->|Local Offline Inference| LocalOllama
AgentCore -->|BYOK Direct API| Claude
AgentCore -->|BYOK Direct API| GPT
AgentCore -->|BYOK Direct API| Gemini
AgentCore -->|BYOK Direct API| GroqCore Architectural Invariants
Agents and contributors modifying Andromity must uphold the following invariants:
- Trust Boundary First: Folder trust is resolved before permission checks. If a folder is untrusted, all mutating actions are unconditionally blocked.
- Stateless Edge Gateway (Zero-PII): The gateway acts strictly as a stateless stream router. It never persists, logs, or stores user source code, prompts, completions, or file contents.
- Guaranteed Real-Time Streaming: Token streams must use unbuffered
ReadableStreamSSE streaming (text/event-stream). Tokens must never be buffered in memory. - Lazy MCP Loading: Model Context Protocol (MCP) tool schemas are loaded lazily on demand to prevent prompt context window exhaustion.
Fingerprint
Andromity's Fingerprint panel shows what the coding agent read, changed, ran and delegated in a session, turn by turn, with a blast-radius view, sensitive-file checks and subagent drilldown.
Edge Gateway Architecture
Zero-PII streaming proxy, multi-provider failover chains, and dynamic edge rate limiting.