Memory for
AI agents

Agents forget everything between sessions. Thegram gives Claude Code, Codex, OpenCode, OMP and ChatGPT one memory to share with you and each other. Each project's .gram file records what was decided, what is still open and what happened, and keeps every revision.

01. What agents keep

Outcomes,
not transcripts

An agent records what will still matter next week, one fact per record. It leaves out chatter, guesses, raw logs and secrets. In Thegram, you can view the same records as a document, a graph or a timeline, or in the dashboard for the document's type: Project Tracker, Journal or Knowledge.

02. How it works

Read first,
write only when authorized

Thegram gives agents a set of gram_* tools over the Model Context Protocol (MCP). Reading, searching, analysis and drafting are read-only operations. Writing requires the user's request or explicit authorization in the conversation.

  1. One memory per project

    Each Git repository maps to the existing project record tagged with its exact repository identity. Its worktrees share that document. If the record has no tag, associate it once from the repository using node <installed-plugin>/dist/thegram-memory.mjs bind --document @mounts/<vault-id>/<document>.gram [--project <id>], then restart the agent session. The plugin searches accessible Cloud documents. Neither a local path override nor a fallback to the selected vault selects a document.

  2. Common terms for all records

    Every memory uses the same record types and statuses. The agent records decisions, tasks, risks, and events with the appropriate status. The dashboard, search, and all agents count them the same way: a mitigated risk or a proposed decision is still open, a resolved risk or an accepted decision is done, and a superseded decision is closed.

  3. A brief at the start of each session

    Before a coding agent gives its first answer, the plugin provides a project brief: the project documents, open risks and tasks, and records that match your first prompt. With later prompts, the agent receives changes that other agents and people have made in the meantime. In ChatGPT, once you select the plugin in a chat, it reads the memory before answering.

  4. Search first, then read only what is needed

    The agent searches the memory and reads only the few records or sections it needs, rather than loading an entire notes file into its context.

  5. Every write is a revision

    Updates compare current field values with those the agent read, or explicitly pin a revision. If a precondition has changed, the write is rejected rather than overwriting the data. The agent reads again before deciding how to proceed.

  6. One reminder, no repetition

    If a coding agent edits files or makes a commit during a turn without recording anything, the plugin reminds it once to note what changed.

  7. Ask about the past

    The agent can read the project as it stood on any date or check when and why a decision changed before revisiting the question.

03 Coding agents

One plugin,
one API connection

Issue an API key in Thegram under Settings → Agents, explicitly select its vaults and permissions, and connect the plugin. The same Cloud MCP works without a desktop app or DMG.

  • Node.js 22 or later
  • Claude Code, Codex, OpenCode, OMP
  1. Install the plugin

    Give your agent the canonical installation guide:

    Install Thegram by following https://thegram.one/install/agents.md
  2. Connect with your private key

    In the installed plugin directory, run node dist/thegram-memory.mjs connect. Paste the key at the hidden terminal prompt, not in the chat. The CLI verifies the key without choosing or storing a vault or document. Run doctor to verify the repository’s project association.

  3. Start a new session

    What does Thegram remember about this project?

    Revoke the key in Settings to disable it. Local-only files are not uploaded automatically.

Coding agent connection guide

04 In the cloud

ChatGPT
and Claude

ChatGPT and Claude connect to the same Thegram Cloud MCP via OAuth. Sign in and approve access to the intended vaults. Connected Google Drive accounts require separate authorization. Reading content from another application or connecting that application does not, by itself, authorize copying its content into memory.

  • A Thegram account
  • ChatGPT or Claude
  1. ChatGPT

    Install the official Thegram plugin from ChatGPT. Follow the on-screen prompts.

    Install the Thegram plugin

  2. Claude

    Connect Thegram from the Claude Directory via OAuth. The optional companion plugin adds the memory skill. Open Thegram in Claude | Claude installation and update guide.

Install Thegram in ChatGPT

05 Tools

What the
agent calls

The same gram_* tools are available on the Mac and in the cloud. Each response is kept short so the agent can use its context for your work rather than for its memory.

06 Questions

Questions

Still unsure? Email [email protected].

How is this different from CLAUDE.md or AGENTS.md?

Those files hold instructions you write for an agent. Thegram records what happened: decisions and their status, open work, events with dates and sources, and every earlier version. The agents keep it up to date themselves, and the same memory works across Claude Code, Codex, OpenCode, OMP and ChatGPT.

Is it a vector database?

No. The .gram file is the memory itself, stored as plain text you can open. Search indexes are built from that file and can be discarded and rebuilt at any time.

Where is my memory stored?

It is stored in the selected Thegram Cloud vault or in a connected Google Drive account you have explicitly authorized. Coding-agent keys and OAuth grants limit access. Local-only folders are not exposed or silently migrated.

Can I see and fix what an agent wrote?

Yes. Open the same document in Thegram. The history keeps every revision, and you can edit or close records yourself.

Can several agents write at the same time?

Yes. Field preconditions protect head-mode updates, and writers can also pin a revision. If a precondition is stale, the update is rejected rather than silently overwriting another change.

How much does it cost?

See Personal pricing for monthly and annual billing.

Give your agents
a memory

Connect ChatGPT or Claude using OAuth, or connect your coding agents using a scoped API key. No desktop app is required.