惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

www.infosecurity-magazine.com
www.infosecurity-magazine.com
D
DataBreaches.Net
T
Tailwind CSS Blog
M
MIT News - Artificial intelligence
Stack Overflow Blog
Stack Overflow Blog
F
Full Disclosure
V2EX - 技术
V2EX - 技术
N
News and Events Feed by Topic
Help Net Security
Help Net Security
L
LangChain Blog
Y
Y Combinator Blog
宝玉的分享
宝玉的分享
Google Online Security Blog
Google Online Security Blog
P
Proofpoint News Feed
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
T
The Blog of Author Tim Ferriss
Google DeepMind News
Google DeepMind News
The Register - Security
The Register - Security
B
Blog RSS Feed
N
Netflix TechBlog - Medium
N
News | PayPal Newsroom
TaoSecurity Blog
TaoSecurity Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
V
Vulnerabilities – Threatpost
B
Blog
C
Cyber Attacks, Cyber Crime and Cyber Security
I
Intezer
H
Hackread – Cybersecurity News, Data Breaches, AI and More
博客园_首页
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
AI
AI
aimingoo的专栏
aimingoo的专栏
大猫的无限游戏
大猫的无限游戏
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
Cyberwarzone
Cyberwarzone
P
Proofpoint News Feed
Google DeepMind News
Google DeepMind News
G
GRAHAM CLULEY
Vercel News
Vercel News
罗磊的独立博客
MyScale Blog
MyScale Blog
Last Week in AI
Last Week in AI
博客园 - 司徒正美
C
CERT Recently Published Vulnerability Notes
GbyAI
GbyAI
Scott Helme
Scott Helme
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
T
Troy Hunt's Blog
A
About on SuperTechFans
P
Privacy International News Feed

Hacker News: Show HN

