Your AI agent forgets everything between conversations. Fix that.
Build a text adventure game while learning how txtscape gives your AI agent persistent memory. No prior setup beyond an IDE with AI chat.
Start the tutorial →txtscape is an MCP server that gives your agent a persistent, searchable memory — plain
.txt files committed to git. No database. No external service. Just files
in your repo that your agent reads and writes.
Install
Then open your editor and start a new AI chat. Ask: "List the txtscape pages."
"Remind me, are we using Postgres or SQLite?"
"What's our error handling pattern again?"
Random .md files proliferating across your project tree.
Every conversation starts from zero.
"Read the architecture decisions and follow the existing patterns."
Everything in one .txtscape/ folder. Your project tree stays clean.
The agent reads your pages and already knows.
Create a config.json with "concerns" — named folders
like decisions/, runbooks/, architecture/.
Add optional templates so every page follows the same shape.
As you work, the agent stores decisions, patterns, and context using
put_page. Pages are plain text with markdown formatting,
living in .txtscape/pages/.
New chat session? The agent calls search_pages or
snapshot and picks up right where you left off.
Knowledge accumulates. Context never evaporates.
put_page → decisions/database-choice.txt created
search_pages → found decisions/database-choice.txt11 MCP tools. Your agent picks the right one automatically.
Pages are plain text with markdown formatting, stored in .txtscape/pages/.
Committed to git. Diffable. Reviewable in PRs. No database, no external service.
Pure Go standard library. Nothing to audit, nothing to break.
The filesystem is the storage layer. Plain .txt files.
Diffable, reviewable in PRs, portable across tools.
Each project defines its own memory structure.
Stop using txtscape and your .txt files stay. They're just files.
Pages live in .txtscape/, not scattered across your project.
Plain text that any model already understands. No special format.
No ports, no background process, no attack surface.
Use it however you want. Free and open source.
.txtscape/
├── config.json # define your concerns + templates
└── pages/
├── decisions/
│ └── use-postgres.txt
├── architecture/
│ └── api-design.txt
└── learnings/
└── auth-gotchas.txt
Every project defines its own shape. A startup might have customers/ and
pricing/. An infra team might have runbooks/ and
incidents/. You decide what matters.