frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Claude Code's compaction discards data that's still on disk

https://github.com/anthropics/claude-code/issues/26771
6•aciccarelli2•1h ago

Comments

aciccarelli2•1h ago
I hit this while pasting ~8K of DOM markup into Claude Code and iterating on selectors for a Chrome extension. About 40 minutes in, compaction fired and the summary said "user provided DOM markup" but the actual content was gone. Claude started guessing at selectors it had seen 20 minutes earlier.

The transcript with the original markup is still sitting at ~/.claude/projects/ as a .jsonl file — the compaction summary just has no pointer back to it.

I found 8+ open issues on the repo describing different symptoms of this same root cause. The proposal is to add line-range annotations to compaction summaries so Claude can surgically recover just the chunk it needs from the transcript on demand. Zero standing token overhead.

Curious if others have hit this in different scenarios or found workarounds that actually stick.

martinald•7m ago
I'm fairly sure that Claude adds a note where it can find the original transcript after compactation (somewhat recently).

Fwiw I built a little CLI that could help with this, https://github.com/martinalderson/claude-log-cli. It allows Claude to search its own logs very efficiently. So I'm sure you could add something like "if the session is continued from a previous one, use claude-log cli to find users original prompt with claude-log" which would pull it out very efficiently. I built it to enable self improving claude.md files (link to the blog in the GitHub) but it's so useful for many tasks.

antinomicus•4m ago
My Claude code started doing the compaction summary link thing but then stopped pretty soon after.
frk_ai_8b2e•39s ago
This is a real pain point. When a long conversation hits the context limit, compaction summarizes everything to fit — but the summary inevitably loses nuance. You end up with the agent "forgetting" file paths it already explored, decisions it already made, or code it already wrote.

The underlying issue is that there is no reliable way to know what will be important later. A file path mentioned in passing early on might be critical for the final step. Compaction is lossy compression on a signal whose importance distribution you do not know ahead of time.

Practical workaround: persist critical state to disk files as you go. Write decisions, file paths, and intermediate results to a "memory" file that survives compaction. The agent can re-read it after compaction restores context. It is clunky but it works.

They Think

https://ericsilberstein1.github.io/how-they-think-book/
1•whobre•55s ago•0 comments

Reggae the seal uses rubber ducks for daily enrichment training

https://apnews.com/article/reggae-seal-rubber-duck-boston-aquarium-training-b0c43808394cc73586368...
1•1659447091•5m ago•0 comments

Show HN: CRTX – AI code gen that tests and fixes its own output (OSS)

https://github.com/CRTXAI/CRTX
1•johnnycash926•10m ago•0 comments

US 500 Excluding Artificial Intelligence Enablers Price Return Index

https://www.google.com/finance/quote/SPXXAI:INDEXCME
3•mattas•14m ago•0 comments

Show HN: Check iOS Cert Status via our easy to use API

https://novadev.vip/api/
2•SuperGamer474•16m ago•0 comments

A war foretold:how the CIA and MI6 got hold of Putin's Ukraine plans and why

https://www.theguardian.com/world/ng-interactive/2026/feb/20/a-war-foretold-cia-mi6-putin-ukraine...
3•geoka9•18m ago•0 comments

The coding agent is dead

https://ampcode.com/news/the-coding-agent-is-dead
2•ElasticBottle•21m ago•0 comments

Klarna's shift to AI agents threatens traditional SaaS valuations

https://roundly.io/blog/klarna-ai-agents-replacing-saas
2•roundly_io•24m ago•1 comments

Show HN: YAML-schema-router – content-based schema routing for yaml ls

https://github.com/traiproject/yaml-schema-router
2•drLuca•29m ago•1 comments

Show HN: TypstMe – Build ATS-proof resumes using Typst and WASM

2•yoangilliand•30m ago•0 comments

Ask HN: Can RAG be used for recommendation system?

2•pinner•34m ago•0 comments

Ask HN: What happens to all the hardware when data centers upgrade?

3•givemeethekeys•35m ago•0 comments

CSLib: A Focused Effort on Formalizing Computer Science in Lean

https://www.cslib.io/
2•md224•36m ago•0 comments

Steve Webber on Multics

https://www.youtube.com/watch?v=0gzjrF9r6QA
2•twoodfin•36m ago•0 comments

Unlocking full-body human motor learning at scale

https://amathislab.github.io/mm-blog/
2•moatmoat•37m ago•0 comments

A Bollywood Spy Thriller Crosses the India-Pakistan Divide

https://www.bloomberg.com/news/articles/2026-02-20/bollywood-epic-dhurandhar-breaks-records-in-in...
2•petethomas•37m ago•0 comments

Show HN: Velo – Open-source, keyboard-first email client in Tauri and Rust

3•Espired•45m ago•0 comments

If Chatbots Can Replace Writers, It's Because We Made Writing Replaceable

https://thewalrus.ca/if-chatbots-can-replace-writers-its-because-we-made-writing-replaceable/
4•eon01•46m ago•0 comments

What Is OAuth?

https://leaflet.pub/p/did:plc:3vdrgzr2zybocs45yfhcr6ur/3mfd2oxx5v22b
10•cratermoon•46m ago•0 comments

Napkin Math

https://github.com/sirupsen/napkin-math
3•fagnerbrack•47m ago•0 comments

The Rise and Fall of Scala: A Love Letter to the Language That Broke My Heart

https://medium.com/@naveensky/the-language-that-made-me-feel-like-a-genius-until-it-didnt-my-brea...
3•b-man•49m ago•0 comments

Cord: Coordinating Trees of AI Agents

https://www.june.kim/cord
15•gfortaine•52m ago•2 comments

Heaven Has a Physical Location, a Physicist Claims

https://www.popularmechanics.com/science/a70423234/location-of-heaven/
3•nikolay•53m ago•4 comments

Facebook Is Doing A-Okay

5•givemeethekeys•54m ago•2 comments

Show HN: Share Your Ideas with the Community

https://novadev.vip/share/
2•SuperGamer474•55m ago•0 comments

Precise exceptions in relaxed architectures [video]

https://www.youtube.com/watch?v=JkNgZz4bu1E
2•matt_d•1h ago•1 comments

An Archaeological Dig Through the Extropian Archives

https://mtabarrok.com/extropia-archaeology
2•jdkee•1h ago•0 comments

India's Sarvam 105B LLM tops OCR benchmarks

https://timesofindia.indiatimes.com/technology/tech-news/explained-what-is-indias-sarvam-ai-model...
2•dyauspitr•1h ago•0 comments

Show HN: I created a beautiful number animation library for React Native

https://number-flow-react-native.awingender.com/
2•WingenderA•1h ago•0 comments

Correcting the Financial Times Report about AWS, Kiro, and AI

https://www.aboutamazon.com/news/aws/aws-service-outage-ai-bot-kiro
2•nonfamous•1h ago•0 comments