PurrrrrFocus: Pomodoro Timer App - App Store Workflow Engine — Multi-Step Orchestration for Bun RapidPhoto: Pro Photo Editor App - App Store GitHub - DheerG/swarms: Achieve extraordinary results with claude code across a variety of tasks SPICE simulation → oscilloscope → verification with Claude Code — Lucas Gerads Show HN: VCoding – A 5 MB native Windows IDE with no dynamic dependencies Show HN: LLMs don't hallucinate because they're bad at math, it's the format GitHub - Agent-FM/agentfm-core: AgentFM is a peer-to-peer network that turns everyday computers into a decentralized AI supercomputer. AgentFM lets you run massive AI workloads directly across a global mesh of idle CPUs and GPUs. Show HN: Tracking Top US Science Olympiad Alumni over Last 25 Years GitHub - Potarix/agent-hub: One place to talk to all your agents Show HN: Runtime security for AI agents(injection,tool abuse, data exfiltration) GitHub - dubeyKartikay/lazyspotify: Terminal Spotify client for macOS and Linux GitHub - the-banana-tool/king-louie: Easy to use GUI Personal AI Assistant. Win/Linux/Mac. Show HN I made my vacation rental bookable by AI agents–no Airbnb, 0% commission GitHub - basteez/jsf-autoreload: maven plugin to enable hot reload on jsf projects uvm32/hosts/host-gdbstub at main · ringtailsoftware/uvm32 GitHub - labsai/EDDI: Config-driven engine that turns JSON into production-grade AI agents. Multi-agent orchestration, 12+ LLM providers, MCP/A2A protocols, RAG, persistent memory, and enterprise compliance (EU AI Act, GDPR, HIPAA). Built on Quarkus. GitHub - glitchnsec/fortyone-oss: AI Executive Assistant Platform Quickstart | Alien GitHub - muxshed/shed: One stream in, or many. Every destination, simultaneously. No cloud middleman, no per-channel fees, no limits. GitHub - ocrbase-hq/ocrbase: 📄 PDF/IMG ->.MD/JSON Document OCR API for PaddleOCR and GLMOCR. Self-hostable. GitHub - impactjo/home-memory: MCP server that lets your AI assistant remember everything about your home. GitHub - Sets88/dbcls: DbCls is a powerful terminal database client that supports various databases GitHub - neptun2000/heor-agent-mcp GitHub - SeanFDZ/macmind: Single-layer transformer in HyperTalk for the classic Macintosh RollQuation: Math Puzzles - Apps on Google Play GitHub - dropbox/witchcraft Show HN: Agent-cache – Multi-tier LLM/tool/session caching for Valkey and Redis GitHub - opentalon/opentalon: OpenTalon is an open-source platform built from the ground up in Go as a robust alternative to OpenClaw LinkedIn™ 职位抓取工具 - Chrome 应用商店 GitHub - EdoardoBambini/Agent-Armor-Iaga: AI agents are getting tool access — shell, file system, databases, APIs, secrets. But **nobody is governing what they actually do with it**. Frameworks like LangChain, CrewAI, AutoGen, and Claude Code give agents the power to execute. Agent Armor gives you the power to control, audit, and approve every single action before it happens. HN Vibes — Week 15, Apr 7–13 2026 GitHub - chojs23/ec: Easy terminal-native 3-way git mergetool vim-like workflow GitHub - SethPyle376/hiraeth: Local AWS emulator focused on fast integration testing, with SQS support, SQLite-backed state, and a debug-friendly web UI. GitHub - JakOb-dotcom/cloud-sandbox-security-analysis: Technical analysis and Proof of Concept (PoC) regarding environment variable exfiltration in containerized cloud sandboxes via side-channel data leaks. Springboards - Flint Alpha Show HN: A simpler coding agent harness GitHub - audiodude/sudomake-friends GitHub - 256thFission/mini-mythos: OSS clone of Anthropic’s Mythos harness to locate C/C++ memory vulnerabilities Show HN: OpenParallax: OS-level privilege separation for AI agent execution Hacker News Sorted - Chrome 应用商店 Show HN: How to Install Docker on Ubuntu 24.04 LTS: Complete 2026 Guide GitHub - himanshudongre/smriti GitHub - sverrirsig/claude-control: macOS desktop dashboard for monitoring and managing multiple Claude Code sessions GitHub - ory/dockertest: Write better integration tests! Dockertest helps you boot up ephermal docker images for your Go tests with minimal work. Chiral - Chrome 应用商店 Show HN: Two Claudes collaborating through shared memory on a $100 mini-PC GitHub - pmichaillat/latex-cv: Minimalist LaTeX template for academic CVs GitHub - oguzbilgic/posse: A web UI for Anthropic Managed Agents. GitHub - sshiraz/depsly: Dependency risk analysis tool for npm packages ABI Add safari/agent-harness — Safari browser automation via safari-mcp by achiya-automation · Pull Request #212 · HKUDS/CLI-Anything GitHub - Halfblood-Prince/trustcheck: Verify PyPI package attestations and improve Python supply-chain security GitHub - oguzbilgic/kern-ai: Agents that do the work and show it. GitHub - bruits/satteri: High-performance Markdown and MDX processing for the JavaScript ecosystem GitHub - tylergibbs1/feedstock: High-performance web crawler and scraper for TypeScript, powered by Bun and Playwright GitHub - Grimm67123/grimmbot: The self-improving sandboxed and open-source AI agent. With persistent memory and scheduling. GitHub - whitevanillaskies/whitebloom: Local whiteboard that blooms. GitHub - hwdsl2/docker-whisper: Docker image for a self-hosted Whisper speech-to-text server with speaker diarization and OpenAI-compatible transcription and translation APIs. Powered by faster-whisper. Supports all Whisper models, NVIDIA GPU (CUDA) acceleration, JSON/SRT/VTT output, SSE streaming, offline mode, and multi-arch (amd64, arm64). GitHub - yisding/reviewwiggum GitHub - MarwanAlsoltany/serrors: Structured errors for Go: sentinel hierarchies, typed data, custom formatting, and slog integration. GitHub - soatok/age-php GitHub - Luthiraa/markitme GitHub - stagas/rtdiff: realtime git diff gui and AI-assisted commits GitHub - tombedor/excalicharts GitHub - wh1le/excalidraw-edit: Open and edit .excalidraw files from the terminal. Offline, auto-saves to disk. MalExt Sentry - Malicious Extension Scanner - Chrome 应用商店 GitHub - syi0808/asciianimesvg: Generate animated ASCII art SVGs from text. CLI, Rust library, WASM, and web editor. GitHub - zaina-ml/ml_forge: A visual-based graph node editor for training computer vision models. GitHub - anakin87/llm-rl-environments-lil-course: 🌱 A little course on Reinforcement Learning Environments for evaluating and training Language Models GitHub - takaakit/superpowers-uml: Superpowers-UML modifies Superpowers to ensure a software development workflow in which AI agents design through UML modeling. AdriByte Studio - Sviluppo Web e Soluzioni Digitali GitHub - chouligi/angel-copilot: Your personalized Angel Investment Advisor Show HN: MoodSense AI (ML and FastAPI and Gradio, Deployed on Hugging Face) Moodsense Ai - a Hugging Face Space by aman179102 GitHub - agenteractai/lodmem: Level Of Detail Context Management for Agents GitHub - ostefani/subnetlens: A fast, concurrent network scanner with a TUI and plain-text CLI, built in Go. It discovers live hosts on your network, scans their open ports, resolves hostnames, and fingerprints operating systems—delivered. Cyber Pulse: Agentic Intel - Apps on Google Play Whisper API: Self-Hostable Speech to Text Transcription The Agent-Web Protocol Stack: A Research Thesis GitHub - msmarkgu/RelayFreeLLM: A restful API designed to route user prompts to various AI model providers. Show HN: Provepy – A Python decorator that proves your code using Lean and LLMs Show HN: Pardonned.com – A searchable database of US Pardons GitHub - patrickdappollonio/dux: Dux is a terminal UI that lets you run multiple AI coding agents side by side, each in its own git worktree, with full companion terminals, macros, commit generation, and a command palette that knows more tricks than you do. kMC Crystal Simulator Show HN: HyperFlow – A self-improving agent framework built on LangGraph GitHub - stef41/vibescore: 🎵 Grade your vibe-coded project. One command, instant letter grade across security, quality, dependencies, and testing. GitHub - stef41/lmscan: 🔍 Detect AI-generated text and fingerprint which LLM wrote it. Open-source GPTZero alternative. Zero dependencies, works offline. imgur.com GitHub - visionscaper/collabmem: Enabling long-term collaboration with Agentic AI - building up episodic and world model memory over time with in-context awareness 在 Steam 上购买 FriedrichAI: Offline AI 立省 10% GitHub - atripati/ark: AI Runtime Kernel — a context operating system for AI agents. Eliminates tool bloat, loads only what’s needed, and gives LLMs their reasoning space back. GitHub - nowork-studio/toprank: Open-source Claude Code skills for SEO, SEM, Google Ads GitHub - tacomanator/sash: Lightweight macOS menu bar app for reliably cycling through windows of the current application. Appents | Social Media Management for Product-First Teams GitHub - pnhoang/youtube-spam-blocker: Automatically detects and hides spam messages in YouTube Live chat. Set rate limits, keyword filters, and block repeat offenders. GitHub - decisionnode/DecisionNode: CLI + Local MCP - A shared structured memory store across Claude Code, Cursor, Windsurf, Antigravity, and every MCP client. Semantically queryable. GitHub - AvaCodeSolutions/django-email-learning: An open source Django app for creating email-based learning platforms with IMAP integration and React frontend components. The $100K Gap in Kubernetes Security Tooling Function Calling Harness: From 6.75% to 100%
I Spent 30 Days Tracking the Re-Read Tax in My Claude Code Bill. 73% Was Redundant.
CataDef · 2026-05-18 · via Hacker News: Show HN

