ccam-insights — Claude Code plugin: session analysis and anomalies
ccam-insights — a Claude Code plugin that detects patterns in agent behavior, alerts on anomalies, and provides optimization recommendations. Uses Agent Monitor analytics to compare sessions and spot deviations.
MIT ★ 1,198 updated 2026-10-23
/plugin marketplace add hoangsonww/Claude-Code-Agent-Monitor
/plugin install ccam-insights@claude-code-agent-monitor-pluginsWhat ccam-insights does
The plugin analyzes Agent Monitor data — logs, token usage, and tool calls — to show where the agent spends more resources than usual. Identifies recurring patterns across sessions and flags anomalies: sudden spikes in requests, infinite loops, or redundant tool invocations.
Offers actionable improvements: rewrite the prompt, cap recursion depth, cache results. Compares the current session against previous ones to see if agent behavior shifted after a config update.
MIT licensed, installed via marketplace. The plugin depends on Agent Monitor: without recorded sessions, there is nothing to analyze.
What it helps with
- find which tasks consume the most tokens
- get alerts on infinite loops or excessive tool calls
- compare current session against past runs and spot changes
- receive optimization recommendations for prompts and settings
- catch anomalies before the budget runs out
Example prompts for the agent
- Show patterns in the last session and where the agent spent the most
- Compare this session to the previous one and highlight anomalies
- Give me recommendations on reducing API call count
How to install ccam-insights
Plugin marketplace
/plugin marketplace add hoangsonww/Claude-Code-Agent-Monitor/plugin install ccam-insights@claude-code-agent-monitor-pluginsStep by step, with commands for each platform: Claude Code plugins: marketplaces, installing, and building your own
Questions about ccam-insights
How to install ccam-insights in Claude Code?
Add the repository with /plugin marketplace add hoangsonww/Claude-Code-Agent-Monitor, then install the plugin with /plugin install ccam-insights@claude-code-agent-monitor-plugins.
What does ccam-insights do?
The plugin analyzes Agent Monitor sessions, detects patterns and anomalies in agent behavior, compares sessions, and suggests ways to reduce token and tool call usage.
What does ccam-insights require to work?
Agent Monitor must be set up and collecting session data. Without recorded metrics, the plugin cannot perform analysis.
Source text
ccam-insights · MIT
AI-powered insights for Claude Code — pattern detection, anomaly alerting, optimization recommendations, and session comparison using Agent Monitor analytics.
© Son Nguyen · MIT · hoangsonww/Claude-Code-Agent-Monitor