frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Tell HN: We need an accounting system for cognitive debt

2•mikaelaast•1h ago
The term “cognitive debt” is gaining ground [1]. We can now produce code faster than we can understand it. The bottleneck is real, and so is the feeling of being choked. The situation is not new. We have always had code no one quite dares to touch. Agentic coding makes it much worse. You probably know the feeling. Everything can look fine. The code compiles. The tests are green. The pull request looks reasonable. The diff gives off a vague “probably fine” vibe. But does anyone actually understand what was added? Congratulations: you have taken on cognitive debt.

Programming is about building knowledge. That used to be simpler. Until recently, the code itself was proof of understanding. That era is over. Now understanding has to be traced to something far more elusive: human mental models. Those are harder to track. I have previously described a kind of “mind palace”: an abstract model of a system where I can wander around, open and close doors, knock down a wall, add a new wing, and feel what connects to what. That mental model is what lets me change code with confidence. It is what lets me smell that something is wrong before I have proved it. When that model is missing, things grind to a halt. Trust disappears. Changes become painful. Fear of touching anything grows. You become a tourist in your own codebase.

How much of your codebase is backed by human mental models? The burden of proof is on you, you trigger-happy, agent-pilled developer. I think we need an “accounting system” for cognitive debt. A system that can answer simple but uncomfortable questions: Who understands this code? At what level? Who can verify that understanding? This ledger should be reconciled continuously. Everything is cognitive debt until proven otherwise. The clock is ticking.

I imagine microcertification: small certificates tied to concrete code. A file, folder, or module. The certificate says: “Mikael has demonstrated understanding of this area, at this level, verified by this authority.” It should live alongside the code.

Not everyone needs the same model. That would be impossible. Different roles need different mental models. An implementer needs to demonstrate low-level understanding, while a team lead may only need a high-level model. Both models can be reconciled on their own terms. The hard part is verification. How do you create “proof of understanding”? Verification has to be AI-resistant and rooted in something we trust: a domain expert, a tech lead, a reviewer, a pair-programming session. Anchoring it in the physical world is crucial. Think of it as code review, but for your mental model.

Imagine an append-only ledger that follows the codebase. It logs when code is added, changed, or removed; when understanding is certified; and when changes invalidate old understanding. History, signatures, and traceability are the key ideas, so the repo can carry its own “comprehension state” with it. An IOU. What should the debt be measured in? I’m thinking lines of code. Before anyone calls me out: yes, LOC is a bad measure of productivity. I know. But here we are measuring understanding. If an agent spits out 2000 lines of code, we have not just gained 2000 lines of functionality. We have also gained 2000 lines that someone must understand, own, debug, and maintain. The incentives balance out: more lines mean more debt, so the agent should not generate arbitrary amounts of code. But if you force it into cryptic code golf just to keep line count down, human understanding gets more expensive to build.

I worry we are neglecting our mental models, then pretending everything is fine. Agentic coding creates cognitive obligations; we need new processes to meet them. Every line of code should be recorded as cognitive debt until certified as part of a living human mental model. Yes, that is radical. But then, we are living in absolutely bananas times.

[1] https://margaretstorey.com/blog/2026/02/09/cognitive-debt/

America should not imprison frontier AI

https://www.economist.com/leaders/2026/07/02/america-should-not-imprison-frontier-ai
1•andsoitis•41s ago•0 comments

End-to-end verifiable TEEs stack

https://github.com/canvasxyz/teekit
1•cernocky•2m ago•0 comments

Ask HN: How do you manage bad artifacts?

1•quirk•3m ago•0 comments

Cloudflare business model for the agentic Internet

https://blog.cloudflare.com/agentic-internet-bot-report/
1•lionkor•4m ago•0 comments

Token accounting and cancellation in durable agent workflows

https://agentbayes.com/blog/stopping-a-streaming-llm-agent
2•guyzana•4m ago•0 comments

Show HN: SEOAgent – Missing SEO system of record for AI coding workflows

https://seoagent.com
1•Sharanxxxx•6m ago•0 comments

Ask HN: How is hiring? (July 2026)