FIELD STUDY · AI CODING AGENTS

A field measurement of what AI coding agents actually spend tokens on — and a working framework for cutting it.

By Aurelian Jibleanu · Founder, ArgosBrain · 9 min read

Where a $4.20 Claude Code session actually goes — 73% re-reads, 27% productive

A month ago I noticed something strange in my Claude Code bill.

I was running long coding sessions on a 400-file Next.js project — real production work, multi-file refactors, the usual. The bills were creeping up faster than I expected. So I did what every engineer does when a number doesn't match their model: I added logging.

What I found surprised me.

73% of the tokens I was paying for weren't reasoning. They weren't tool calls. They were the agent re-reading files it had already read minutes earlier.

This piece is the methodology, the data, and the design space of fixes — written for anyone whose Claude Code or Cursor bill has started looking less like a tool subscription and more like a tax.


The setup: how I logged the re-reads

You can replicate this on any Claude Code session. Here's what I did.

For 30 days I instrumented every coding session by piping Claude Code's tool-call logs through a small wrapper that captured:

{
  "turn": 47,
  "tool": "read_file",
  "path": "src/lib/auth.ts",
  "tokens_in": 3214,
  "tokens_out": 0,
  "session_id": "...",
  "timestamp": "..."
}

Across 30 days I logged 47 sessions ranging from quick bug-fix runs (~30 turns) to long architectural refactors (1,000+ turns). Total: 18,442 tool calls, ~14 million input tokens.

Then I bucketed every read_file call by file path and counted how many times the same path was read inside the same session.

