AIToday
Large Language ModelsAI Coding AssistantsZenn AI/MLPublished: Oct 29, 2026, 01:00 JST

claude-butler-template gives Claude Code persistent memory via Git

Send on LINE
claude-butler-template gives Claude Code persistent memory via Git

3 Key Points

  1. What happened

    A developer published claude-butler-template, a Claude Code setup that keeps profile, open items, journals and knowledge as plain files ruled by CLAUDE.md and synced through a private Git repo.

  2. Why it matters

    The template lets the assistant retain context across separate sessions instead of forgetting each conversation, so a user can pick up earlier topics without restating them, according to the developer's write-up.

Not sure about something? Ask the AI

Questions and answers are published on this page.

Summaries like this, every morning.

Context & Analysis

The template is built around two limits the author encountered with Claude Code: sessions forget their contents when closed, and the built-in auto memory saves only to the home directory of one machine, so it does not carry over to another machine or the web version. The workaround is to make memory ordinary files — profile.md, open-items.md, a daily journal, and a knowledge folder — with reading and writing rules written into CLAUDE.md, which Claude Code loads at startup. Splitting records by role keeps each startup read small, since only the profile, open items, and the latest journal files need loading.

Syncing those files through a private GitHub repository is what makes the records portable, with CLAUDE.md also instructing the assistant to pull at session start and commit and push after updates without asking each time. Information the author does not want in Git, such as real names, employers, or original files, goes into a private/ folder excluded via .gitignore.

For heavier work, the author delegates to sub-agents that run in their own context and return only a final report, and notes a pitfall: custom sub-agents load CLAUDE.md by default, so an agent asked only to research might try to write journals or behave like a butler unless omitClaudeMd: true is set in its definition. Adding memory: project gives a specialist its own memory folder synced with the rest, and the definition instructs it to review memory before work and record lessons afterward. The author adds that many agents have only just started running, so the growth is yet to be seen.

FAQ
How do I start using the template?
Choose 'Use this template' then 'Create a new repository' on the template page, set the repository to Private, clone it locally, and open Claude Code in that folder to start talking.
Why should I avoid forking the template?
The author says forks of a public repository cannot be made private, so records would be exposed; using the template to create a new private repository avoids that.
What is omitClaudeMd: true for?
It prevents specialist sub-agents from loading the butler's CLAUDE.md, so they do not try to write journals or act like a butler when given a research task.
Send on LINE

AI news that matters for your work, delivered every morning.

Pick your industry and the AI tools you use, and get news related to your work every day.

Free · 30 seconds with Google · unsubscribe anytimeWhat is AIToday? →

Ask AI

Ask AI anything about this article. The AI reads this article, earlier AIToday articles, and Wikipedia, and cites its sources. Q&As are published on this page for other readers too.

Questions and answers are published on this page.

Related Articles

Next articleAI agent pricing as of 2026年10月: from a few thousand yen to millions