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

CLI Overview

All commands support these global flags:

FlagDescription
--jsonOutput in JSON format
--quietSuppress non-essential output
--verboseShow detailed progress
--server <URL>Use remote bobbin server (thin-client mode)

Commands

CommandDescription
bobbin initInitialize bobbin in current repository
bobbin indexBuild/rebuild the search index
bobbin searchHybrid search (combines semantic + keyword)
bobbin contextAssemble task-relevant context from search + git coupling
bobbin grepKeyword/regex search with highlighting
bobbin depsImport dependency analysis
bobbin refsSymbol reference resolution
bobbin relatedFind files related to a given file
bobbin historyShow commit history and churn statistics
bobbin hotspotsIdentify high-churn/complexity code
bobbin impactPredict which files are affected by a change
bobbin reviewAssemble review context from a git diff
bobbin similarFind semantically similar code or detect duplicates
bobbin statusShow index statistics
bobbin serveStart MCP server for AI agent integration
bobbin tourInteractive tour of bobbin features
bobbin primeGenerate LLM-friendly overview with live stats
bobbin benchmarkRun embedding benchmarks
bobbin watchWatch mode for automatic re-indexing
bobbin completionsGenerate shell completions
bobbin hookClaude Code hook integration

Supported Languages

Bobbin uses Tree-sitter for structure-aware parsing, and pulldown-cmark for Markdown:

LanguageExtensionsExtracted Units
Rust.rsfunctions, impl blocks, structs, enums, traits, modules
TypeScript.ts, .tsxfunctions, methods, classes, interfaces
Python.pyfunctions, classes
Go.gofunctions, methods, type declarations
Java.javamethods, constructors, classes, interfaces, enums
C++.cpp, .cc, .hppfunctions, classes, structs, enums
Markdown.mdsections, tables, code blocks, YAML frontmatter

Other file types fall back to line-based chunking (50 lines per chunk with 10-line overlap).