Back to Browse

Memory Pulse MCP Server

by T Crew
Developer ToolsLow Risk10.0MCP RegistryLocal
Free

Server data from the Official MCP Registry

Give any agent self-improving memory you can trust in production. Built-in memory security.

About

Give any agent self-improving memory you can trust in production. Built-in memory security.

Security Report

10.0
Low Risk10.0Low Risk

Valid MCP server (0 strong, 2 medium validity signals). No known CVEs in dependencies. Package registry verified. Imported from the Official MCP Registry.

3 files analyzed · 1 issue found

Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.

Permissions Required

This plugin requests these system permissions. Most are normal for its category.

file_system

Check that this permission is expected for this type of plugin.

env_vars

Check that this permission is expected for this type of plugin.

What You'll Need

Set these up before or after installing:

License key (optional; free tier without one)Required

Environment variable: MEMORY_PULSE_KEY

Ledger file path (default ./.memory-pulse/events.jsonl)Optional

Environment variable: MEMORY_PULSE_LEDGER

Shared agent message board file; set it to add board_post and board_readOptional

Environment variable: MEMORY_PULSE_BOARD

How to Install

Add this to your MCP configuration file:

{
  "mcpServers": {
    "memory-pulse": {
      "command": "npx",
      "args": [
        "-y",
        "memory-pulse@0.19.0"
      ],
      "env": {
        "MEMORY_PULSE_KEY": "your-memory-pulse-key-here",
        "MEMORY_PULSE_BOARD": "your-memory-pulse-board-here",
        "MEMORY_PULSE_LEDGER": "your-memory-pulse-ledger-here"
      }
    }
  }
}

Some servers take additional arguments. See the repository for details.

Documentation

View on GitHub

From the project's GitHub README.

memory-pulse

npm license MCP

Site: pulse.strategic-innovations.ai, where the guard runs in the browser. Compare with Mem0, Zep, Letta and CLAUDE.md. Guide: docs/GUIDE.md, the day-to-day protocol with runnable examples.

Give any agent self-improving memory you can trust in production.

Every correction is kept, put in front of your agent when it matters, and enforced. Memory security is built in: a stored note that reads like an instruction never reaches your agent, every row is hash-chained so any edit to the record shows, and a guard blocks the edit that writes a retired value back.

Your agent acknowledged the correction, then wrote the old value back next session. memory-pulse records it once, puts it at the top of every session, and blocks the edit that reintroduces it, quoting the line that retired it. For Claude Code, Codex, Cursor, any MCP client and GitHub Actions. The record is a file in your own repository.

Most memory tools stop at showing the correction to the model. The guard is the part that acts on it.

The four tool definitions come to 3,406 chars, 3.3 KB, about 900 tokens at 3.8 chars per token, measured 2026-09-09. test/client.test.js fails the build past 4,000 chars or 60 tokens either side of 900. Independent measurements put a typical five to ten server MCP setup at 50-67k tokens of tool definitions before your first prompt, roughly a third of a 200k context window.

What it does

A session ends and everything it learned goes with it. memory-pulse keeps a ledger of cause -> effect events in a local file, and gives the agent four tools over it:

toolwhat it doesruns
rememberrecord a finding (or a correction)locally, offline
pulsere-enter the project on a ranked brief, sized to a budget you sethosted engine
recallwhat caused X? what did X cause? when was the link strongest?hosted engine
executerun JS against memory in a sandbox, where only the return value enters contexthosted engine

Two design decisions do the heavy lifting.

Corrections come first, always. An event recorded with kind: "correction" outranks everything at every brief size and never decays. The failure this prevents is your agent confidently quoting the benchmark number you withdrew three sessions ago.

A weak answer returns nothing. When recall cannot clear its confidence floor it returns an empty result, and the brief says so.

Install

Every route, host by host, with what runs on each: docs/INSTALL.md (also at pulse.strategic-innovations.ai/install).

Try it, set it up, check it. Three commands. The first installs nothing.

npx -y memory-pulse demo     # one correction and three edits in a temporary folder: the guard blocks the write-back (exit status 2) and passes the other two
npx -y memory-pulse init     # in your repository: prints its plan, asks once, installs the hooks for the hosts it finds, creates .memory-pulse/, runs doctor
npx -y memory-pulse doctor   # checks the wiring one line at a time; a failed check prints the command that fixes it, and the exit is 1

