The .gram
file
Knowledge changes. A .gram file keeps what is true now and every earlier version in one plain-text file you own. People edit it in Thegram, AI agents write to it over MCP, and anyone can open it as a document, a dashboard, a graph or a timeline.
01. What’s inside
One document,
many facts
Each .gram file is one document. It is plain UTF-8 text: the current version comes first, followed by the history in the same file.
A document you can read
The document has a title and a body written like Markdown, with headings, lists, tables, quotes, code, math and diagrams. Records appear where they belong in the text.
Typed records
Record types include decisions, tasks, risks, blockers, events, metrics, sources, requirements, assumptions, goals, people, components and more. Each record has a title and, where applicable, a description, status, priority, owner, tags, sources and a link to its origin.
Links with meaning
Links show how one record relates to another: supports, contradicts, depends on, implements, replaces, blocks, enables or is part of. A link can point into another .gram document, so you can read multiple files as one graph.
Dates that matter
Events record when they happened, tasks record their due dates, and metrics record when they were observed. The file can tell you what happened in March without a separate calendar.
02. Every revision
Knowledge
changes
Each change is saved as a new revision, along with when it was written and who wrote it. Each revision is linked by hash to the one before it. Nothing is overwritten or lost.
Step back in time
Step back through the revisions to see the document, dashboard and graph as they were that day. Play forward to watch the work unfold.
When it happened and when it was known
A fact recorded today can be about last month. The file keeps both times, so you can ask what was true then and what was known then.
What changed and why
The history lists each revision and what changed. A decision that was replaced stays in the file, marked as superseded, next to the decision that replaced it.
Safe for multiple writers
Each write identifies the revision it was based on. A write based on an old revision is rejected rather than allowed to overwrite newer work, so people and agents never silently erase each other’s work.
03 Where it opens
One file
everywhere
Keep a .gram file in a folder on your Mac, in the Files app on iPhone and iPad, in a Thegram Cloud vault you share with your team, or in your Google Drive. The file is the original. Search indexes and graphs are built from it and can be rebuilt at any time.
Thegram for iPhone & iPad
Read the same files with access to their dashboard, every past revision, the graph and search. Download on the App Store
In the browser
Open a .gram file in Thegram’s web app at vault.thegram.one. Sign in to keep files in Vaults.
Your AI agents
Claude Code, Codex, OpenCode, OMP and ChatGPT use .gram files as their memory, reading and writing them through MCP. Agent memory
04 Questions
Questions
Still unsure? Email [email protected].
How do I open a .gram file?
Open it in Thegram for Mac, iPhone or iPad, or in the web app at vault.thegram.one.
Is it a database?
No. It’s a single file. Its history is stored inside it, so copying the file copies every revision. Apps build search indexes from the file and can always rebuild them.
How is it different from a Markdown note?
A note keeps only its latest text. A .gram file also records which lines are decisions, tasks or risks, what state they’re in, how they connect and what the file looked like at each earlier revision.
Who owns my files?
You do. A .gram file stays where you keep it: on your device, in your vault or in your Google Drive.
How much does it cost?
See Personal pricing for monthly and annual billing.
Open your
first .gram file
Open Thegram in your browser, or let a connected agent create a .gram document.
- Connection guideChatGPT, Claude and coding agents
- Agent memoryClaude Code, Codex, ChatGPT