SourceBridge: Open-source tool for codebase analysis using local LLMs

SourceBridge is an open-source project that uses local LLMs to build structured understanding of codebases. You point it at a Git repository and it indexes the codebase into a symbol graph containing files, functions, classes, and dependencies. The tool then uses your LLM to build a hierarchical understanding tree starting from individual code segments and rolling up through files, packages, and the full repository.
What it generates
- Cliff notes: multi-level summaries grounded in actual code
- Code tours: architecturally-ordered walkthroughs with specific file/function references
- Learning paths: pedagogically structured onboarding material
- Workflow stories: data flow traces through the system
- Semantic search against the repository graph
Local model support
Local model support was a priority from day one. Currently supported backends include:
- Ollama — primary local backend, what the developer tests against daily
- llama.cpp — direct llama-server support, slightly faster than Ollama in testing
- vLLM — for GPU servers
- LM Studio — including speculative decoding
- SGLang — for multi-GPU setups
All backends work via the OpenAI-compatible API, so anything that speaks that protocol works. Cloud providers (Anthropic, OpenAI, Gemini, OpenRouter) are also supported for when you want higher quality on specific tasks.
Model performance
The developer has been running it primarily on Qwen 3.5 35B-A3B (MoE, only 3B active parameters) via llama.cpp on a Mac Studio. At Q4_K_XL quantization it runs at approximately 50 tokens/second and produces solid cliff notes and code tours. For larger repositories, Qwen 3.5 122B-A10B via Ollama has been tested — it shows better instruction following but needs about 76GB RAM.
For comprehension tasks (summarizing code, building the understanding tree), 32B-class models do a reasonable job. The quality gap between local and cloud models is noticeable but not a dealbreaker for most use cases. Cloud models still clearly win in report-style generation where you need the LLM to follow complex formatting instructions without looping.
Thinking mode in Qwen 3.5 models is disabled by default — it wastes tokens on reasoning chains that don't improve comprehension output. This is configurable via environment variable if you want to experiment.
Architecture
- Go API server (indexing, auth, job queue, graph store)
- Python gRPC worker (LLM calls, comprehension pipeline, artifact generation)
- Next.js web UI (real-time progress, markdown viewer)
- SurrealDB (graph data, knowledge artifacts, job state)
- All three components are Dockerized, runs with
docker compose up
The worker handles queuing, retries, backoff, and cancellation — so if your local model is slow or crashes mid-generation, the system recovers gracefully instead of losing the work.
Getting started
git clone https://github.com/sourcebridge-ai/sourcebridge.git
cd sourcebridge
# Edit config.toml — point llm.provider at your Ollama/llama.cpp instance
docker compose up
Your code never leaves your machine. The LLM inference stays local. There's opt-out anonymous telemetry (install count only, disable with DO_NOT_TRACK=1).
The developer is looking for feedback from people running local models on what works and what doesn't, especially regarding which models produce the best comprehension output, whether MoE models are worth the RAM tradeoff vs dense models, and any issues with specific backends.
📖 Read the full source: r/LocalLLaMA
👀 See Also

Introducing Swarmhook: Free and Open Source Webhooks for Your Bot
Swarmhook.com offers free and open source webhooks to effectively manage events for your bots, streamlining automation and response capabilities.

Vektori's Memory Architecture: Principles from Claude's Leaked System
Vektori implements a three-layer hierarchical sentence graph for AI memory, inspired by leaked principles from Claude's architecture. The system uses strict quality filters, skeptical retrieval with a 0.3 minimum score, and maintains correction history across sessions.

Agent Smith: One Command To Scaffold MCP Servers, Skills, And A Ticket-To-PR Pipeline For Claude Code
Agent Smith scans your repo, detects exact stack (Go/Echo, React/Zustand, golang-jwt, pgx, etc.), sets up MCP servers, hooks, and skills tailored to your setup, and provides an autonomous ticket-to-PR pipeline.

Clawdwatch: Open-source OSINT tool for real-time flight tracking, news scraping, and alerts
Clawdwatch is a CLI tool that pulls live flight data from OpenSky Network, scrapes news from Al Jazeera and AP, and can send Telegram alerts for military aircraft or emergency squawks. It runs locally with npm install and tracks 204+ flights over the Middle East in real-time.