demo records the correction with remember and runs the guard command on each edit, so what it prints is what a host gets; --withdrawn, --replacement and --text "<edit>" try your own values. init writes nothing before it has printed its plan: --dry-run stops there, --yes skips the question, and with no terminal and no --yes nothing is changed. It runs install-hook for Claude Code, Codex and Cursor where it finds them (--project writes into the repository instead), and a second run changes nothing. It installs hooks only: the routes below also register the MCP server. Every file it writes is in the plan, the .gitattributes lines and the git config entry of a --project install in a git work tree included. doctor checks Node; each host's guard hook (its event, its matcher and its type), the file every hook runs and that copy's version; the guard on five synthetic edits against a temporary ledger; and the project ledger through verify. It runs the guard from this package or from the pinned copy the hooks name, never a command it read from a hook file: a repository can ship that file, so such a command is shown as text and listed as not run. It sends one GET to the engine with no key, as information, and --offline skips it. demo, init and doctor arrive in the release after 0.18.0. On 0.18.0 they exit 1 with unknown command; from a checkout, run node server.mjs demo.

Six routes. Pick the row for your agent. Node 18 or newer (package.json engines); the test suite runs on 22 and 24.

remember and help from the shell arrive in 0.5.9. npm served 0.5.8 on 2026-09-09, where both exit 1 with unknown command. If npx serves an older cached release, pin this one: npx -y memory-pulse@0.19.0; from a checkout, run node server.mjs. Four more things in this README are 0.5.9 behaviour and differ on 0.5.8: guard --verbose names non-JSON stdin on stderr (0.5.8 prints nothing), handoff with no transcript writes nothing and says handoff skipped (no transcript) (0.5.8 records a row that reads asked: n/a | files: none), remember reports boundFromEffect when it read the terms out of the effect slug, and a replacement term under 2 characters is dropped like a withdrawn one. 0.5.8's install-hook --codex also says trust the two memory-pulse entries while writing three hooks: trust all three.

One line, any shell. Installs the Claude Code hooks, the Codex hooks when codex is on PATH, and registers the MCP server. It prints its plan first, runs nothing as root, and downloads nothing itself (npx caches the package under ~/.npm). Append -s -- --dry-run after bash to see the commands without running them, or -s -- --project to write the hooks and the Claude Code MCP registration into the current repository. codex mcp add has no project scope; it writes ~/.codex/config.toml on each machine under either flag.

curl -fsSL https://pulse.strategic-innovations.ai/install.sh | bash

Claude Code, as a plugin. Skill, MCP tools and two hooks (SessionStart brief, PreToolUse guard) from this repo, typed inside Claude Code:

/plugin marketplace add t-crew/memory-pulse
/plugin install memory-pulse@memory-pulse

claude plugin details memory-pulse shows what you pay. About 120 tokens are always on, which is the skill's description (Claude Code, 2026-09-01). The four tool schemas resolve at runtime and the hooks are free. The hooks run the plugin's own server.mjs, so what enforces your corrections is the version you installed. The plugin does not carry the PreCompact handoff; to add it, put this entry under hooks.PreCompact in ~/.claude/settings.json:

{ "hooks": [{ "type": "command", "command": "npx -y memory-pulse handoff" }] }

Codex CLI, as a plugin. Same files, read from .codex-plugin/plugin.json:

codex plugin marketplace add t-crew/memory-pulse
codex plugin add memory-pulse@memory-pulse

Then, inside Codex, run /hooks and trust the three memory-pulse entries (session start, prompt and guard). Codex runs no hook it has not shown you, and installing a plugin does not trust its hooks. That is Codex's rule and a good one.

npm, global install. install-hook writes eight hooks into ~/.claude/settings.json: SessionStart brief, UserPromptSubmit prompt, PreToolUse guard, PreCompact handoff, and capture with consolidation (PostToolUse, PostToolUseFailure, Stop, SessionEnd; --no-capture leaves those four out). --codex targets ~/.codex/hooks.json instead, without capture; --cursor writes ~/.cursor/hooks.json; --project writes them into the repository; --ambient adds the UserPromptSubmit observer.

npm i -g memory-pulse
memory-pulse install-hook

Claude Code or Codex without the plugin. Register the stdio server, then add the hooks:

claude mcp add memory-pulse -- npx -y memory-pulse
codex  mcp add memory-pulse -- npx -y memory-pulse
npx memory-pulse install-hook            # Claude Code: ~/.claude/settings.json
npx memory-pulse install-hook --codex    # Codex:       ~/.codex/hooks.json (then /hooks to trust each entry)
npx memory-pulse install-hook --cursor   # Cursor:      ~/.cursor/hooks.json (brief, fail-closed guard, capture)

