SShortSingh.
Back to feed

Open-Source Tool Reveals Hidden Token Waste in AI Coding Agents

0
·2 views

A developer has released AI Agent Profiler, a local reverse proxy tool that sits between coding agents like Claude Code and LLM providers to track exactly how API tokens are spent. The tool found that only around 60% of API costs stem from actual user prompts, with the remaining 40% attributed to agent overhead such as subagent searches, context summaries, and session-title generation. A key cost driver identified is Claude Code's 5-minute cache expiry window, which forces expensive full cache rewrites on tokens exceeding 200K whenever a user steps away briefly. The profiler classifies requests into 11 categories and flags cold-cache regenerations with severity badges to help users understand idle-gap costs. The tool supports multiple providers including Anthropic, OpenAI, DeepSeek, AWS Bedrock, and Ollama, and can be installed via npm with zero telemetry.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingDEV Community ·

3D Printing Tip: Adding Surface Texture Hides Print Lines Better Than Sanding

A maker with two years of 3D printing experience found that sanding to remove print lines was slow and damaged fine details on organic models like figures and terrain. The key insight was that print lines appear prominent because they are a regular, repeating pattern against an otherwise blank surface, making them visually conspicuous. By covering the entire surface with irregular relief textures such as wood grain, stone, or stipple, the print lines lose contrast and stop standing out. The maker now runs STL files through a browser-based 3D file upscaler that bakes real surface geometry into the mesh, requiring no software installation or account. This approach works across filaments and slicers, though mirror-smooth or manufactured-look parts still require traditional sanding or chemical smoothing.

0
ProgrammingHacker News ·

Texas Instruments Publishes Comprehensive Engineer's Guide to USB Type-C

Texas Instruments has released a technical guide aimed at engineers working with USB Type-C technology, available as a PDF through their official literature portal. The document covers the key concepts and specifications engineers need to understand when designing with USB Type-C. It serves as a practical reference for hardware and firmware developers navigating the complexities of the standard. The guide was shared on Hacker News, where it attracted community interest among technical readers.

0
ProgrammingDEV Community ·

Developer ships first Rust AI agent runtime, fixes two CI failures within 20 minutes

A developer publicly released AgentOS v0.1.0-alpha, a 10-crate Rust runtime layer for AI agents, after keeping the repository private during development. Within minutes of going public, CI flagged a Clippy lint error where a HashMap was being iterated unnecessarily with key-value pairs instead of the cleaner .values() method, which was resolved with a one-line fix. A second failure emerged during the release workflow when cross-compiling for Linux arm64 failed due to missing OpenSSL headers on the x86_64 GitHub Actions runner. Rather than rush a potentially risky fix to a security-sensitive dependency under time pressure, the developer chose to drop the arm64 target from the initial release and ship binaries for the four remaining platforms. The arm64 issue has been filed as a tracked issue, with the leading proposed fix being a migration from openssl-sys to the pure-Rust rustls library to eliminate system OpenSSL dependencies across all targets.

0
ProgrammingHacker News ·

Furtex: Open-Source Linux Toolkit for Rootkit and Post-Exploitation Research

Furtex is a newly shared open-source toolkit designed for Linux security research, focusing on post-exploitation techniques, rootkits, and evasion methods. The project was published on GitHub by user MatheuZSecurity and surfaced on Hacker News. It is intended as a research and educational resource for cybersecurity professionals studying offensive Linux techniques. The submission received minimal engagement at the time of reporting, with only 3 points and no comments on Hacker News.