Session Tracker
Records which tonone agents were invoked in the current session so PRs can credit the specialists that contributed.
Why use this
Agent work that disappears into a single commit is attribution lost. Tracking which specialists actually ran gives you a ledger of who did what, and makes PR descriptions honest about the team behind the change.
Lifecycle
Where in the Claude Code session this hook fires.
Fires after each tool call completes.
Fires only when the tool matches: Skill
How it works
After each Skill tool call, writes the invoking tonone agent name to .claude/session-agents. Deduplicates entries atomically. Feeds the pr-attribution hook at PR creation time. Silent on non-tonone skills.
settings.json
What the hook configuration looks like in ~/.claude/settings.json after install.
{
"hooks": {
"PostToolUse": [
{
"matcher": "Skill",
"hooks": [
{
"type": "command",
"command": "node ~/.claude/plugins/tonone-ai/tonone/tonone-session-tracker.js"
}
]
}
]
}
}Install
This hook
Install Session Tracker
1. Add to marketplace
2. Install this hook
More tracking hooks
All hooksReady to use Session Tracker?