Architecture & Internals

July 28, 2026 ยท View on GitHub

Deep references for how repowise is built. These are for contributors and the curious; you don't need them to use repowise (start with the docs index for that).

DocCovers
ARCHITECTURE.mdThe single end-to-end system reference: stores, provider abstraction, the init and maintenance pipelines, git intelligence, dead code, decisions, MCP/REST/UI layers, and key design decisions
deep-dives.mdAlgorithm-level treatment of the hard parts: dead-code detection, the decision/ADR system, search & vector-store internals, incremental updates & webhooks, the change-cascade algorithm
code-health.mdThe code-health layer as a full vertical slice: pipeline, the 25+ markers, scoring, trends, persistence schema, and extension points
language-support.mdThe language pipeline internals and the step-by-step recipe for adding a new language
graph-algorithms.mdThe graph algorithms (PageRank, betweenness, Tarjan SCC, Louvain, shortest path) with the math and complexity
chat.mdThe Codebase Chat feature: schema, ChatProvider protocol, SSE streaming, the agentic loop, and per-provider notes
structurizr-export.mdExporting the architecture as Structurizr DSL: the two-file model, health and layer tags, and how to render it
editor-files.mdHow CLAUDE.md / AGENTS.md generation works (no LLM: pure DB + filesystem derivation) and how to add a new editor file
pluggable-storage.mdExtension guide for authoring storage / graph / job-store plugins and adding CLI subcommands or MCP tools

For the design-token and theme tooling, see ../design/.