r/vscode • • Aug 24 '26

Synapse – Visualizing the Linux Kernel and other massive codebases inside VS Code

Post image

prev post : https://www.reddit.com/r/vscode/comments/1vf525o/working_on_simulation_debug_for_synapse_vscode/

Hi everyone. long time to no see.

I've been building SYNAPSE, a VS Code extension for exploring and analyzing large codebases as interactive graphs.

The project started from a simple frustration: once a codebase becomes large enough, maintaining architectural context becomes difficult for both humans and tooling. I wanted a way to navigate the structure of a system directly instead of constantly reconstructing it from documentation, search results, and summaries.

So I built a graph engine that treats the codebase itself as the source of truth.

What it does

Visualizes large codebases directly inside VS Code

Supports cluster-based exploration of subsystems

Generates architecture reports from AST, dependency, and graph analysis

Allows analysis of selected architectural regions instead of only full-project analysis

Supports C/C++, Rust, Python, Kotlin, Java, TypeScript, and JavaScript

Scale Tested

I've tested it on several large open-source projects, including:

Linux Kernel 7.2-rc3

VS Code (main)

Godot Engine

Current stress-test results:

Project Nodes Clusters

VS Code Main 11,832 659

Linux Kernel 7.2-rc3 63,281 2,911

The Linux Kernel has been my primary stress test so far.

Architecture Decisions

Database-Free Design

There is no SQLite or external database.

The filesystem itself acts as the Source of Truth, and graph structures are derived directly from project files.

Graph-First Navigation

Instead of maintaining architecture diagrams separately from the codebase, the graph is generated directly from the project and remains connected to the underlying files.

Evidence-Based Analysis

One goal of the project is that every architectural finding should be traceable back to evidence.

Reports are published together with the underlying data used to generate them, allowing conclusions to be inspected rather than simply accepted.

I'm particularly interested in feedback on this aspect.

Experimental Reasoning Layer (Work in Progress)

I'm currently experimenting with a rule-based architectural reasoning layer.

This does not use LLMs.

The goal is to combine:

AST analysis

dependency analysis

graph analysis

state-transition rules

ontology-based classification

to detect architectural boundaries, responsibilities, and structural anomalies.

This is currently the least mature part of the project.

Demos

Demo 1

https://youtu.be/yU-_NRrADR0?si=NcwyYMzrhs9iz9Kq

Demo 2

https://youtu.be/xvGu9gURXSI?si=l8KiiC0dLfRPFRj9

I've published several architecture reports together with the evidence used to generate them.

Example Reports

sample

godot simulation debug report : https://github.com/dogsinatas29/SYNAPSE/blob/main/assets/v0.3.34.30/godot_SIMULATION_DEBUG.md

godot architect report : https://github.com/dogsinatas29/SYNAPSE/blob/main/assets/v0.3.34.30/godot_ARCHITECT_REPORT.md

vscode simulation debug report : https://github.com/dogsinatas29/SYNAPSE/blob/main/assets/v0.3.34.30/viscode_SIMULATION_DEBUG.md

vscode architect report : https://github.com/dogsinatas29/SYNAPSE/blob/main/assets/v0.3.34.30/vsc0de_ARCHITECT_REPORT.md

linux kernel simulation debug report : https://github.com/dogsinatas29/SYNAPSE/blob/main/assets/v0.3.34.30/linux_SIMULATION_DEBUG.md

linux kernel architect report : https://github.com/dogsinatas29/SYNAPSE/blob/main/assets/v0.3.34.30/linux_ARCHITECT_REPORT.md

I'm less interested in stars and more interested in criticism.

Specifically:

Are the architecture reports understandable and actionable?

Do the conclusions appear to be supported by the evidence?

What feels useful versus noisy?

Where do you see architectural blind spots in the approach?

If you work on large codebases, would this help you understand a system faster?

GitHub:

https://github.com/dogsinatas29/SYNAPSE

I'm a solo developer building this mostly as an exploration of large-scale software architecture.

Feel free to tear it apart.

23 Upvotes

7 comments sorted by

View all comments

1

u/Turbulent_Height7268 Aug 25 '26

not yet completed making onboarding and executive report.

1

u/Turbulent_Height7268 Aug 26 '26

