Asana cut a Codex agent's cost 4x to $0.47 per run with an 89% prompt cache hit rate
daniel_mac8 · x · 2026-10-11
Asana cut the cost of its Codex-built browser agent on GPT-6.1 Sol by 4x ($1.97 → $0.47 per run) with one move: keeping the agent's history stable so the prompt cache hits 89% of the time.
danielmac8 distilled four habits you can adopt today to maximize cache hit rate:
- Keep sessions append-only: don't rewrite earlier context, and stay in one long session instead of restarting.
- Don't switch model, reasoning effort (except GPT-6 Astra), or tools mid-session — any change alters the start of the request and breaks the cache.
- Treat /compact as a cache reset: it rewrites earlier context, so compact deliberately, not by habit.
- Measure it: run codex exec -- "<task>" and divide cachedinputtokens by inputtokens.
The approach works well for individuals and compounds for teams as token usage scales.
Related event: Asana Cuts Codex Agent Costs via Stable Prompt Caching(3 posts)→
More from coding & agent
- Open-source AI website cloner hits 39.9k stars: clone any site with one agent command — dr_cintas · 2026-11-29
- Google ships OKF v0.3: enterprise-grade open knowledge format for agents — adnan_hashmi · 2026-11-29
- Benchmark averages hide what broke: why task-level evals beat benchmark scores — dosco · 2026-11-29
- How to write an effective AGENTS.md: record what agents can't infer themselves — adnan_hashmi · 2026-11-29
- Same model, two runtimes: llama.cpp scores 56% vs vLLM on aider polyglot — createthiscom · 2026-11-29
- The 'Contemplative Prompt' trick: agents respond remarkably well to mindfulness framing — daniel_mac8 · 2026-11-29