@memmo/cli 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +40 -0
  3. package/dist/index.js +1957 -0
  4. package/package.json +59 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Benjamin Beguin
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,40 @@
1
+ # memmo
2
+
3
+ Long-term memory for AI coding agents. This CLI connects a repository to
4
+ [Memmo](https://memmo.dev) and runs the MCP server + hooks that give Claude Code
5
+ your team's approved memory before it acts.
6
+
7
+ ## Install
8
+
9
+ ```bash
10
+ npm install -g @memmo/cli
11
+ ```
12
+
13
+ ## Usage
14
+
15
+ ```bash
16
+ memmo login # once per machine; stores a token in ~/.memmo
17
+ memmo init # in a repo: registers it from the git remote, wires Claude Code, offers a scan
18
+ memmo status # check the setup
19
+ memmo scan # propose starter memories (drives your local Claude Code)
20
+ memmo decision "…" # record a decision as memory
21
+ memmo sync # write approved memories into a managed CLAUDE.md block
22
+ ```
23
+
24
+ No per-repo config file: the repo is resolved from `git remote get-url origin`.
25
+ `init` writes `.mcp.json` (the server runs via `npx -y @memmo/cli mcp`, so teammates
26
+ need no global install), a `CLAUDE.md` section, and Claude Code hooks
27
+ (SessionStart · UserPromptSubmit · PreToolUse · SessionEnd).
28
+
29
+ ## MCP tools
30
+
31
+ - `get_repo_context()` — the session briefing: rules, architecture, commands, risks
32
+ - `search_memory(query)` — approved memories, ranked by meaning
33
+ - `get_relevant_warnings(files)` — risks for the files about to change
34
+ - `propose_memories([...])` — record durable knowledge (goes to the inbox); `supersedes` corrects an existing memory
35
+ - `record_session_summary(...)` — submit what you did; Memmo proposes new memories
36
+
37
+ Point at a self-hosted backend with `MEMMO_API_URL`. For Claude Desktop (no
38
+ working directory) pass `memmo mcp --repo <repoId>`.
39
+
40
+ MIT licensed.