# Who calls this function? Not a guess.

> Ask who calls a function, read bounded code via the graph, map external inputs and outputs, or inspect git-diff impact from the compiler's own index. Measured precision and token savings.

Answered from the compiler's own index.

Code reads the SCIP index your language tools build and links every symbol to its callers, callees, architecture block and external I/O. It would rather show no caller than a wrong one.

[See how it works](#how) · [Read the numbers](#precision)

Rust · TypeScript · JavaScript · Python · less proven: Java

## How it works

All commands below ship in release builds (and the Windows Setup installer) today alongside joined cross-product recall (`footnote_recall(all: true)`) and the Launcher Code Map + I/O split view. Powered by `rust-analyzer`, `scip-typescript`, `scip-python`, verified `scip-java` overlay and tree-sitter fallbacks; changed files come back marked `stale`.

### Build call & symbol graph

`footnote code-index .` builds the local symbol & call graph in seconds while excluding `.gitignore`, dot-folders, build directories and `.footnoteignore` paths.

### Bounded graph-first reads

`footnote_code(op="read")` returns compact file outlines or exact symbol bodies + callers—cutting pre-edit read bytes **93.6 %** and turns **63.0 %** (27 → 10) on the 8-task `LEAN-C1` fixture (8/8 parity).

LEAN-C1 pre-edit bytes read across 8 multi-language tasks: 112,422 bytes bare Read/Grep reduced to 7,250 bytes via graph-first reads (-93.6%)

### Architecture & I/O split map

`footnote code-map` and `footnote code-io` map module blocks alongside every config key, env var, SQL table/view, API route and file touch with exact `path:line` citations.

### 3-hop git-diff impact

`footnote code-impact --diff` (or `<name>`) traces callers up to 3 levels, tests affected and locked project decisions touching edited code before you commit.

## Precision, conflict rate & recall (C1–C3, C6, COD-12)

Held-out links verified against compiler ground truth on 18–19 Nov 2026 (plus 24 Nov `field_type` follow-up `COD-12`). Recall stays beside precision because Footnote refuses edges when unsure.

| Language | Projects | Ground truth | Compiler conflicts | Precision / recall |
|---|---|---|---|---|
| Rust | 15 | `rust-analyzer` | 28 of 7,707 (0.4 %) | recall 0.04–0.20 (calls only) |
| TypeScript (C2 / C6 / COD-12) | part of 6 | `scip-typescript` | 6 of 13,449 combined (0.04 %) | 0.937 / 0.622 (base 0.934 / 0.581) |
| Python (C2 / C6 / COD-12) | part of 6 | `scip-python` | 0 errors added in COD-12 | 0.865 / 0.466 (base 0.865 / 0.455) |
| Java (C3) | 3 | `javac` | not counted | 1.00 / 0.70–0.85 |

**Distinction & limits:** "Compiler conflict rate" (`C1`, `C2`) counts emitted links the compiler contradicts; "analyzed precision & recall" (`C6`) evaluates default-tier resolution on held-out sets—never mix the two. Rust recall is intentionally conservative (calls only vs all compiler refs), Java spans only three parser projects (`gson`, `jsoup`, `commons-lang`) plus `scip-java`, and an external review of Rust no-edge links remains open.

## Against other tools: one Rust repository (C4)

Measured on one Rust codebase (37 files without tests, single run). Because this is the repository our rules were tuned on, read this strictly as a data point, never as a universal ranking.

One Rust repository head-to-head (C4, 17 Nov 2026, heavy caveat n=1 tuned repository): Footnote precision 0.98 / recall 0.50; CodeGraph 1.6.3 precision 0.88 / recall 0.55; codebase-memory-mcp 0.12.1 precision 0.61 / recall 0.41

| Tool | Precision | Recall |
|---|---|---|
| Footnote | 0.98 | 0.50 |
| CodeGraph 1.6.3 | 0.88 | 0.55 |
| codebase-memory-mcp 0.12.1 | 0.61 | 0.41 |

## Not measured yet & build trust

- Live multi-model LLM coding trials for graph-first reads (`LEAN-C1` measures a deterministic 8-task multi-language suite with 8/8 parity).
- An independent external review of Rust no-edge links.
- Broader held-out compiler ground truth across Java and Go repositories.

**Trust note:** For Rust, `rust-analyzer` executes project build scripts and procedural macros—only run `footnote code-index` on repositories you trust. `scip-typescript` and `scip-python` only parse source files.

## Index this folder.

You need Footnote installed first: see [install](https://footnote-alpha.johanproust.workers.dev/index.md#install), plus the compiler tools for your languages.

### Index

Builds the graph for the project here.

```sh
footnote code-index .
```

### Ask

Inspect callers, callees and symbol definitions.

```sh
footnote code lookup <symbol>
```

---

Page: https://footnote-alpha.johanproust.workers.dev/code
Source: https://footnote-alpha.johanproust.workers.dev/llms.txt lists every page.
