gocenalper

Agent Optimization — AI skill for Claude Code

AI community

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

[![Available on CodeGuilds](https://img.shields.io/badge/Available_on-CodeGuilds-6366f1)](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