TraceDecay in Pi
SkillFiles & storageLets your agent explore a codebase via a code graph, tracing calls, checking impact, and picking affected tests before edits.
Available today. Use it from your connected AI after setup.
No other account needed.
Add ahel to your AI once: Claude, ChatGPT, Cursor, Claude Code or Codex. Then ask it to use this.
Then ask your AI: use the TraceDecay in Pi skill
About this skill
Use the shared TraceDecay code graph from Pi for repository exploration, symbol lookup, call tracing, impact analysis, affected-test selection, diagnostics, and change review. Use before grep, broad file reads, new helpers, signature changes, test runs, cargo check, Clippy, or raw diff review in a T
What this skill tells your AI
The instructions your AI receives, as published by scriptedalchemy/tracedecay in plugin/pi/skill/SKILL.md and read by ahel’s review.
Pi registers one native tracedecay_* tool per TraceDecay catalog tool, plus
/tracedecay commands (see the tracedecay extension in
~/.pi/agent/extensions/). They bridge the same tool surface that the Codex
and Cursor plugins expose over MCP, through the supported CLI. Tools that
change project state ask for approval first and refuse an explicit project
selector. Do not read .tracedecay databases directly.
Preferred routes
Native tools first, one per task:
- Concept or architecture:
tracedecay_context - Symbol discovery:
tracedecay_searchortracedecay_find_exact_symbol - Literal or regular expression:
tracedecay_grep - File lookup:
tracedecay_files - Source detail:
tracedecay_source_outline, thentracedecay_source_body - Calls:
tracedecay_callersortracedecay_callees - New helper or structural edit:
tracedecay_search, thentracedecay_impact - Tests:
tracedecay_affectedortracedecay_test_map - Compiler work:
tracedecay_diagnosticsbefore a build;tracedecay_diagnoseafter an error - Review:
tracedecay_diff_contextbefore a raw diff - Index state:
tracedecay_statusandtracedecay_active_project
Reuse returned node IDs and continuation handles. An empty index result does not prove absence; report partial coverage instead of assuming.
CLI fallback
When a native tool is unavailable or the task needs shell scripting, use the CLI with the same tool names and JSON arguments:
tracedecay status --json
tracedecay tool context --args - <<'JSON'
{"task":"managed runtime install recovery and ownership checks","max_tokens":2500}
JSON
List all tools with tracedecay tool. Read a schema with
tracedecay tool <name> --help. The /tracedecay command shows project
status, /tracedecay-sync forces an incremental sync, and
/tracedecay-version shows the binary version.
Worktrees
Use the nearest initialized project when it exists. For a new linked worktree that has no local TraceDecay store, use the source project for pre-edit context:
tracedecay tool context --project /path/to/source-project --args - <<'JSON'
{"task":"the exact delegated task","max_tokens":2500}
JSON
Create branch indexes only when a long-lived worktree has diverged enough that source-project context is stale. Do not run manual sync after each edit. The Pi extension hooks keep an initialized project current.
Operational boundaries
Use TraceDecay when its graph, durable memory, or session evidence answers the task. Known-file reads, ordinary local edits, nonindexed material, and clarification questions can use the native workflow directly.
Preserve exact project/worktree selectors and opaque continuation or mutation identities. Cross-project operations must use the selected registered store, not whichever project is active. Preview and read results do not grant mutation authority. Apply, cancellation, and rollback consume their returned identities; reconcile committed effects before retrying an interrupted operation.
Limits
- Do not dump broad files into prompts when graph results answer the question.
- Do not run broad test suites before affected-test selection.
- Do not expose secrets or store transient task progress as memory facts.
- If a tool fails, read its corrective error and retry with the stated schema.
- If no daemon is running, the tools report TraceDecay as unavailable and do
not start one: a stopped daemon may be an intentional hold. Report the
limitation;
tracedecay daemon statusshows the state.
Signals
- GitHub stars
- 77
- Forks
- 6
- Last commit
- Sep 2026
Advanced
- Catalog kind
- skill
- Key
tracedecay-cli- Source
- github.com/scriptedalchemy/tracedecay