1•mchannon•6m ago•0 comments

Pull Requests Are for Humans

https://journal.rmccue.io/498/pull-requests-are-for-humans/
1•rmccue•6m ago•0 comments

OpenAI floats giving Trump administration 5 percent cut of AI boom

https://www.theverge.com/ai-artificial-intelligence/960588/openai-government-5-percent-stake-trump
1•elsewhen•7m ago•1 comments

The Human Patch

https://nosdesk.com/blog/the-human-patch
1•kylephillipsau•9m ago•0 comments

AI Can't Be Listed as Inventor on Patent Applications, Japan's Top Court Rules

https://japannews.yomiuri.co.jp/science-nature/technology/20260306-314930/
2•mushstory•9m ago•0 comments

Show HN: ZeroFS – A log-structured filesystem for S3

https://www.zerofs.net/
3•Eikon•12m ago•0 comments

US job growth misses expectations in June; unemployment rate falls to 4.2%

https://www.reuters.com/world/us/us-job-growth-misses-expectations-june-unemployment-rate-falls-4...
1•onemoresoop•12m ago•0 comments

Sergey Brin joins protest against immigration order at SFO airport (2017)

https://www.theverge.com/2017/1/28/14428262/google-sergey-brin
1•sillyfluke•12m ago•0 comments

All Package Management Functionality Moved from Compiler to Build System

https://ziglang.org/devlog/2026/?2026-06-30#2026-06-30
1•olzhasar•13m ago•0 comments

The English Language Has a Smelly Problem [video]

https://www.youtube.com/watch?v=w3KswMaEBiI
1•gmays•13m ago•0 comments

Reverse-Z is the Perfect Hack

https://www.shlom.dev/articles/reverse-z-perfect-hack/
4•1bytebeta•13m ago•0 comments

Show HN: Image steganography tool – Hide any file inside a PNG image

https://stegoimage.pages.dev/
2•coder_xyz•14m ago•0 comments

Show HN: Matrix, an open-source cloud computer for coding agents

https://matrix-os.com
1•hamedmp•14m ago•0 comments

Validate your startup idea in 14 days

https://validly-rho.vercel.app/
1•Harro123•15m ago•1 comments

How can engineering leaders avoid becoming Bond villains?

https://stackoverflow.blog/2026/06/26/paging-charity-how-can-engineering-leaders-avoid-becoming-b...
1•throwaway2037•15m ago•0 comments

What to know about Trump's financial disclosure

https://thehill.com/homenews/administration/5949500-trump-financial-disclosure-crypto/
2•jordie2shoes•16m ago•0 comments

Zoom to Acquire CommonRoom

https://www.zoom.com/en/blog/zoom-to-acquire-common-room/?cms_guid=false
1•datadrivenangel•17m ago•0 comments

A new, inexpensive Chinese AI model is catching up with Anthropic, OpenAI

https://www.reuters.com/world/china/a-new-inexpensive-chinese-ai-model-is-catching-up-with-anthro...
2•tartoran•17m ago•0 comments

Top EU court upholds Google Android fine in landmark antitrust case

https://www.politico.eu/article/top-eu-court-upholds-google-android-fine-in-landmark-antitrust-case/
4•jruohonen•17m ago•0 comments

Autonomous AI Software Development: Good Idea, or Bad Idea?

https://adrianavillela.com/post/the-great-autonomous-ai-experiment/
1•mooreds•18m ago•0 comments

OpenAI wants to give us 5% of its success. It's a bad bargain

https://werd.io/openai-wants-to-give-us-5-of-its-success-its-a-bad-bargain/
1•benwerd•18m ago•0 comments

I didn't build a Full Body Ultrasound but I know the people that did

https://www.youtube.com/watch?v=4nzzpUKhj1M
1•fjalarhl•19m ago•0 comments

Microsoft Frontier Company

https://www.microsoft.com/en-us/frontier-company
1•ilreb•19m ago•0 comments

Show HN: Send and receive custom-domain email from your existing Gmail

https://sendmailas.com
1•mohitgaddam•20m ago•0 comments