Architectural intelligence & governance
for engineers and AI agents
Turn polyglot codebases into a local, deterministic 5-layer property graph—powering interactive architecture maps in VS Code, surgical MCP context for AI agents, and automated Semantic Invariant Gates in CI/CD.
⚡ Polyglot AST graph
Tree-sitter + config indexing into a single local SQLite file in seconds.
🪐 Living visuals
Interactive orbital topology, async event flows, and DB lineage inside VS Code.
🤖 MCP + CLI context
44× fewer tokens and 7.6× faster analysis for cloud & on-prem LLMs.
🛡️ Invariant gates
Deterministic CI/CD architecture gates (< 2s) with Ratchet Baselines.
Codebases grow faster than
humans & AI can understand them
As systems scale across microservices, event buses, and databases, both engineers and AI coding agents lose structural visibility—leading to architectural drift.
📉 Blindness & stale diagrams
- Confluence & C4 diagrams rot the day after they are drawn.
- IDE "Find Usages" breaks across REST APIs, Kafka/RabbitMQ topics, and SQL tables.
- Tech Leads turn into human linters reviewing 40–50 Merge Requests a day.
🤖 Context blindness via grep
- AI agents explore code via blind text search (
grep) and reading hundreds of raw files. - Burns 40×+ extra tokens and overflows context windows.
- LLMs hallucinate transitive call chains and break architectural boundaries.
🔓 Zero structural control in CI
- Static linters (Sonar, ESLint, Detekt) only check single-file syntax and style.
- Nothing stops a PR from bypassing an integration layer or leaking DB entities into APIs.
One deterministic code graph.
Two purpose-built interfaces.
CodeExplorer parses your repository into a single local SQLite property graph (.codeexplorer/graph.db) and serves two distinct consumers:
🤖 MCP Server + CLI
Gives AI agents (Claude Code, Cursor, Windsurf, Copilot, or local on-prem LLMs) surgical architectural intelligence:
- Local
stdioMCP Server: 19 specialized graph tools (get_architecture_map,get_call_chain,analyze_code_impact,inspect_data_lineage). - Headless CLI & OpenCypher: Agents query exact multi-hop relationships in milliseconds instead of reading 50 files.
- Result: 44× fewer tokens, 7.6× faster task completion, 100% recall.
👨💻 VS Code visuals + CLI
Gives humans instant visual comprehension and automated architectural control directly inside their workflow:
- Interactive VS Code extension: Living orbital architecture maps, domain clustering, event pub/sub flows, and DB lineage with 1-click source navigation.
- CLI for dev & CI/CD (
ce parse,ce gate): Instant local impact checks and automated Merge Request gates in CI. - Result: Zero stale diagrams and automated architectural enforcement.
From raw polyglot code to a 5-layer semantic graph in seconds
The CodeExplorer workflow moves through 4 stages: 1. Scan → 2. Explore architecture → 3. Connect AI → 4. Control via SIG.
Java, Kotlin (Backend & Android), C#, TypeScript/JS, Python, Go, Rust, SQL + Swift (iOS) track.
Spring Boot, ASP.NET, NestJS, Kafka, RabbitMQ, MassTransit, JPA/Hibernate, MapStruct, EF Core, Redis.
Indexes 100k–500k LOC repositories into a 5-layer graph (L1 structure → L4 topology → L5 views).
SHA-256 content hashing re-parses only modified files in local SQLite (.codeexplorer/graph.db).
# Stage 1: Index any repository locally or on a CI runner with a single command (100% offline) $ ce parse . ✓ Parsed 1,420 files across 14 services in 6.4s (incremental: 0.8s) → .codeexplorer/graph.db
Complete system topology extracted automatically from code
No manual drawing. CodeExplorer synthesizes ASTs and configuration files (application.yml, appsettings.json, .env) into concentric architectural orbits.
🪐 Concentric orbits
- Orbit 0 (Blue): Client apps, gateways & BFFs.
- Orbit 1 (Amber): Message topics & event queues.
- Orbit 2 (Red/Purple): Domain microservices & workers.
- Outer ring (Purple): Databases, Core systems & caches.
🎯 Instant architectural onboarding
Open any unfamiliar repository and immediately see every deployable host, how services communicate, and which databases they touch.
Smart architectural grouping: zero "spaghetti" diagrams
Collapse hundreds of microservices and message topics into high-level logical tiers (Apps ×4 → Services ×6 → Topics ×14).
📦 Automatic & custom grouping
- 1-click tier collapse: Group all apps, services, or message topics into clean orbital clusters.
- Custom domain groups: Select any set of nodes to form custom bounded contexts or team ownership domains.
- High-level clarity: Ideal for architects, tech leads, and product managers estimating cross-team scope.
Click any group to inspect contained entities & call volumes
Clicking Topics (14) reveals message volume badges (12 msgs, 6 msgs, 5 msgs) and lists every member in the inspector.
🔎 Complete group breakdown
- Grouped entities (14): Lists all 14 integration events and queues inside the cluster with instant search filter.
- Connected services (7): Shows every service interacting with the group and its exact role (
Publishervs.Subscriber). - Aggregated edge badges: Shows exact message and call counts on every arrow.
1-click event lineage: who publishes & who subscribes
Standard IDE "Find Usages" stops at Kafka, RabbitMQ, or EventBus boundaries. CodeExplorer links producers and consumers into one graph.
⚡ Instant async blast radius
- Selected topic:
OrderStatusChangedToAwaitingValidation... - Producer:
Ordering ApiPublisher - Consumers:
Catalog ApiSubscriber &webappSubscriber - Config resolution: Resolves topic names from
application.ymland constants automatically.
Database, ORM entity, raw SQL & stored procedure lineage
Trace data flow from API controllers and workers down to specific database schemas, tables, and stored procedures—with clickable code provenance.
🗄️ End-to-end persistence traceability
- ORM & repositories: Tracks JPA/Hibernate (
@Entity,@Table,@Query), EF Core, Dapper, Prisma, TypeORM. - Raw SQL & stored procedures: Parses embedded SQL in
JdbcTemplate, migrations, and Core Banking stored procedure calls (@Procedure,SimpleJdbcCall). - Clickable evidence: Every dependency edge points to the exact file & line in source code.
Turning blind LLMs into architecture-aware engineers
Instead of burning tokens on grep and guessing file dependencies, AI agents query CodeExplorer's deterministic graph via local stdio MCP or CLI.
🔌 19 specialized MCP tools & CLI
get_architecture_map— Instant system topology, services, and ingress/egress points in one call.get_call_chain&analyze_code_impact— Exact multi-hop callers, callees, and blast radius before refactoring.inspect_data_lineage— Which services read or write to a specific database table or stored procedure.cypher_query— Full OpenCypher graph queries over AST symbols and relationships.
⚡ Verified benchmark impact
Works with cloud agents (Claude Code, Cursor, Copilot) and 100% air-gapped local LLMs (vLLM, Ollama, Qwen, DeepSeek):
# Zero open network ports — pure local stdio pipe
$ ce mcp --workspace .
Semantic Invariant Gates (SIG): executable architecture in CI
Visibility alone doesn't stop architectural drift. Once your architecture is a graph, every architectural boundary becomes a deterministic CI gate.
🛡️ Protecting Core Banking / legacy adapters
Block any Merge Request where business logic or controllers invoke Core Banking clients or legacy stored procedures outside the designated integration.* adapter layer:
id: CORE-ARCH-001
name: core-banking-only-via-integration-layer
cypher: >
MATCH (caller:Type)-[:CALLS|USES_TYPE*1..2]->(target)
WHERE target.namespace CONTAINS 'corebanking'
AND NOT caller.namespace CONTAINS 'integration.corebanking'
RETURN caller.file_path AS file, caller.start_line AS line,
caller.name AS symbol, target.name AS target
🧬 Enforcing @Entity → MapStruct → DTO
Guarantee persistence entities never leak into REST controllers or public DTOs—explicitly permitting mapping only inside *Mapper classes:
id: ORM-HYGIENE-002
name: jpa-entity-only-in-mapstruct-mappers
cypher: >
MATCH (c:Type)-[:CALLS|USES_TYPE|DEPENDS_ON]->(e:Type)
WHERE e.annotations CONTAINS 'Entity'
AND (c.name ENDS WITH 'Controller' OR c.name ENDS WITH 'Dto')
AND NOT c.name ENDS WITH 'Mapper'
RETURN c.file_path AS file, c.start_line AS line,
c.name AS symbol, e.name AS target
The "Ratchet" baseline & why linters / LLMs cannot replace SIG
Enable strict architectural gates in a 500k-line legacy codebase today in 5 minutes—without turning existing Pull/Merge Requests red.
| Capability | Static linters (Sonar / Detekt / ESLint) | Raw LLM PR review | CodeExplorer SIG (ce gate) |
|---|---|---|---|
| Multi-hop transitive calls | ❌ Single-file syntax only | ⚠️ Hallucinates paths | ✅ 100% deterministic AST call graph |
| Cross-layer / ORM / event rules | ❌ Blind to semantic topology | ⚠️ Non-deterministic (cannot block CI) | ✅ Strict graph gate (0 false negatives) |
| Legacy codebase adoption | ❌ Floods CI with 1,000 old errors | ❌ No baseline state | ✅ Ratchet baseline (blocks only +1 new) |
| Execution speed in CI/CD | 🐢 2–5 minutes | 🐢 1–3 minutes + GPU cost | ⚡ < 2 seconds per Pull / Merge Request |
# 1. Snapshot legacy debt into baseline (5 min) 2. Headless GitLab CI / GitHub Actions gate (< 2s)
$ ce gate --update-baseline $ ce parse . && ce gate --baseline .codeexplorer/gate-baseline.json
Where we are taking Semantic Invariant Gates next
Evolving SIG from single-repository CI checks into an autonomous, enterprise-wide architectural governance platform:
🪄 AI-synthesized gates
Architects describe invariants in plain English ("Payment services must never query Customer tables directly") and the AI agent synthesizes, tests, and locks the deterministic OpenCypher gate via MCP.
🔄 Real-time agent correction
Before an AI coding agent even opens a Pull Request, it runs ce gate via MCP in its inner loop—catching and auto-fixing its own architectural violations before a human ever sees the code.
ce pack)
📦 Pluggable enterprise rule packs
Zero-compile YAML archetype & SIG packs for industry standards (Banking Core / DBOS, Clean/Hexagonal architecture, DDD, Mobile MVVM) shared across all teams in seconds.
🏛️ Organization-wide graph server
Stitching 100+ repositories into a centralized on-premise graph to enforce cross-repo API contracts, event schema compatibility, and organization-wide ratchet baselines.
Built for strict air-gapped perimeters & high-velocity CI/CD
Engineered from day one to satisfy strict banking InfoSec, Central Bank data residency, and on-premise CI/CD requirements:
🔒 100% air-gapped & zero telemetry
- 100% offline native binary: Parsing, VS Code visualization, and CI gates run completely offline without internet access.
- Zero outbound calls: No telemetry, no analytics, no external webhooks. Source code never leaves your perimeter.
- Local SQLite storage: The entire graph lives in a single file (
.codeexplorer/graph.db) inside your repo/runner cache, governed by your OS & GitLab permissions.
⚙️ Zero cloud LLM keys • headless CI ready
- No LLM required for core engine:
ce parseandce gateare 100% deterministic AST/graph engines—zero cloud API keys needed, zero hallucinations. - Drop-in GitLab CI / runner ready: Runs headless on any Linux/Windows runner in 1–3 seconds per Merge Request (incremental SHA-256 hashing).
- Pure
stdioMCP: Connects to IDEs and internal on-prem LLMs via standard input/output streams—opens0network ports.
From a 2-week single-repository pilot to organization-wide scale
Proven adoption path for high-velocity engineering teams (50+ engineers, 40–50 Merge Requests/day, multiple parallel stack instances):
🚀 1-repository pilot
- Deploy the air-gapped
cebinary on 1 target repository inside your internal GitLab CI. - Configure 5 production gates (Core adapter isolation, JPA
@Entity→MapStruct→DTO, layer boundaries). - Lock existing legacy debt via ratchet baseline so CI stays green from day 1.
🧩 Tailored domain packs
- Custom YAML rule & recognizer packs for your internal platforms (e.g., Core Banking adapters, Digital Banking OS, stored procedures, internal SDKs).
- Full-stack coverage across backend (Java, Kotlin, Spring, SQL, .NET) and mobile (Android Kotlin & iOS Swift).
🏛️ Centralized multi-repo graph
- On-premise centralized graph server uniting all microservices, mobile apps, and parallel stack copies.
- Commercial enterprise licensing with dedicated SLA, priority parser engineering, and architect training.
Thank you!
Product portal & live demos
code-explorer.appInteractive architecture showcase, OpenCypher playground, VS Code extension & CLI install guides.
Viacheslav Mikhailov
[email protected]Creator of CodeExplorer • Enterprise pilots, custom architecture packs & licensing.