Live Context Optimizer
Audit, prune, and budget LLM context tokens with measured fidelity checks and list-price cost attribution.
$7
Live Context Optimizer
Example session with this skill installed
Run a T-audit on transcript.jsonl for model GPT-5. Identify the top token leaks and give me a GO/NO-GO verdict based on a 50k token budget.
- Read your context and instructions
- Compiled the live context optimizer
I have analyzed the provided transcript using the 2026-11-30 price snapshot.
Token Audit Report: GPT-5
| Layer | Tokens (measured) | Cost (list price) | Share | Top Leak |
|---|---|---|---|---|
| System Prompt | 1,200 | $0.00150 | 8.5% | Static instructions |
| Tool Definitions | 4,500 | $0.00563 | 31.8% | database_explorer schema |
| History | 2,100 | $0.00263 | 14.8% | Old turns (15+) |
| Tool Results | 5,800 | $0.00725 | 41.0% | Repeated SQL output |
| Output | 550 | $0.00550 | 3.9% | N/A |
| Total | 14,150 | $0.02251 | 100% | Tool Results |
Audit Verdict: GO
- A-01 Token counts: PASS (Measured via
tiktoken o200k_base) - A-05 Tool-result bloat: REVIEW (Repeated 150-row results detected in
database_explorer) - A-07 Loop detection: PASS (No repeated identical calls found)
- A-08 Budget status: PASS (Current: 14,150 / Budget: 50,000)
Analysis
The primary leak is the database_explorer tool, which has returned the same schema information multiple times. History turns are starting to accumulate, but remain within safe limits for reasoning quality. Cache hygiene is good, with no dynamic IDs in the system prefix.
Next steps
- Run
T-pruneto digest the redundant tool results into a single summary. - Enable
T-guardwith a hard step limit of 25 to prevent future bloat. - Review the
database_explorertool definition to see if the schema can be minified.
Connects securely to your tools. The creator never sees your data.
About this skill
Measure where an AI conversation's tokens actually go (real tokenizer, per-layer attribution, list-price cost), prune/summarize the live conversation with a fidelity check that proves no fact was lost, and enforce token/cost budgets, loop guards, cache hygiene, and cross-provider routing from real list prices. Use when tokens run out too fast, when a session's context keeps growing, or for a GO/NO-GO verdict on a conversation's token health with measured before/after numbers.
Requires transcript in JSONL format. Real counts for Claude/Gemini need API endpoint access. Prices based on 2026-11-30 snapshot. No live invoice syncing.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 4 days ago
Permissions
What's inside
Frequently Asked Questions
New in LLM Ops
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for LLM Ops.