frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Show HN: Running over 80M tokens in one agent session with no compaction

https://github.com/Kiz8-Team/pi-cwl
3•andrew_ocs•1h ago
We ran a single agent session through all 89 sequential tasks of Terminal Bench 2.0 or over 80 million tokens, with no measurable accuracy loss versus running each task in its own fresh session. We didn't use compaction.

Compaction is the standard fix for finite context windows, but it has problems. The obvious one is context loss - you can't compress 300,000 tokens of work into a sub-20,000 summary. Only the most salient information survives, and a single model unanimously decides what's worth keeping (which also makes it prone to hallucination and bias). There are other issues, like the whole process halting for a while, but those don't hurt agent quality as much.

Out solution is that the agent annotates its work as it goes, and we use that to progressively evict only the information that's no longer relevant. We split work into two types, exploration and action. Exploration gathers the information needed to reach a goal; action acts on what was collected earlier. A single piece of information can be used by several independent actions, so it's important to track which actions depend on what. We do this with a single tool the agent uses to mark when it starts and finishes exploration or action work, and what each action depends on. This organizes the context window into a series of chunks, where action chunks depend on one or more exploration chunks - a graph we can use to evict orphaned chunks.

Eviction runs in a set order once the session hits an arbitrary token limit. First it removes completed action chunks; if still over, it moves to exploration chunks with no dependent actions, re-adjusting as the agent annotates new work. Eviction is also progressive inside each chunk, since not all tool calls carry equal information. Order of eviction is the following:

1. chain-of-thought contents 2. search results, directory listings, grep/glob output 3. arbitrary bash command runs and their outputs 4. file reads

We forked the Pi.dev CLI and benchmarked it against Terminal Bench 2.0, SWE-bench Lite, Recovery Bench, and LongCLI Bench. Across all four, our approach and the isolated-session baseline differ by at most 3 points in either direction - within run-to-run variance.

Paper - https://arxiv.org/pdf/2606.11213 Repo (fork of pi.dev): https://github.com/Kiz8-Team/pi-cwl

The Most Expensive Dinosaur Just Sold for $50.1M

https://www.wsj.com/arts-culture/fine-art/gus-trex-auction-sothebys-sale-price-07f7ef40
2•fortran77•45s ago•1 comments

6× faster batched binary search in Rust

https://pythonspeed.com/articles/branchless-binary-search/
1•fanf2•1m ago•0 comments

Massive AI spending is driving up prices on laptops and electricity, Fed watches

https://www.fastcompany.com/91572617/massive-ai-spending-driving-up-prices-laptops-electricity-as...
2•1vuio0pswjnm7•1m ago•0 comments

Congressional Ratification of President Trump's Corporatism

https://ronpaulinstitute.org/congressional-ratification-of-president-trumps-corporatism/
1•metanoia_•2m ago•0 comments

I built a no-signup solar cost and payback calculator

https://sunmetriclab.com/
1•georgejr•3m ago•0 comments

Jovita one AI hub instead of five subscriptions

https://usejovita.com
1•Ayo245•3m ago•0 comments

Fibonacci's Liber Abaci [pdf]

https://www.mifami.org/eLibrary/Fibonacci-LiberAbaci-QuadClass-2pp.pdf
1•jruohonen•5m ago•0 comments

Weather App Could Soon Develop Blind Spots

https://www.bloomberg.com/opinion/articles/2026-07-14/your-weather-app-could-soon-develop-blind-s...
1•littlexsparkee•6m ago•1 comments

Tokenomics: View token usage, costs, and rate-limit metrics

https://github.com/skuznetsov/tokenomics-viewer
1•samaysharma•7m ago•0 comments

Migrate from Datadog to Grafana

https://shiftmetrics.com/
1•gunapologist99•8m ago•1 comments

Long Covid May Affect Motivation and Memory by Injuring Brain's Dopamine System

https://www.discovermagazine.com/long-covid-may-affect-motivation-and-memory-by-injuring-the-brai...
1•amichail•9m ago•1 comments

Korea Financial Telecommunications Files Patent for Won Stablecoin System

https://en.sedaily.com/finance/2026/06/19/korea-financial-telecommunications-files-patent-for-won
1•mushstory•10m ago•0 comments

Harness Engineering for Self-Improvement

https://lilianweng.github.io/posts/2026-07-04-harness/
2•gmays•10m ago•0 comments

Another Entry in the "Stuff Im Glad Im Not Responsible for" Ledger

https://blog.cloudflare.com/dnssec-nta-ede-33/
1•c_f_•11m ago•0 comments

AI makes learning feel too easy

https://blog.danielyj.com/blog/ai-makes-learning-feel-easy
1•bear_with_me•12m ago•0 comments

Generative AI Is an Engineering Disaster

https://www.theatlantic.com/technology/2026/07/generative-ai-engineering-disaster/687901/
3•Jtsummers•13m ago•1 comments

show hn: 1d data to 3D topology, AI deepfakes to protien folding

https://github.com/bitofabluetit/knotreel
1•bitofabluetit•13m ago•1 comments

Cyclist disqualified for using video-recording sunglasses

https://www.bikeradar.com/news/cyclist-disqualified-for-using-video-recording-sunglasses-calls-ou...
1•cainxinth•15m ago•0 comments

I used to believe in Andrew Kelley

https://liamswayne.github.io/andrew.html
2•liamswayne•17m ago•0 comments

Litert.js, Google's High Performance Web AI Inference

https://developers.googleblog.com/litertjs-googles-high-performance-web-ai-inference/
1•impostervt•17m ago•0 comments

Mise – swipe to discover recipes, get a handled grocery list and meal plan

https://www.themiseapp.com
2•brycehenley•18m ago•0 comments

One issue every 62 lines: 21.6M lines of AI-generated code, scanned

https://github.com/qualityclouds/state-of-ai-code-2026-
3•albertfranquesa•18m ago•0 comments

Apple Is Suing OpenAI for Allegedly Stealing Hardware Secrets

https://www.wired.com/story/apple-sues-openai-allegedly-stealing-ip-hardware/
3•1vuio0pswjnm7•19m ago•1 comments

AI agent for Skylight Calendar Chore chart [video]

https://www.youtube.com/watch?v=EHghXf1IIo4
1•timliu9•20m ago•0 comments

Crates.io: Development Update

https://blog.rust-lang.org/2026/07/13/crates-io-development-update/
2•birdculture•22m ago•0 comments

Meta's Pursuit of the *Careless People* Author Is Relentless and Self-Defeating

https://www.wired.com/story/metas-pursuit-of-the-careless-people-author-is-relentless-and-self-de...
1•1vuio0pswjnm7•22m ago•0 comments

Show HN: Automagically synchronize subtitles with video, in-browser clientside

https://smacke.net/ffsubsync/
1•smacke•23m ago•0 comments

Show HN: Pullrun – Run One OCI Image as a Container, Firecracker, or Apple VM

https://github.com/pullrun/pullrun
2•pullrun•24m ago•0 comments

Microsoft Reports Maasive 25 Percent Jump in Emissions

https://www.wired.com/story/microsoft-25-percent-jump-in-carbon-emissions/
3•1vuio0pswjnm7•24m ago•1 comments

Ask HN: Advice for first-year CS students?

4•jassembk•24m ago•2 comments