Shared CLAUDE.md, AGENTS.md and AI memory for game teams
For studios where developers work with Claude Code, Codex or Cursor. Gameheim keeps the instructions and the memory of those assistants in one place, for the studio, each project and each person, puts a person in charge of every shared change and writes the same version on every machine. This guide explains how it works, how to set it up and how to keep it current.
Why AI instructions drift apart on a team
Every developer who uses an AI coding assistant ends up with a file of instructions, such as CLAUDE.md, AGENTS.md or a set of Cursor rules, and a memory the assistant keeps adding to. It works well for one person. On a team it drifts:
- Different copies. Each machine has its own version of the instructions, and nobody knows which one is right.
- Memory nobody reads. The assistant writes down what it learned, and the notes pile up. A wrong line is repeated in every session that follows.
- No author, no history. When an entry turns out to be wrong, there is no way to tell who added it, when, why, or what it said before.
- Knowledge that stays on one PC. What one developer's assistant learned about the build never reaches the rest of the team.
Committing the files to the repository fixes the copies, but not the review: a change to the team's instructions goes in with the code, and the memory an assistant writes for itself stays on the machine.
How Gameheim keeps one reviewed version
Gameheim turns those scattered files into one shared context your team owns. The page AI Context holds three levels, the same ones the tools already have. Each level has a document of instructions and a memory made of short entries, each with a title and a text in Markdown.
| Level | Reaches | Changes |
|---|---|---|
| Studio | The assistant of every member, in every project. | Through a request that a person approves. |
| Project | The assistants of the project's members. An entry can be meant for some teams of the project only. | Through a request that a person approves. |
| Personal | Your assistants only. Nobody else in your studio can read it. | Saved right away, with its history. |
- One version on every machine. The Gameheim agent writes the approved context where each tool looks for it, and updates it within minutes of an approval.
- Author and history. Every version keeps who wrote it, who approved it, with which assistant, when and why. Restore this version brings back an old text by adding a new version: nothing is lost.
- Checked before it is saved. On the studio and project levels Gameheim refuses texts with the access keys, private keys and hidden characters it recognizes, so they do not reach every assistant of the team.
- Live. The page updates by itself when an assistant saves an entry, a request arrives or an agent reports: no reload.
Keep the context current: change, merge or remove entries
A context is only useful while it is right, and approved entries are not set in stone. There are two ways to change one, depending on who changes it.
- In Gameheim, by someone who can edit the level. Open the entry and choose Edit: the text changes in the panel, with a new version in its history. If someone else saved the same entry in the meantime, nothing is overwritten: the panel shows what is there now next to what you wrote, and you save again from there.
- By an assistant. It proposes a change to the approved entry, which goes back to review. The current text keeps reaching the team until a person approves the new one.
- Merge two entries. One request with two changes: the entry that stays takes the merged text, the other one is removed. The reviewer approves or rejects them together.
- Withdraw a request. While it waits for review, its author can withdraw it from the panel, or the assistant can do it for them.
Members who can only propose see the same entries, with Propose a change, Propose removal and Propose an entry in place of the direct edits. Search entries finds an entry by its title or text, and Only entries that reach my assistant shows what your assistant actually reads.
The files on disk and version control
Gameheim never changes the CLAUDE.md, AGENTS.md or Cursor rules your team keeps in the repository: it writes its own files next to them, and the tools read both.
- Git. The agent adds its files to the local
.git/info/excludeof the clone, never to.gitignore. - Perforce. The agent writes only where the files are ignored: by a block in the project's
.p4ignore, or, with your consent, by an ignore file of the agent added toP4IGNOREon that computer. Otherwise it skips those workspaces and says why. - A file that ends up tracked is not written again until it is removed from version control, and the page shows it.
- Edited by hand. If someone edits a generated file, the agent asks whether to send the changes to Gameheim (Send) or Discard them: the edits become a normal request, and the official version comes back either way.
If something cannot be removed right away, for example because Perforce is unreachable when you sign out, the agent keeps trying every few minutes. Its Left on this PC panel shows what is still there and how to remove it by hand.
The memory commands
The commands run only when you launch them in your assistant, and they work through the Gameheim MCP server. Gameheim and the agent never read your assistant's own memory: the assistant does, with you.
| Command | What it does |
|---|---|
gameheim-memory-init | The first import: goes through the assistant's memory with you and saves or proposes each entry you confirm. |
gameheim-memory-update | The same, only for what changed since the last time. Your assistant suggests it after a week, or when it saves a new rule in its own memory. |
gameheim-memory-leave | Copies your personal entries back to your assistant. Claude Code writes each one in your own rules or in its memory of the project, as you choose. Codex shows you the lines and adds them at the end of ~/.codex/AGENTS.md only after you say yes. Cursor keeps rules in its settings, so it shows you the entries to paste there. It adds without removing anything, and deletes nothing in Gameheim. |
Your personal memory
The Personal tab holds what your assistants remember about how you work. They save it without waiting for a review, and only you can see it: nobody else in your studio, the LEAD included. It has the same list, panel, history and restore as the shared levels; the actions of an entry are in its More actions menu.
- Not reviewed for 90 days. Entries nobody has changed or confirmed for 90 days are marked, so old notes do not linger. Still valid confirms one; Archive stops it reaching your assistants and keeps it in its history.
- Share what helps the team. Propose to share turns a personal entry into a request to the studio or to a project. Tick Archive my personal entry when the proposal is approved and your copy steps aside once the shared one exists.
- A warning, not a block. If a personal text looks like it contains a secret, Gameheim says so and asks before saving it.
- Start over. Empty my personal memory deletes every entry, your instructions and their history for good, after a confirmation.
- A digest of what changed. Once a week by default, a notification tells you how many entries your assistants added, changed or archived, only when something changed. Frequency, email and phone notifications are in Settings, under Notifications. It carries numbers only, never the text of your memory.
Frequently asked questions
How do I share CLAUDE.md or AGENTS.md with my whole team?
Paste it into the instructions of the studio or of a project in Gameheim. The agent writes the same version on every member's machine, next to the files you already have, and every later change goes through a person's review.
Does Gameheim change the CLAUDE.md or AGENTS.md in my repository?
No. It writes its own files next to them and never touches the ones your team versions. For Codex it copies your AGENTS.md into the file it writes, so both reach the assistant.
Will these files end up in Git or Perforce?
No. The agent excludes them from Git and writes them in Perforce workspaces only where they are ignored, and it stops writing a file if someone adds it to version control anyway.
Can an assistant change an entry that was already approved?
Yes, by proposing a change to it. The request goes back to review, and the approved text keeps reaching the team until a person approves the new one.
How long should the shared context be?
As short as it can be: every assistant reads all of it at the start of every session. Short, specific entries work better than long documents, and the page shows how long the context is.
Can my LEAD read my personal memory?
No. Only you can see it. Nobody else in your studio can read it, not even the admin.
What happens to my personal memory if I leave the studio?
It belongs to the studio's workspace, like the rest of your work there. If your account is deactivated it is kept for 12 months and comes back if you return; after that, or when the account is deleted, it is deleted. To keep something for the team, propose it to the project.
Does Gameheim read my assistant's own memory?
No. Your assistant reads it, only when you run one of the memory commands, and every entry it brings into Gameheim waits for your confirmation.
Which assistants does it work with?
Claude Code, Codex and Cursor.
Does the agent start writing files on its own?
No. Each person switches it on in Gameheim, and the agent asks once on each computer.
Can I use it without the agent?
Yes: an assistant connected to the Gameheim MCP server can read the current context and propose changes. The agent is what keeps the files on disk up to date.
