opencode-ai/opencode · Architecture
A static read of how opencode-ai/opencode is wired together — module coupling, layering, and circular dependencies — derived from its import graph.
A
Architecture grade
score 99/100
0
Import cycles
lower is better
140
Modules parsed
312 edges
99%
Layeredness
clean-layer ratio
Most-depended-on modules
These are the highest-fan-in files — change them and the blast radius is largest. Read them first.
- internal/config/config.go40 importers · radius 53
- internal/logging/logger.go33 importers · radius 62
- internal/tui/theme/catppuccin.go28 importers · radius 36
- internal/tui/styles/background.go22 importers · radius 27
- internal/tui/util/util.go18 importers · radius 21
- internal/llm/models/anthropic.go17 importers · radius 58
- internal/message/attachment.go16 importers · radius 20
- internal/tui/layout/container.go14 importers · radius 16
Modules (16)
Source directories grouped from the import graph. Each links to a per-module page with its files and how it couples to the rest.
- internal/logging2 files · 33 in-degree
- internal/tui/theme2 files · 28 in-degree
- internal/tui/styles3 files · 22 in-degree
- internal/llm/models2 files · 17 in-degree
- internal/message3 files · 16 in-degree
- internal/tui/layout3 files · 14 in-degree
- internal/llm/tools10 files · 13 in-degree
- internal/lsp5 files · 11 in-degree
- internal/app2 files · 6 in-degree
- internal/tui/components/dialog12 files · 5 in-degree
- internal/llm/agent4 files · 4 in-degree
- internal/tui/components/chat5 files · 3 in-degree
- internal/llm/provider7 files · 1 in-degree
- internal/llm/prompt6 files · 1 in-degree
- internal/tui/page2 files · 1 in-degree
- internal/tui/components/logs2 files · 1 in-degree
Ask AI about opencode-ai/opencode
Grounded in the actual source code. Pick a starter question or write your own.
What does this repo do, in one paragraph?How would I get started using it?What are the main alternatives?Show me the entry point.
Or write your own questionInformational only. RepoPilot summarises public signals at the time of analysis; they can be incomplete or stale. Not professional, security, or legal advice.