Points at your Claude Code session history and tells you where you're wasting money or time. It pulls data from the local analytics API (session logs, token usage, pricing) and looks for patterns like using expensive models on simple tasks, poor cache hit rates, or sessions that dragged on past the point of usefulness. The output is a prioritized table with quantified recommendations: switch model X to model Y here, split this type of task into smaller sessions, these tools keep failing so try alternatives. Honest take: only as good as your session volume. If you've run dozens of sessions, the cost and speed suggestions can be legitimately eye opening. If you're new, it won't have much to work with.

GitHub stars
455
last updated
Jun 11, 2026

Install

$ npx -y skills add hoangsonww/claude-code-agent-monitor --skill optimization-suggest --agent claude-code

Installs into .claude/skills of the current project.

Files

Optimization Suggest

Generate data-driven optimization recommendations for Claude Code usage.

Input

The user provides: $ARGUMENTS

This may be:

  • "all" or empty (default: comprehensive optimization scan)
  • "cost" for cost reduction focus
  • "speed" for performance/speed focus
  • "quality" for error reduction focus
  • "efficiency" for workflow efficiency focus

Procedure

  1. Gather optimization data from http://localhost:4820:

    • GET /api/sessions?limit=200 — session history
    • GET /api/analytics — tool and token analytics
    • GET /api/pricing/cost — cost data
    • GET /api/pricing — pricing rules for model comparison
    • Sample event streams for behavioral analysis
  2. Analyze optimization opportunities:

Sponsors

Details

Repository
github.com/hoangsonww/claude-code-agent-monitor
Categories
DevOps & CI/CD, AI & Agent Building
License
MIT
First seen
Jun 11, 2026

More from hoangsonww/claude-code-agent-monitor

All 24
1hoangsonww avatarpattern-detecthoangsonww/claude-code-agent-monitor>0skills.sh installs
2hoangsonww avatarproductivity-scorehoangsonww/claude-code-agent-monitor>0skills.sh installs
3hoangsonww avatarquick-statshoangsonww/claude-code-agent-monitor>0skills.sh installs
4hoangsonww avatarrelease-guardhoangsonww/claude-code-agent-monitorRun release-readiness checks for this repository. Use when validating docs, scripts, verification coverage, and operational safety before merge or release.0skills.sh installs
5hoangsonww avatarrepo-onboardinghoangsonww/claude-code-agent-monitorUnderstand this repository quickly before making changes. Use for architecture discovery, ownership mapping, command selection, and initial implementation plann0skills.sh installs
6hoangsonww avatarsession-comparehoangsonww/claude-code-agent-monitor>0skills.sh installs