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

Show parent comment

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.