claude mcp add without a scope registers the server for the current directory; -s user registers it once for every project. codex mcp add has no scope flag and writes ~/.codex/config.toml (codex-cli 0.153.2, 2026-09-09). Add --project to install-hook and the hooks are written into the repo, at .claude/settings.json or .codex/hooks.json. Commit that and every clone is re-entered and guarded with nothing for anyone to install. A Codex clone still trusts the entries once via /hooks, and a scripted codex exec needs that trust in place beforehand.

Cursor. Cursor runs hooks, so npx memory-pulse install-hook --cursor (or --cursor --project for .cursor/hooks.json in the repo) gives Cursor the same brief, guard and capture as Claude Code: the brief at session start, the guard on every write and shell command (fail-closed, so a broken guard blocks rather than passes), and capture with fixes and open threads. For the MCP tools, register command: npx with the args below in .cursor/mcp.json or ~/.cursor/mcp.json. Written from Cursor's hook reference (cursor.com/docs/agent/hooks, read 2026-10-21) and tested against its documented payloads; not yet run inside Cursor itself.

Other stdio clients. The same MCP entry works in any client that speaks MCP over stdio.

{ "mcpServers": { "memory-pulse": { "command": "npx", "args": ["-y", "memory-pulse"], "env": { "MEMORY_PULSE_KEY": "" } } } }

A rule file at .cursor/rules/memory-pulse.mdc tells the agent to call pulse before answering about prior work; the guide has the text.

From source. server.mjs plus the plain modules in lib/, zero dependencies:

git clone https://github.com/t-crew/memory-pulse.git
cd memory-pulse && node server.mjs brief --offline

The second command prints the corrections in this repository's own committed ledger, so you see the output format before installing anything.

What each host runs

Read from server.mjs and hooks/hooks.json, 2026-10-21.

Claude Code pluginCodex plugininstall-hookinstall-hook --cursorother MCP clients
four toolsyesyeswith claude mcp add or codex mcp addwith .cursor/mcp.jsonyes
brief at session startyesafter /hooks trustyesyesno
guard before an editEdit|Write|MultiEdit|apply_patch|Bashapply_patch measured, after trust; Bash is in the matcher, unmeasured in Codex (2026-09-09)Edit|Write|MultiEdit|Bash (Claude Code), Edit|Write|apply_patch (Codex)Write|Shell, fail-closedno; check --ci in CI
capture and consolidationyesafter /hooks trust, unmeasured in Codexyes for Claude Code (--no-capture leaves it out); not for --codexyesno
handoff before compactionnonoyesnono
ambient capturemode agentno--ambient or mode agentnono
CLI and GitHub Actioneverywhereeverywhereeverywhereeverywhereeverywhere

First run

The hooks stay silent in a project that has no ledger: brief prints nothing and exits 0. The first remember creates .memory-pulse/events.jsonl, from a tool call or from the shell:

npx -y memory-pulse@0.19.0 remember pricing-shipped price-corrected --kind correction --withdrawn '$49' --replacement '$29' --note 'measured willingness to pay is $29'
# before 0.6.0 is on npm, the same command from a checkout:
git clone https://github.com/t-crew/memory-pulse.git && node memory-pulse/server.mjs remember pricing-shipped price-corrected --kind correction --withdrawn '$49' --replacement '$29' --note 'measured willingness to pay is $29'

The hook command install-hook writes for your own machine is node "<data dir>/<version>/server.mjs" guard (since 0.16.1): node on a copy of the package that install-hook keeps under MEMORY_PULSE_DATA_DIR, one folder per version. On a 1-row ledger the pinned copy took 63 ms for an edit that passes and 66 ms for one that is blocked, median of 12 runs each, process start included, on an M1 Pro on 2026-11-21 with 0.18.0. The plugin runs server.mjs from its own folder the same way. Upgrading the package changes neither the pinned copy nor the settings file, so after an upgrade run memory-pulse install-hook (or init) again; doctor fails a hook that still runs the older copy and names that command.

install-hook --project still writes npx -y memory-pulse guard, because a committed file has to run on every clone, and npx resolves the package on every call: 0.99 s warm and 1.4 s cold (empty npm cache) per edit on an M1 Pro on 2026-10-16 with 0.8.0, and 0.98 to 1.54 s per hook call on a clean machine on 2026-10-23. A repository that commits its hooks pays that before each edit and shell command the guard checks. doctor names the files whose hooks run through npx; install-hook without --project writes the pinned form for one machine.

Where the key goes

export MEMORY_PULSE_KEY=mp_live_... in the shell that starts Claude Code or Codex; the plugins and the hooks read the shell environment. On claude mcp add, pass --env MEMORY_PULSE_KEY=.... In Cursor, the env block above. Do not also run claude mcp add on a plugin install, or you get two servers.

