TOOLING / AGENCY
Claude Code That Remembers Last Week

Published by Nilesh Patil on LinkedIn on 13 April 2026. Reproduced here unchanged. Read the original on LinkedIn.
If, like me, you feel that each Claude Code session starts blank even after saving everything in a .md file, then this might be useful for you.
We are an Outbound Lead Generation agency, and recently we've been managing over 10+ active client campaigns simultaneously within a terminal using Claude code.
Each time a new terminal session begins, we spend 10 to 15 minutes rebuilding context. This amounts to an hour of lost productivity daily.
Additionally, if I overlooked a detail, Claude would simply agree with the most recent version I provided, leading the story to drift across sessions without anyone noticing.
So we built a knowledge loop. Claude now remembers across sessions.
Here is the stack.
- Claude Code runs as normal.
- When I close a session, a SessionEnd hook fires the Claude Agent SDK, which distills the transcript into a markdown daily log.
- A Python compiler turns those logs into wikilinked concept articles inside my Obsidian vault.
- A SessionStart hook injects the index into every new session. MCP memory serves entity lookups on demand.
- A weekly launchd cron promotes recurring patterns into playbooks.
- The whole vault is git-backed to a private GitHub repo.
Claude now opens every session already knowing what we worked on last week. Zero re-explaining.
Let me know if you are interested and I will share the GitHub.