Skip to content

Code Cartography

Code Cartography means Altretta ingests a codebase into the same signed graph as your notes and understands it structurally — every symbol, every cross-file reference, and everything a change would touch.

Your second brain already holds your notes, decisions, and docs. Code Cartography lets it hold your code too — not as flat text, but as a real graph of definitions and relationships that Altretta builds from the source itself.

This is the differentiator. Obsidian and Logseq treat a code file as a wall of text to search. Altretta parses it — extracting an AST symbol graph across ~20 languages — so it knows that this function calls that one, that this type is used across five files, and what would break if you changed it. No other PKM tool understands source code as a graph.

Why this matters

A codebase is a graph whether or not your tools admit it: functions call functions, types flow across files, decisions constrain modules. When that graph is invisible, you keep it in your head and it rots. Code Cartography makes it explicit and durable:

  • Structure, not string-matching. Altretta resolves references across files, so "who uses this?" is an answer, not a grep.
  • One graph for code and context. Symbols live beside the notes and decisions that explain them, so an architectural decision and the code it governs are connected — and can be checked against each other.
  • Signed and provenanced. Because code enters the same signed graph as your notes, the git provenance of every ingest is recorded in the signed DAG. You can prove which commit produced which structure.

What you can do with it

It inherits everything else

Because code lives in the same signed graph, the rest of Altretta applies to it unchanged:

  • Grounded, cited answers work over code too — answers quote real source lines instead of guessing.
  • Signed history covers every ingest, so the evolution of your codebase's structure is a verifiable record, not a mutable log.

New here? Start with Ingest a codebase, then explore The symbol graph. Impact Radius is where it earns its keep.