The result is the "re-read percentage": of all tokens spent reading files, what fraction was redundant — i.e., the agent had already read that file in a previous turn of the same session.

If you want to do this yourself, the wrapper is ~80 lines of shell + jq. The harder part is staying disciplined enough to run every session through it for a month.


The data

Three findings stood out.

1. The longer the session, the worse the re-read tax

On short sessions (<50 turns), re-reads were ~25% of read tokens. Annoying but tolerable.

On long sessions (500+ turns), re-reads were 78%. The agent was, on average, reading every relevant file 4–5 times per session.

Aggregate across all 47 sessions: 73% of all read-tokens were re-reads. Weighted toward long sessions because those are where most of the spend is.

Re-read tokens as % of all read tokens by session length
Re-read tokens as a percentage of all read tokens, bucketed by session length. The pattern is structural — the longer the agent runs, the more it forgets and re-reads.

2. The same handful of files got read over and over

In one 1,237-turn session on the Next.js project, the agent read src/lib/auth.ts eleven times. It read prisma/schema.prisma nine times. It read next.config.mjs seven times. None of these files changed during the session.

Top files re-read in one session
The top 8 most-re-read files in a single 1,237-turn session. Eight files accounted for 62% of all read tokens — and seven of them were configuration or type definitions that didn't change once.

The agent wasn't being stupid. As context filled up, it would lose track of what it already knew, and at the next turn it would re-grep, re-read, and re-load the same file to "remember."

This is structural. There's no prompt-engineering fix for it.

3. The cost adds up faster than you think

For the 1,237-turn session, the math worked out to:

BucketTokensCost
Total in-session input1.4M$4.20
Re-read tokens (73%)~1M$3.07
New / productive tokens~400k$1.13

That's $3 of pure redundancy on a single session.

Multiply by 5 sessions a day, 22 working days = $330/month per developer that's just paying for forgotten context.

Annualized, across team sizes, the picture gets sharper:

Annual re-read tax by team size
Annual re-read tax projected by team size. A 25-engineer team spends ~$99k/year on the agent re-loading context it already had. That's not the tool's fault — it's the structural memory gap, multiplied by people.

If your team has 10 engineers on Claude Code or Cursor Pro, that's $40k/year of re-read tax. Possibly more — that calculation assumes only one model. Switching to Opus for harder reasoning multiplies the bill by 5–7x on the same redundancy.


