Skip to content

Memro v0.1.2

Latest

Choose a tag to compare

@github-actions github-actions released this 21 Nov 07:44
· 20 commits to main since this release
4b0ae05

Added

  • memro init: rules for your agents with no account: adds the hooks to every detected tool and starts .memro/rules.md; the hooks then save stated rules, show them at each prompt and warn on edits, without a Memro account or server.
  • Edits that break a rule get a warning: a "never…" rule that names something in backticks (never use Intl in cart code) is checked on every edit and command in Claude Code and Codex; an edit that uses it gets a note with the rule, never a block. memro rules marks the rules that are checked.
  • Rules live in the repo, in .memro/rules.md, and memro rules manages them: rules the hooks catch ("never…", "always…") are appended to .memro/rules.md instead of your Memro account, so you see each one in git diff, fix it by editing a line and share it by committing the file. npx memro-cli rules lists them, rules edit <n> <text> and rules delete <n> change one, and rules import moves rules saved in your account earlier into the file. Rules already in your account keep reaching agents until imported (ADR 0037).
  • Hooks remember the rules you state, and show them: when a prompt says "never…", "always…", "from now on…" or "as a rule…", the prompt hook saves that sentence and the next one to your Memro account as Rule for <repo>: …, and every later prompt in that repo, in any tool, is shown the repo's saved rules. The first edit of a file also shows what Memro holds about it (similarity ≥ 0.4). In the relay benchmark with 300 facts in memory, this took Memro from 6/10 to 10/10 traps avoided (a notes file: 9/10).
  • memro land: worktree branches land one at a time: run in a git worktree, it waits its turn on a land/<repo> lease, rebases the branch on the main checkout's branch and fast-forwards it. On a conflict it stops, keeps its turn, and lists the commits that landed on the conflicted files, so the agent knows what the other change was for. In the launch benchmark, 4 of 5 worktree branches conflicted at merge time every run.
  • Busy files free up sooner, and refused agents retry: each edit holds its file for 45 seconds (renewed by the next edit, MEMRO_HOOK_HOLD_SECONDS) instead of the whole turn, and a refused agent is told to finish the rest of its task and retry rather than stop and ask the user. In the launch benchmark, turn-long holds doubled run time and every lost task was an agent that gave up.
  • Coordination hooks for Cursor, Gemini CLI and OpenCode: memro connect adds the same file claims, git guard, status and handoffs to Cursor (~/.cursor/hooks.json), Gemini CLI (~/.gemini/settings.json) and OpenCode (a plugin in ~/.config/opencode/plugins/). What each tool can show its agent differs: Gemini CLI gets briefings and messages but no notes on edits; Cursor and OpenCode get refusals but no briefings or notes; OpenCode can't be woken by a message.
  • Handoff notes: at the end of each turn the hooks hand the files the agent changed off with a note (its session, task and the start of its last message), and the next agent to edit one of those files is shown the note once. Notes are kept 30 days with the other coordination history.
  • Agents see each other's tasks before they start: when a prompt is submitted, the Claude Code and Codex hooks record its first line as the agent's task (memro agents shows it) and brief the agent on who else works in the repo, what they're doing and which files they hold, flagging files the prompt names that someone holds. The first ~80 characters of each prompt are stored in the account as the task label.
  • A window's MCP claims and its hooks' claims are one holder: the coordination MCP tools take an optional holder_session, which the Memro hooks fill in with the window's session (claude-code:<id>, codex:<id>). Before, every window's MCP calls shared the tool's session, so two windows could claim over each other and a window's own folder claim was refused when its hook held a file inside it.
  • Shell commands and git are coordinated too: the Claude Code and Codex hooks claim files a shell command writes or deletes (>, >>, tee, sed -i, rm) like edits, and refuse git stash, reset --hard, checkout, restore, switch and clean -f while another agent works in the same checkout, since they would throw away its uncommitted changes. Every wait, refusal and warning is logged to ~/.memro/hooks/log.jsonl. Codex asks to trust the changed hook again in /hooks.
  • memro connect makes Claude Code and Codex claim each file before editing it (ADR 0019 §7): a hook claims the file in Memro before every Edit or Write and refuses the edit when another agent or window holds it, so coordination no longer depends on the model remembering to call claim_task. Each Claude Code window is its own holder, files are named <repo>/<path> so every worktree agrees, and a window's claims are released when it closes. --no-hooks skips it. Codex gets the same hooks in hooks.json (every file in an apply_patch is claimed); trust them once with /hooks in Codex.
  • memro agents and memro send: the same hooks report each Claude Code window's status (working, waiting for you, idle), and agents lists every agent with its status and the files it holds. send <agent> <message> messages an agent; Claude Code reads it at its next prompt, or is woken by it when it stops. An idle agent in a herdr pane on the same machine is prompted through herdr straight away. Files are held for one turn (released when the agent stops), an edit to a busy file waits up to 60 seconds for it, and an agent in another worktree gets a merge-conflict warning instead of a refusal.
  • MCP recall takes a token_budget: it returns the best-ranked memories that fit in about that many tokens (estimated at ~4 characters per token), skips superseded and duplicate memories, and emits compact JSON. Without it, recall behaves as before.

