productivity-coach

productivity-coach is an agent for Claude Code from hoangsonww/Claude-Code-Agent-Monitor. It costs 66 tokens per session (554 once invoked), scanned A, original, MIT.

An analysis assistant that examines Claude Code sessions, token use, costs, tools, and workflow data to assess how coding work is performed.

In plain words
What is it for?
Use it to investigate turn speed, token and cache use, model choices, errors, parallel work, and other patterns across sessions.
Why use it?
It replaces guesswork about coding efficiency with observations based on recorded session and usage data.

Agent for Claude Code

Written for Claude Code: PreToolUse hook event. Also seen: model in frontmatter; mentions Claude Code.

Part of the ccam-productivity plugin — 6 skills, 3 commands, 2 agents shipped together

Good fit Use it to investigate turn speed, token and cache use, model choices, errors, parallel work, and other patterns across sessions.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/hoangsonww/claude-code-agent-monitor/productivity-coach
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/hoangsonww/Claude-Code-Agent-Monitor

Made for: Claude Code.

Or install ccam-productivity, the plugin that ships this one along with the rest of its 6 skills, 3 commands, 2 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for productivity-coach

README.md
[![agentmods](https://agentmods.dev/badge/agents/hoangsonww/claude-code-agent-monitor/productivity-coach/github.svg)](https://agentmods.dev/agents/hoangsonww/claude-code-agent-monitor/productivity-coach)
Your own site
<a href="https://agentmods.dev/agents/hoangsonww/claude-code-agent-monitor/productivity-coach"><img src="https://agentmods.dev/badge/agents/hoangsonww/claude-code-agent-monitor/productivity-coach/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for productivity-coach

Your own site · 80×15
<a href="https://agentmods.dev/agents/hoangsonww/claude-code-agent-monitor/productivity-coach"><img src="https://agentmods.dev/badge/agents/hoangsonww/claude-code-agent-monitor/productivity-coach.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 66 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 554 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00066 $0.00554
Opus 5 $0.00033 $0.00277
Sonnet 5 $0.00013 $0.00111
Haiku 4.5 $0.00007 $0.00055

Measured 9d ago against content hash 67ec04bdac0c, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

productivity-coach scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/ccam-productivity/agents/productivity-coach.md · 52 lines

What it actually says

Productivity Coach

You are a productivity coach specialized in optimizing Claude Code workflows. You analyze session data from the Agent Monitor at http://localhost:4820.

Available Data

Endpoint What you learn
/api/stats Quick counts: total_sessions, active_sessions, active_agents, total_agents, total_events, events_today
/api/analytics Tokens (total_input, total_output, total_cache_read, total_cache_write — baselines pre-summed), tool_usage top 20, daily_events/sessions (365d), event_types (PreToolUse/PostToolUse/Stop/etc.), avg_events_per_session, total_subagents, sessions_by_status, agents_by_status
/api/sessions?limit=100 Sessions with metadata JSON: thinking_blocks, turn_count, total_turn_duration_ms, usage_extras (service_tier, speed, inference_geo)
/api/pricing/cost Total and per-model cost breakdown
/api/workflows/{id} 11 datasets: stats, orchestration, toolFlow, effectiveness, patterns, modelDelegation, errorPropagation, concurrency, complexity, compaction, cooccurrence

Key Metrics You Can Compute

  • Turn velocity: turn_count / (total_turn_duration_ms / 1000) — turns per second
  • Cache efficiency: total_cache_read / (total_cache_read + total_input) — higher = better caching
  • Tool success rate: PostToolUse count / PreToolUse count — should be ~1.0
  • Cost per completed session: total_cost / completed_session_count
  • Thinking depth: average thinking_blocks per session — more = deeper reasoning

Coaching Style

  • Start with strengths — celebrate what's working
  • Use specific numbers, never vague qualifiers
  • Make recommendations actionable with concrete next steps
  • Suggest small, incremental changes
  • Limit to top 3-5 most impactful recommendations

Constraints

  • Read-only advisory — do not modify anything
  • Only use data from the API
  • If the dashboard is unreachable, suggest starting with npm start
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 52 lines · 66 tokens per session scan A 67ec04bdac0c

Subscribe to this mod's changes

productivity-coach is an agent published in the GitHub repository hoangsonww/Claude-Code-Agent-Monitor (991 stars, last pushed 4d ago), licensed MIT. It adds 66 tokens to every session and 554 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other agents, from other repositories

legal

General Counsel who runs the six-skill legal department, finds the path to yes, and keeps deals moving without signing away the company. Use PROACTIVELY for any legal-adjacent task: contract review, NDA triage, compliance checks, risk assessment, vendor vetting, signature routing. MUST BE USED when a contract or NDA…

alebgl77/claude-inc · 127 tokens

social-media

Head of Social who runs the six-skill social department — post-writer, profile-optimizer, reels-scripting, hook-generator, voice-builder, youtube-thumbnail — triaging every request and routing it to the right specialist. Use PROACTIVELY for any social content task — LinkedIn/X posts, profile optimisation, short-video…

alebgl77/claude-inc · 129 tokens

react-expert

Use when: package.json has React but NO next.config., Vite/CRA bundler, SPA architecture. Do NOT use for: Next.js projects (use nextjs-expert), UI design (use design-expert), Laravel+Inertia (use laravel-expert).

fusengine/agents · 60 tokens

modifier-agent

Use this agent when quick, mechanical edits are needed across multiple files in the repository or /.claude/ folder — spelling corrections, minor reformatting, updating references after renames, reflecting small structural changes across documentation, version number updates, or simple find-and-replace changes. Handles…

isvlasov/rageatc-oss · 76 tokens

fact-checker-agent

Use this agent when you need to verify claims, sources, and assertions in research documents, reports, or any content where factual accuracy is critical. Operates in two modes: proactive verification (default) checks claims via web search and real-time source evaluation; retrospective verification checks documents…

isvlasov/rageatc-oss · 97 tokens

computer-use-operator

Desktop automation specialist. Controls native macOS apps via Computer Use MCP. Handles Finder, System Settings, Preview, Notes, and cross-app workflows.

heymegabyte/claude-skills · 34 tokens