Repository navigation
Releases
v0.1.0
rem v0.1.0
First release. rem is review-first memory for coding agents. It gives each new agent session a short memory context, lets you capture notes, and turns past sessions into memory pages that you review before any session loads them.
What is in it
- Session-start hook. Injects the head of
MEMORY.md(at most 4 KB, the current project's group first) and a list of recent sessions from AgentsView: the last 7 days, at most 12. Anything missing degrades to empty context, and the hook still exits 0. rem add. Writes one note tomemory/_inbox/. The note is searchable at once and is never injected.rem search. Searches the vault. Inbox notes are labeled unreviewed.rem dream --v2. Reads recent AgentsView sessions with a model through theclaudeCLI and writes memory pages onto arem-dream/<date>branch for you to review. It never writes tomain.--dry-runlists what it would read and runs no model.rem migrate. Moves a vault from before this format toMEMORY.mdon arem-migrate/<date>branch. It makes no model call, never writes tomainand never pushes.knowledge-sync, also run byrem sync. A guarded commit, merge and push for a git-backed vault, then a memsearch reindex if memsearch is installed.
rem does not record sessions, runs no daemon and installs no schedule. Installing copies files. Nothing runs until you register the hook.
Agent Memory Repo format
The vault follows the Agent Memory Repo format. MEMORY.md at the vault root is the entry point. Pages live in memory/.
Nothing reaches MEMORY.md on main without a merge you make. rem add writes only to memory/_inbox/. A dream writes to a branch.
The default vault is ~/agent-memory. Install and the hook do not create it. The first rem command that writes to it creates it and prints the path. A KNOWLEDGE_DIR that already has files is used as it is.
A vault from before this format, with memory/_index.md, keeps working. Run rem migrate to move it, then review the branch it prints and merge it.
Install
Pick one.
Release binary. Download rem_<version>_<os>_<arch>.tar.gz from Releases (macOS and Linux, amd64 and arm64), unpack it, and put rem and knowledge-sync on your PATH. Then write the hook files:
rem installgo install. The binaries carry the hook files, so this needs no checkout:
go install github.com/yourconscience/rem/cmd/rem@latest
go install github.com/yourconscience/rem/cmd/knowledge-sync@latest
rem installFrom a checkout. This builds both binaries and copies the hook files itself:
make install # BINDIR=~/.local/bin, REM_HOME=~/.local/share/remInstalling only copies files. rem hook session-start prints the command to register next. The README shows how to register it with tackroom or by hand.
Requirements
- macOS or Linux.
- Python 3 for the hook. It uses only the standard library.
- git, if you dream or sync. The vault must be a git repository with a
mainbranch. - Go 1.26 or newer, only to build from source.
Optional pieces
| Piece | Used for | Without it |
|---|---|---|
| AgentsView | Recent sessions in the hook; the transcripts rem dream --v2 reads |
The hook injects only the memory index. rem dream --v2 stops with an error |
| memsearch | Semantic search over the vault | rem search shows inbox matches only, and fails when there are none. knowledge-sync skips the reindex |
Claude Code CLI (claude) |
Runs the dream | rem dream --v2 cannot run |
The dream uses your Claude subscription login. rem removes ANTHROPIC_API_KEY from the runner's environment so the run is not billed to the API.
Known limits
- No real dream was run after the move to the Agent Memory Repo format. The changed analyzer and organizer prompts are untested against a model. Read a dream's branch before you merge it.
- The dream runner is
claudeonly. - The hook replies in Claude Code's
hookSpecificOutput.additionalContextformat. A harness that reads another field gets no context. - memsearch does not index the root
MEMORY.md. rem addleaves an uncommitted note, and the Agent Memory Repo skill refuses to write to a repo with uncommitted changes. Commit the note or runrem syncfirst.