RepoPilot

zed-industries / zed

Search zed-industries/zed

GitHub

Code

How zed-industries/zed is laid out, and where to start for common changes.

A
Architecture grade
score 100/100
0
Import cycles
lower is better
105
Files mapped
37 imports between them
100%
Layering
of imports point one way

From the map of which files import which, built when the code was last read in full. It shows what depends on what, not a reading order.

Module map

Shade by
Standalonegpui138 files · 100+ commitseditor74 files · 100+ commitsproject66 files · 100+ commitsagent57 files · 78 commitscollab57 files · 33 commitsagent_ui54 files · 100+ commitsgpui_web22 files · 44 commitsextension_host18 files · 16 commitsgpui_macros11 files · 7 commitslivekit_client11 files · 10 commitsfs5 files · 37 commitsscheduler4 files · 6 commitssum_tree3 files · 3 commitsworktree3 files · 28 commits

14 modules, 0 links. A link means one module imports another; thicker lines mean more imports. Links come from 105 of 1,988 source files, so the real counts are higher. Select a module to trace it: blue lines go to what it uses, orange lines come from what uses it.

gpui13800100+Standalone
editor7400100+Standalone
project6600100+Standalone
agent570078Standalone
collab570033Standalone
agent_ui5400100+Standalone
gpui_web220044Standalone
extension_host180016Standalone
gpui_macros11007Standalone
livekit_client110010Standalone
fs50037Standalone
scheduler4006Standalone
sum_tree3003Standalone
worktree30028Standalone

Where to start reading

  1. Repository root
  2. Repository root
  3. Suggested starting pointAI
  4. Suggested starting pointAI
  5. Suggested starting pointAI
  6. Suggested starting pointAI
  7. Suggested starting pointAI
  8. Suggested starting pointAI

Find files for a task

AI

Add a New Language Server Integration

  • Add language-specific configuration in assets/settings/default.json

Add a New AI LLM Provider

  • Create provider crate (e.g., crates/ollama/Cargo.toml) implementing the LlmProvider trait
  • Add configuration schema to settings allowing API key and model selection

Add a New Editor Command/Action

  • Bind command to keystroke in default keymap

Add a New UI Panel or Sidebar Tab

  • Add default settings and keybinding to show/hide panel

Add or update tests

Change build or automation

RepoPilot lists up to 500 files, so a file missing here may still exist.

  • No public API or start-up file could be picked out from the file names.
  • The file list is newer than the written guide, so descriptions and suggested changes may describe older code.

Code quality and hotspots

Largest source files

  • Branch points6 per file on average
  • Code issues0 errors, 5 warnings
  • Largest file4,380 lines
  • Hotspot load1 high-risk file

Static checks on the 15 largest source files.

Tests, CI and tooling

  • CIGitHub Actions49 workflows
  • Tests109 test filesRust test · Pytest · 0.05 test files per source file (file count, not coverage)
  • Dependency updatesNo config detected

Test folders: crates/collab/tests/integration · crates/debugger_ui/src/tests · crates/collab/tests/integration/db_tests

Hotspots

Files that change often and branch heavily, highest first. Branch points count if, loop, case, catch, ternary, && and || in the file.