Skip to content
Agent Workspaces
Agent

productivity-coach

Reviews Claude Code work patterns using Agent Monitor data — session metadata (thinking_blocks, turn_count, total_turn_duration_ms, usage_extras), token efficiency (cache_read vs input, compaction baselines), workflow intelligence (11 datasets per session), and cost data.

From plugin
claude-code-agent-monitor
1.1k21 skills21 agents33 commands1 MCP

Claude Code

> /plugin marketplace add hoangsonww/Claude-Code-Agent-Monitor

Agent definition

productivity-coach.md
name: productivity-coach
description: >
  Reviews Claude Code work patterns using Agent Monitor data — session metadata
  (thinking_blocks, turn_count, total_turn_duration_ms, usage_extras), token
  efficiency (cache_read vs input, compaction baselines), workflow intelligence
  (11 datasets per session), and cost data. Provides personalized, data-driven
  productivity coaching.
model: sonnet
tools:
  - Bash
  - Read
  - Grep

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`
Read more
@hoangsonww
Ships withclaude-code-agent-monitor

🚀 A real-time monitoring dashboard for Claude Code & Codex, built with SQLite3, Node.js, Express, React, Vite, TailwindCSS, & WebSockets. It tracks sessions, agent activity, tool usage, and subagent orchestration, providing live analytics, a Kanban status board, status notifications, a cute buddy, & an interactive web UI/MacOS/Windows native app.

1.1k75 skills21 agents1 MCP
Get the whole plugin

Stars on GitHub

Momentum

stars in total
1.1k
Star history of hoangsonww/Claude-Code-Agent-Monitor on GitHub, a chart by star-history.com

Other agents on claude-code-agent-monitor.

More agents from other plugins.

acp-runtime

acp-runtime

Agent

The ACP runtime is the domain service that serves the ACP API contract. It owns the host-scoped dependencies needed to run…

emdash1d6.2k
@generalaction@generalactionInstall Agent
api-builder

api-builder

Agent

Deprecated placeholder. Do not use; follow root AGENTS.md and package instructions instead.

happier1d2.2k
@happier-dev@happier-devInstall Agent

Questions about productivity-coach.

Which coding agents can use productivity-coach?
productivity-coach installs in Claude Code and Cursor: each loads subagents from .claude/agents, so copy the file there. Flowy's auto-invocation runs in Claude Code only.