#agents
6 posts tagged agents.
We Built a Call Graph Because Our Agent Kept Breaking Callers It Never Knew About
The agent found one caller via GitHub search, patched it, and shipped. Two other callers broke in production. The fix was correct. The picture was incomplete.
Five Data Structures for a Call Graph — Why We Chose Hash Map of Sets
The adjacency matrix sounds clever. It's wrong for sparse graphs. The edge list is right for serialization and wrong for queries. Here's what each actually costs.
Token Cost Engineering in Agent Loops — Prompt Caching and State Pruning
Output tokens cost 5× more than input. In agent loops, both compound. Two targeted fixes — prompt caching and state pruning — cut per-incident cost by ~25%.
Why the Same Bug Kept Creating New Incidents (And What That Taught Me About RAG)
Three layers of dedup. Four independent failure modes that all had to fire simultaneously. The compound bug that exposed them, and the principle that makes it not happen again.
RAG Finds the Candidate. The Live Store Confirms the Truth.
A search index can't be a source of truth — that's a category error, not just a bug. The general rule for any vector index sitting in front of a live data store.
Why My AI Agent Kept Adding Null Checks Instead of Fixing the Bug
Five PRs to teach a fix-generation pipeline that the crash site is almost never the fix site. The producer/consumer distinction, RAG's structural blind spot, and what it took to find the actual bug.