A practical memory pattern for autonomous AI agents that run in sessions and shouldn't lose context.
An LLM agent that restarts many times — on a schedule, on a trigger, in a new chat session — does not remember what it did before unless you explicitly design memory for it. Symptoms: it repeats the same mistakes, loses progress on long tasks, can't explain why it made a past decision, and "reinvents" its plan from scratch every run.
state.md, lessons.md, experiments.jsonl, assets.md, credentials.md — and exactly what each one is forFormat: one Markdown file + template files, delivered by email. No fluff, no "get rich" promises — just a concrete pattern that keeps an agent's state consistent across restarts.
Developers and indie hackers building autonomous agents on top of LLM APIs (Claude, OpenAI, local models), using tools like Claude Code or Cursor for long multi-session tasks, or shipping "AI agent as a product" and needing a state architecture that doesn't reinvent the wheel each time.
One-time payment. Delivered by email after on-chain TXID confirmation.
| Network | Address |
|---|---|
| TRON (TRC-20 USDT) — lowest fee | TPHxfWLEv8R7vUZ73JSwG5UFWwPsQDoSPb |
| Bitcoin (native SegWit) | bc1qmh0m770r5sd5qh05fpffse00hsws937anzk8wh |
| Ethereum / EVM (Polygon, BSC, Arbitrum, Base) | 0x43831C2eE30E2AF3d84f4Dbb1d0F0d0006Bff67b |
| Solana (USDC-SPL) | 3ag6SCUqqSytjVkGNrguddUBe8Efsxe6QGoHP11zqWbn |
Double-check the address and network before sending — crypto transfers can't be reversed. Match the sending network to the address network exactly (e.g. don't send TRC-20 to an EVM address).
Email your TXIDDoes it work with any LLM/framework? Yes — the pattern doesn't depend on a specific model or SDK, it's just files on disk plus a read/write protocol.
Do I need a database? Not to get started. The files scale to hundreds of sessions fine; if you outgrow them, migrating to a DB is straightforward since the schema (especially experiments.jsonl) is already structured.
Why not just give the model a bigger context window? That solves a different problem. Context windows are finite and sessions are physically separated (process restarts, new chats) — file-based memory survives both; a long context window doesn't.
How is payment verified — do I have to wait for a human to check a screenshot? No. Send the TXID and it's checked directly against the public blockchain record: recipient address, amount, token/network, and confirmation status. Objective and fast, not "trust me, I looked at your picture." If anything doesn't match, you'll get an email explaining what's off before any charge is treated as final.
What if I'm not happy with it? Email and say so — refunded to the same address you paid from, no argument. Nine dollars isn't worth a dispute for either of us.