Fixed

  • MCP recall shows which memories are out of date: it ranks a memory below a newer one that contradicts it and marks it with superseded_by. Before, the tool dropped the flag and did not ask for conflict resolution. The Python SDK's SearchResult now keeps is_superseded and superseded_by.
  • min_score now filters irrelevant results (ADR 0033): search results include similarity, the cosine similarity to the query, and the Python, JS and Go SDKs apply min_score to it. Before, min_score filtered the rank-based fused score, which is above 0.4 for any of the top 16 candidates however unrelated.
  • Sentiment and negation words match whole words only (ADR 0033): "badge" no longer counts as "bad", nor "likely" or "dislike" as "like", which had marked unrelated memories as contradicting.
  • Far fewer false contradictions in search: the negation and sentiment rules now need the two statements to make the same claim (most content words shared), so ordinary chat messages that happen to share a word and contain "not" no longer demote each other (15 → 1 of 153 message pairs on one LongMemEval question). "Never use npm" still replaces "we use npm".
  • Fewer stale answers and duplicates in search: contradiction detection now matches "X is Y" with "X: Y", understands "X moved/switched [from A] to B" (only against a where/when value of the same kind, so "Ana moved to the Berlin office" leaves "Ana is in the design team" alone), treats invoice/order/ticket numbers as identifiers rather than changed quantities, and marks near-duplicate restatements as superseded (except for counting questions). The save-time linker (GRAPH_WRITE_EDGES, still off by default) also finds candidates by shared words, not only entity tags, and links duplicates of non-episodic memories. On the new evolution benchmark (TestEvolutionBench): unresolved updates 4/9 → 0/9, duplicates left 2/2 → 0/2, false updates 0/7.
  • Memory evolution can be re-run safely: Evolve (POST /mee/evolve, the mee_evolve tool) consolidates each episodic memory once, so repeated runs no longer add duplicate summaries of the same memories. One run folds in at most the 50 newest unconsolidated episodes and compares at most the 300 newest facts for contradictions, so its cost no longer grows with the agent's whole history.

Changed

  • Deleting a memory archives it (ADR 0032): DELETE /memory/{id} and the delete_memory tool move it out of search and listings, and POST /memory/restore/{id} brings it back. ?purge=true removes it for good, together with the content kept in its history.

Added

  • Agents can correct their memories (ADR 0032): PUT /memory/{id} and the update_memory MCP tool save a corrected version and archive the old one, with the reason in both histories; delete_memory takes a reason. The Python, JS and Go SDKs add update_memory/updateMemory/UpdateMemory, plus restore and history.
  • Memory history and provenance (ADR 0032): GET /memory/history/{id} lists every change to a memory (who, from where, content before and after, why). Memories record their source (mcp, dashboard, api, import:pdf…) and author_type; the MCP server identifies itself with X-Memro-Source: mcp, and batch writes are audited per memory.
  • Claude Code plugin (integrations/claude-code, marketplace memrohq/memro): the Memro MCP server, with the API key asked at install and kept in the keychain, plus a SessionStart hook that recalls the project's memories and adds the Memro note at the start of every session.

Added

  • memro-cli doctor: for each tool, the Memro config it uses (project over global), where its key comes from, whether the server accepts it and lists its tools, and whether the tool has the Memro note. Exits 1 when a tool needs attention.
  • memro-cli --env-key: Claude Code and Codex read the key from $MEMRO_API_KEY instead of storing it, so project config files can be committed.
  • memro-cli Cursor rule: project setup adds .cursor/rules/memro.mdc (always applied).

Added

  • memro-cli and GitHub Copilot: connect adds the Memro note for VS Code's Copilot Chat (~/.copilot/instructions/memro.instructions.md, or .github/instructions/memro.instructions.md with --project), so Copilot recalls and remembers without being asked.

Fixed

  • memro-cli and Codex project setups: Codex reads a project's .codex/config.toml only in folders you've trusted in Codex. doctor now reports an untrusted folder (and that Codex falls back to the global config), and connect --project says to trust the folder.

Changed

  • Package author and the contact addresses in the docs are now subal@memro.co.

Packages: memro-cli 0.1.8, memro 0.2.1, memro-mcp 0.2.2, @memro/sdk 0.2.1.

Install

  • Docker: ghcr.io/memrohq/memro:0.1.2 and ghcr.io/memrohq/memro-dashboard:0.1.2 (signed with Sigstore)
  • Go: go get github.com/memrohq/memro/sdk/go@v0.1.2
  • Connect your AI tools: npx memro-cli connect