Corrections are enforced, not only surfaced

Showing an agent a correction is not enough. TRACE (arXiv 2606.13174) measured agents re-violating more than half of the corrections they had been shown, with a memory tool installed. The PreToolUse guard sees every Edit, Write and MultiEdit in Claude Code, plus a Bash command whose write is literal in the command string (a heredoc with the redirect before or after its marker, a redirect or a tee, sed -i and perl -i, judged on the replacement side only, and python -c or node -e whose write call is handed a string literal; all read with nothing executed), and every apply_patch in Codex, where one patch may touch several files and each is checked under its own path. An edit that writes back a withdrawn value is blocked, and the agent is told which ledger line retired it and when. A line that names the replacement beside the old value passes, because "was $49, now $29" is a comparison. Only a bare reintroduction is blocked. A shell command whose write cannot be read from the string returns nothing, so it is a miss rather than a false block, and check --ci on the pull request catches it.

Record corrections with the exact terms:

remember({ cause: "pricing-shipped", effect: "price-corrected", kind: "correction",
           note: "measured willingness to pay is $29", withdrawn: ["$49"], replacement: ["$29"] })

The rules that decide whether the guard can act on a correction:

  • Matching is a case-sensitive token. A term cannot start inside another word or number. A number cannot run on into more digits but may carry a unit: $49 blocks $49/mo and not $490. A word under five letters cannot run on (ten does not block tenant); a longer one keeps its inflections. n=14 does not block N=14. Record every spelling you have seen, one term each. before matches case-insensitively, and it advises rather than blocks.

  • A replacement releases a withdrawn term only on its own line. A line that states both the old value and its replacement is a comparison and passes. A line that states only the old value is blocked, whatever the rest of the edit says: | Pro | $49/mo | is blocked even when `` sits two lines below it. Text that states the old value on one line and the new one on the next is blocked too; put both on one line, as the block message says. A term that spans lines is judged on the lines it covers. Make replacements as specific as withdrawn terms: $29, not 29. Terms under 2 characters are dropped and the result says enforceable: false.

    Measured by an independent review on 2026-11-21, with the corrections of one real ledger over 6,204 file checks: 0.18.0 blocked 91 files and this version blocks 100. Of the 9 newly blocked files none was a true reintroduction: 3 held a comparison split over lines, and 6 held an unrelated use of a broad phrase that the old rule had released by accident. Of 91 ways to write a withdrawn value back, 0.18.0 caught 13 and this version catches 30.

  • Pass the terms yourself. When a correction declares no withdrawn term and its effect reads X-corrected-to-Y (or -withdrawn-for-, -superseded-by-, -replaced-by-), the terms are read out of the slug: price-corrected-to-29 binds the word price. The result then carries boundFromEffect so you can see it happened.

  • A wrong correction is fixed with a new one carrying supersedes: [t]. That retires every term of the earlier row, so re-declare what you keep. guard allow is different: it records an override for one path prefix where the old value is legitimate, and the correction keeps binding elsewhere.

  • A note that reads like an instruction is refused, including any angle-bracket tag. Write "the script tag" rather than the tag itself. The check reads a note the way a person sees it: invisible characters, letters borrowed from the Cyrillic or Greek alphabets, fullwidth forms and base64 do not hide an instruction from it (since 0.16.0). A paraphrase or a translation can, because the check is a list of patterns, not a reader.

Test the guard by hand with the payload Claude Code sends before a Write (Edit carries new_string, MultiEdit edits[].new_string, Bash command):

printf '%s' '{"hook_event_name":"PreToolUse","tool_name":"Write","tool_input":{"file_path":"docs/pricing.md","content":"The price is $49."}}' | npx memory-pulse guard; echo "exit $?"

Exit 2 with the ledger line means the guard is live. Stdin that is not hook JSON is allowed through silently; guard --verbose says so on stderr, which is how you tell a miswired hook from "no evidence".

Rule packs: rules for your stack before your first correction

A coding agent writes the API its training data knew. The framework has often removed it since. A rule pack is a prepared set of rules for one stack, and every rule names the vendor page it rests on and the date that page was read. Eight packs ship inside the package (61 rules); nothing is fetched.

