Gameheim

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 and how to set it up.

By Gianmarco Virzì, co-founder and lead developer of Virsion · Updated · 9 min read

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 or AGENTS.md, 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

The page AI Context in Gameheim 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.

LevelReachesChanges
StudioThe assistant of every member, in every project.Through a request that a person approves.
ProjectThe 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.
PersonalYour assistants only. Nobody else in your studio can read it.Saved right away, with its history.
  • Author and history. Every version keeps who wrote it, who approved it, 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.
  • Conflicts. If an entry changed after a proposal was made, the reviewer sees the text as it was, as it is now and as proposed, and writes the final one.

How to set up the shared AI context in Gameheim

Before you start
  • A plan that includes AI context: the AI Context entry appears in the sidebar.
  • The LEAD or ADMIN role to decide who reviews; any member can propose.
  • The Gameheim agent version 1.1.1 or later on each computer where the files should be written.
  • Claude Code, Codex or Cursor, connected to Gameheim as described on the AI assistants page.
  1. Write the studio and project instructions

    Open AI Context, choose Studio or Project, then Edit next to Instructions. Write what every assistant should know at that level, or paste the CLAUDE.md or AGENTS.md you already use: the conventions of the code, the folders it must not touch, how the build is run. Add facts as memory entries with Add entry.

    In a project, For whom sends an entry to The whole project or to Some teams, the teams of the Team page: the rules for gameplay programmers need not fill the context of the audio team. Every member of the project can still read every entry in Gameheim.

    Tip:Every assistant reads all of it at the start of every session, and the page shows how long the context is. Short, specific entries work better than long documents.
  2. Decide who reviews

    LEADs and ADMINs review by default. In the role editor, the AI context row grants the review of the projects a member belongs to, and the review of the whole studio as a separate permission. Proposing is part of the default member role; read-only accounts cannot propose.

  3. Switch on the files on your computers

    At the top of AI Context, switch on Write the AI context on my PCs. Then open the agent on each computer and confirm once on its AI context page: the agent lists exactly what it will write and where.

    The agent writes the context where each tool looks for it, inside your workspaces, and keeps it current: within minutes of an approval, and when a session starts and the assistant checks its version with Gameheim.

    ToolFile written by the agent
    Claude Code.claude/rules/gameheim-context.md
    Cursor.cursor/rules/gameheim-context.mdc
    CodexAGENTS.override.md, with your team's AGENTS.md copied in first
  4. Bring the memory your assistant already has

    Your assistant has probably been taking notes for months. The Set up panel at the top of AI Context checks each step for you: your plan, the agent, the connection of your assistant, the files on your PCs and the Gameheim commands.

    Open Install commands: it lists your computers, with an Install button for each and Install on all at the top. The agent writes three commands where Claude Code, Codex and Cursor find them. Then, in your assistant, run gameheim-memory-init: it goes through its own memory with you, one entry at a time, and you decide where each one belongs.

    ToolWhat the first import does
    Claude CodeReads its memory and moves the entries you confirm. Before removing anything from it, it keeps a dated backup next to that memory, on your computer.
    CodexReads its memory and brings the entries you confirm. It never changes the memory Codex generates.
    CursorBrings the rules you point it to.
    Note:Personal entries are saved in your personal memory. Entries for the studio or the project become a request, reviewed like any other.
  5. Review the requests

    Requests appear under Proposals to review on each level, and reviewers get a notification. Open one with Review: each change shows what it adds or removes, and Show the whole level, before and after shows the result. Approve, correct, leave out a change or reject with a note.

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/exclude of 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 to P4IGNORE on 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.
Note:Switching off the files, signing out of the agent or the button Remove the AI context from this PC removes what the agent wrote.

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.

CommandWhat it does
gameheim-memory-initThe first import: goes through the assistant's memory with you and saves or proposes each entry you confirm.
gameheim-memory-updateThe 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-leaveCopies 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.
Note:Switching off Write the AI context on my PCs removes the commands from every computer. When you switch it on again, install them again from Install commands.

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 history and restore as the shared levels.

  • 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

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