Why it happens (and why prompt engineering won't fix it)

This isn't a bug in Claude Code or Cursor. It's how every current-generation agent works without a persistent memory layer.

The architecture, simplified:

  1. Turn N starts. Agent has a fresh context window with the system prompt and the last few turns of conversation.
  2. Agent needs to know about a function. It calls read_file or grep to find it. Reads ~3k tokens.
  3. Turn N+1. Some of that context falls out as the conversation continues. Agent finishes the immediate task.
  4. Turn N+47. Agent gets a related question. The earlier read has long since dropped out of context. Agent re-reads the same file. ~3k more tokens. Same content.

The agent has no persistent memory between turns. The chat history is the memory, and the chat history has a hard limit. So at some point — usually around turn 50 — every read becomes a potential re-read.

You can patch this with CLAUDE.md or .cursorrules, but those are flat text files. They tell the agent about your project ("this codebase uses Prisma, our auth is in src/lib/auth.ts"), not its actual contents. The agent still has to read the file when it needs the actual code.

Bigger context windows don't fix it either. A 100M-token context window doesn't mean the agent reasons over 100M tokens — it means the file you read three turns ago might still be visible. Helpful but not a structural fix, because (a) bigger windows are slower and more expensive per query, and (b) the agent still hallucinates symbols when the relevant file is buried 80M tokens deep in context.

The real fix is to give the agent persistent, queryable memory of your codebase that lives outside the chat window.


The fix space: three approaches

There are three architectural approaches to giving an agent persistent code memory. Each has real trade-offs, and the right answer depends on your codebase and your tolerance for setup.

The three architectural approaches
Three architectural approaches to persistent code memory for AI agents. None is universally best — the right choice depends on codebase size and query mix.

Approach 1 — Text-based memory (CLAUDE.md, .cursorrules, "memory bank" patterns)

The simplest version. You write a text file describing your project's structure and stuff it into every prompt.

Pros: zero setup, works today, no extra tooling.

Cons: doesn't store actual code. Just metadata. The agent still has to read the file when it wants the function body. Re-read tax barely moves.

When it makes sense: small codebases (<50 files) where the file map matters more than the file contents.

Approach 2 — Embedding-based memory (vector search over your code)

Index every file (or chunk of file) as an embedding. At query time, embed the question, retrieve the top-K matching chunks. This is what most RAG-style code-memory tools do.

Pros: fuzzy queries work — "find code that handles user auth" returns relevant chunks even if "auth" isn't in the function name. Setup is moderate.

Cons: every query costs embedding API calls (real money — typical pricing is $0.02–$0.10 per million tokens for the embedding model itself). Indexing a 100k-LOC codebase ranges from ~$50 to ~$900 just for the embedding pass, depending on which model you pick. Retrieval is probabilistic — you sometimes get the wrong chunk back, which leads the agent to confidently reason over the wrong code. And you need a vector database running somewhere.

When it makes sense: when fuzzy semantic search dominates your workflow and you don't mind the per-query cost.

Approach 3 — Graph-based memory (deterministic symbol index)

Parse the codebase into an abstract syntax tree (AST), extract every symbol — function, class, import, call site — and store it as a graph. At query time, the agent asks deterministic questions: "does function X exist?", "where is X called from?", "what does X import?" The answer is a sub-millisecond graph lookup, not a probabilistic search.

Pros: zero per-query cost (just graph traversal). Deterministic — the agent gets a definitive yes/no instead of a maybe. Hallucinated symbols drop to zero because the agent can verify a symbol exists before using it. Indexing once gives you reliable answers forever (until the code changes).

Cons: doesn't handle fuzzy semantic queries as well as embeddings. Requires the parser to support every language in your codebase. The index has to update when code changes (mostly automatic with file-watchers, but a real engineering concern).

When it makes sense: large codebases where most agent queries are structural (find this function, who calls this, does X exist) rather than fuzzy (find code that does X-ish thing).

In practice, you can combine approaches. Some tools layer embeddings on top of graph indexes for fuzzy queries, falling back to deterministic lookups for structural ones. There's no single right answer.


What the math looks like with persistent memory

I rebuilt the same 1,237-turn Next.js session with a persistent graph-based memory layer running in the background. Same agent. Same prompts. Same model. Same task.

The difference:

Before vs after persistent memory
Same task, same agent, same model — twice. Persistent graph memory cut read calls 9.8×, input tokens 5.8×, hallucinated symbols to zero, and per-task cost 10×.

That's a 10x reduction on this run. The hallucinations going to zero matters as much as the cost — every hallucinated symbol cost me debugging time downstream.

Caveats: this is one session, on one repo, with one task profile. The reduction varies. On simple bug fixes (single-file changes), the gain is smaller — sometimes negligible — because there isn't much re-reading to eliminate. On long architectural sessions across many files, it's bigger.

I'm publishing 30 of these comparisons next month with full methodology and raw logs. The headline finding (~70% reduction on long multi-file sessions) seems to hold across repos, but I want enough data points before I claim it as universal.


How to test this on your own bill

If you're paying for Claude Code or Cursor, here's the cheapest, most honest version of this experiment you can run:

  1. Pick one real session you ran this week. A long one — 200+ turns ideally.
  2. Pull the tool-call log from your Claude Code session history (it's in ~/.claude/sessions/ for Claude Code).
  3. Count read_file calls per file path. If any file appears more than twice, those reads after the first one are your re-read tax.
  4. Multiply. Average re-read tokens per file × times re-read = your tax for that session. Annualize it for a sanity check.

I'd bet your number is between 50% and 80%. Mine averaged 73%. DM me yours — I'm collecting data points for the longer benchmark.


What I built

I'm Aurelian, founder of ArgosBrain. We took the graph-based approach: SCIP + LSP + tree-sitter fused into one local Rust binary. Sub-50ms symbol lookups, $0/query, branch-aware so it survives git checkout. MCP-native, so it plugs into Claude Code, Cursor, Codex and any MCP-compatible agent.

We've benchmarked it on Kubernetes (~2M LOC) and VS Code-scale repos because that's where the existing tools tend to break. Free tier indexes one project, no card required — argosbrain.com if you want to try it on your codebase.

But the bigger point isn't ArgosBrain. It's that the re-read tax is real, structural, and not solved by bigger context windows or better prompts. If you're paying for Claude Code or Cursor at any volume, this number is hiding in your bill. Find it. Fix it with whichever tool fits your workflow.

I'd love to hear what your re-read percentage looks like. Reply, DM me on X, or email [email protected]. I'll post the aggregated numbers (anonymized) once I've collected ~50 data points.