If you're running complex Claude Code workflows with multiple subagents, tool chains, and model delegation, this gives you forensic level visibility into what's actually happening. It pulls eleven different datasets from the Agent Monitor API, from orchestration DAGs to tool transition matrices to error propagation patterns, then produces ranked optimization recommendations with estimated savings. You'd use this when your workflows feel inefficient but you're not sure where the waste is. The model delegation analysis alone is worth it if you're burning Opus tokens on tasks that Haiku could handle. It's basically a profiler for agentic workflows, assuming you're already using Agent Monitor to capture the telemetry.

GitHub stars
455
last updated
Jun 11, 2026

Install

$ npx -y skills add hoangsonww/claude-code-agent-monitor --skill workflow-optimizer --agent claude-code

Installs into .claude/skills of the current project.

Files

Workflow Optimizer

Analyze Claude Code workflows using the Agent Monitor's workflow intelligence engine.

Input

The user provides: $ARGUMENTS

Options: "analyze", a session ID for single-session analysis, or a focus: "tools", "subagents", "cost", "errors".

Data Sources

EndpointReturns
GET /api/sessions?limit=100Session list with metadata
GET /api/workflows/{sessionId}11 workflow datasets (see below)
GET /api/analyticsTool usage top 20, event types, agent types
GET /api/pricingModel pricing rules for cost comparison

Workflow Intelligence API (GET /api/workflows/{sessionId})

Returns these 11 datasets per session:

Sponsors

Details

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

More from hoangsonww/claude-code-agent-monitor

All 24
1microsoft avatarazure-cloud-migratemicrosoft/azure-skillsAssess and migrate cross-cloud workloads to Azure with reports and code conversion. Supports Lambda→Functions, Beanstalk/Heroku/App Engine→App Service, Fargate/606.9Kskills.sh installs
2google avatargoogle-agents-cli-evalgoogle/agents-cliThis skill should be used when the user wants to "run an evaluation", "evaluate my ADK agent", "write an eval dataset", "analyze eval failures", "compare eval r558.9Kskills.sh installs
3xixu-me avatarxgetxixu-me/skillsUse when tasks involve Xget URL rewriting, registry/package/container/API acceleration, integrating Xget into Git, download tools, package managers, container b517.1Kskills.sh installs
4scrapegraphai avatarjust-scrapescrapegraphai/just-scrapeSearch, scrape, crawl, extract structured data, and monitor web pages via the ScrapeGraph AI CLI. Use when the user asks to search the web, scrape a webpage, gr245Kskills.sh installs
5firebase avatarfirebase-app-hosting-basicsfirebase/agent-skillsDeploys and manages full-stack web applications (Next.js, Angular) with Server-Side Rendering (SSR) using Firebase App Hosting. Use when deploying Next.js/Angul176.9Kskills.sh installs
6cloudflare avatarworkers-best-practicescloudflare/skillsReviews and authors Cloudflare Workers code against production best practices. Load when writing new Workers, reviewing Worker code, configuring wrangler.jsonc,140.4Kskills.sh installs