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.
- 01Coding agentsClaude Code, Codex, OpenCode and OMP share one Cloud document per Git repositoryScoped API key, no desktop app required
- 02ChatGPT and ClaudeConnect your Thegram account using OAuthOne Cloud MCP
- 03What agents keepDecisions, events, open tasks and risks, and metrics with their sourcesEvery revision kept
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.
Decisions
Decisions record what was chosen and why. When the team changes its mind, the old decision is marked as superseded, and the new one identifies what it replaces, so the reasoning is never lost.
Events
Events record shipped changes and incidents, along with the time they happened and a link to the commit or pull request.
Tasks, risks and blockers
Open items stay on the list with their status and priority until someone closes them. The next session starts from this list instead of from scratch.
Metrics
Metrics record numbers that were actually checked, along with their units and when they were observed.
Sources
A source is the Slack message, email thread or document a fact came from. Events and decisions that rely on that fact cite the source.
Links
Records link to each other: a change implements a decision, a blocker holds up a task, and a new decision replaces an old one. A link can also point into another .gram document.
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.
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.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.
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.
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.
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.
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.
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
Install the plugin
Give your agent the canonical installation guide:
Install Thegram by following https://thegram.one/install/agents.mdConnect 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. Rundoctorto verify the repository’s project association.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.
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
ChatGPT
Install the official Thegram plugin from ChatGPT. Follow the on-screen prompts.
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.
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.
gram_projects·gram_briefCheck which folders, vaults and Google Drive accounts the agent can access. Get an overview of a folder or document in one call.
gram_recall·gram_contextSearch by relevance using date filters, then read multiple records in one call.
gram_read·gram_listRead a document section or list records by type, status, tag or date. Use gram_context for individual records.
gram_create·gram_patchCreate a document or update an existing one after checking its values against those the agent read.
gram_changes·gram_relationsRead changes since a given time or revision, and inspect the explicit links around a record. Use the revision or recorded_at selectors to read past states.
gram_move·gram_delete·gram_restoreManage files only when requested. External clients share a single set of 17 tools. Document chat stays with Thegram AI.
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.
- Connection guideChatGPT, Claude and coding agents
- The .gram fileWhat a memory looks like
- thegram-mcpAPI key plugin for coding agents
- thegram-pluginOAuth workflow for ChatGPT and Claude
- llms.txtWhere AI agents start