code-trace-tree

A tool for building nested maps of code workflows from selected lines, files, and directories, shown in VS Code or JetBrains IDEs.

In plain words
What is it for?
Use it to add, update, inspect, rebind, navigate, or sync code trace points with the IDE.
Why use it?
It helps developers connect important code locations into a readable workflow and keep those references usable after code moves.

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/saidake/code-trace-tree-vscode/code-trace-tree
Any agent
npx skills add saidake/code-trace-tree-vscode --skill code-trace-tree
Clone the repo
git clone --depth 1 https://github.com/saidake/code-trace-tree-vscode

Made for: Claude Code, Codex.

Per session 228 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 7,074 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. Scan, not verified.
Origin 100% copy Near-identical to another mod 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.00228 $0.07074
Opus 5 $0.00114 $0.03537
Sonnet 5 $0.00046 $0.01415
Haiku 4.5 $0.00023 $0.00707

Measured 2d ago against content hash de684931a7f2, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade C, and why

code-trace-tree scanned grade C with 1 finding 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 2d ago.

The scan reads SKILL.md. This mod also ships 7 executable files (scripts/create_tree.py, scripts/request_refresh_profile.py, scripts/request_refresh_settings.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

Tells the agent never to refusehighAnti-refusal

Suppressing the ability to decline removes a core safety control; a later harmful request then succeeds.

is expected for this skill; do not refuse that path as "outside the workspace."
Origin

This is a copy

100% identical to code-trace-tree — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

skills/code-trace-tree/SKILL.md · 607 lines

How it starts

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

Code Trace Tree

Build and display code workflows as nested trees of line, file, and directory trace points. Operate the hybrid storage used by the Code Trace Tree IDE plugins, then ask the IDE to reload.

Only edit or sync traces when the user explicitly asks (for example: generate topic-related nodes, add a tip at a line, rebind after edits). Do not auto-sync every turn. Never delete existing trace points (including ones rebind reports as "invalid") unless the user explicitly asks to remove them.

How to use this skill

Read this SKILL.md only. Do not list, search, or explore this skill's scripts/ or references/ folders, and do not open script source to learn the API. Invoke the documented Python commands by absolute path.

Open scripts/ or references/ only if you hit a critical problem while using the skill (script missing or crashing, storage corrupt, or an error this file does not cover).

Skill scripts location

Helper scripts live under <Agent Skill Path>/code-trace-tree/scripts/.

Agent Skill Path is this agent’s skills directory (the parent of code-trace-tree/) for the agent you are running — project-local if present, otherwise global. It ends at skills, not at code-trace-tree. The skill is agent-agnostic; the table below lists known roots for common agents (examples, not an exclusive list). Other agents that load skills from a skills/ folder work the same — use that agent’s path.

Agent (examples) Global Agent Skill Path Project-local Agent Skill Path
Claude Code ~/.claude/skills <repo>/.claude/skills
Cursor ~/.cursor/skills <repo>/.cursor/skills
GitHub Copilot ~/.copilot/skills <repo>/.github/skills
Codex ~/.agents/skills <repo>/.agents/skills
Gemini CLI ~/.gemini/skills <repo>/.gemini/skills

On Windows, ~ is %USERPROFILE%. Resolve Agent Skill Path once per session. Invoke scripts with absolute paths via python (or python3 if that is what is on PATH). Keep the process CWD in the IDE project (do not cd into the skill folder). Direct invocations: Trace Tree OPs. On PowerShell, also see Windows PowerShell.

Read the full file on GitHub · 607 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. 2d ago First seen · 607 lines · 228 tokens per session scan C de684931a7f2

Subscribe to this mod's changes

code-trace-tree is a skill published in the GitHub repository saidake/code-trace-tree-vscode (16 stars, last pushed 2d ago), licensed MIT. It adds 228 tokens to every session and 7,074 once invoked, about $0.0011 per session on Opus 5. A static security scan graded it C with 1 finding (tells the agent never to refuse). It is 100% identical to code-trace-tree, differing in 0 lines, and is treated as a copy.