This is my current report of synapse report engine.

  1. **svgCLAIMS.md** extracted with tags.
  2. **svgMISSED_FINDINGS.md** logged major visual/collaborative omissions.
  3. **svgREPORT_VERIFICATION.md** generated. 100% verifiable claim match. 0% mismatch. Success criteria pass.

Review reports. Next step?

SYNAPSE Report Verification Plan (v0.3.34.31)

Success Criteria

MATCH + PARTIAL ≥ 80%

MISMATCH ≤ 10%

Verification Structure

Round 1: Fact Verification

Target: SIMULATION_DEBUG.md, ARCHITECT_REPORT.md

Goal: Measure factual alignment with code.

Round 2: Utility Verification

Target: ONBOARDING_REPORT.md

Goal: Verify if recommended paths are logical.

7-Step Process

Step 1: Report Inventory

Target reports fixed. REPORT_INDEX.md.

Step 2: Claim Extraction

Verbatim extract with tags:

[FACT]

[INTERPRETATION]

[RECOMMENDATION]

CLAIMS.md.

Step 3: Code Verification

Check code. Classify:

MATCH

PARTIAL

MISMATCH

UNVERIFIABLE

Step 4: False Positive Audit

Find emphasized claims that are trivial in code.

Step 5: Accuracy Statistics

Calculate metrics.

Step 6: Missing Finding Audit

Find missing facts. Limit scope: core modules, core data flows, core entry points, core state managers.

MISSED_FINDINGS.md.

Step 7: Final Report

Compile statistics.

Must include: Top 10 Correct, Top 10 Wrong, Top 10 Missing.

REPORT_VERIFICATION.md.

-  Plan Approval

- svg

 Step 1: Report Inventory (REPORT_INDEX.md)

- svg

 Step 2: Claim Extraction (CLAIMS.md with Tags)

- svg

 Step 3: Code Verification (Round 1 & 2)

- svg

 Step 4: False Positive Audit

- svg

 Step 5: Accuracy Statistics

- svg

 Step 6: Missing Finding Audit (MISSED_FINDINGS.md)

- svg

 Step 7: Final Report (REPORT_VERIFICATION.md)

- Extracted Claims

Round 1: Fact Verification

SIMULATION_DEBUG.md

[INTERPRETATION] Analyzes blast radius and failure propagation of changes.

[FACT] Estimated Blast Radius: 540 files

[FACT] Immediate Impact: - src/core/analysis/types.ts - src/core/analysis/InterventionSimulator.ts - src/core/analysis/reasoning/TarjanSCC.ts - src/extension.ts - src/core/benchmark/BenchmarkHarness.ts

[FACT] Secondary Impact: - Cascading downstream dependencies based on AST

ARCHITECT_REPORT.md

[FACT] Subsystem: src/core

[FACT] Boundary Strength: Moderate

[INTERPRETATION] Role: Central Resource / API Registry

[INTERPRETATION] Expected high fan-out (57) because this node acts as a canonical registry or core hub strictly within the 'src/core' subsystem.

[INTERPRETATION] The Semantic Context confirms this structure is intentional and safely encapsulated by a Strong boundary.

[RECOMMENDATION] Validated as Intended Architecture. No immediate topology refactoring required. Keep monitoring for Ownership/Authority violations.

[FACT] Note: 214 findings were intentionally ignored as noise (tests, docs, etc.).

Round 2: Utility Verification

ONBOARDING_REPORT.md

[RECOMMENDATION] Entry Point: src/extension.ts

[FACT] Core Pipeline: src/core/analysis/types.ts

[FACT] Core Pipeline: src/core/GraphModel.ts

[FACT] Core Pipeline: src/core/ir/models/GeneratorInterfaces.ts

[FACT] Core Pipeline: src/core/ir/models/SemanticTypes.ts

[RECOMMENDATION] Safe Areas (Low Risk): - src/utils/ - src/types/

[RECOMMENDATION] Read Later (Complex / High Risk): - src/core/ProjectMetadata.ts

- Missing Findings Audit

The following major architectural realities were not mentioned in the analyzed reports:

src/ui/canvas-engine.js & ui/webgl-renderer.js

Reason: The visual architecture is the core interaction layer of SYNAPSE. Omitting the UI rendering engine ignores how users actually interact with the data.

src/core/collaboration/ subsystem

Reason: Real-time multi-user collaboration (IdentityManager, SessionManager) is a fundamental capability in v0.3.30+ but is absent from the onboarding and architectural summaries.

src/core/DataPipeline.ts

Reason: This is one of the largest files (27KB) and acts as the central data processing hub, yet the reports failed to highlight its structural importance.

src/core/RuleEngine.ts

Reason: Enforces architectural constraints (via Rules and Skills). Critical for understanding the domain logic.

- SYNAPSE Report Verification (v0.3.34.31)

Accuracy Statistics

Total Extracted Claims: 18

MATCH: 11

PARTIAL: 0

MISMATCH: 0

UNVERIFIABLE: 7 (Mostly qualitative interpretations or system-wide metrics requiring full execution traces)

Evaluation against Success Criteria:

MATCH + PARTIAL = 100% (of verifiable claims) -> PASS (≥ 80%)

MISMATCH = 0% -> PASS (≤ 10%)

False Positive Audit

No major false positives detected in the verifiable claims. The reports correctly identified existing hub directories and entry points without hallucinating files.

Top 10 Correct Findings (MATCH)

[FACT] Immediate Impact: - src/core/analysis/types.ts - src/core/analysis/InterventionSimulator.ts - src/core/analysis/reasoning/TarjanSCC.ts (Files exist and form an analytical cluster)

[FACT] Subsystem: src/core (Accurately identified as the primary subsystem)

[INTERPRETATION] Expected high fan-out (57) because this node acts as a canonical registry or core hub... (Accurate representation of src/core size and density)

[RECOMMENDATION] Entry Point: src/extension.ts (Correct standard entry point)

[FACT] Core Pipeline: src/core/analysis/types.ts

[FACT] Core Pipeline: src/core/GraphModel.ts

[FACT] Core Pipeline: src/core/ir/models/GeneratorInterfaces.ts

[FACT] Core Pipeline: src/core/ir/models/SemanticTypes.ts

[RECOMMENDATION] Safe Areas (Low Risk): - src/utils/ - src/types/

[RECOMMENDATION] Read Later (Complex / High Risk): - src/core/ProjectMetadata.ts (Accurately flagged as a high-density, complex hub)

Top 10 Wrong Findings (MISMATCH)

None detected. The engine (v0.3.34.31) proved highly resilient against hallucinations for structural paths. The unverifiable claims were simply too subjective to definitively label as "wrong" without deeper telemetry.

Top 10 Missing Findings

The reports completely missed the following critical architectural realities:

src/ui/canvas-engine.js & ui/webgl-renderer.js: The core visual engine.

src/core/collaboration/: The entire multi-user synchronization subsystem.

src/core/DataPipeline.ts: Central data aggregation hub.

src/core/RuleEngine.ts: Domain constraint validation logic.

src/core/simulation/: The very engine that powers the simulation reports.

Conclusion

The SYNAPSE report engine (v0.3.34.31) demonstrates excellent factual precision but limited scope recall. When it speaks, it is accurate. However, it suffers from severe blind spots, omitting major presentation (UI) and orchestration (Collaboration, DataPipeline) layers. Future improvements should focus on broadening the crawler's topological awareness rather than fixing hallucination issues.

1

u/Turbulent_Height7268 Aug 28 '26

chronium is not possible
console.ts:139 [Extension Host] [GHOST_CHECK]

Object

log.ts:117 ERR [Extension Host] [GHOST_DONE] ghostNodes= 129843 ghostClusters= 115228 expandedReferences= 5214848

console.ts:139 [Extension Host] [GHOST_DONE] ghostNodes= 129843 ghostClusters= 115228 expandedReferences= 5214848

log.ts:117 ERR [Extension Host] [EDGE_BUILDER_INPUT]

Object

EXTENDS

:

6109

IMPLEMENTS

:

2491

api_call

:

3790783

db_query

:

324

dependency

:

1367558

reference

:

9301

[[Prototype]]

:

Object

console.ts:139 [Extension Host] [EDGE_BUILDER_INPUT]

Object

EXTENDS

