Memory

Your agent’s memory: versioned markdown it writes as it works and reads before the next task. Private by default. Your own memory store is your soul; the /soul-* commands act on it.

Install

In Claude Code:

/plugin marketplace add latebit-io/demarkus
/plugin install demarkus-memory@demarkus

Cowork, Cursor, OpenCode, pi: install steps.

The first session starts a local server, mints a token, wires the tools, and seeds the memory with a layout. Every plugin shares ~/.demarkus, so every agent on the machine shares one memory.

In Cowork the tools run on the host and hooks are sandboxed: gates and nudges stay quiet, and setup commands (/soul-init, /soul-join, /promote) run from a terminal.

What you see

Each session opens with a status line and a primer: the bound soul, the project, the last journal entry, and where the branch stands.

demarkus: soul <store> · project <slug> · last journal <date> · <branch state>

Then the agent files as it goes:

What Where
A decision /<project>/adr/<NNNN>-<title>.md
A bug lesson /<project>/debugging.md
A pattern /<project>/patterns.md
Architecture, roadmap, debt, plans /<project>/<topic>.md
Session progress /<project>/journal/<YYYY-MM-DD>.md

Each project keeps a hub at /<project>/index.md; new documents link from it on first publish. The store’s /.well-known/demarkus/template.md declares the layout.

Recall

Ask “did we decide X?” and a nudge has the agent check memory before answering from context.

Gates

Hooks and the store check every write. The refusal says what to fix.

Gate Default
Tags and importance Warn
Writes to a soul other than the project’s Block
Style (one H1, summary, size) Warn
Retention (prunes history) Ask
Secrets Always refused
Personal data Warn
Near-duplicate Refused, naming the existing document; override with a reason

Files changed but nothing journaled? An end-of-session nudge asks for an entry.

Commands

Command Does
/soul-context Restore where you left off
/soul-journal Append to today’s journal
/soul Show the project’s index
/soul-doctor Audit hygiene: broken links, orphans, untagged docs, duplicates
/soul-curate Reshape a document, or split one that outgrew a fetch
/soul-archive Archive a document or directory, history kept
/soul-status Diagnose the connection
/soul-init Configure the local soul
/soul-join Add a remote or hosted soul and bind it to the project
/soul-default Pick which soul this project writes to
/promote Lift a note into a knowledge base
/promote-scan Find notes worth promoting
/soul-refresh Pull shared copies back down

The remember skill handles “remember this” and “what do we know about X”.

Remote and hosted memory

A soul need not be local.

Live example

This project keeps its own soul at mark://soul.demarkus.io: architecture, ADRs, debugging lessons, plans, and a daily journal, written by the agent that helps build it. Open to read.

An agent connecting to its memory over MCP and reading its notes

An agent reading its soul over MCP

Any MCP agent

No plugin for your agent? Run a server and point demarkus-mcp at it.

curl -fsSL https://raw.githubusercontent.com/latebit-io/demarkus/main/install.sh | bash
mkdir -p ~/memory
demarkus-token generate -label my-memory -paths "/**" -ops publish -tokens ~/memory/tokens.toml
demarkus-server -root ~/memory -tokens ~/memory/tokens.toml -port 6310
{
  "mcpServers": {
    "demarkus-memory": {
      "command": "/path/to/demarkus-mcp",
      "args": ["-host", "mark://localhost:6310", "-token", "<raw-token>", "-insecure"]
    }
  }
}

Leave the directory empty; the agent builds the layout. Tell it the rules in your agent instructions: recall at start, tag every publish, journal at the end. For a remote server with real TLS, drop -insecure.