sense
Skill39 starsChanged 4 months agoMITView on GitHub
Local-only MCP server that gives AI coding agents structural understanding of your codebase — symbol graph, blast radius, semantic search, and auto-detected project conventions. Reduces tool calls and tokens for any task that depends on understanding code relationships rather than reading text.
- Pipes a download into a shell
In this repository3 other files it gives its agents.
- improvement-loop/CLAUDE.mdCLAUDE.md
- docs/llms-full.txtllms.txt
- docs/llms.txtllms.txt
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 0 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 13
Use Sense whenever the task depends on understanding code relationships, not just reading text:
- Very specific: line 22
Do NOT use Sense for:
- Very specific: line 37
After sense setup, your AI tool (Claude Code, Cursor, Codex CLI) has Sense's four tools available via MCP.
- Very specific: line 52
After sense setup, the tools are exposed automatically.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Sense: Codebase Understanding for AI Coding Agents
Sense is an MCP server that gives AI agents the structural understanding of a codebase that a senior engineer carries in their head. It runs as one Go binary with a local SQLite index — no API keys, no SaaS, no cloud calls.
When to Use This Skill
Use Sense whenever the task depends on understanding code relationships, not just reading text:
- "Who calls this function?" / "What does this function call?"
- "What breaks if I change this signature?" (blast radius)
- "Find the implementation of the X pattern" (semantic search)
- "What conventions does this project follow?" (e.g., naming, Rails idioms, Go interface patterns)
- "Find dead code"
- "Show me all routes / handlers / models / controllers"
Do NOT use Sense for:
- Locating a string literal or log message — plain grep is faster.
- Editing code — Sense is read-only by design.
Setup (one-time per project)
# Install the binary (macOS / Linux):
curl -fsSL https://luuuc.github.io/sense/install.sh | sh
# In the project root:
sense scan # builds the .sense/ index (tree-sitter + embeddings)
sense setup # writes .mcp.json + CLAUDE.md routing + hooksAfter sense setup, your AI tool (Claude Code, Cursor, Codex CLI) has Sense's four tools available via MCP.
Tools
| Tool | Capability |
sense_graph | Symbol relationships — callers, callees, inheritance, tests, dead code |
sense_search | Hybrid semantic + keyword search with text fallback |
sense_blast | Blast radius, affected code, affected tests, risk score |
sense_conventions | Auto-detected project conventions (Rails, React, Django, Go, naming) |
Plus a generated .sense/summary.md at session-start: top namespaces, hub symbols, entry points, conventions — so the AI is oriented before its first tool call.
How to Call (MCP)
After sense setup, the tools are exposed automatically. Prefer them over grep/glob for any structural question:
- "Who calls X?" →
sense_graph symbol="X" direction=callers - "What would break if I change Y?" →
sense_blast symbol="Y" - "Find code that does Z" →
sense_search query="natural language description" - "How does this project define services?" →
sense_conventions
Performance
| Operation | p50 / p95 |
| Graph query | 0.2 ms / 3 ms |
| Blast radius | 0.1 ms / 10 ms |
| Conventions | 16 ms / 16 ms |
| Cold start | 48 ms |
| Full scan | 4.9 s |
| Incremental scan | 2.3 s |
Measured on Sense's own codebase (382 files, 4,032 symbols).
Why Sense Helps Agents
Across 7 real-world codebases (Discourse, Flask, Next.js, Axum, Gin, Javalin, and a private e-commerce repo), Claude Code with Sense used 47% fewer tool calls and 32% fewer tokens per task at the same correctness as baseline Claude Code. Against 7 other code-intelligence MCPs (Serena, Probe, GitNexus, GrepAI, ChunkHound, codebase-memory-mcp, TokenSave, Roam), Sense ranks #1 on the head-to-head leaderboard.
Sense doesn't make the model smarter. It gives the model structural understanding so it stops wasting effort.
Language Support
Full tier (framework inference): Ruby + Rails (associations, callbacks, routes, Stimulus, Turbo), TypeScript/JavaScript + React (JSX), Python + Django (models, URLs) + FastAPI (routes, Depends), Go, Rust, ERB.
Standard tier (symbols + calls + inheritance + imports + blast + search): Java, Kotlin, C#, C++, C, PHP, Scala.
Where to Learn More
- Repo: https://github.com/luuuc/sense
- Homepage: https://luuuc.github.io/sense/
- Benchmark methodology: https://github.com/luuuc/sense/tree/main/bench
- Head-to-head leaderboard: https://github.com/luuuc/sense/blob/main/docs/bench-leaderboard.svg
- Adding a language: https://github.com/luuuc/sense/blob/main/CONTRIBUTING-A-LANGUAGE.md
- CLI reference: https://github.com/luuuc/sense/blob/main/CLI.md
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

