Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Run automatically on Claude Code events. Claude doesn't decide.
1 critical · 2 cautions to review before installing
A hook runs before every tool call and can block or approve it
A hook runs when Claude uses the Bash tool
A hook runs when Claude writes or edits files
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Steam-style playtime tracking for CLI agent harnesses: Claude Code, Codex, OpenCode, Pi, Oh My Pi, Copilot CLI, Gemini CLI, Cline, Qwen Code, Goose and Factory Droid.
Steam tells you that you have 412 hours in a game and which ones you played this week. Nothing does that for agent harnesses. Playtime does.
PLAYTIME
[all time] this year this month today tab / shift-tab · q quits
open agent busy last used
Claude Code 386h 04m 141h 22m 36% today
Codex 21h 51m 6h 09m 28% 3 days ago
OpenCode 4h 23m 1h 02m 23% 2 weeks ago
Hours used
~/work/api 88h 12m ██████████████████
~/work/dashboard 63h 40m █████████████
~/work/infra 41h 05m ████████
412h 18m open, agent working 148h 33m of it (36%), 9h 12m of that waiting on you
1.4 sessions open at a time on average, 2,910h of session time in total
2,481 turns
open now Claude Code ~/work/api 2h 14m · working
npm install -g agent-playtime
playtime install
playtime doctor
Or without installing anything:
npx agent-playtime install
npx agent-playtime
playtime install wires up every harness it finds, backing up each settings
file first, and skips any whose config directory does not exist. Restart running sessions to pick the hooks up. Limit it with
--harness codex, or preview with --dry-run.
Every harness has a manual route, playtime install --harness <id>, with <id>
one of claude-code, codex, opencode, pi, omp, copilot, gemini, cline,
qwen, goose or droid. Three can also be installed from inside the harness:
| Harness | From within the harness | Manual |
|---|---|---|
| Claude Code | /plugin marketplace add fmarcac/agent-playtime then /plugin install playtime | playtime install --harness claude-code |
| Codex | /plugin marketplace add fmarcac/agent-playtime then /plugin install playtime@playtime | playtime install --harness codex |
| OpenCode | add "plugin": ["agent-playtime"] to opencode.json | playtime install --harness opencode |
| Pi | playtime install --harness pi | |
| Oh My Pi | playtime install --harness omp | |
| Copilot CLI | playtime install --harness copilot | |
| Gemini CLI | playtime install --harness gemini | |
| Cline | playtime install --harness cline | |
| Qwen Code | playtime install --harness qwen | |
| Goose | playtime install --harness goose | |
| Factory Droid | playtime install --harness droid |
Pick one route per harness. Doing both records every event twice. The plugin
route for Claude Code and Codex runs from a git checkout with no build, so it
starts the tracker through the playtime command: install the npm package too.
| Harness | Mechanism | Measured |
|---|---|---|
| Claude Code | hooks in settings.json | open, busy, blocked |
| Codex | hooks in hooks.json | open, busy, blocked |
| OpenCode | in-process plugin | open, busy, blocked |
| Pi | in-process extension, agent-playtime/pi | open, busy |
| Oh My Pi | in-process extension, agent-playtime/omp | open, busy, blocked |
| Copilot CLI | hooks/playtime.json in its config directory | open, busy, blocked |
| Gemini CLI | hooks in settings.json | open, busy, blocked |
| Cline | one executable per event in ~/.cline/hooks/ | open, busy |
| Qwen Code | hooks in settings.json | open, busy, blocked |
| Goose | a plugin in ~/.agents/plugins/playtime/ | open, busy |
| Factory Droid | hooks in ~/.factory/hooks.json | open, busy, blocked |
Notes:
sessionEnd also fires after every turn in piped mode, so
sessions run that way are cut into short ones.~/.config/goose or
~/.local/share/goose); install is skipped if neither exists.agent-playtime/pi and agent-playtime/omp, so updating the package updates them.~/.omp/agent/extensions/. A profile
(OMP_PROFILE) or PI_CODING_AGENT_DIR points Oh My Pi elsewhere, and it
will not load it from there; copy playtime.js into that extensions/.Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
Plugins from other owners that cover similar ground
npx claudepluginhub fma-rc/agent-playtime --plugin playtime