Case 01: twentyhq/twenty (24,527 files)
Report
Recall across 381 ground-truth items: 3.4% (13/381) from CBM graph vs 100% (381/381) directly from graph.db (0 source file reads).
CodeExplorer indexes your repositories into one local SQLite database. Inspect architecture diagrams in VS Code, expose structural queries to coding agents over MCP, and check layer boundaries in CI.
CodeExplorer scans your repository once into .codeexplorer/graph.db so your IDE, coding agent, and pull-request checks read the same structural graph.
ce mcp
Who breaks if I change PaymentProcessor.ChargeAsync?
get_call_chain(symbol: "ChargeAsync", direction: "callers", depth: 4)
CaptureOrderHandler.Handle1 hopCheckoutController.SubmitOrder2 hopsRenewalConsumer.Consume2 hopsMobileCheckoutEndpoint.Execute3 hopsFour callers across Billing, Orders, Subscriptions, and the mobile gateway. I will update the two direct callers and verify the renewal consumer tests.
# 1. Index polyglot workspace into .codeexplorer/graph.db $ ce scan Indexed 452 modules, 18,420 types, 142,810 edges in 3.4s # 2. Check Semantic Invariant Gates & affected tests $ ce gate check && ce test impact --git -f commands pass SIG-CA-B-001 Domain Layer Must Not Reference Infrastructure pass SIG-DDD-001 No Shared Table Writes Across Services fail SIG-AST-012 No Blocking .Result or .Wait() Inside Async Functions Payments.Api.WebhookController.HandleStripeAsync src/Payments.Api/Controllers/WebhookController.cs:112 1 new violation. 2 legacy violations tolerated by baseline. Exit 1.
~7.0×
faster time to answer
Answered in 1m 33s vs 9m 15s on twentyhq/twenty (7 vs 28 turns) and 4m 16s vs 29m 52s across 324 services (18 vs 285 turns).
100% recall on paired architectural audits (~98% across ORM queries, raw SQL tables, and message broker topics where AST-only indexers and ripgrep miss callers and services).
twentyhq/twenty (24,527 files)Recall across 381 ground-truth items: 3.4% (13/381) from CBM graph vs 100% (381/381) directly from graph.db (0 source file reads).
Paired agent runs with identical system prompts. Bars show wall-clock time to answer.
Ask structural and cross-service questions in Cypher instead of chaining grep across dozens of files.
MATCH path = (caller:Function)-[:CALLS*1..4]-> (target:Function {name: "ChargeAsync"}) RETURN caller.symbol AS UpstreamCaller, length(path) AS Hops ORDER BY Hops ASC LIMIT 10
Finds upstream callers within 4 hops that reach PaymentProcessor.ChargeAsync.
| UpstreamCaller | Hops |
|---|---|
| Billing.Application.Commands.CaptureOrderHandler.Handle | 1 |
| Orders.Api.Controllers.CheckoutController.SubmitOrder | 2 |
| Subscriptions.Worker.Consumers.RenewalConsumer.Consume | 2 |
| Gateway.Bff.Endpoints.MobileCheckoutEndpoint.Execute | 3 |
Linters inspect one file at a time. Semantic Invariant Gates (SIG) check dependencies and dataflow across the full 5-layer graph, with a SHA-256 baseline ratchet so legacy violations stay frozen while new ones fail the build.
id: SIG-CA-B-001 name: Domain Layer Must Not Reference Infrastructure severity: Error target: "{inf.name}" message: "Domain type '{d.name}' references infrastructure type '{inf.name}'" query: |- MATCH (d:Type)-[:DEPENDS_ON|INHERITS|IMPLEMENTS]->(inf:Type) WHERE d.file_path CONTAINS "/Domain/" AND (inf.file_path CONTAINS "/Infrastructure/" OR inf.symbol CONTAINS "DbContext") RETURN d, inf
Blocks any type inside a Domain module from referencing Infrastructure or EF Core types.
.codeexplorer/gates/*.yaml or scaffold defaults with ce gate init.
ce gate ratchet --update to record SHA-256 fingerprints of existing legacy violations in .codeexplorer/baselines/*.json.
ce gate check passes when only baselined debt is present and exits with code 1 when a PR introduces a new violation.
.github/workflows/architecture-gates.yml
name: Architecture Invariant Gates on: [pull_request] jobs: invariant-gates: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - name: Install CodeExplorer CLI run: curl -fsSL https://code-explorer.app/install.sh | sh - name: Build Graph & Verify Invariant Gates run: | ~/.local/bin/ce scan ~/.local/bin/ce gate check --format sarif > results.sarif
Every node and relationship in .codeexplorer/graph.db belongs to one of five layers, from files on disk up to services, queues, SQL tables, and bounded contexts.
.codeexplorer/detectors/custom-bus.yaml
schema_version: 1 id: internal-rpc-bus name: Internal RPC & Event Bus languages: [java, kotlin, typescript] packages: ["com.acme.platform:rpc-bus*"] messaging_brokers: - protocol: acme-bus listener_annotations: [BusSubscriber] publish_methods: [publishEvent]
Spot uncovered legacy or internal packages with ce doctor --gaps, drop a declarative YAML detector into .codeexplorer/detectors/, and validate with ce detector validate without recompiling.
Single native binary. Runs locally on your machine and CI runners with no account, cloud dependencies, or source code uploads.
brew install vmikhailov/tap/ce
Install native binary via Homebrew on macOS (Apple Silicon & Intel) or Linux.
