Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>TraceNotesNew to Visual Studio Code? Get it now.
TraceNotes

TraceNotes

RobertttBS

|
44 installs
| (2) | Free
An extension for code tracing and note-taking.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

TraceNotes

Trace code flows into hierarchical notes that stay in sync with your code. Collect them by hand or let your AI agent build them. Export and import as Markdown.

Select code and press Opt+C or Alt+C to collect a trace. Or ask Claude Code, Codex, Cursor, or Antigravity to "trace the login flow into TraceNotes".

UI explanation

TraceNotes is an extension for navigating and documenting code logic. It allows you to build a structured narrative of code flows that stay synchronized with the editor.

AI Agents (Skill & CLI)

Let Claude Code, Codex, Cursor, or Antigravity (IDE or agy CLI) read the code and write the trace tree for you. Cards appear live in the panel as the agent works.

Getting started

  1. Install TraceNotes and open a project folder.
  2. On every start, if ~/.claude, ~/.codex, ~/.cursor, or ~/.gemini/config (Antigravity) exists, the tracenotes skill is installed there automatically and kept up to date.
  3. Ask your agent, from inside that project, for example:
    • "Trace the login flow into TraceNotes."
    • "Explain my last commit as a trace tree." The agent reads git diff and picks the hunks worth a card.
    • "The code changed. Fix the TraceNotes tree." The agent repairs the existing tree instead of rebuilding it.

Keeping trees up to date. After the code changes, the agent runs check to find traces whose code no longer matches the file. It then runs refresh to re-read them, using the new line range if the code moved. Your notes are kept.

How it works

  • CLI – The extension installs ~/.tracenotes/bin/tracenotes (tracenotes.cmd on Windows). Run it from inside a project folder that is open in VS Code; it talks to that window. Output is JSON. Run ~/.tracenotes/bin/tracenotes help for the full guide. Each editor also installs its own launcher, tracenotes-code / tracenotes-cursor, which only talks to that editor's windows; Cursor's skill uses tracenotes-cursor, so it never lands in a VS Code window with the same folder open.
  • Skill – The skill is written to <dir>/skills/tracenotes/SKILL.md (for Antigravity, ~/.gemini/config/skills/…, read by both the IDE agent and agy) so the agent knows how to use the CLI. Skills are written on every start for each agent whose config folder exists, matching the extension version.
  • Installed an agent later? Open it once (so its config folder exists), then reload the window or run TraceNotes: Set Up AI Agents, which also shows where the skills were written. With no agent config found, just tell your agent to run ~/.tracenotes/bin/tracenotes help.
CLI command What it does
list / show [--outline] List trees / print a tree with trace ids
create --name <name> Create a tree from Markdown on stdin
add [--parent \| --after \| --before <id>] Add traces from Markdown on stdin
note <id> / rm <id>… Replace a note / remove traces
check / refresh <id>… Find traces whose code changed / re-read their code
rename / delete-tree Rename or delete a tree

Input uses the same Markdown format as Export to Markdown; a code fence's info line is <lang> <start>:<end>:<path> (or ?:? with the code pasted in, to let TraceNotes find it).

Features

Collection & Recovery

  • Capture – Select code and press Opt+C (Alt+C), or click + for a standalone note card. Snippets are dedented automatically.
  • Recovery – Traces re-anchor after edits via exact, whitespace-normalized, then fuzzy matching, falling back to a workspace-wide search for moved code. Unrecoverable traces are marked Orphaned; re-bind them with ✎.
  • Undo Remove – Cmd+Z (Ctrl+Z) in the Storyboard restores deleted cards and their children.

Organization & Navigation

  • Hierarchy – Nest traces up to 10 levels and keep multiple trace trees in Manage Traces.
  • Drag and Drop – Reorder cards, drop on Move to Child to nest, or on To Parent to move up a level.
  • Canvas (🔍) – View the whole tree on a 2D canvas. Drag to pan, Ctrl/Cmd + Scroll to zoom, click to jump.
  • Search – Search the current tree or all trees with AND, OR, NOT / -term, "phrases", and ( ).
  • History – Go back and forward (< / >) through visited cards, groups, and trees.

Notes & Editor Sync

  • Markdown Notes – GFM rendering with links and clickable task checkboxes.
  • Note Editing – List continuation, Tab / Shift+Tab indent, selection wrapping (*, `, _, ~, brackets, quotes).
  • Editor Sync – Clicking a card jumps to its code; moving the cursor highlights the matching card.
  • Colors & Gutter – Right-click a card to pick one of 8 colors. Gutter markers show traces outside the current group; hover to preview the note and ↗ Jump to card.

Project Sharing (Worktrees & Clones)

  • Cross-Checkout Sync – Worktrees and clones of one repo share traces, matched by git origin, folder name, or Set Project ID (🔗).
  • Per-Checkout Positions – Paths are workspace-relative and positions are tracked per checkout, so branches don't conflict. Edits sync live across windows.

Import & Export

  • Markdown – Lossless round-trip: headings for hierarchy, %%Tag%% for colors (Obsidian-compatible), and <!-- tracenote --> fences around notes.
  • JSON – Back up all trees to tracenotes-data.json. Import Trace accepts .md and .json.

Commands & Shortcuts

Action Shortcut (macOS) Shortcut (Win/Linux) Context / Command
Collect Trace Option + C Alt + C TraceNotes: Collect Trace
Undo Remove Cmd + Z Ctrl + Z Storyboard focus
Save / Cancel Note Cmd + Enter / Esc Ctrl + Enter / Esc Note editor focus
Toggle Bold Cmd + B Ctrl + B Note editor focus
Export MD — — TraceNotes: Export to Markdown
Import MD / JSON — — TraceNotes: Import Trace
Export All Data (JSON) — — TraceNotes: Export All Data to JSON
Clear Current Tree — — TraceNotes: Clear All Traces
Set Project ID — — TraceNotes: Set Project ID
Set Up AI Agents — — TraceNotes: Set Up AI Agents

Support

If you find this extension helpful, consider buying me a coffee!

Buy Me A Coffee


License

Distributed under the MIT License.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft