neon is cheaper per token than opus, yet it's 50% more expensive in my usage
two harness tweaks I'm testing to fix this:
1. prompt neon to grep first and read files in 150-line blocks (google's antigravity already does this)
2. compact at a lower context ceiling (projecting 10-15% savings when compacting at 250k context)
why:
• neon cache misses ~2x more often than opus (see quoted post)
• neon grows context 2.5x faster than opus because it reads entire files 15x more often. sessions hit 600k+ tokens quickly, and a cache miss at 600k costs 2.4x a miss at 250k
• compaction is cheaper on neon. compacting makes the next request a cache write, which neon bills at 1x (until jan 2027) vs 1.25x on opus
I use the api, but the same tweaks should stretch subscription quotas too
will share results soon. curious what changes worked for you?
gemini 4 neon is 25% cheaper than opus on paper.
in my usage it costs ~50% more.
biggest reason: it drops its kv cache on ~40% of calls, even when nothing changed and the next call came within 3 min
reading full files into context doesn't help a model write better code or spot more bugs
i banned gemini 4 neon from reading files in full to slow context growth.
was worried doing this would take away neon's biggest edge: catching bugs other models miss.
so i tested opus, neon, and gpt-sol across 3 codebases in different languages. here's what i found:
1. coding, review, and debugging weren't any better when models read the entire file
2. reading more code upfront didn't mean reading less later
3. models don't spot unrelated bugs even when the buggy line is literally in context
letting agents dump entire files into context may feel "safe", but it's mostly burning context window for nothing
neon is cheaper per token than opus, yet it's 50% more expensive in my usage
two harness tweaks I'm testing to fix this:
1. prompt neon to grep first and read files in 150-line blocks (google's antigravity already does this)
2. compact at a lower context ceiling (projecting 10-15% savings when compacting at 250k context)
why:
• neon cache misses ~2x more often than opus (see quoted post)
• neon grows context 2.5x faster than opus because it reads entire files 15x more often. sessions hit 600k+ tokens quickly, and a cache miss at 600k costs 2.4x a miss at 250k
• compaction is cheaper on neon. compacting makes the next request a cache write, which neon bills at 1x (until jan 2027) vs 1.25x on opus
I use the api, but the same tweaks should stretch subscription quotas too
will share results soon. curious what changes worked for you?
gemini 4 neon is 25% cheaper than opus on paper.
in my usage it costs ~50% more.
biggest reason: it drops its kv cache on ~40% of calls, even when nothing changed and the next call came within 3 min
neon is cheaper per token than opus, yet it's 50% more expensive in my usage
two harness tweaks I'm testing to fix this:
1. prompt neon to grep first and read files in 150-line blocks (google's antigravity already does this)
2. compact at a lower context ceiling (projecting 10-15% savings when compacting at 250k context)
why:
• neon cache misses ~2x more often than opus (see quoted post)
• neon grows context 2.5x faster than opus because it reads entire files 15x more often. sessions hit 600k+ tokens quickly, and a cache miss at 600k costs 2.4x a miss at 250k
• compaction is cheaper on neon. compacting makes the next request a cache write, which neon bills at 1x (until jan 2027) vs 1.25x on opus
I use the api, but the same tweaks should stretch subscription quotas too
will share results soon. curious what changes worked for you?
reading full files into context doesn't help a model write better code or spot more bugs
i banned gemini 4 neon from reading files in full to slow context growth.
was worried doing this would take away neon's biggest edge: catching bugs other models miss.
so i tested opus, neon, and gpt-sol across 3 codebases in different languages. here's what i found:
1. coding, review, and debugging weren't any better when models read the entire file
2. reading more code upfront didn't mean reading less later
3. models don't spot unrelated bugs even when the buggy line is literally in context
letting agents dump entire files into context may feel "safe", but it's mostly burning context window for nothing
@DIDI_710 context usage directly impacts cost of running the agent
agree that most people shouldn't worry about context because someone already optimized the harness for different models
@venivci we're telling neon to not waste extra context reading things it doesn't need at all
the prompt directed neon to always read targeted section it needs instead of reading the entire file
telling gemini 4 neon to not read entire files cut context size 37% after 30 turns
neon follows the instruction shockingly well:
• no more entire-file reads (46% of reads were entire file reads prior to this prompt tweak)
• file content loaded per turn dropped by 57%
data from 9 sessions using the new prompt (~400 total turns)
will share data on lowering compaction ceiling soon
neon is cheaper per token than opus, yet it's 50% more expensive in my usage
two harness tweaks I'm testing to fix this:
1. prompt neon to grep first and read files in 150-line blocks (google's antigravity already does this)
2. compact at a lower context ceiling (projecting 10-15% savings when compacting at 250k context)
why:
• neon cache misses ~2x more often than opus (see quoted post)
• neon grows context 2.5x faster than opus because it reads entire files 15x more often. sessions hit 600k+ tokens quickly, and a cache miss at 600k costs 2.4x a miss at 250k
• compaction is cheaper on neon. compacting makes the next request a cache write, which neon bills at 1x (until jan 2027) vs 1.25x on opus
I use the api, but the same tweaks should stretch subscription quotas too
will share results soon. curious what changes worked for you?
@MaybushSha16067@zeeg genuinely want to learn more about your harness setup and workload
are you using antigravity with sub, i'm using neon via vertex api, this could explain the difference
until google makes gemini cache more reliably, here's what i'm doing to make neon cheaper to run:
• tell it to search first and read files in small chunks (neon really likes to read entire files)
• compact conversations earlier so cache misses hurt less
early results show file context loaded is reduced by 57% after prompting it to stop reading entire files
https://t.co/FMMr710bBz
neon is cheaper per token than opus, yet it's 50% more expensive in my usage
two harness tweaks I'm testing to fix this:
1. prompt neon to grep first and read files in 150-line blocks (google's antigravity already does this)
2. compact at a lower context ceiling (projecting 10-15% savings when compacting at 250k context)
why:
• neon cache misses ~2x more often than opus (see quoted post)
• neon grows context 2.5x faster than opus because it reads entire files 15x more often. sessions hit 600k+ tokens quickly, and a cache miss at 600k costs 2.4x a miss at 250k
• compaction is cheaper on neon. compacting makes the next request a cache write, which neon bills at 1x (until jan 2027) vs 1.25x on opus
I use the api, but the same tweaks should stretch subscription quotas too
will share results soon. curious what changes worked for you?
gemini 4 neon is 25% cheaper than opus on paper.
in my usage it costs ~50% more.
biggest reason: it drops its kv cache on ~40% of calls, even when nothing changed and the next call came within 3 min
promising early results from telling neon to grep first & read in 150-line blocks (tweak #1):
in ~400 turns, the model did not issue full-file reads at all and avg context after 30 turns dropped meaningfully
full chart + breakdown here:
https://t.co/89biRxKVXL
promising early results from instructing gemini 4 neon to stop reading entire files:
it follows the instruction shockingly well:
• no more entire-file reads (46% of reads were entire file reads prior to this prompt tweak)
• file content loaded per turn dropped by 57%
still early, data measured from 9 sessions using the new prompt (~400 total turns)
@KaylardAI probably not for a closed harness like antigravity. for the harness where you can't change compaction context threshold, best thing to do is start fresh sessions whenever possible
i'm running my own harness so i can tune the compaction threshold directly
@RealAstropulse blocking big reads alone doesn't stop neon. i found neon effectively reading entire files by chunking and reading a file at different offsets in parallel
i don't use subagents, but pushing file reads into subagents could be promising
@itsrickyszn your math holds when cache hit rate is high, opus at 95%+. on neon, caching is unreliable enough that i'm already paying for cache misses/writes frequently, so keeping context smaller makes those misses much cheaper
totally agree that fixing the cache is the real fix though