v1.0.17

Codebase
intelligence

Backbencher parses your code into a local SQLite brain — symbols, call graphs, relationships — across 32 languages. 15 tools operate at the symbol level.

32
Languages
15
Brain Tools
13
DB Tables
Free
Forever

The Architecture

Beyond Primitive RAG. True Codebase Intelligence.

Backbencher doesn't just read files. It models your entire project as a highly structured, queryable AST graph database to achieve mathematical precision in code generation.

1. Deterministic AST Indexing

Background parser ingests source code across 26 languages into a local SQLite graph database.

2. JIT Context Extraction

Queries the Brain DB to surgically extract isolated symbol snippets instead of raw file reading.

3. AST-Level Surgery

Uses byte-bounds from the database to perfectly replace, insert, or delete nodes.

4. Architectural Validation

Proactively scans for orphaned code, complexity violations, and API contract drift.

brain.sqlite • index_engine
System Component Active

Deterministic AST Indexing

  • Tree-sitter AST Parsing
  • Caller/Callee Relationship Graph
  • Real-time File Watcher (Chokidar)
  • Sub-10ms Query Latency
INFO [indexer] Building AST graph...
INFO [indexer] Parsed 3,402 files (42ms)
SUCCESS [sqlite] Wrote 89,404 symbols
Universal Support

32 Languages Supported

bb parses code across your entire stack into a unified queryable structure. From TypeScript frontends to Rust backends, understand your whole codebase.

TypeScript
.ts, .tsx
JavaScript
.js, .jsx
Python
.py
Rust
.rs
Go
.go
Java
.java
C++
.cpp, .h
C
.c, .h
C#
.cs
Ruby
.rb
PHP
.php
Swift
.swift
Kotlin
.kt
Dart
.dart
Elixir
.ex, .exs
Clojure
.clj
Haskell
.hs
Scala
.scala
Lua
.lua
R
.r
Bash
.sh
SQL
.sql
HTML
.html
CSS
.css
JSON
.json
YAML
.yml, .yaml
PowerShell
.ps1, .psm1
GraphQL
.graphql, .gql
Terraform
.tf, .hcl
Erlang
.erl, .hrl
F#
.fs, .fsx
Groovy
.groovy, .gsp

Unified Semantic Graph

All languages compile down into a single queryable SQLite relation map.

Languages32
AST ParsingTree-sitter
Query EngineSQLite
The Complete Toolkit

13 Surgical Precision Tools

Every tool designed for exact AST manipulation. No regex, no guessing, no breaking your code.

bb_search

Find anything in milliseconds with semantic understanding

bb_search --query="login" --scope="functions"
Found 12 functions matching "login" in 45ms

bb_select

Extract exact symbols, not entire files. JIT context extraction.

bb_select --symbolName="AuthService.login"
Extracted 42 lines (saved 1,958 tokens)

bb_update

Surgical code replacement with AST precision

bb_update --symbolName="login" --newContent="..."
Updated successfully (rollback on error)

bb_insert

Smart code insertion before/after/inside symbols

bb_insert --target="UserService" --position="after"
Inserted new method with auto-imports

bb_delete

Safe deletion with cascading protection

bb_delete --symbolName="deprecatedFunc"
3 callers found - use --force to override

bb_refactor

Cross-file atomic renaming with dependency updates

bb_refactor --symbolName="oldName" --newName="newName"
Renamed in 5 files, 23 references updated

bb_relationships

Understand dependencies: callers, callees, impact analysis

bb_relationships --target="login" --analysisType="callers"
Found 15 direct callers, 127 indirect

bb_patterns

Detect anti-patterns: God classes, circular deps, complexity

bb_patterns --analysisType="violations"
Found 3 God classes, 2 circular dependencies

bb_ask

Architectural Q&A with codebase context

bb_ask --query="How does authentication work?"
Authentication flow: 5 components, 12 relationships

bb_security

Cross-language vulnerability scanning

bb_security --autoPatch=true
Found 2 vulnerabilities, auto-patched

bb_migrate

Cross-language migration with dependency ordering

bb_migrate --symbolNames="[auth,users]" --targetLanguage="go"
Migration plan: 2 symbols, 5 dependencies

bb_refresh

Incremental brain index rebuild

bb_refresh --reason="new files"
Indexed 45 files in 2.3s

bb_visualize

Interactive architecture visualization

bb_visualize --output="architecture.html"
Generated visualization with 1,247 nodes
13
Core Tools
100%
AST-Powered
0
Broken Files