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

By Gianmarco Virzì, co-founder and lead developer of Virsion · Updated · 12 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, 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.

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

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.5 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 and choose the Studio or Project tab. The list starts with Instructions: click it, then Edit in the panel that opens on the side, and 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. Each one becomes a row of the list, with its title, who wrote it, through which assistant and when; click it to read the whole text, its details and its history. 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. A bar above the list 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. The agent on each of your computers then asks once, in a small window at the bottom right of the screen, whether it may write; Details shows exactly what it will write and where. The same panel shows each computer with its agent and anything that needs your attention.

    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 box at the top of AI Context ticks each step by itself as you go: your plan, the agent, the connection of your assistant, the files on your PCs, the Gameheim commands and the first import. If your assistant was connected before it could read the AI context, the step says so and offers Connect again.

    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 and show on the Personal tab as they arrive. 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, with who proposed them, through which assistant and how many changes they carry, and reviewers get a notification that opens the request directly. Click one: a wide panel shows the reason and each change, what it adds or removes. Show the whole level, before and after shows the result. Approve, correct, leave out a change or reject with a note.

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