Canonical: https://botbento.com/usecases/auditing-agent-proxy-logs-for-token-bloat/
Format: Markdown representation of the public HTML page.

[Home](/) / [Use cases](/usecases/) / [Operations](/usecases/?category=ops)

Operations · Intermediate

# Auditing agent proxy logs for token bloat

Inspect captured outgoing model prompts to spot excessive context windows and reduce token waste

[Use with BotBento ](https://app.botbento.com/?ref=usecases&utm_source=botbento.com&utm_medium=usecases&utm_campaign=auditing-agent-proxy-logs-for-token-bloat)Copy promptShare[Markdown](/text/usecases/auditing-agent-proxy-logs-for-token-bloat/index.md)

Opens BotBento. Paste the prompt into a bot; nothing is preconfigured.

- When something happensNew proxy session log captured
- ThenAnalyze prompt payloads and token totals
- ResultAudit report with optimization

Review captured request payloads and token counts generated by developer terminal tools. The bot scans logged prompts, identifies repetitive file dumps or unconstrained tool queries, and summarizes opportunities to optimize context usage and reduce API expenses.

## Prompt to start with

BotBentoRecommended

```
Scan proxy request logs stored locally from your developer sessions. Parse request payloads and token metrics, flagging repetitive context injections, large raw file reads, or potential credential leaks. Generate an audit report in notes detailing top token drivers and specific suggestions to trim prompt sizes. Always ask for user approval before posting summary notifications to Slack.
```

Copy

## Tools it uses

TerminalNotesSlack

## Works with

BotBento

## Tags

- devtools
- llm
- tokens
- monitoring
- cost-optimization

## Source

[Show HN: A MitM proxy to see what your LLM tools are sending](https://news.ycombinator.com/item?id=46799898)
Hacker News · checked 2026-10-15

Summarized in our own words. Any results described there are the authors’ own, not measured by BotBento.

By BotBento Editorial · Added 2026-10-15 · Updated 2026-10-15 · [Suggest a correction](/contact/)

## Related use cases

-

Operationsintermediate

## [Monitoring local peer node daemon health](/usecases/monitoring-local-peer-node-daemon-health/)

Track peer connections, sync lag, and socket availability on local distributed network daemons

TerminalSlack
-

Operationsintermediate

## [Agent Sandbox Lifecycle and Cost Auditor](/usecases/agent-sandbox-lifecycle-and-cost-auditor/)

Track resource usage across agent execution sandboxes and safely purge idle instances.

TerminalDatadogSlack
-

Operationsintermediate

## [Auditing model usage logs to downgrade simple tasks](/usecases/auditing-model-usage-logs-to-downgrade-simple/)

Inspect query traces to identify routine calls that can run on smaller models

TerminalSpreadsheetDocs
