# Tomohide Hirakawa explains memory file technique for Claude Code

Digest AI · Agents & Tools · published 2026-11-20T03:00:00Z

Canonical: https://digestai.news/story/tomohide-hirakawa-explains-memory-file-technique-for-claude-code

## Summary

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.

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.

## 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

## Why it matters

The method offers a practical way to maintain context with AI agents, improving reliability for developers and teams and reducing repetitive explanations.

## Sources

1. [AI does not remember yesterday's promises: The technique of turning AI into a 'seasoned colleague' with a 'memory file'](https://note.com/haruna_marine/n/nedc570d77247?hl=en) (note.com, 2026-11-20)

Part of the developing story: [Building Persistent Memory for AI Agents](https://digestai.news/thread/developer-uses-separate-ai-instances-to-audit-code-and-monitor-game-ops) (5 stories)

## Cite

Digest AI, "Tomohide Hirakawa explains memory file technique for Claude Code", 20 November 2026, https://digestai.news/story/tomohide-hirakawa-explains-memory-file-technique-for-claude-code

---

Written by Digest AI's editorial model from the linked sources; the sources are the record. Headlines, digests and key points are written by Digest AI and may be quoted with a link to the story page. Linked articles belong to their publishers. Terms: https://digestai.news/terms#reuse
JSON: https://digestai.news/story/tomohide-hirakawa-explains-memory-file-technique-for-claude-code.json
