-
Notifications
You must be signed in to change notification settings - Fork 0
Getting Started
Arham-Qureshi edited this page Jul 21, 2026
·
1 revision
This guide walks you through your first run of codebase-vis on any project.
cd my-project
codebase-vis initThis creates a .agentignore file in your project root. It detects your tech stack and generates sensible defaults — ignoring node_modules/, dist/, .next/, venv/, target/, and other build artifacts automatically.

The .agentignore file is yours to edit. Add any additional patterns you want to exclude.
codebase-vis generateThis is the main pipeline. It:
-
Discovers all source files in your project (respecting
.agentignore) - Checks cache — unchanged files skip re-parsing
- Parses changed files in parallel using a worker pool (CPU count - 1 workers)
- Builds a directed dependency graph
- Enriches it with Louvain community detection
-
Exports
graph.jsonandgraph.htmltocodebase-out/

codebase-vis generate src/ tests/ # Only scan specific directories
codebase-vis generate --ignore tests,fixtures # Additional ignore patterns
codebase-vis generate --jobs 4 # Override worker count
codebase-vis generate --verbose # Detailed logging
codebase-vis generate --no-clear # Keep previous terminal outputcodebase-vis serveStarts a local server at http://localhost:3000 and opens your browser automatically.

- ForceAtlas2 physics — nodes repel and settle into a readable layout
- Community legend — toggle visibility of entire modules (color-coded)
- Fuzzy search — find any file or entity by name
- Click to inspect — see dependencies, language, connection count
- Dependency/entity toggles — show/hide npm packages and inline entities
-
Minimap — navigate large graphs (press
Mto toggle) -
Cycle overlay — highlight circular dependencies in red (after running
detect)
codebase-vis serve --port 4000- Explore the Commands section for detailed docs on each command
- Run
codebase-vis query <file>to inspect a specific file's dependencies - Run
codebase-vis path <source> <target>to trace dependency chains - Run
codebase-vis detectto find circular dependencies - Read the Architecture Overview to understand how it works under the hood