All plugins

mem-forever

Your private Git repository is the agent's brain, the same brain Claude Code, Codex, Cursor, Copilot, Gemini CLI and a pasted chat already read: BRAIN.md is the entry, handoff/CURRENT.md says where you stopped (date, done, next, unverified), soul/ is who you are, memory/ is one file per memory, log/ keeps your words verbatim, env/ledger.env is the ledger of the doors the brain can open. Session start saves what the previous session left unsaved, pulls the brain and puts BRAIN.md in the system prompt; the first turn gets the hand-off, the soul and the index; each of your turns is appended to log/; before compression and at session end the brain is committed and pushed and the ::PROGRESS line goes to the summary; one tool, mem_forever, runs the engine that ships in the plugin (status, check, unlock, hand-off review, recognize, log, commit, pull). No API key, no service, no Python dependencies; a fork of the template is the brain. Disclosure: runs git and the plugin's own engine/brain.py (a pinned copy of the template's tools/brain.py) against the brain repository you configure (status, add, commit, pull --rebase, push, one clone if you give a remote; no git hook of the repository runs, of any kind: every git call of the plugin, the first clone included, and every git its engine starts runs with core.hooksPath set to the plugin's empty engine/no-hooks directory, and the plugin runs the same gate through its pinned engine first, review and check before a commit, the push guard before a push that carries memory, then commits and pushes with --no-verify), with a minimal environment (PATH, HOME, locale, GIT_*, SSH_*, GPG_*, proxies, BRAIN_*), never Hermes's provider keys; the only network traffic is git to that repository's own remote plus, before a push that carries memory to a remote you have not confirmed once with git config brain.allowPush.<remote> true, one read of that remote's visibility through api.github.com or gitee.com (the push guard; only the repository name is looked up); your messages, as Hermes hands them to memory providers, are written verbatim to log/ in that private repository; the plugin stores no credentials, and a ledger row is printed into the context only by the unlock action when the engine's own rules allow it (a next item names the door, this machine holds the owner's grant, a top door has the owner's one-time code); the ledger rests encoded, not encrypted, in your private repository by design. Subagent and cron runs read the brain and never write.

iLang Inc.Memoryv3.3.2Updated 9 hours ago

About

Your private Git repository is the agent's brain, the same brain Claude Code, Codex, Cursor, Copilot, Gemini CLI and a pasted chat already read: BRAIN.md is the entry, handoff/CURRENT.md says where you stopped (date, done, next, unverified), soul/ is who you are, memory/ is one file per memory, log/ keeps your words verbatim, env/ledger.env is the ledger of the doors the brain can open. Session start saves what the previous session left unsaved, pulls the brain and puts BRAIN.md in the system prompt; the first turn gets the hand-off, the soul and the index; each of your turns is appended to log/; before compression and at session end the brain is committed and pushed and the ::PROGRESS line goes to the summary; one tool, mem_forever, runs the engine that ships in the plugin (status, check, unlock, hand-off review, recognize, log, commit, pull). No API key, no service, no Python dependencies; a fork of the template is the brain. Disclosure: runs git and the plugin's own engine/brain.py (a pinned copy of the template's tools/brain.py) against the brain repository you configure (status, add, commit, pull --rebase, push, one clone if you give a remote; no git hook of the repository runs, of any kind: every git call of the plugin, the first clone included, and every git its engine starts runs with core.hooksPath set to the plugin's empty engine/no-hooks directory, and the plugin runs the same gate through its pinned engine first, review and check before a commit, the push guard before a push that carries memory, then commits and pushes with --no-verify), with a minimal environment (PATH, HOME, locale, GIT_*, SSH_*, GPG_*, proxies, BRAIN_*), never Hermes's provider keys; the only network traffic is git to that repository's own remote plus, before a push that carries memory to a remote you have not confirmed once with git config brain.allowPush.<remote> true, one read of that remote's visibility through api.github.com or gitee.com (the push guard; only the repository name is looked up); your messages, as Hermes hands them to memory providers, are written verbatim to log/ in that private repository; the plugin stores no credentials, and a ledger row is printed into the context only by the unlock action when the engine's own rules allow it (a next item names the door, this machine holds the owner's grant, a top door has the owner's one-time code); the ledger rests encoded, not encrypted, in your private repository by design. Subagent and cron runs read the brain and never write.

Mem-Forever for Hermes Agent

Every AI tool forgets you after every session. This one doesn't. Your private Git repository is the agent's brain, and this plugin makes it Hermes's memory provider: the same repository Claude Code, Codex, Cursor, Copilot, Gemini CLI and a pasted chat already read.

The brain is a fork of ilang-ai/Mem-Forever: BRAIN.md is the entry, handoff/CURRENT.md says where you stopped, soul/ is who you are, memory/ is one file per memory, log/ keeps your words verbatim, env/ledger.env is the ledger of the doors the brain can open. Everything is addressable iLang notation that any model reads literally; the protocol itself is in the repository's README.

Install

hermes plugins install mem-forever
hermes memory setup            # pick "mem-forever", give the path of your brain repository

The path is a clone of your private fork of the template (<hermes_home>/mem-forever/brain when left empty). Give a remote git URL instead and the plugin clones it on first use, with whatever git credentials this machine already has. No brain yet? Fork the template, clone it, run python -X utf8 tools/brain.py init . once, as the template README says.

Without the wizard:

hermes config set memory.provider mem-forever
hermes config set memory.mem-forever.repo /path/to/your/brain

Hermes keeps one external memory provider active at a time; selecting this one replaces the other provider, not the built-in MEMORY.md.

What it does, and when

