Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Bobbin

Local-first code context engine. Semantic search, keyword search, and git coupling analysis — all running on your machine. Local indexing and search need no API keys. The first run downloads the model; subsequent searches use the cached model and index.

Bobbin indexes the structure, history, and meaning of your codebase, then delivers precisely the right context when you (or your AI agent) need it.

What Bobbin Does

  • Hybrid search — semantic + keyword results fused via Reciprocal Rank Fusion. Ask in natural language or grep by pattern.
  • Git temporal coupling — discovers files that change together in your commit history, revealing hidden dependencies no import graph can see.
  • Task-aware context assembly — bobbin context "fix the login bug" builds a budget-controlled bundle of the most relevant code, ready for an AI agent.
  • MCP server — bobbin serve exposes tools to Claude Code, Cursor, and any MCP-compatible agent.
  • Knowledge graph — optional Quipu integration adds structured knowledge (SPARQL, SHACL) alongside code search, exposed as knowledge_context and knowledge_query MCP tools.
  • Claude Code hooks — automatically injects relevant code context into every prompt, and primes new sessions with project overview and index stats.
  • GPU-accelerated indexing — Optional CUDA inference on NVIDIA GPUs; CPU indexing remains available. Throughput depends on the model, hardware and repository.

Choosing a search path

NeedStart withEvidence it uses
A literal name or patternbobbin grepIndexed text
Code described in natural languagebobbin searchEmbeddings and keyword matches
Related files for a taskbobbin contextSearch results and Git coupling
Who calls a symbolYupanaA structural code graph

Git coupling describes files that changed together; it does not establish that one function calls another. Consult the evaluation methodology for measured retrieval quality and its limits.

Quick Start

Start with a release with checksum verification, then run the three-command fixture to verify your index before using your own repository.

SectionWhat You’ll Find
Getting StartedInstallation, first index, core concepts, agent setup
GuidesSearching, context assembly, git coupling, Quipu integration, hooks, multi-repo
CLI ReferenceEvery command with flags, examples, and output formats
MCP IntegrationAI agent tools, client configuration, HTTP mode
ConfigurationFull .bobbin/config.toml reference
ArchitectureSystem design, storage, embedding pipeline
EvaluationMethodology, results across ruff/flask/polars, metrics

Go deeper

  • The stack explains how Bobbin fits with the other tools.
  • Docs map routes the design notes, plans and research outside this book.
  • Evaluation explains how retrieval quality is measured.