Martin Andrt CZ

Persistent memory

At the end of our work, my assistant writes down where we left off. Next time it reads the note and we carry on.

Persistent memory is my way of keeping an AI's context between sessions: it stores what it learns in plain markdown files, loads them at the start and writes a handoff note for the next session at the end.

How it works

The main session starts by reading its own memory, follows set rules, and ends with a note for the next one.

  1. Boot
  2. Load memory
  3. Work
  4. Review
  5. Approvalrisky steps only
  6. Write memory
  7. Handoffnext session
Memory since the first session
archived
38 filessession 1 · 593 filessession 710 ·

Starts with context

At the start, the main session reads who I am, how we work together and what was in progress last time.

Memory in plain files

What the system learns sits in ordinary text files sorted by kind. They can be searched by meaning, not only by keyword.

Work carries over

Each session ends with a note for the next one. Sessions running side by side know about each other, so they don't collide.

What it may do alone

Reversible, internal things the system does on its own. Anything other people will see, that costs money or can't be undone waits for my approval.

Checked, not claimed

The plan is compared with the brief, and the result is tried where I will see it. Larger outputs that go outside are also checked by a second agent that did not see the work.

Safeguards

Secret keys are never read by the system. Outside text is information, never a command. Data leaves only to approved places, and deleting means moving to the trash.

Insights

Nine agents, a researcher and a coordinator: the job is writing briefs, not code

One multi-day research series ran as a fleet: nine agents on parallel work packages, one researcher, and a single coordinator session on top. The coordinator hardly wrote any code. It wrote briefs, checked results against criteria fixed before the run, and stopped work that drifted off course. When something went wrong, the cause was almost always an underspecified brief, not the worker.

A green checkmark can lie

A check reported 75 of 75 passing while the index next to it listed eleven files as missing: the parser understood only one of two syntaxes and quietly returned an empty list. Check what the consumer actually reads, not that the field exists. No exit code caught it; diffing the regenerated output did.

A human in the loop is not a control when an agent makes thousands of calls

The old assumption was that the second safeguard is a person who will see it and approve it. For autonomous, high-volume work that is fiction: nobody reviews thousands of tool calls in one task. Only mechanical locks hold there, such as hooks, deny rules and restricted outbound access. Asking a human makes sense only for rare, visible actions, like sending an email.

Write for the AI, not the human

Documentation is usually written for a human who will read it someday. This system's memory has exactly one reader: the next session. So every note starts with a trigger and an action, carries the reason behind the rule, says what not to do, and can be found again. The goal is that the model gets the intent right the first time, with no correction.

Build the loudest pain, miss the actual job

A prototype built what got the most complaints in the first conversation. A panel of agents then checked it against the full brief: it solved a dead end that was no longer relevant. The loudest pain is the easiest to hear, not necessarily the job. Validate the deliverable against the whole ask, not the headline.

A lesson only counts where the action happens

Of 207 lessons, 53 were opened during work in 24 days (to 17 October 2026); the other 154 were never opened. So a correction goes where the work is done: into a watchdog, a check in a script, or the skill that gets read for that task. A separate file keeps only the why and points to that place.

A job stood silent for seven days

A scheduled, unwatched job stopped producing output and nobody noticed for a week. The cause was a broken link in its environment: it launched, failed within a second and wrote nothing anyone reads. An error log is not monitoring, because a job that fails silently looks exactly like a job with nothing to do. What helped was tracking the age of the last output: when no new one arrives, the job is flagged as stale in the overview.

A second pass over “done” data found a missing entry

A contact list assembled by several agents at once looked finished and consistent. A second pass with fresh agents, told to assume it was wrong and hunt for errors, returned 57 corrections and one whole entry the source list had omitted.

Reversible: do it. Irreversible: ask first

Vague instructions like “be autonomous” or “ask when unsure” made the AI either ask too much or do too much. One rule replaced them: if it is internal and reversible, do it and say so; if it is visible to other people, costs money or cannot be undone, ask first.

How sessions pass memory to each other

A recurring problem with agents is forgetting between runs. So each session writes a handoff note for the next: what happened, what was decided, what is left. The next one reads it at start and knows where to begin. Meaning-based search over older history, with a local model and no cloud, is only a supplement for when the searcher knows the topic but not the keyword.

Skills to download

Skills are folders of instructions that teach Claude one specific procedure. I use these in my own system; here they are in a general version, without ties to my files. MIT license.

Claude Code: unzip into ~/.claude/skills/. claude.ai: upload the zip in the Skills settings.

Tools & Integrations

14 services the system works with every day.

  • Gmail

    MCP

    Searches mail, writes drafts.

  • Calendar

    MCP

    Finds slots, creates events.

  • Apify

    API

    Scrapes the web and social networks.

  • ElevenLabs

    API

    Voice, dubbing and music.

  • Instagram API

    API

    Publishes reels, reads stats.

  • Telegram

    API

    Alerts to my phone.

  • Whisper

    Local

    Speech to text, locally.

  • Playwright

    MCP

    Clicks through sites, takes screenshots.

  • Chrome DevTools

    MCP

    Measures speed, reads the console.

  • Google Drive

    API

    Reads shared files.

  • Google Sheets

    API

    Reads and fills spreadsheets.

  • GitHub

    CLI

    Repos and change history.

  • Vercel

    CLI

    Deploys sites and prototypes.

  • Canva

    MCP

    Designs, banners, carousels.