MomentWhat happens
Session startCommits what a previous session left unsaved under soul/ memory/ handoff/ log/, pulls the brain from its remote, and puts BRAIN.md in the system prompt.
First turnHands the model handoff/CURRENT.md, soul/soul.md, soul/agent.md and the index memory/MEMORY.md. A file under memory/ is opened by the model only when the task needs it. Later turns get CURRENT.md again only if it changed on disk.
Each turnAppends your message to log/YYYY-MM-DD.md through the engine (brain.py log owner), in the background, verbatim. The assistant's words are not logged.
A write through Hermes's built-in memory toolLeaves a trace in the brain's log, so nothing is remembered in one place only.
Before compressionCommits and pushes the four directories, and hands the ::PROGRESS{date|done|next|unverified} line to the summary so the hand-off survives.
Session endCommits and pushes the four directories.
Subagent or cron runReads the brain, never writes to it.

One tool, mem_forever, runs the engine that ships inside this plugin, engine/brain.py (the template's tools/brain.py at this version, byte for byte), with your brain repository as its data (--repo). The brain's own tools/brain.py is never executed by the plugin:

ActionWhat it runs
statusHEAD, remote, unsaved files, the ::PROGRESS line, brain.py status --json
checkbrain.py check: layout, grammar, secret-like strings; 0 errors expected
unlockbrain.py unlock <door>: prints one ledger row into the context, only when a next item names its door and this machine holds the owner's grant; a top door also needs the owner's one-time code
handoff_reviewbrain.py handoff review <candidate>: a hand-off another model wrote is compared block by block with CURRENT.md before it may replace it (clean, rejected, or for the owner)
recognizebrain.py recognize --json: the owner's recent words against the soul anchors
logbrain.py log agent --kind <kind>: the agent's own decision or lesson, dated
commitcommits and pushes soul/ memory/ handoff/ log/; do it at every milestone
pullgit pull --rebase from the brain's remote

Ledger verification (brain.py ledger verify, which runs each row's own verify command) is not a model action: you run it in a terminal.

Memories, the soul and the hand-off are edited with Hermes's normal file tools, as the protocol says: one memory per file with a type frontmatter, one index line, ::PROGRESS updated at every milestone, not at session end. The plugin never rewrites a memory on its own.

The protocol is also available as a read-only skill, mem-forever:mem-forever, while this provider is active.

Configuration

KeyMeaning
memory.providermem-forever activates this provider
memory.mem-forever.repoPath of the brain repository; empty means <hermes_home>/mem-forever/brain
memory.mem-forever.remoteGit URL cloned into that path when the path does not exist yet; optional

No API key, no token, no environment variable. The plugin reads nothing from .env.

What to know before you install

  • Shell commands. The plugin runs git and python -X utf8 engine/brain.py --repo <brain> (its own pinned copy of the engine) against your brain repository: git status, add, commit, pull --rebase, push, and clone once if you gave a remote. No git hook of your brain repository runs, of any kind: every git call of the plugin, the first clone included, runs with core.hooksPath set to the plugin's empty engine/no-hooks directory, and the git its engine starts gets the same setting through the environment. The hooks under tools/hooks/ would execute the repository's own, unpinned tools/brain.py; instead the plugin runs the same gate itself through its pinned engine, review --staged and check before a commit, remote-check before a push that carries memory, and commits and pushes with --no-verify. git and the engine get a minimal environment: PATH, HOME, locale, GIT_*, SSH_*, GPG_*, proxy and BRAIN_* variables; Hermes's provider API keys and the rest of its environment are not passed. Commits use the git identity configured on this machine; if none is set, the commit fails and the files stay unsaved on disk until you set one.
  • Network. The only network traffic is git to the remote of your own brain repository, plus, before a push that carries memory to a remote you have not confirmed once with git config --bool brain.allowPush.<remote> true, one read of that remote's visibility through api.github.com or gitee.com (the push guard; only the repository name is looked up, nothing of yours is sent). No service of ours or anyone else's is called. Prompts and transcripts are not sent anywhere by this plugin.
  • What is written where. Your messages, as Hermes hands them to memory providers (secrets already redacted by Hermes), are appended verbatim to log/ in your private repository. In a shared gateway chat the user side of a turn can be someone else's words; messages flagged as a bot's are skipped, others are not told apart.
  • Keys. The plugin stores no credentials and asks Hermes for none. The brain's ledger lives in your private repository, encoded at rest (reversible, not encryption, by design: a key is replaceable, a lockout is not). The unlock action prints one ledger row into the model's context, and only when the engine's own rules allow it: the door is named by a next item, this machine holds the owner's grant (brain.py grant), and a top door has the owner's one-time code. Nothing is printed otherwise. Whether a door still opens (ledger verify, each row's own command) is checked by you in a terminal, not by the model through this plugin.
  • Reads outside the plugin's own directory. The brain repository, at the path you configure.
  • Single provider. Hermes allows one external memory provider; hermes memory setup switches.
  • Platform. Tested on Linux and Windows with git on PATH and the Python that runs Hermes (the engine is standard library only).

Source and support

The plugin is the hermes/ directory of ilang-ai/Mem-Forever, MIT, version-locked to the template (3.2.1). Issues: ilang-ai/Mem-Forever/issues. Contact: contact@ilang.ai.

README from the reviewed commit cba7cc2; it updates when the author re-pins.

More by iLang Inc.

2 plugins by iLang Inc. in the catalog.

Developer Mode

Explore built-in Hermes toolsets and actions.

HermesAgent

Developer?

Create a Hermes extension for Desktop or agent workflows.

Developer Section