# capn-hook - Persistent memory for coding agents

Original title: Show HN: Capn-hook for coding agents – don't grep the same mystery twice

> Hacker News story 48884903 · language: en · submitted 2026-07-12
> Web version: https://zeli.app/story/48884903
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 9 · by [knrz](<https://news.ycombinator.com/user?id=knrz>) · 💬 1
[original](<https://github.com/cyrusNuevoDia/capn-hook>) · [HN discussion](<https://news.ycombinator.com/item?id=48884903>)

## Summary

capn-hook provides persistent memory for coding agents like Claude Code and Codex, preventing them from re-exploring the same codebase mysteries in every session. By caching file discoveries and automatically invalidating them when source code changes, it ensures agents always access up-to-date context without redundant token usage. This local-first tool integrates via simple hooks, allowing developers to chart expensive discoveries once and recall them instantly, saving significant time and computational resources on repeat questions.

## Key quote

> Don't grep the same mystery twice.

---

## Cite

- Page: https://zeli.app/story/48884903
- Date: 2026-07-12
- Source: github.com (https://github.com/cyrusNuevoDia/capn-hook)
- Hacker News: https://news.ycombinator.com/item?id=48884903

## Other languages

- zh: https://zeli.app/zh/story/48884903 · markdown: https://zeli.app/zh/story/48884903.md
- ja: https://zeli.app/ja/story/48884903 · markdown: https://zeli.app/ja/story/48884903.md
- ko: https://zeli.app/ko/story/48884903 · markdown: https://zeli.app/ko/story/48884903.md
- de: https://zeli.app/de/story/48884903 · markdown: https://zeli.app/de/story/48884903.md
- es: https://zeli.app/es/story/48884903 · markdown: https://zeli.app/es/story/48884903.md