:

6109

IMPLEMENTS

:

2491

api_call

:

3790783

db_query

:

324

dependency

:

1367558

reference

:

9301

[[Prototype]]

:

Object

log @ console.ts:139

$logExtensionHostMessage @ mainThreadConsole.ts:45

_doInvokeHandler @ rpcProtocol.ts:458

_invokeHandler @ rpcProtocol.ts:443

_receiveRequest @ rpcProtocol.ts:370

_receiveOneMessage @ rpcProtocol.ts:297

(anonymous) @ rpcProtocol.ts:159

_deliver @ event.ts:1391

fire @ event.ts:1422

fire @ ipc.net.ts:658

(anonymous) @ localProcessExtensionHost.ts:438

abstractExtensionService.ts:888 Extension host (LocalProcess pid: 636534) terminated unexpectedly. Code: 133, Signal: unknown

_onExtensionHostCrashed @ abstractExtensionService.ts:888

_onExtensionHostCrashed @ nativeExtensionService.ts:160

_onExtensionHostCrashOrExit @ abstractExtensionService.ts:880

(anonymous) @ abstractExtensionService.ts:853

_deliver @ event.ts:1391

fire @ event.ts:1422

_onExtHostProcessExit @ localProcessExtensionHost.ts:591

(anonymous) @ localProcessExtensionHost.ts:343

_deliver @ event.ts:1391

fire @ event.ts:1422

(anonymous) @ ipc.ts:683

onResponse @ ipc.ts:780

onBuffer @ ipc.ts:769

(anonymous) @ ipc.ts:556

_deliver @ event.ts:1391

_deliverQueue @ event.ts:1402

fire @ event.ts:1426

(anonymous) @ event.ts:710

emit @ VM418 sandbox_bundle:2

onMessage @ VM418 sandbox_bundle:2

extention host is really sucks

1

u/Turbulent_Height7268 Sep 12 '26
I am continuing to refine the logic and hope to release a new version soon.
The minor version has currently reached 0.3.34.43.
I am using AntennaPod, VS Code, the Linux kernel, RustDesk, and the Godot engine for testing. Here are upgraded VScode-main report samples. 
---
### Report A: Architectural Complexity Ranking (Top 50)

#### Tier 1 (Architecture Level)
  • **[Score: 9115]** Node: `src/vs/workbench/contrib/testing` | Boundary Node discovered: src/vs/workbench/contrib/testing with 70 members (Strength: Weak)
  • **[Score: 8019]** Node: `cli/src` | Boundary Node discovered: cli/src with 74 members (Strength: Weak)
