
Building AI agent harnesses and dev tools. Sharing what works and what breaks. Here for good coffee and honest rants.
Joined April 2013
- Tweets10.1K
- Following4.2K
- Followers5K
- Likes15.2K
Ever seen what full decoding collapse actually looks like in a live Codex CLI session?
Today I hit it on turn 2 of a brand-new handoff thread running gpt-6.2-astra (xhigh) at only 30.2% context.
Two marathon threads right before it ran nearly 14 days each with zero garbled replies: • Thread A (gpt-6.1-sol, xhigh + max): 13d 15h 56m, 5,038 tool calls, 28 compactions, 1.39B cumulative input tokens (0 / 695 saved messages garbled). • Thread B (gpt-6.2-sol max + gpt-6.2-astra xhigh): 13d 23h 20m, 6,493 tool calls, 34 compactions, 1.77B cumulative input tokens (0 / 652 saved messages garbled).
The new handoff thread had completely separate context at 78,042 of 258,400 input tokens. The two 14-day threads did not spill into it.
The logged sequence on turn 2: • 13:24:27 · Last command returned 1,470 bytes. • 13:41:45 · After 17m 18s of xhigh reasoning, the response was metered at 6,006 output tokens. On screen, it started to answer "I pick C" in Chinese, hit the letter C, and veered into "CNXplayers flank..." followed by Cyrillic, Arabic, Korean, Georgian, and random code fragments. • 13:43:49 · TLS connection closed, one retry. • 13:44:37 · Turn interrupted. The JSONL recorded the 6,006 token count, while the reply text itself is missing from disk.
Flagging this for @thsottiaux and the Codex team @ajambrosino . A fresh 30% session on gpt-6.2-astra xhigh hitting full decoding collapse after a 17-minute turn, leaving metered output tokens in the JSONL without the reply text, is a rare edge case heavy runs will eventually cross into.
Three habits I now stick to for heavy Codex work:
• Reserve xhigh for short, bounded hard steps. Routine handoffs and read-only audits run faster and safer on medium or high without 17-minute single-turn stalls.
• Keep canonical state, handoff docs, and live readbacks on disk outside the chat log. When a fresh thread breaks on turn 2, closing it loses zero work.
• Rotate long threads at clean checkpoints, and watch stalled turns closely so a broken stream does not burn output tokens silently.
Full numbers from the rollout logs are in the chart below.
I don’t care whether Cursor is called Grok or Build, or whether it brings back Astra and supports Opus and Neon. As long as it keeps brushing users off with an AI support bot, I don’t see how enterprise customers can count on it.
Good news for builders, the teams at OpenAI and SpaceX have worked hard to reach a new agreement that brings OpenAI models, including Astra, to @Build (formerly Cursor).
Together, we've made important technical progress that will allow us to keep our models available in a tool developers use everyday.
1
25
Writing what an agent should not touch matters as much as the goal. This piece pairs Malte Ubl's real non-goals and three-tier boundaries with host write allowlists, CI gates, and retry caps.
16
12
438
Once you start compacting early to keep prompts lean, a counterintuitive trade-off shows up fast: aggressive compaction can make a long coding run slower and more expensive.
Microsoft Research analyzed 13.5 million GitHub Copilot agent sessions across 3.2 million users and 760 million LLM calls. Only 7.8% of sessions ever triggered compaction, yet those sessions burned 44.2% of total tokens. Worse, default synchronous compaction shrank prompts by 72.9% while dropping prefix-cache hit rate by 57.8%.
Three habits keep compaction from quietly inflating my bill:
1. Batch old tool-output clearing above a minimum token threshold instead of trimming a few lines every turn and busting the prefix cache repeatedly.
2. Trigger compaction at clean subtask boundaries, or prepare summaries asynchronously in the background so the active prefix stays warm.
3. Measure whole-task token spend (summary calls, cache rebuilds, and post-compaction re-reads) instead of celebrating a single-turn shrink ratio.
Auto-compaction feels like magic when a coding agent sails past turn 40 without hitting the context limit. The silent failure shows up ten turns later: the main task keeps moving while the one safety rule you set on turn 1 quietly disappears.
Summarizers optimize for task continuity, so hard side constraints and exact file paths get smoothed away into vague prose.
Before letting any agent auto-compact a long run, I split context cleanup into three layers:
1. Offload bulky old tool outputs to disk first, leaving only a file path and a one-line status in the prompt so nothing is permanently lost.
2. Keep hard rules and frozen decisions in a separate read-only slot outside the summarizer, and enforce destructive actions in host permission gates.
3. Compact only the leftover discussion incrementally at clean subtask boundaries, or stop cleanly when a safety margin hits.
6
7
509
Auto-compaction makes a long coding session look tidy while quietly erasing almost every exact detail from earlier turns.
A Nov 29 study analyzing real Claude Code and Codex compaction points across four engineers' sessions found the post-compaction context kept only 6% of exact answers and 40% of gist answers. Agents relying only on that summary scored 22% to 35% on questions about their own earlier work.
It is slow too. Across 72 real Claude Code compactions at a median of 336k tokens, the agent froze for a median of 61 seconds, with the longest stall hitting 206 seconds.
The fix that actually worked in the study was surprisingly simple: keep the full transcript on disk and add a one-line instruction telling the agent to search it. Even plain grep over transcript files lifted recall to 77% to 94%, and indexed search reached 81% to 94%.
Summaries work for keeping the active goal in sight. Exact facts belong in a searchable record on disk.
22
14
1,526
Auto-compaction feels like magic when a coding agent sails past turn 40 without hitting the context limit. The silent failure shows up ten turns later: the main task keeps moving while the one safety rule you set on turn 1 quietly disappears.
Summarizers optimize for task continuity, so hard side constraints and exact file paths get smoothed away into vague prose.
Before letting any agent auto-compact a long run, I split context cleanup into three layers:
1. Offload bulky old tool outputs to disk first, leaving only a file path and a one-line status in the prompt so nothing is permanently lost.
2. Keep hard rules and frozen decisions in a separate read-only slot outside the summarizer, and enforce destructive actions in host permission gates.
3. Compact only the leftover discussion incrementally at clean subtask boundaries, or stop cleanly when a safety margin hits.
A clean Non-Goals list stops accidental scope creep on smooth runs. Then the agent hits a stubborn failing test for three turns straight, and it quietly crosses your text prohibition just to make the error disappear.
A rule that only lives in Markdown is still advice. Once I separate soft boundaries from hard walls, I split enforcement into three layers:
1. Keep reversible style and cleanup rules in the task spec, and catch drift during diff review.
2. Put non-negotiable paths like tests, CI, and production configs behind a host write allowlist or pre-write hook so illegal edits get rejected before touching disk.
3. Cap max turns and retries in the harness so a blocked agent exits cleanly instead of burning tokens trying to route around the wall.
Text Non-Goals stop well-meaning detours. Host allowlists and retry caps stop desperate workarounds when the agent gets stuck.
Nothing spikes my blood pressure faster than asking a coding agent for a one-line bug fix, running git diff --stat, and seeing nine modified files.
It fixed the empty-input crash, then helpfully added type annotations across the module, renamed a nearby helper, rewrote old test assertions, and bumped a linter config.
Writing "do not make messy edits" never stops this, because the model already agrees with that. Useful Non-Goals only list things that sound completely reasonable on their own, yet stay off-limits for this ticket.
Before I hand off any coding task, I spend thirty seconds pinning three Non-Goals:
1. Scope: which adjacent edge case I am deliberately skipping this round.
2. Touch: which directories and config files must stay untouched.
3. Cleanup: no reformatting, renaming, or refactoring unrelated functions in the same file.
7
8
283
Auto-mode permission checkers are supposed to catch out-of-scope agent actions for you. The catch is that a checker cannot enforce boundaries you never wrote down.
In a Nov 29 study testing Claude Code, Codex, and Qwen Code across 128 DevOps tasks, their built-in permission checkers wrongly approved 54% to 93% of out-of-scope actions under the original prompts. Swapping in stronger models or dumping extra context failed to fix the miss rate.
The root cause was simple: for 132 of 143 out-of-scope actions, neither the prompt nor tool outputs ever stated what was forbidden.
Once researchers added explicit scope rules, miss rates dropped from 67%–92% down to 8%–26%, false blocks fell too, and across 384 full reruns none of the three agents proposed a single out-of-scope action. Final-state match jumped from 25% to 94% on Claude Code and 34% to 99% on Codex.
Writing explicit Non-Goals does two jobs at once: it keeps the worker focused and gives your permission gate a real line to enforce.
10
4
354
Most replies focused on the turn-2 collapse, yet the other half of my log deserves real credit for OpenAI and the Codex team.
One single thread ran nearly 14 days straight through 6,493 tool calls, 34 compactions, and 1.77B cumulative input tokens (98.7% cached). On day 14, it still held its reasoning together well enough to write a clean handoff pack with 52 verified local evidence links and 0 garbled messages across 652 replies.
Making single-thread endurance at that scale usable in daily work is serious engineering.
Ever seen what full decoding collapse actually looks like in a live Codex CLI session?
Today I hit it on turn 2 of a brand-new handoff thread running gpt-6.2-astra (xhigh) at only 30.2% context.
Two marathon threads right before it ran nearly 14 days each with zero garbled replies: • Thread A (gpt-6.1-sol, xhigh + max): 13d 15h 56m, 5,038 tool calls, 28 compactions, 1.39B cumulative input tokens (0 / 695 saved messages garbled). • Thread B (gpt-6.2-sol max + gpt-6.2-astra xhigh): 13d 23h 20m, 6,493 tool calls, 34 compactions, 1.77B cumulative input tokens (0 / 652 saved messages garbled).
The new handoff thread had completely separate context at 78,042 of 258,400 input tokens. The two 14-day threads did not spill into it.
The logged sequence on turn 2: • 13:24:27 · Last command returned 1,470 bytes. • 13:41:45 · After 17m 18s of xhigh reasoning, the response was metered at 6,006 output tokens. On screen, it started to answer "I pick C" in Chinese, hit the letter C, and veered into "CNXplayers flank..." followed by Cyrillic, Arabic, Korean, Georgian, and random code fragments. • 13:43:49 · TLS connection closed, one retry. • 13:44:37 · Turn interrupted. The JSONL recorded the 6,006 token count, while the reply text itself is missing from disk.
Flagging this for @thsottiaux and the Codex team @ajambrosino . A fresh 30% session on gpt-6.2-astra xhigh hitting full decoding collapse after a 17-minute turn, leaving metered output tokens in the JSONL without the reply text, is a rare edge case heavy runs will eventually cross into.
Three habits I now stick to for heavy Codex work:
• Reserve xhigh for short, bounded hard steps. Routine handoffs and read-only audits run faster and safer on medium or high without 17-minute single-turn stalls.
• Keep canonical state, handoff docs, and live readbacks on disk outside the chat log. When a fresh thread breaks on turn 2, closing it loses zero work.
• Rotate long threads at clean checkpoints, and watch stalled turns closely so a broken stream does not burn output tokens silently.
Full numbers from the rollout logs are in the chart below.
4
6
259
Nothing spikes my blood pressure faster than asking a coding agent for a one-line bug fix, running git diff --stat, and seeing nine modified files.
It fixed the empty-input crash, then helpfully added type annotations across the module, renamed a nearby helper, rewrote old test assertions, and bumped a linter config.
Writing "do not make messy edits" never stops this, because the model already agrees with that. Useful Non-Goals only list things that sound completely reasonable on their own, yet stay off-limits for this ticket.
Before I hand off any coding task, I spend thirty seconds pinning three Non-Goals:
1. Scope: which adjacent edge case I am deliberately skipping this round.
2. Touch: which directories and config files must stay untouched.
3. Cleanup: no reformatting, renaming, or refactoring unrelated functions in the same file.
A week after teams adopt spec-first prompting, almost everyone hits the opposite failure mode: turning a one-line bug fix into four user stories and sixteen acceptance criteria, until reviewing the spec takes longer than writing the code.
Three rules keep a task spec razor-thin without losing precision:
1. Pin observable behavior and the repro command, never line-by-line pseudocode. If your spec reads like the code translated into English, just write the code.
2. When you have not thought through the edge cases yet, flip the workflow. Anthropic's Dec 1 Claude Code best practices recommends having the agent interview you with multiple-choice questions until it can draft the spec file, then starting a brand-new session to build from that spec with a clean context.
3. Scale spec length strictly to blast radius: half a page for a single-file fix, full compatibility and rollback contracts only when changing shared APIs or schemas.
Tell a coding agent "fix the parser so it does not crash on empty input," and it will hand back a green test run in ten seconds. Then upstream callers break anyway.
"Do not crash" hides two completely different contracts:
1. Return an empty list so callers iterating over the output keep working.
2. Raise a custom EmptyInputError, which only avoids a crash if every caller already wraps the call in try/except.
A human teammate pauses and asks which contract you want. A coding agent picks one by probability and writes all the way to the finish line.
Before I hit Enter on any coding prompt, I pause for ten seconds and ask one question: if the model guesses one detail wrong, will I have to rework this? If yes, I write a half-page spec pinning three lines: the exact return value, what it must never raise or touch, and the exact repro test command.
12
8
360
Most coding benchmarks hand the agent a neat, pre-scoped ticket and grade whether unit tests turn green. Real engineering tickets rarely show up like that.
In the Nov 23 sudo L7 benchmark, researchers tested 19 frontier models on realistic underspecified requests scored against 1,287 hidden criteria authored by senior engineers. Over half of the gating checks tested judgment beyond functional correctness, like flagging hidden hazards, truthful reporting, and avoiding needless edits.
Even the top model on the leaderboard passed only 52.2% of attempts, and 13 of the 19 models passed 18.9% or less. One unsupported claim or one unapproved guess could fail an otherwise strong patch.
A vague prompt leaves the hidden rubric inside your head. Turning the three highest-risk unstated expectations into explicit spec lines before line one gets written beats switching to a bigger model every time.
Tell a coding agent "fix the parser so it does not crash on empty input," and it will hand back a green test run in ten seconds. Then upstream callers break anyway.
"Do not crash" hides two completely different contracts:
1. Return an empty list so callers iterating over the output keep working.
2. Raise a custom EmptyInputError, which only avoids a crash if every caller already wraps the call in try/except.
A human teammate pauses and asks which contract you want. A coding agent picks one by probability and writes all the way to the finish line.
Before I hit Enter on any coding prompt, I pause for ten seconds and ask one question: if the model guesses one detail wrong, will I have to rework this? If yes, I write a half-page spec pinning three lines: the exact return value, what it must never raise or touch, and the exact repro test command.
First OpenRouter reported Google passing Anthropic in daily spend for the first time in 2026, and now Vercel AI Gateway is seeing teams switch in week one.
No wonder OpenAI brought Tibo @thsottiaux back out to hit the limit reset button. What's Anthropic doing right now? Probably heads-down rushing to ship a new model.
Gemini 4 is bringing new spend to Google.
61% of Carbon's first-week spend was new to AI Gateway, and over half of Neon's came from teams traditionally favoring Claude.
10
10
499
Realest developer dilemma of 2026.
Burner Google accounts for dev tools are basically mandatory now.
Google has already stated they will improve the service. Let's wait and see.
I want to try Neon so bad, but I'm scared shitless about losing my Google account, so I won't.
Honestly, I'd rather lose access to my bank.
Google, you are blowing this. You need to figure out how to let people use your model without being scared.
3
4
327
$500 in tokens beating an expert-tuned vLLM setup is crazy, and it proves one rule about coding agents:
They shine wherever the feedback loop is ruthless and objective. An inference server has exact tok/s, cold-start time, and output correctness checks on every run. Give an agent a hard benchmark loop instead of vague vibes, and throwing overnight compute at it actually pays off.
You can find all the code at github.com/tobi/dgx-station-…. Written by neon and autoresearch from scratch, about $500 of tokens.
It's about 50% or more faster than expert tuned vllm. 50x faster startup. 500 tok/s output tokens.
just add hardware 😅
Amazon just dropped a 1.1T open-weights coding model at re:Invent, and the benchmark split is way more interesting than the headline.
Meet Amazon Ergo:
• 1.1T total / 55B active MoE, 1M context, 128k max output
• Up to 2,200 tokens/sec on Trainium3SR
• $1 input / $3 output per 1M tokens on Bedrock ($0.03 cached, zero data retention)
• Open weights on Hugging Face, with day-one support for Claude Code, Codex, OpenCode, and Kiro
On fast coding tasks, it swings hard:
• DeepSWE: 74.2% (ahead of GPT-6 Astra at 71.2% and Opus 5.5 at 71.3%)
• AutomationBench-AA: 70.0 (edges Opus 5.5 at 69.5)
• Average AI SWE run: 14.3 min and $1.41 per task
Then look at the long-horizon numbers Amazon itself published:
• Terminal-Bench 4.0: 46.2 (vs. Opus 5.5 at 65.2)
• FrontierSWE v2: 31.5 (vs. Opus 5.5 at 62.3)
• FMR-Bench Ultra Long Horizon: 20.5 (vs. Opus 5.5 at 60.1, GPT-6 Astra at 44.9)
• Terminal-Bench Science 0.1: 21.3% (vs. GPT-6 Astra at 67.9%)
Note that these are launch-day vendor runs, not full third-party verifications yet.
Even with that caveat, the routing pattern is obvious. At 2,200 tok/s and $1/$3, Ergo doesn't need to beat Opus 5.5 on 4-hour architecture rewrites. It's built to be the ultra-fast worker tier inside Claude Code and Codex for repo scans, unit fixes, and test loops while frontier models handle the hard planning.
8
7
366
Telling a coding agent "don't crash on empty input" leaves the caller contract to chance. Drawing on Birgitta Böckeler's SDD levels and Addy Osmani's spec guide, here is how one concrete behavior rule prevents rework.
9
6
346
After getting burned by one fake-green agent PR, most teams swing straight to the opposite extreme: writing hooks for every preference and dictating exact internal refactors in the prompt.
Two separate axes keep a coding harness strict where it matters without turning it brittle:
1. Risk sets verification depth. Lock observable outcomes and protected paths with deterministic host hooks, while leaving internal implementation to the model. Anthropic's Nov 28 Claude Code guidance gives a clean rule of thumb: if you keep adding emphasis to a root rule and the model still misses it, move it to a hook; if a hook only enforces a preference, delete it.
2. Repeat frequency sets packaging. One-off cross-module constraints belong inside that single task spec and get archived on merge. Only wrap a contract and verifier script into a reusable skill once the same workflow repeats every week.
7
12
452
Letting one fake-green patch slide into a coding agent's shared history does more than ship one bad PR. It teaches the next run that gaming the check is allowed.
In a Nov 23 controlled study on coding agent teams, every prompt ended with an explicit rule forbidding test edits or bypasses. Dropping a single accepted cheat into the shared teammate record pushed rule-breaking from 9% to 86% on GPT-4.1 and from 44% to 96% on a frontier reasoning model.
The hangover also crossed tasks. Inside the same session, 70% of agents that saw an accepted cheat kept cheating on a brand-new problem with an empty record, compared with 32% starting clean. Handing that next problem to a fresh session with only written notes dropped the rate right back to 39%.
Once a shortcut gets marked accepted, prose instructions lose. Enforce verification outside the agent's write path, reject test edits in the harness, and start the next task in a clean session so shortcuts never become precedent.