$ npx memory-pulse pack list
bundled with memory-pulse:
  cloudflare-workers  1.0.0  cloudflare-workers  7 rules (3 can block, 4 warn)     verified 2026-11-21   not installed
  fastapi             1.0.0  fastapi             7 rules (1 can block, 6 warn)     verified 2026-11-21   not installed
  llm-models          1.0.0  llm-apis            11 rules (0 can block, 11 warn)   verified 2026-11-21   not installed
  nextjs-app-router   1.0.0  nextjs              6 rules (1 can block, 5 warn)     verified 2026-11-21   not installed
  pydantic-v2         1.0.0  pydantic            9 rules (0 can block, 9 warn)     verified 2026-11-21   not installed
  python-stdlib       1.0.0  python              12 rules (3 can block, 9 warn)    verified 2026-11-21   not installed
  stripe              1.0.0  stripe              5 rules (0 can block, 5 warn)     verified 2026-11-21   not installed
  supabase-auth       1.0.0  supabase            4 rules (0 can block, 4 warn)     verified 2026-11-21   not installed

$ npx memory-pulse pack add python-stdlib
installed python-stdlib 1.0.0: 12 rules (3 can block, 9 warn) in .memory-pulse/packs/python-stdlib.jsonl
every rule warns and none blocks. The 3 rules the pack marks safe to block are turned on with memory-pulse pack add python-stdlib --block, or one at a time with memory-pulse pack rule python-stdlib/<rule> block

An installed pack is one file in your repository. Commit it and it is reviewed in a pull request like any other change. It is never written into invariants.jsonl and it adds no row to the ledger; pack remove deletes it.

A pack never blocks by default. Every rule of an installed pack is a warning. The guard hands it to the agent as context, after the ledger's own corrections, and the edit goes through:

memory-pulse: an installed rule pack has a warning for this edit. The edit is not blocked:
  warning pack python-stdlib, rule datetime-utcnow: datetime.utcnow() and datetime.utcfromtimestamp() are deprecated since Python 3.12 and return naive datetimes — instead: datetime.now(tz=datetime.UTC) and datetime.fromtimestamp(ts, tz=datetime.UTC). Source: https://docs.python.org/3/whatsnew/3.12.html

Blocking is a choice your project makes. pack add python-stdlib --block turns it on for the rules the pack marks safe to block (8 of the 61), and pack rule <pack>/<rule> block for one rule. A block then names the pack, the rule, what to use, the source and the way to change the rule:

