What is agent-trace?
agent-trace is a Claude Code mod by krika2810 that prompt flow pane: every step after a prompt is sent, in order, colored by type, with tokens, cost and failures. It is listed under Cost & usage and has 8 GitHub stars.
| Type | Claude code mod |
|---|---|
| Author | krika2810 |
| Repository | krika2810/agent-trace |
| Popularity | 8 GitHub stars |
| Category | Cost & usage |
| Security | High risk (48/100) |
| Rank | #849 of 9,397 Claude Code mods; #156 in Cost & usage |
| License | MIT |
| Last commit | 2026-11-28 |
| Hooks | 29 events |
| Sees | classic hooks, compaction, every prompt, every tool call, subagent spawns |
| Draws on | Pane |
Is agent-trace safe to install?
agent-trace scores 48/100 on the MCPMods security check: High risk. Things to review: starts processes outside the sandbox; writes files or config; reads environment variables; watches every prompt or event. It passed 3 of 8 checks.
Mod footprints come from claude plugin validate, which lists every event a mod hooks and every API call it makes without running it.
| Check | Result |
|---|---|
| No network access | Pass |
| Starts processes outside the sandbox | Review |
| Writes files or config | Review |
| Reads environment variables | Review |
| Watches every prompt or event | Review |
| Doesn't drive Claude | Pass |
| Validator reported problems | Note |
| Has an open-source license | Pass |
API calls in its code
| Call | What it means |
|---|---|
$.clock.now | |
$.command.register | |
$.env.get | reads env vars |
$.fs.exists | reads files |
$.fs.read | reads files |
$.fs.write | writes files |
$.process.run | runs processes |
$.session.id | |
$.session.messages | reads the transcript |
$.session.usage | |
$.settings.read | reads settings |
$.state.get | |
$.state.set | |
$.store.delete | keeps its own state |
$.store.get | keeps its own state |
$.store.set | keeps its own state |
$.ui.copy | draws interface |
$.ui.open | draws interface |
$.ui.resolve | draws interface |
$.ui.toast | draws interface |
How do I install agent-trace?
- Check your Claude Code version. Mods need Claude Code 2.1.287 or later and are on by default.
claude --version
- Read its footprint. This lists every event it hooks and every API call it makes, without running it.
git clone https://github.com/krika2810/agent-trace claude plugin validate ./agent-trace/.
- Install it. Run this in your terminal, then /reload-plugins in an open session.
claude plugin marketplace add krika2810/agent-trace && claude plugin install agent-trace@agent-trace
Or ask Claude to set it up
Paste this into Claude Code and it installs agent-trace for you:
Install the "agent-trace" Claude Code mod from https://github.com/krika2810/agent-trace. Run claude plugin validate on it first and show me what it can access before you enable it.