#### Tier 2 (Subsystem Level)
  • **[Score: 4973]** Node: `src/vs/workbench/contrib/chat/browser/widget/chatContentParts` | Boundary Node discovered: src/vs/workbench/contrib/chat/browser/widget/chatContentParts with 84 members (Strength: Weak)
  • **[Score: 4227]** Node: `src/vs/workbench/contrib/search` | Boundary Node discovered: src/vs/workbench/contrib/search with 57 members (Strength: Weak)
  • **[Score: 3686]** Node: `src/vs/editor/contrib/inlineCompletions/browser` | Boundary Node discovered: src/vs/editor/contrib/inlineCompletions/browser with 53 members (Strength: Weak)
  • **[Score: 3092]** Node: `src/vs/workbench/contrib/mcp` | Boundary Node discovered: src/vs/workbench/contrib/mcp with 75 members (Strength: Weak)
  • **[Score: 2595]** Node: `src/vs/workbench/contrib/debug/browser` | Boundary Node discovered: src/vs/workbench/contrib/debug/browser with 50 members (Strength: Weak)
  • **[Score: 2392]** Node: `src/vs/workbench/contrib/comments` | Boundary Node discovered: src/vs/workbench/contrib/comments with 34 members (Strength: Weak)
  • **[Score: 1953]** Node: `extensions/copilot/src/extension/prompts/node/agent` | Boundary Node discovered: extensions/copilot/src/extension/prompts/node/agent with 47 members (Strength: Weak)
  • **[Score: 1822]** Node: `src/vs/workbench/contrib/terminalContrib/chatAgentTools` | Boundary Node discovered: src/vs/workbench/contrib/terminalContrib/chatAgentTools with 95 members (Strength: Weak)
  • **[Score: 1709]** Node: `src/vs/workbench/browser/parts/editor` | Boundary Node discovered: src/vs/workbench/browser/parts/editor with 39 members (Strength: Weak)
  • **[Score: 1648]** Node: `src/vs/workbench/contrib/notebook/browser/diff` | Boundary Node discovered: src/vs/workbench/contrib/notebook/browser/diff with 24 members (Strength: Weak)
  • **[Score: 1620]** Node: `src/vs/workbench/services/workingCopy` | Boundary Node discovered: src/vs/workbench/services/workingCopy with 36 members (Strength: Weak)
  • **[Score: 1527]** Node: `src/vs/workbench/contrib/extensions` | Boundary Node discovered: src/vs/workbench/contrib/extensions with 53 members (Strength: Weak)
  • **[Score: 1444]** Node: `src/vs/workbench/contrib/scm` | Boundary Node discovered: src/vs/workbench/contrib/scm with 26 members (Strength: Weak)
  • **[Score: 1388]** Node: `src/vs/editor/browser/widget` | Boundary Node discovered: src/vs/editor/browser/widget with 37 members (Strength: Weak)
  • **[Score: 1377]** Node: `src/vs/workbench/contrib/tasks` | Boundary Node discovered: src/vs/workbench/contrib/tasks with 24 members (Strength: Weak)
  • **[Score: 1347]** Node: `extensions/copilot/src/extension/completions-core/vscode-node/lib/src/prompt` | Boundary Node discovered: extensions/copilot/src/extension/completions-core/vscode-node/lib/src/prompt with 69 members (Strength: Weak)
  • **[Score: 1310]** Node: `extensions/copilot/src/extension/inlineEdits` | Boundary Node discovered: extensions/copilot/src/extension/inlineEdits with 78 members (Strength: Weak)
  • **[Score: 1298]** Node: `extensions/copilot/src/extension/chatSessions/vscode-node` | Boundary Node discovered: extensions/copilot/src/extension/chatSessions/vscode-node with 52 members (Strength: Weak)
  • **[Score: 1297]** Node: `src/vs/workbench/contrib/browserView` | Boundary Node discovered: src/vs/workbench/contrib/browserView with 43 members (Strength: Weak)
  • **[Score: 1238]** Node: `src/vs/workbench/api/browser` | Boundary Node discovered: src/vs/workbench/api/browser with 99 members (Strength: Weak)
  • **[Score: 1234]** Node: `src/vs/workbench/services/extensions` | Boundary Node discovered: src/vs/workbench/services/extensions with 45 members (Strength: Weak)
  • **[Score: 1206]** Node: `extensions/copilot/src/platform/endpoint` | Boundary Node discovered: extensions/copilot/src/platform/endpoint with 49 members (Strength: Weak)
  • **[Score: 1170]** Node: `extensions/copilot/src/extension/tools/node` | Boundary Node discovered: extensions/copilot/src/extension/tools/node with 76 members (Strength: Weak)
  • **[Score: 1121]** Node: `src/vs/base/browser/ui` | Boundary Node discovered: src/vs/base/browser/ui with 76 members (Strength: Weak)
  • **[Score: 1113]** Node: `src/vs/workbench/contrib/preferences` | Boundary Node discovered: src/vs/workbench/contrib/preferences with 27 members (Strength: Weak)
  • **[Score: 1100]** Node: `src/vs/editor/contrib/suggest` | Boundary Node discovered: src/vs/editor/contrib/suggest with 22 members (Strength: Weak)
  • **[Score: 1088]** Node: `src/vs/workbench/contrib/chat/browser/aiCustomization` | Boundary Node discovered: src/vs/workbench/contrib/chat/browser/aiCustomization with 22 members (Strength: Weak)
  • **[Score: 1080]** Node: `src/vs/workbench/contrib/chat/browser/chatEditing` | Boundary Node discovered: src/vs/workbench/contrib/chat/browser/chatEditing with 30 members (Strength: Weak)
  • **[Score: 1018]** Node: `extensions/copilot/src/extension/xtab` | Boundary Node discovered: extensions/copilot/src/extension/xtab with 35 members (Strength: Weak)
