Agent Optimization — AI skill for Claude Code
Live token monitor for Claude Code & Codex sessions — cost tracking, optimization analysis, LLM-powered suggestions.
How to install Agent Optimization
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open gocenalper/agent-optimization and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Agent Optimization does
Live token monitor for Claude Code & Codex sessions — cost tracking, optimization analysis, LLM-powered suggestions.
Alternatives in AI
- Geo SEO Claude — GEO-first SEO skill for Claude Code 3.6k ★
- Token Monitor — Local-first desktop widget for tracking token usage, costs, and limits across 32+ AI coding tools—including Cl 1.8k ★
- Paritok 4b V1 — Non-destructive compression gateway for AI coding agents 1.4k ★
README
Agent Optimization
[](https://codeguilds.dev/packages/agent-optimization)
**Live token & cost monitor for Claude Code and Codex sessions.** Tracks every API call you make, finds what's wasting money, and lets you fix it — automatically.
What is this?
If you use Claude Code or Codex heavily, your token spend compounds fast — long sessions, large context files, wrong models for the job, keepalive probes eating cache writes. This dashboard reads your local session files in real time, quantifies the waste, and gives you actionable fixes.
Built for people who ship with AI agents every day and want to stay in control of the cost.
Features
📊 Overview — Live token dashboard
Real-time breakdown of every token you've consumed across Claude Code and Codex sessions.
- 5 KPI cards — Total tokens · Input · Output · Cache Read · Cache Create, each with USD cost
- Agent split — Claude Code vs Codex side-by-side bar charts with per-category cost
- Token composition — Stacked bar showing exactly where your budget goes
- Session table — Filterable by source, sorted by recency, with per-session cost breakdown
🗂 Projects — Project-level drill-down
Group sessions by project. Click into any project to see every session that ran inside it.
- Cost and token totals per project, sorted by spend
- Cache hit ratio, output share, avg cost/session
- Per-session table with session name (first user message), model, all token buckets + cost
🔬 Analysis — LLM-powered waste detection
Every 2 hours, Claude Haiku analyses your projects using your existing OAuth session — **no API key needed**.
**Detected patterns:**
- 🔴 Context bloat — loading huge context for minimal output
- 🔴 Cache inefficiency — writing cache blocks that never get reused
- 🟡 Overpowered model — using Opus on tasks Sonnet would handle equally well
- 🟡 Output-heavy sessions — verb
Related Skills
AI Token
Badi/.claude/ token usage analysis command. Categorized token counts, largest files, optimization suggestions.
Falaq Cockpit OSS
Mission control for Claude Code & Codex — a local dashboard to monitor, multitask, and drive all your AI codin
Terseai
Claude Code & Cursor token usage monitor and cost tracker for macOS & Windows. Live token/cost/burn monitoring
Agentic Metric
Local-only usage monitor for Claude Code and Codex CLI sessions. Live TUI dashboard, per-agent and per-model c
Coding Agent Usage Tracker
Single CLI to monitor LLM provider usage across Codex, Claude, Gemini, Cursor, and Copilot: remaining quota, r
Cost Check
Estimate LLM token cost for a feature, prompt, or workflow — with optimization recommendations
Related Agents
Budget
AI cost engineering — LLM spend tracking, model cost optimization, budget alerts, token efficiency audits
Cost Optimizer
Cloud and LLM cost optimization specialist — FinOps, right-sizing, caching strategies, Claude/OpenAI token red
Ops Monitor
Production observability expert. Use when designing monitoring, setting Sentry alerts, establishing error budg