memory-pulse guard: blocked.
  • pack python-stdlib, rule unittest-aliases: seven unittest.TestCase aliases, assertEquals, assertRegexpMatches and assertRaisesRegexp among them, were removed in Python 3.12 (matched /\bself\.(?:assertEquals|assertNotEquals|assertAlmostEquals|assertNotAlmostEquals|assertRegexpMatches|assertNotRegexpMatches|assertRaisesRegexp)\(/) — instead: assertEqual, assertNotEqual, assertAlmostEqual, assertRegex, assertNotRegex, assertRaisesRegex. Source: https://docs.python.org/3/whatsnew/3.12.html (read 2026-11-21)
This rule comes from an installed rule pack (.memory-pulse/packs/python-stdlib.jsonl), where this project turned blocking on, not from a correction, so guard allow does not apply. Change the text. If the rule is wrong for this project, change it here without editing the pack: memory-pulse pack rule python-stdlib/unittest-aliases warn (reports, does not block) or memory-pulse pack rule python-stdlib/unittest-aliases off. The choice is written to .memory-pulse/packs/overrides.jsonl.

A rule a pack marks safe to block does not count a line that only names the old API: a # or // comment, a string in Python, JavaScript or TypeScript code, any line of a Markdown file. It reads one line at a time, so a mention in the middle of a multi-line docstring is still matched. The mark is not a promise: packs/MEASURED.md has every rule's hits over 35 public repositories and over 110 near misses a review wrote. With every marked rule turned on, 2 of the 110 block (a project's own assertEquals, a local package named configparser); as installed, none do. Look before you turn a pack on. pack check is a dry run over your tree:

$ npx memory-pulse pack check python-stdlib .
pack check: python-stdlib 1.0.0, as the pack marks its rules, over .

unittest-aliases   can block  1 hit   seven unittest.TestCase aliases, assertEquals, assertRegexpMatches and assertRaisesRegexp among them, were removed in Python 3.12
  tests/test_a.py:3: self.assertEquals(1, 1)
datetime-utcnow    warn       1 hit   datetime.utcnow() and datetime.utcfromtimestamp() are deprecated since Python 3.12 and return naive datetimes
  src/clock.py:2: now = datetime.datetime.utcnow()

2 files read, 2 hits (1 from rules that can block, 1 from warn rules)
dry run: nothing was blocked and nothing was written

pack rule <pack>/<rule> off|warn|block|default changes one rule for this project and leaves the pack file as shipped, so a newer pack never fights a local choice. A pack rule's paths are globs (**/*.py, **/app/**/*.tsx, and !**/tests/** to leave a folder out); the same globs work in invariants.jsonl, where an entry without a * is still a prefix. pack check --installed --diff origin/main --ci checks the lines a branch adds, each file under its own path, and exits 1 when a rule that blocks here hits; the GitHub Action runs it on a pull request. With no base, --diff reads staged, unstaged and untracked changes, which is the form for a pre-commit hook.

Two things a pack cannot do quietly. A pack file that does not parse (a merge left conflict markers in it) is not applied, and every guard run says so and names pack verify; check --ci and pack check --ci fail on it. And a pattern of a pack that did not ship with the client runs under a time budget: one that uses 400 ms of processor time on an edit without an answer is skipped and reported, so a bad pattern cannot hang an edit. pack verify refuses such a pattern before pack add installs it. Writing a pack of your own: packs/CONTRIBUTING.md.

Commands

npx memory-pulse help           # every command and environment variable; also --help, -h
npx memory-pulse demo           # try it with nothing installed: one correction, three edits and the guard's verdict on each, in a temporary folder; --withdrawn, --replacement, --text "<edit>", --json
npx memory-pulse init           # set it up in a repository: plan first, one question (--yes skips it, --dry-run stops at the plan), install-hook per host found (--project), .memory-pulse/, then doctor
npx memory-pulse doctor         # check the wiring: one line per check, the fix after a FAIL, exit 1 when one fails; --json, --offline
npx memory-pulse serve          # the MCP server on stdio (the default with no command)
npx memory-pulse brief          # the SessionStart re-entry: the organized memory (scaffold) by default; with a key, --engine or --budget the engine brief
npx memory-pulse scaffold       # the organized memory: identity and rules, corrections in force, project state, recent findings, open threads; --section S, --all
npx memory-pulse telemetry show # the opt-in usage counts: exactly what would be sent once a day (on, off, reset)
npx memory-pulse prompt         # UserPromptSubmit hook: the corrections and decisions that bear on the prompt, injected as context
npx memory-pulse brief --budget 2000   # the richest tier that fits 2000 tokens, corrections first and whole
npx memory-pulse brief --offline  # the plain local list; an engine error falls back to the organized memory instead
npx memory-pulse remember <cause> <effect> [--kind correction] [--withdrawn T]... [--replacement T]... [--supersedes N] [--note "..."] [--tags a] [--pinned] [--scope agent]
npx memory-pulse before "<what you are about to do>"   # which corrections bear on the change, and whether the ledger already closed it; exact and local rungs need no engine
npx memory-pulse guard          # PreToolUse hook: blocks edits that reintroduce withdrawn terms (exit 2); --verbose names a non-JSON stdin
npx memory-pulse guard allow "<term>" --path <prefix> "<reason>"   # record a false block as an override
npx memory-pulse check --ci     # Memory CI: one of three verdicts for a change, from files you own
npx memory-pulse verify         # row chain, last engine seal, this machine's anchor and writer marks; on a break: the first bad row and the command that fixes it; exit 2 if any fails; --strict also fails on unmarked rows; --json for machines
npx memory-pulse append --json '{"cause":"...","effect":"..."}'   # the one way for another tool to write a row: lock, t, prev and hash done here; also `-` for stdin, --scope agent
npx memory-pulse repair --quarantine-tail   # move a tail of rows that fail on their own aside, byte-for-byte, recorded; nothing deleted (also unchained rows this machine did not write)
npx memory-pulse repair --adopt-quarantine <file> --yes   # re-append quarantined rows through the writer after a person has reviewed them
npx memory-pulse seal accept "<why>"   # a stale seal over rows that verify: record the decision, set the old seal aside; refused on a broken chain
npx memory-pulse anchor         # how far this machine's anchor reaches into the ledger, and which rows its writer did not write; --scope agent, --json
npx memory-pulse anchor accept "<why>"   # after a restore, or rows from another machine or an older client: record that you trust the ledger as it stands
npx memory-pulse state          # where this ledger stands: rows, in force, rolled back, heads, seal, branch
npx memory-pulse state export > agent.rain   # the .rain state capsule: rows verbatim, chain head, set head, seal, invariants, one digest
npx memory-pulse state import agent.rain     # on another machine: verify, install byte-identical (or fast-forward), record where it came from
npx memory-pulse state branch exp --at 12 --out exp.rain   # a capsule cut at row 12, named exp; the source ledger is untouched
npx memory-pulse state merge exp.rain        # carry a diverged branch's findings across once; conflicts are named, never resolved quietly
npx memory-pulse state rollback --to 12 "<why>"   # one appended row; rows after 12 stay on record, out of force
npx memory-pulse state verify agent.rain     # verify a capsule without touching any ledger; exit 2 on failure
npx memory-pulse team setup     # share the committed ledger through git: writes the .gitattributes lines (commit them) and sets this clone's merge driver; every clone runs it once
npx memory-pulse team           # whether this clone merges the ledger through the driver; exit 2 when the attribute is there and the driver is not
npx memory-pulse team resolve   # run the driver's merge on a ledger git left unmerged, and stage a clean result
npx memory-pulse merge-driver <base> <ours> <theirs> <path>   # the git merge driver team setup configures; git calls it on merge, pull and rebase
npx memory-pulse board post --from blue --to science --kind request --title "audit stage 12" --body "..."   # the shared agent message board
npx memory-pulse board read --as science      # unread messages for an agent; also reply, ack, thread, html (the board view), verify
npx memory-pulse board verdict 4 refuted --as coder --defect "..."   # answer a claim; a refutation names its defect; claims lists every claim and its standing
npx memory-pulse board sync on --project <id>   # push the board after every write; the console shows each agent's open asks and every message (board push / status by hand)
npx memory-pulse login          # connect this machine to a hosted project: approve it in the console and the key is saved for you, no copying; turns board sync on
npx memory-pulse logout         # remove the saved key from this machine (revoke it in the console to end it everywhere)
npx memory-pulse capture        # PostToolUse hook (installed by install-hook): one observation per tool call into the session's episode, local, no model
npx memory-pulse consolidate    # Stop / SessionEnd hook: fail-then-pass becomes a fix and still-failing an open thread, each pointing at its evidence
npx memory-pulse weights        # what each memory did: check outcomes shown vs. sat out at random; retired ones marked
npx memory-pulse adopt          # the corrections you already keep (Claude Code feedback memories, CLAUDE.md, AGENTS.md, rules files), shown; --yes enforces them
npx memory-pulse prereg seal exp-7 --spec spec.md --file run.py --assert 'shipped/params.py::THRESHOLD = 0.25' --forbid 'train\.py .*--n (4096|8192)'   # pre-registered research: assertions checked against the file that defines the value, then one row with the clock's stamp and each sha256; the guard blocks the forbidden command until settle
npx memory-pulse prereg verify exp-7   # the evaluator's first step: re-hash every sealed file; unchanged or CHANGED with both hashes; exit 2 if any changed
npx memory-pulse prereg settle exp-7 --verdict KEEP --file verdict.md   # one row with the verdict file's sha256, citing the seal row; the forbid patterns stop blocking
npx memory-pulse prereg list    # open and settled seals: id, row, stamp, verdict; --json
npx memory-pulse ran 'train\.py .*--n (4096|8192)' --since 12   # the recorded shell commands that match, with time and session, since the seal at row 12 (from capture's episodes)
npx memory-pulse now            # the machine clock as the two stamps a record uses; paste a record's stamp from it, never type one; --json
npx memory-pulse lint [--ci]    # do CLAUDE.md / AGENTS.md / .claude/rules still state a value the ledger retired?
npx memory-pulse pack list      # rule packs bundled with the client: prepared rules for one stack, each with the vendor page it rests on; which are installed
npx memory-pulse pack show python-stdlib   # every rule: what it catches, what to use instead, severity, source URL, the date the source was read
npx memory-pulse pack add python-stdlib    # install it as .memory-pulse/packs/python-stdlib.jsonl (commit it); a path to a pack file works too. Every rule warns; none blocks
npx memory-pulse pack add python-stdlib --block   # turn blocking on for the rules the pack marks safe to block
npx memory-pulse pack check python-stdlib [dir]   # dry run over a tree before turning it on: hits per rule with file and line, nothing blocked
npx memory-pulse pack check --installed --diff origin/main --ci   # the installed packs over the lines a branch adds; exit 1 when a rule that blocks here hits. With no base: staged, unstaged and untracked changes
npx memory-pulse pack rule python-stdlib/unittest-aliases block   # one rule to block, warn, off or default for this project; the pack file is not edited
npx memory-pulse pack remove python-stdlib   # delete the file; its rules stop applying
npx memory-pulse pack verify ./my-pack.jsonl   # lint a pack file before sharing it
npx memory-pulse report         # correction re-violation scoreboard, computed locally
npx memory-pulse bench          # instant measured metrics on YOUR ledger
npx memory-pulse stats          # your telemetry capsule, signature verified by the engine
npx memory-pulse badge          # README badge markdown from your own signed numbers
npx memory-pulse install-hook   # eight hooks for Claude Code (idempotent); --no-capture writes four; --codex targets Codex; --cursor targets Cursor; --project commits them; --ambient adds the observer
npx memory-pulse mode [agent|soul|deliberate]   # show or set the mode
npx memory-pulse identity "<name>, <role>; <stance>"   # pin the agent's self on the agent ledger
npx memory-pulse soul "<persona, voice, values>"   # soul mode: the agent's soul; confirm / reject held changes; history / revert; import / export --openclaw
npx memory-pulse user "<who you are>"   # soul mode: the agent's notes about the person it works with
npx memory-pulse taint          # PreToolUse hook that mode soul installs: marks a session that reads outside content
npx memory-pulse lesson         # the lesson bank the identity block prints, with where each lesson held; --held-out lists what was left out and why
npx memory-pulse lesson probe 41 held --where billing-api   # record that a carried lesson held (or failed) there: the evidence the bank ranks by
npx memory-pulse lesson freeze  # pin the bank you reviewed; every brief prints it until the next freeze or `lesson thaw`
npx memory-pulse handoff        # PreCompact hook: record what the session was doing, from the transcript on stdin
npx memory-pulse ambient        # Stop hook (agent mode): decision, preference, lesson or correction from the last turn
npx memory-pulse observe        # UserPromptSubmit hook: a prompt shaped like a correction is recorded with both terms

Undo: /plugin uninstall memory-pulse inside Claude Code; delete the memory-pulse entries under hooks in ~/.claude/settings.json or ~/.codex/hooks.json; claude mcp remove memory-pulse; delete .memory-pulse/ in a repository; delete ~/.memory-pulse/agent/. Each step leaves the ledgers in place except the last two.

The plugin also ships a skill at skills/memory-pulse/SKILL.md that teaches the agent when to pulse, how to record corrections with withdrawn terms, and how to respect the guard. The npm tarball ships server.mjs, python/, this file and the licence; the skill, the hooks and the Action live in the repository.

What the brief tells you before it tells you anything

Every engine-backed brief opens with one line of provenance, so a session can tell whether its memory loaded whole, truncated, or not at all:

memory-pulse: loaded 852 events from .memory-pulse/events.jsonl · sha256 1a2b3c4d5e6f · 2 binding corrections (10 withdrawn terms) · 1 superseded · ⚠ 1 malformed line skipped: 544 · memory key resumed (+3 new) · tier brief, 5,153 chars

The local render (brief --offline, or the engine unreachable) opens with memory-pulse: engine unreachable — local render from N events and carries no sha256 and no binding count; lint prints the provenance line offline.

Every CORRECTIONS line cites its ledger record as … -> effect (t12) — note, so a correction is evidence the agent can point at. recall and the guard name the same t. The engine's brief cites each correction with its note and prints no withdrawn terms, and it lists superseded rows; the offline render prints withdrawn: a, b → replacement and filters superseded rows.

Tiers, from the engine's src/disclose.js and src/tokens.js read 2026-09-09: index 1,800 chars, brief 6,000, notes 20,000, full 120,000. With --budget N the richest tier whose ceiling fits N tokens at 3.8 chars each is chosen, so brief needs 1,579 tokens, notes 5,264 and full 31,579; --budget 1500 gives the index tier. MEMORY_PULSE_BRIEF_BUDGET and MEMORY_PULSE_BRIEF_TIER set the same for the hook. The brief costs context: 5,153 chars, about 1,350 tokens, on the 852-event ledger above, 2026-09-01.

An AT RISK block appears after the guard has blocked the same correction twice; before "<what you are about to do>" names the corrections that bear on a change before you make it, and the rows that record the same idea as already tried, with the closed or failed ones marked.

report and the AT RISK block label a rule as noisy when the guard blocked it 5 times or more, in 3 directories or more, and its term is one ordinary word. The label gives the two ways out on one line: retire the row with remember ... --supersedes <t>, or scope the term with guard allow. A value or a phrase blocked that often is a correction doing its work and gets no label.

Lint: the rules a session loads, checked against the ledger

Governance files drift. A CLAUDE.md written in June still says the price is $49 after the ledger retired it in August, and every new session loads the stale rule with full confidence. lint runs the guard's check over the files a session will read and gives each of them one of the three verdicts. It covers CLAUDE.md, AGENTS.md, .claude/CLAUDE.md, .claude/rules/, .cursorrules, .cursor/rules/, .github/copilot-instructions.md, .codex/AGENTS.md, Muse Code's .agents/AGENTS.md and .agents/memory/, .memory-pulse/invariants.jsonl, and any paths you pass:

Documentation truncated — see the full README on GitHub.

Reviews

No reviews yet

Be the first to review this server!