codanna-codebase-intelligence

codanna-codebase-intelligence is a skill for Claude Code, Codex from NickCrew/Claude-Cortex. It costs 27 tokens per session (1,040 once invoked), scanned A, original, MIT.

Use codanna MCP tools for semantic code search, call graphs, and impact analysis before grep/find.

Skill for Claude CodeCodex

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/nickcrew/claude-cortex/codanna-codebase-intelligence
Any agent
npx skills add NickCrew/Claude-Cortex --skill codanna-codebase-intelligence
Clone the repo
git clone --depth 1 https://github.com/NickCrew/Claude-Cortex

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 codanna-codebase-intelligence

README.md
[![agentmods](https://agentmods.dev/badge/skills/nickcrew/claude-cortex/codanna-codebase-intelligence.svg)](https://agentmods.dev/skills/nickcrew/claude-cortex/codanna-codebase-intelligence)
Your own site
<a href="https://agentmods.dev/skills/nickcrew/claude-cortex/codanna-codebase-intelligence"><img src="https://agentmods.dev/badge/skills/nickcrew/claude-cortex/codanna-codebase-intelligence.svg" alt="Measured on agentmods" height="20"></a>
Per session 27 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,040 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin unknown 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 $0.00027 $0.01040
Opus 5 $0.00014 $0.00520
Sonnet 5 $0.00005 $0.00208
Haiku 4.5 $0.00003 $0.00104

Measured today against content hash 98d682d924c0, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

codanna-codebase-intelligence scanned grade A with 0 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 today.

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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/codanna-codebase-intelligence/SKILL.md · 142 lines

How it starts

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

Codanna Codebase Intelligence

Codanna indexes your codebase and provides semantic search, call graphs, and dependency analysis via MCP tools. Use codanna before grep/find - it understands code structure, not just text patterns.

When to Use

  • Finding code: "Where do we handle authentication?" → semantic_search_docs
  • Understanding dependencies: "What calls this function?" → find_callers
  • Impact analysis: "What breaks if I change this?" → analyze_impact
  • Exploring symbols: "Show me the Parser struct" → find_symbol

Core Tools

Discovery

# Natural language search - finds code by intent, not keywords
semantic_search_docs query:"error handling patterns" limit:5

# Search symbols by name/pattern
search_symbols query:"parse" kind:"function"

# Get full details on a specific symbol
find_symbol name:"process_file"

Relationships

# Who calls this function? (upstream)
find_callers symbol:"validate_input"

# What does this function call? (downstream)
get_calls symbol:"process_request"

# Full dependency graph - what breaks if I change this?
analyze_impact symbol:"DatabaseConnection" depth:3

Documentation (RAG)

# Search indexed markdown/docs
search_documents query:"API authentication" collection:"docs"

Tool Selection Guide

Task Tool Example
Find code by concept semantic_search_docs "database migrations"
Find symbol by name search_symbols Pattern: "auth*"
Get symbol details find_symbol Exact: "UserService"
Trace callers find_callers "Who uses this?"
Trace dependencies get_calls "What does this call?"
Assess refactor risk analyze_impact "What breaks?"

Workflow Patterns

Before Refactoring

  1. find_symbol - understand current implementation
  2. find_callers - identify all usage sites
  3. analyze_impact - assess blast radius
  4. Then proceed with changes

Understanding Unfamiliar Code

  1. semantic_search_docs - "how does X work"
  2. find_symbol - get entry point details
  3. get_calls - trace execution flow

Read the full file on GitHub · 142 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. today First seen · 142 lines · 27 tokens per session scan A 98d682d924c0

Subscribe to this mod's changes

codanna-codebase-intelligence is a skill published in the GitHub repository NickCrew/Claude-Cortex (37 stars, last pushed 2mo ago), licensed MIT. It adds 27 tokens to every session and 1,040 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.