Your entire monorepo in one file.
supergraph analyzes your monorepo and generates a compact, structured text map of every module, every symbol, every cross-package edge, and every issue. One file an AI agent can read to understand your entire codebase. One file a human can grep to answer any structural question.
Installs the supergraph binary. The curl script also installs the /deep-audit command for Claude Code.
Running supergraph in your monorepo generates audit/supergraph.txt — a structured, compressed map of your entire module graph. Every package, every exported symbol, every dependency edge, every issue.
GNOMEFORTRESS-V2 SUPERGRAPH | 2026-03-05
365m · 852ie · 209xe
# PACKAGES (short=npm,modules)
agent=@gnomefortress/agent,7m cli=@gnomefortress/cli,13m
core=@gnomefortress/core,14m fortress=@gnomefortress/fortress,85m
graph=@gnomefortress/graph,37m flow=@gnomefortress/flow,35m ...
# MODULES
# path [exp(/total)]<-importers symbols | ext-deps
[fortress]
actors/orchestrator [68/93]<-2 OrchestratorActorContext,OrchestratorActorInput,actor,+63
| @gnomefortress/constants,@gnomefortress/graph,xstate
events [119/120]<-16 AbortEvent,ActorErrorLog,AnomalyDetectedEvent,+111
| @gnomefortress/graph,xstate
types [69/71]<-47 AnomalyDetectorState,Checkpoint,ComposeResult,+61
| @gnomefortress/core,@gnomefortress/graph
[graph]
store/graph-store [2/4]<-9 SerializedGraph,GraphStore | graphology
schema/nodes [4]<-11 SymbolNode,SymbolKind,createSymbolNode,KIND_PRIORITY
schema/edges [3]<-10 SymbolEdge,EdgeKind,createSymbolEdge
# CROSS-PACKAGE DEPENDENCIES
fortress/actors/orchestrator -> constants/idx graph/idx graph-bridge/idx utils/idx xstate/idx
fortress/events -> graph/idx graph-bridge/idx xstate/idx
fortress/types -> graph/idx graph-bridge/idx core/idx
The install script adds /deep-audit as a Claude Code slash command. Point it at any package and it performs a systematic, multi-pass audit — finding bugs, dead code, overengineering, race conditions, and logical errors. All results written to disk as actionable plans.
/deep-audit packages/orchestrator/src
audit/<package>/findings.md and audit/<package>/plans/. The deep-audit reads code itself — no subagent delegation during analysis phases — so it maintains full cross-file context.
Large monorepos exceed the context window of any AI model when loaded naively. supergraph.txt solves this: a pre-analyzed, structured map of every relationship in the codebase.
The HTML visualization is useful for humans exploring the graph interactively. But for AI agents, plain text is the native format. supergraph.txt is grep-able, diff-able, and small enough to fit in a single context window. The agent knows the architecture before writing a single line of code.
supergraph also generates audit/supergraph.html — a fully self-contained, zero-dependency interactive visualization of the module graph. Physics simulation, search, package filtering, issue overlays.
p.| key | action |
|---|---|
| p | Toggle physics simulation |
| l | Toggle module labels |
| Escape | Close detail panel |
| scroll | Zoom in / out |
| drag | Pan canvas / pin nodes |