Coding agents burn more tokens finding code than changing it — the interface is to blame

Wise_Reflection_8340 · reddit · 2026-10-05

The hidden cost

Coding agents spend most tokens finding code rather than changing it: every search resends the whole context, every file opened along the way stays in the window, and text-based edits fail and retry when old text appears twice or the file changed.

How sem handles it

In sem, an open source tool, the repo is parsed into functions and call graphs. Asking for a function returns its body, callers, callees and covering tests in one response; repeated requests with no changes return a short note. Edits target functions by name and are version-checked so stale edits fail cleanly; after a change only tests that can reach it run first.

Results and limits

Open source: sem

Original post →

More from coding & agent

coding & agent channel →