frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Thinking about memory for AI coding agents

3•hoangnnguyen•1h ago
I’ve been experimenting with AI coding agents in real day-to-day work and ran into a recurring problem, I keep repeating the same engineering principles over and over.

Things like validating input, being careful with new dependencies, or respecting certain product constraints. The usual solutions are prompts or rules.

After using both for a while, neither felt right. - Prompts disappear after each task. - Rules only trigger in narrow contexts, often tied to specific files or patterns. - Some principles are personal preferences, not something I want enforced at the project level. - Others aren’t really “rules” at all, but knowledge about product constraints and past tradeoffs.

That led me to experiment with a separate “memory” layer for AI agents. Not chat history, but small, atomic pieces of knowledge: decisions, constraints, and recurring principles that can be retrieved when relevant.

A few things became obvious once I started using it seriously: - vague memory leads to vague behavior - long memory pollutes context - duplicate entries make retrieval worse - many issues only show up when you actually depend on the agent daily

AI was great at executing once the context was right. But deciding what should be remembered, what should be rejected, and when predictability matters more than cleverness still required human judgment.

Curious how others are handling this. Are you relying mostly on prompts, rules, or some form of persistent knowledge when working with AI coding agents?

Comments

hoangnnguyen•51m ago
I tried to build an experiment, detail in this dev log https://codeaholicguy.com/2026/01/24/i-use-ai-devkit-to-deve...

First chatbot creator dedicated his life to publicizing the threat posed by A.I

https://www.smithsonianmag.com/history/why-the-computer-scientist-behind-the-worlds-first-chatbot...
1•1659447091•8m ago•0 comments

LED lighting undermines visual performance unless supplemented like daylight

https://www.nature.com/articles/s41598-026-35389-6
1•bilsbie•13m ago•0 comments

FOSS "Just Fork It" Delusion

https://hamishcampbell.com/foss-just-fork-it-delusion/
2•mimasama•13m ago•1 comments

We posted a job. Then came the AI slop, impersonator and recruiter scam

https://themarkup.org/hello-world/2026/01/24/fake-candidates-recruiter-scams-ai-slop
1•TangerineDream•14m ago•0 comments

Show HN: A free, no-login random decision toolkit (roulette, teams, order, dice)

https://roulette-tool.online
1•hejinhui•16m ago•2 comments

Resume Heat Map – See where recruiters look

https://resumeheatmap.com/
1•sacram•17m ago•0 comments

AI coding is having its NFT moment

https://moio.medium.com/ai-coding-is-having-an-nft-moment-17c3dd855405
1•mobitar•19m ago•0 comments

Health trackers know you didn't sleep well. Does that help or hurt?

https://www.bloomberg.com/news/articles/2026-01-09/how-oura-rings-and-apple-watches-affect-our-me...
2•brandonb•19m ago•1 comments

Prompter Hawk: mission control for AI coding agents

https://prompterhawk.dev/
1•Lwrless•26m ago•1 comments

Show HN: Kaval – WhatsApp agent that checks if content is real or fake

https://www.kaval.chat/
1•Anuranjan_Vikas•30m ago•0 comments

XHTML Club

https://xhtml.club/
3•bradley_taunt•30m ago•0 comments

Digital liberation: EU Parliament calls for detachment from US tech giants

https://www.heise.de/en/news/Digital-liberation-EU-Parliament-calls-for-detachment-from-US-tech-g...
3•doener•32m ago•0 comments

Against Markdown

https://aartaka.me/markdown.html
2•naves•33m ago•0 comments

Curl Gets Rid of Its Bug Bounty Program over AI Slop Overrun

https://itsfoss.com/news/curl-closes-bug-bounty-program/
1•birdculture•34m ago•0 comments

You Don't Own Your Intelligence. That's About to Cost You Everything

https://twitter.com/RileyRalmuto/status/2014888666670244089
1•bilsbie•36m ago•0 comments

Ask HN: ICE Raided My Friend's Home by Mistake, Traumatized His Family

9•MITfather•37m ago•4 comments

Logs from my self improving, dreaming AI substrate (OS), w persistent memory

https://pastebin.com/WJQsKua7
1•promptfluid•37m ago•2 comments

NHS cancer gene database to identify patients at risk

https://www.bbc.co.uk/news/articles/c62v7l4v7gro
1•ode•39m ago•0 comments

I created an AI text humanizer with database of AI words

https://kitful.ai/write-tools/ai-text-humanizer
1•eashish93•40m ago•0 comments

The AI-Powered Web Is Eating Itself

https://www.noemamag.com/the-ai-powered-web-is-eating-itself/
1•giuliomagnifico•41m ago•0 comments

We Have No Idea How to Code. So We Got Claude to Code This Article for Us.

https://www.wsj.com/tech/ai/anthropic-claude-vibe-coding-experiment-a4a3bb0f
1•bookofjoe•41m ago•1 comments

Browser-based GLB model explorer for batch 3D asset review

https://glb.arysociety.com/
1•fantasim•42m ago•2 comments

Claude Code VJ

https://twitter.com/mishushakov/status/2015044821635789050
1•ushakov•42m ago•0 comments

MS confirms it will give the FBI your Windows PC data encryption key if asked

https://www.windowscentral.com/microsoft/windows-11/microsoft-bitlocker-encryption-keys-give-fbi-...
3•blacktulip•43m ago•0 comments

The Cognitive Cost of Glass: Why I switched back to paper for active recall.

https://turbulencegains.com/ipad-vs-paper-study-guide/
2•jerr12939•44m ago•0 comments

Episode II: Revenge of the Fish

https://nobreakthroughs.substack.com/p/episode-ii-revenge-of-the-fish
1•jruohonen•50m ago•0 comments

FlutterJS – Run Flutter code, get semantic HTML output

1•flutterjs•53m ago•0 comments

You can't pay me to prompt

https://dbushell.com/2025/06/18/ai-policy/
24•shinryuu•54m ago•19 comments

A Step Behind the Bleeding Edge: A Philosophy on AI in Dev

https://somehowmanage.com/2026/01/22/a-step-behind-the-bleeding-edge-monarchs-philosophy-on-ai-in...
1•Ozzie_osman•55m ago•0 comments

The Duelling Rhetoric at the AI Frontier

https://deadneurons.substack.com/p/the-duelling-rhetoric-at-the-ai-frontier
2•nr378•56m ago•0 comments