SourceBridge.ai is a requirement-aware code comprehension platform that helps you trace requirements to code, run structured reviews, and understand codebases.
curl -fsSL https://<your-server>/install.sh | sh -s -- --server https://<your-server>Installs sourcebridge to ~/.local/bin (no sudo) and authenticates against
your server in one step. See Installation for the trust
model and alternate paths.
git clone https://github.com/sourcebridge/sourcebridge.git
cd sourcebridge
docker compose up -dThis starts the API server, web UI, and all dependencies.
brew install sourcebridge-ai/tap/sourcebridgego build -o bin/sourcebridge ./cmd/sourcebridgesourcebridge serveThe API server starts at http://localhost:8080.
sourcebridge index /path/to/your/repoSourceBridge.ai parses source files using tree-sitter and builds a graph of modules, files, and symbols.
After indexing succeeds, the CLI prints a one-liner suggesting the next step:
Indexed 1,247 symbols. Use with Claude Code:
sourcebridge setup claude --repo-id abc123
If you use Claude Code, run the suggested command from your repository's working directory:
cd /path/to/your/repo
sourcebridge setup claude --repo-id abc123This writes .claude/CLAUDE.md with a per-subsystem reference card,
registers SourceBridge's MCP server in .mcp.json, and patches
.gitignore. Claude Code will now have instant context about your
codebase's subsystem boundaries before you start a refactor. See
Using SourceBridge from an AI client (MCP) for other
clients (Codex, Cursor, Claude Desktop).
Create a requirements file in markdown format:
# Requirements
## REQ-001: User Authentication
- Category: security
- Priority: high
Users must authenticate before accessing the system.
## REQ-002: Data Validation
- Category: data
- Priority: high
All input data must be validated before processing.Import it:
sourcebridge import /path/to/requirements.mdsourcebridge trace REQ-001This shows which code symbols are linked to the requirement, with confidence scores.
sourcebridge review /path/to/repo --template securityAvailable templates: security, solid, performance, reliability, maintainability.
sourcebridge ask "What does the processPayment function do?"Open http://localhost:3300 to access the web dashboard with:
- Repository browser
- Requirements list with linked code
- Traceability matrix visualization
- Coverage charts
Install the SourceBridge.ai extension from the VS Code Marketplace for:
- Requirement IDs displayed above functions (CodeLens)
- Hover cards with requirement links
- Gutter decorations showing requirement coverage
- Sidebar panels for requirements and discussions
- CLI Reference — Full command documentation
- Web UI Guide — Web dashboard features
- Configuration — Server and LLM configuration