sense

sense is a skill for Claude Code, Codex from luuuc/sense. It costs 54 tokens per session (1,060 once invoked), scanned C, original, MIT.

A local tool that maps how the parts of a codebase relate to one another and helps an AI coding agent search that structure. It also detects conventions used in the project.

In plain words
What is it for?
Use it to find callers, implementations, routes, handlers, models, controllers, and possibly unused code. It can also estimate the effects of changing a function or other code relationship.
Why use it?
It reduces the need to read many files or make repeated searches before changing code. It helps reveal which code may be affected by a change.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions CLAUDE.md; mentions Claude Code; mentions Codex.

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/luuuc/sense/smithery
Any agent
npx skills add luuuc/sense --skill smithery
Clone the repo
git clone --depth 1 https://github.com/luuuc/sense

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for sense

README.md
[![agentmods](https://agentmods.dev/badge/skills/luuuc/sense/smithery.svg)](https://agentmods.dev/skills/luuuc/sense/smithery)
Your own site
<a href="https://agentmods.dev/skills/luuuc/sense/smithery"><img src="https://agentmods.dev/badge/skills/luuuc/sense/smithery.svg" alt="Measured on agentmods" height="20"></a>
Per session 54 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,060 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 2 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00054 $0.01060
Opus 5 $0.00027 $0.00530
Sonnet 5 $0.00011 $0.00212
Haiku 4.5 $0.00005 $0.00106

Measured 6d ago against content hash f358615a0a53, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade C, and why

sense scanned grade C with 2 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Downloads and executes remote codehighSupply chain

curl | sh runs whatever the server returns today, which is not necessarily what it returned when this was reviewed.

curl -fsSL https://luuuc.github.io/sense/install.sh | sh

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -fsSL https://luuuc.github.io/sense/install.sh | sh
smithery/SKILL.md · 92 lines

How it starts

The opening of the file, as written. The whole thing — 92 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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 + hooks

After 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

Read the full file on GitHub · 92 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago First seen · 92 lines · 54 tokens per session scan C f358615a0a53

Subscribe to this mod's changes

sense is a skill published in the GitHub repository luuuc/sense (35 stars, last pushed yesterday), licensed MIT. It adds 54 tokens to every session and 1,060 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it C with 2 findings (downloads and executes remote code, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

analysis-subsystems

How Infigraph's multi-repo/group mode and taint analysis work internally — HTTP contract extraction heuristics, cross-service edge linking, combined-graph merge, remote mode, plus taint's line-based tracking and sanitizer heuristic. Use when working on crates/infigraph-core/src/multi/ or src/taint/, or investigating…

intuit/infigraph · 80 tokens

nexus-query

Precise, instant code structure queries for active development — answer 'who depends on this interface before I refactor it', 'how many modules break if I change this', 'what is the real impact radius of this feature change', 'which module is the true high-coupling hotspot in this legacy codebase'. Essential before…

Haaaiawd/Nexus-skills · 119 tokens

ix

This skill should be used when answering structural questions about a codebase: understanding what a symbol is, tracing flows, measuring change impact, finding callers/callees/imports, or detecting code smells. It drives the Ix CLI (ix map/explain/trace/impact/search/rank/smells) against a persistent code graph stored…

ix-infrastructure/Ix · 103 tokens

report-issue-local

File a bug or feature request against this MCP server's own repo. Use for server-specific issues — tool logic, service integrations, config problems, or domain bugs that aren't caused by the framework.

cyanheads/obsidian-mcp-server · 44 tokens

thinking-five-whys-plus

When a fault is localized and the proximate cause is known but the systemic root is not, chain evidence-linked whys with a counterfactual stop and a countermeasure.

tjboudreaux/cc-thinking-skills · 41 tokens

thinking-map-territory

When a claim, doc, test, metric, or assumption conflicts with observed behavior, stop theorizing from the map and verify the live code or data; let territory overrule.

tjboudreaux/cc-thinking-skills · 42 tokens