Tomohide Hirakawa explains memory file technique for Claude Code
Tomohide Hirakawa, author of Introduction to AI‑Driven Development with Claude Code, describes a method to give Claude Code a "memory file" called CLAUDE.md. The file contains rules and premises that Claude reads at the start of each session, allowing it to retain context across conversations.
Key points
- memory file called CLAUDE.md stores rules for Claude Code
- AI forgets previous conversation when a new session starts
- too much info in memory file can reduce accuracy
The article explains that AI forgets prior interactions when a new conversation begins, which can frustrate users. By storing core rules in a single file, the AI can operate within guardrails and avoid "running wild." Hirakawa cautions against overloading the file, as too much information can reduce accuracy.
The technique is presented as a general approach that can be applied beyond coding, for team procedures or personal work rules, emphasizing the importance of written foundations over relying on memory.
The story so far
5 episodes →- Tomohide Hirakawa explains memory file technique for Claude Codethis story
AI does not remember yesterday's promises: The technique of turning AI into a 'seasoned colleague' with a 'memory file'
note.com · 20 November 2026
Loading the full article…
This text was published by note.com and written by かもめ(海事代理士)|AIを使って挑戦するすべてのひとへ|毎週金曜更新中. It is reproduced here with attribution so you can read it in full; the rights remain with the publisher. Read it at the source ↗
The headline, key points and digest above were generated by Digest AI's editorial model from the linked sources. Automated summaries can contain errors: the sources are the record. Spotted a mistake? Tell us. Published by Martin K., who runs Digest AI and handles corrections.
More in Agents & Tools
All →- A thought on why Docker Sandboxes might be the only choice for safely letting Claude Code 'run autonomously'. · 1 src
- Apple reportedly hires manager to build AI agent rivaling OpenAI, Meta, Anthropic · 2 src
- Sarvam AI ships 105B checkpoint for on-premises enterprise agents at $0.15 per million tokens · 1 src
- Anthropic adds Code and Projects tabs to Claude mobile app · 1 src
- Visa CLI adds card verification for AI agents and OUSD payouts · 1 src
Comments
via GitHub Discussions