Skip to main content

Session Tracker

PostToolUse:SkilltrackingDisabled by default

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.

SessionStart
PreToolUse
PostToolUse
Stop
Notification
Post Tool Use

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.

~/.claude/settings.json
{
  "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

$ claude plugin marketplace add tonone-ai/tonone

2. Install this hook

$ claude plugin install session-tracker@tonone-ai

More tracking hooks

All hooks

Ready to use Session Tracker?