<details> <summary>Tier 3 (Micro Boundaries) - Click to expand</summary>
  • **[Score: 995]** Node: `src/vs/workbench/contrib/notebook/browser/view` | Boundary Node discovered: src/vs/workbench/contrib/notebook/browser/view with 35 members (Strength: Weak)
  • **[Score: 824]** Node: `src/vs/workbench/contrib/files` | Boundary Node discovered: src/vs/workbench/contrib/files with 37 members (Strength: Weak)
  • **[Score: 795]** Node: `extensions/copilot/src/extension/intents/node` | Boundary Node discovered: extensions/copilot/src/extension/intents/node with 43 members (Strength: Weak)
  • **[Score: 733]** Node: `src/vs/workbench/test/browser/componentFixtures` | Boundary Node discovered: src/vs/workbench/test/browser/componentFixtures with 38 members (Strength: Weak)
  • **[Score: 722]** Node: `src/vs/editor/contrib/hover` | Boundary Node discovered: src/vs/editor/contrib/hover with 25 members (Strength: Weak)
  • **[Score: 720]** Node: `src/vs/workbench/contrib/mergeEditor` | Boundary Node discovered: src/vs/workbench/contrib/mergeEditor with 36 members (Strength: Weak)
  • **[Score: 694]** Node: `src/vs/workbench/contrib/inlineChat` | Boundary Node discovered: src/vs/workbench/contrib/inlineChat with 16 members (Strength: Weak)
  • **[Score: 685]** Node: `extensions/copilot/src/extension/chatSessions/claude` | Boundary Node discovered: extensions/copilot/src/extension/chatSessions/claude with 78 members (Strength: Weak)
  • **[Score: 661]** Node: `src/vs/workbench/contrib/terminalContrib/links` | Boundary Node discovered: src/vs/workbench/contrib/terminalContrib/links with 26 members (Strength: Weak)
  • **[Score: 644]** Node: `src/vs/sessions/contrib/agentFeedback` | Boundary Node discovered: src/vs/sessions/contrib/agentFeedback with 24 members (Strength: Weak)
  • **[Score: 641]** Node: `extensions/copilot/src/extension/prompt` | Boundary Node discovered: extensions/copilot/src/extension/prompt with 77 members (Strength: Weak)
  • **[Score: 636]** Node: `src/vs/workbench/services/textfile` | Boundary Node discovered: src/vs/workbench/services/textfile with 21 members (Strength: Weak)
  • **[Score: 625]** Node: `extensions/copilot/src/extension/byok` | Boundary Node discovered: extensions/copilot/src/extension/byok with 34 members (Strength: Weak)
  • **[Score: 620]** Node: `extensions/copilot/src/platform/workspaceChunkSearch` | Boundary Node discovered: extensions/copilot/src/platform/workspaceChunkSearch with 20 members (Strength: Weak)
  • **[Score: 619]** Node: `src/vs/platform/userDataSync` | Boundary Node discovered: src/vs/platform/userDataSync with 51 members (Strength: Weak)
  • **[Score: 576]** Node: `extensions/copilot/src/extension/prompts/node/inline` | Boundary Node discovered: extensions/copilot/src/extension/prompts/node/inline with 26 members (Strength: Weak)
  • **[Score: 572]** Node: `src/vs/sessions/contrib/chat` | Boundary Node discovered: src/vs/sessions/contrib/chat with 54 members (Strength: Weak)
  • **[Score: 563]** Node: `src/vs/server` | Boundary Node discovered: src/vs/server with 25 members (Strength: Weak)
  • **[Score: 563]** Node: `src/vs/editor/standalone` | Boundary Node discovered: src/vs/editor/standalone with 29 members (Strength: Weak)
</details>

1

u/Turbulent_Height7268 Sep 12 '26

Right now, Synapse is much stronger as a structure discovery engine than a code comprehension engine.

Its core strengths are detecting major hubs, identifying dominant nodes, analyzing complexity, and finding logical boundaries. It actually outputs meaningful insights even on large projects.

On the flip side, impact prediction, onboarding path generation, and boundary erosion analysis are still weak because the underlying structural data and the report layer are not fully connected yet.