projectmem 0.3.4__tar.gz → 0.3.6__tar.gz
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.
- {projectmem-0.3.4 → projectmem-0.3.6}/CHANGELOG.md +52 -0
- {projectmem-0.3.4 → projectmem-0.3.6}/PKG-INFO +98 -24
- {projectmem-0.3.4 → projectmem-0.3.6}/README.md +97 -23
- {projectmem-0.3.4 → projectmem-0.3.6}/TUTORIAL.md +1 -1
- {projectmem-0.3.4 → projectmem-0.3.6}/llms.txt +6 -5
- {projectmem-0.3.4 → projectmem-0.3.6}/pyproject.toml +2 -1
- {projectmem-0.3.4 → projectmem-0.3.6}/src/projectmem/__init__.py +1 -1
- {projectmem-0.3.4 → projectmem-0.3.6}/src/projectmem/cli.py +19 -3
- projectmem-0.3.6/src/projectmem/commands/agent_hooks.py +201 -0
- {projectmem-0.3.4 → projectmem-0.3.6}/src/projectmem/commands/dashboard.py +2 -1
- {projectmem-0.3.4 → projectmem-0.3.6}/src/projectmem/commands/init.py +14 -15
- {projectmem-0.3.4 → projectmem-0.3.6}/src/projectmem/commands/precheck.py +88 -24
- projectmem-0.3.6/src/projectmem/edit_hook.py +349 -0
- {projectmem-0.3.4 → projectmem-0.3.6}/src/projectmem/mcp_server.py +160 -81
- {projectmem-0.3.4 → projectmem-0.3.6}/src/projectmem/models.py +8 -1
- projectmem-0.3.6/src/projectmem/search.py +78 -0
- projectmem-0.3.6/src/projectmem/session_start.py +57 -0
- {projectmem-0.3.4 → projectmem-0.3.6}/src/projectmem/staleness.py +92 -19
- {projectmem-0.3.4 → projectmem-0.3.6}/src/projectmem/storage.py +47 -3
- {projectmem-0.3.4 → projectmem-0.3.6}/src/projectmem/summary.py +36 -31
- {projectmem-0.3.4 → projectmem-0.3.6}/tests/test_agent_guidance.py +33 -17
- projectmem-0.3.6/tests/test_agent_hooks.py +127 -0
- projectmem-0.3.6/tests/test_edit_hook.py +542 -0
- {projectmem-0.3.4 → projectmem-0.3.6}/tests/test_instructions_refresh.py +1 -0
- {projectmem-0.3.4 → projectmem-0.3.6}/tests/test_log.py +2 -1
- {projectmem-0.3.4 → projectmem-0.3.6}/tests/test_mcp_server.py +128 -2
- projectmem-0.3.6/tests/test_models.py +20 -0
- projectmem-0.3.6/tests/test_precheck_lessons.py +131 -0
- projectmem-0.3.6/tests/test_session_issue.py +120 -0
- projectmem-0.3.6/tests/test_session_start.py +141 -0
- {projectmem-0.3.4 → projectmem-0.3.6}/tests/test_staleness_repair.py +97 -0
- {projectmem-0.3.4 → projectmem-0.3.6}/tests/test_summary.py +168 -3
- projectmem-0.3.6/tests/test_tool_replies.py +123 -0
- projectmem-0.3.4/src/projectmem/search.py +0 -44
- {projectmem-0.3.4 → projectmem-0.3.6}/.gitignore +0 -0
- {projectmem-0.3.4 → projectmem-0.3.6}/LICENSE +0 -0
- {projectmem-0.3.4 → projectmem-0.3.6}/SECURITY.md +0 -0
- {projectmem-0.3.4 → projectmem-0.3.6}/src/projectmem/commands/__init__.py +0 -0
- {projectmem-0.3.4 → projectmem-0.3.6}/src/projectmem/commands/attempt.py +0 -0
- {projectmem-0.3.4 → projectmem-0.3.6}/src/projectmem/commands/auto_capture.py +0 -0
- {projectmem-0.3.4 → projectmem-0.3.6}/src/projectmem/commands/backfill.py +0 -0
- {projectmem-0.3.4 → projectmem-0.3.6}/src/projectmem/commands/brief.py +0 -0
- {projectmem-0.3.4 → projectmem-0.3.6}/src/projectmem/commands/context.py +0 -0
- {projectmem-0.3.4 → projectmem-0.3.6}/src/projectmem/commands/decision.py +0 -0
- {projectmem-0.3.4 → projectmem-0.3.6}/src/projectmem/commands/doctor.py +0 -0
- {projectmem-0.3.4 → projectmem-0.3.6}/src/projectmem/commands/export.py +0 -0
- {projectmem-0.3.4 → projectmem-0.3.6}/src/projectmem/commands/fix.py +0 -0
- {projectmem-0.3.4 → projectmem-0.3.6}/src/projectmem/commands/global_cmd.py +0 -0
- {projectmem-0.3.4 → projectmem-0.3.6}/src/projectmem/commands/hooks.py +0 -0
- {projectmem-0.3.4 → projectmem-0.3.6}/src/projectmem/commands/instructions.py +0 -0
- {projectmem-0.3.4 → projectmem-0.3.6}/src/projectmem/commands/log.py +0 -0
- {projectmem-0.3.4 → projectmem-0.3.6}/src/projectmem/commands/map.py +0 -0
- {projectmem-0.3.4 → projectmem-0.3.6}/src/projectmem/commands/note.py +0 -0
- {projectmem-0.3.4 → projectmem-0.3.6}/src/projectmem/commands/plan.py +0 -0
- {projectmem-0.3.4 → projectmem-0.3.6}/src/projectmem/commands/project.py +0 -0
- {projectmem-0.3.4 → projectmem-0.3.6}/src/projectmem/commands/regenerate.py +0 -0
- {projectmem-0.3.4 → projectmem-0.3.6}/src/projectmem/commands/score.py +0 -0
- {projectmem-0.3.4 → projectmem-0.3.6}/src/projectmem/commands/search.py +0 -0
- {projectmem-0.3.4 → projectmem-0.3.6}/src/projectmem/commands/show.py +0 -0
- {projectmem-0.3.4 → projectmem-0.3.6}/src/projectmem/commands/stats.py +0 -0
- {projectmem-0.3.4 → projectmem-0.3.6}/src/projectmem/commands/visualize.py +0 -0
- {projectmem-0.3.4 → projectmem-0.3.6}/src/projectmem/commands/watch.py +0 -0
- {projectmem-0.3.4 → projectmem-0.3.6}/src/projectmem/commands/wrap.py +0 -0
- {projectmem-0.3.4 → projectmem-0.3.6}/src/projectmem/global_memory.py +0 -0
- {projectmem-0.3.4 → projectmem-0.3.6}/src/projectmem/glyphs.py +0 -0
- {projectmem-0.3.4 → projectmem-0.3.6}/src/projectmem/project_registry.py +0 -0
- {projectmem-0.3.4 → projectmem-0.3.6}/src/projectmem/redaction.py +0 -0
- {projectmem-0.3.4 → projectmem-0.3.6}/src/projectmem/resolver.py +0 -0
- {projectmem-0.3.4 → projectmem-0.3.6}/src/projectmem/structure.py +0 -0
- {projectmem-0.3.4 → projectmem-0.3.6}/tests/conftest.py +0 -0
- {projectmem-0.3.4 → projectmem-0.3.6}/tests/test_attempt.py +0 -0
- {projectmem-0.3.4 → projectmem-0.3.6}/tests/test_auto_capture.py +0 -0
- {projectmem-0.3.4 → projectmem-0.3.6}/tests/test_client_config_discovery.py +0 -0
- {projectmem-0.3.4 → projectmem-0.3.6}/tests/test_dashboard.py +0 -0
- {projectmem-0.3.4 → projectmem-0.3.6}/tests/test_global_mcp.py +0 -0
- {projectmem-0.3.4 → projectmem-0.3.6}/tests/test_hooks_path.py +0 -0
- {projectmem-0.3.4 → projectmem-0.3.6}/tests/test_init.py +0 -0
- {projectmem-0.3.4 → projectmem-0.3.6}/tests/test_init_ux.py +0 -0
- {projectmem-0.3.4 → projectmem-0.3.6}/tests/test_location_parsing.py +0 -0
- {projectmem-0.3.4 → projectmem-0.3.6}/tests/test_plan.py +0 -0
- {projectmem-0.3.4 → projectmem-0.3.6}/tests/test_redaction.py +0 -0
- {projectmem-0.3.4 → projectmem-0.3.6}/tests/test_search.py +0 -0
- {projectmem-0.3.4 → projectmem-0.3.6}/tests/test_showoff.py +0 -0
- {projectmem-0.3.4 → projectmem-0.3.6}/tests/test_staleness_performance.py +0 -0
- {projectmem-0.3.4 → projectmem-0.3.6}/tests/test_structure.py +0 -0
- {projectmem-0.3.4 → projectmem-0.3.6}/tests/test_v014_features.py +0 -0
- {projectmem-0.3.4 → projectmem-0.3.6}/tests/test_visualize.py +0 -0
- {projectmem-0.3.4 → projectmem-0.3.6}/tests/test_watch.py +0 -0
- {projectmem-0.3.4 → projectmem-0.3.6}/tests/test_windows_console_encoding.py +0 -0
- {projectmem-0.3.4 → projectmem-0.3.6}/tests/test_windows_hooks_and_context.py +0 -0
|
@@ -1,5 +1,57 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.3.6
|
|
4
|
+
|
|
5
|
+
**Your agent sees a file's lessons before it edits it, precheck shows every past failure, and parallel sessions keep to their own issues.** Every change in this release was reported, measured and contributed by [@bigfree](https://github.com/bigfree) (Adam Mikó).
|
|
6
|
+
|
|
7
|
+
### Added
|
|
8
|
+
|
|
9
|
+
- **An edit hook for Claude Code and Codex CLI.** Agents were asked to call `precheck_file` before editing a file. On the reporter's project they did so before 11% of 8,355 edits. `pjm-edit-hook` runs before every edit instead and gives the agent that file's open issues, failed and partial attempts, and decisions. It adds nothing for a file without lessons, shows each file once per session (again only if its lessons change), keeps subagents separate, resets after compaction, maps Claude Code worktrees back to the main checkout, and never blocks an edit. Install it once with `pjm hooks install --agent claude-code` or `--agent codex`. It takes effect in the next session, and Codex asks you to trust it first. `--project` writes the project's own config instead of your user config, and `pjm hooks uninstall --agent …` removes it. ([#37](https://github.com/riponcm/projectmem/issues/37))
|
|
10
|
+
|
|
11
|
+
- **`start_session()` loads a session in one call.** It returns the rules, the memory summary and the current plan (without Ideas, Someday / maybe and Shipped), and the project map only while it is still the init placeholder. The server instructions and the `CLAUDE.md` / `AGENTS.md` bridge now name it, and independent projectmem calls may run in parallel. The older read tools are unchanged. ([#34](https://github.com/riponcm/projectmem/issues/34))
|
|
12
|
+
|
|
13
|
+
- **`precheck_files(file_paths)`** checks several files in one call and one pass over the log. ([#32](https://github.com/riponcm/projectmem/issues/32))
|
|
14
|
+
|
|
15
|
+
### Fixed
|
|
16
|
+
|
|
17
|
+
- **Parallel sessions wrote onto each other's issues.** `record_attempt` and `record_fix` without an `issue_id` used the newest issue, so with two agents on one project one agent's fix could close the other's issue. Through MCP, while several issues are open, both now refuse and list the open issues. With one open issue nothing changes, and the CLI is unchanged. ([#33](https://github.com/riponcm/projectmem/issues/33))
|
|
18
|
+
|
|
19
|
+
- **`precheck_file` missed most earlier failures.** An attempt logged without its own location now counts for its issue's file, partial attempts are lessons with their own mark, and failed or partial attempts no longer drop out after 30 days (churn and decisions keep the window). When more lessons exist than are shown, the overflow line names the issues that hold them. On the reporter's project, precheck showed the earlier failures for 72.5% of cases instead of 33.3%. ([#32](https://github.com/riponcm/projectmem/issues/32))
|
|
20
|
+
|
|
21
|
+
- **The summary's Key files listed version numbers and identifiers.** Only real file paths are kept now, `file.py:42` merges into `file.py`, `.projectmem/` files are left out, and the list is ranked by how many events cite each file. A bare name without a known source suffix, such as `Makefile`, is picked up only with a directory or as an event location. ([#35](https://github.com/riponcm/projectmem/pull/35))
|
|
22
|
+
|
|
23
|
+
- An event line stored without an `id` got a new random id on every read. It now gets a stable id derived from its content. ([#36](https://github.com/riponcm/projectmem/pull/36))
|
|
24
|
+
|
|
25
|
+
### Changed
|
|
26
|
+
|
|
27
|
+
- **Write tools no longer repeat the record back.** They reply with the issue id, or for notes and decisions the event id that `add_decision(supersedes=…)` needs. **`search_events`** uses the same matcher as `pjm search`, shows each match's type, issue, event id and date, clips the text around the match, and marks retired decisions `(superseded)`; `full=True` returns whole texts. On the reporter's two months of transcripts, write replies were 92% smaller and search results 49% smaller. ([#36](https://github.com/riponcm/projectmem/pull/36))
|
|
28
|
+
|
|
29
|
+
- **Upgrading:** run `pjm init` once in each project so its `CLAUDE.md` / `AGENTS.md` bridge names `start_session()` and the `issue_id` rule. `AI_INSTRUCTIONS.md` is unchanged in this release, so a hand-edited copy is left alone.
|
|
30
|
+
|
|
31
|
+
## 0.3.5
|
|
32
|
+
|
|
33
|
+
**Two community fixes: precheck recognises a file however its path is spelled, and the summary stays small even when entries are long.**
|
|
34
|
+
|
|
35
|
+
### Fixed
|
|
36
|
+
|
|
37
|
+
- **`precheck_file` called a file with known failures "Safe to modify" when its path was spelled differently.** Events store project-relative paths, so `./src/auth.py`, an absolute path, a path through a symlinked folder, a backslash path or a Windows `C:\` path matched nothing. Every path, the one being checked and the ones in the log, is now made project-relative before matching, and two spellings of one file give one set of warnings. A decision logged at an absolute path is now also judged stale for the right file. Matching got faster as well: checking 5 files against a 3,000-event log went from 663 ms to 163 ms. ([#26](https://github.com/riponcm/projectmem/pull/26))
|
|
38
|
+
|
|
39
|
+
- **`get_issue` missed unpadded ids and passed raw input to a file glob.** `get_issue("1")` and `get_issue("#1")` now find issue 0001, as `pjm fix` does, and backfilled `legacy_…` ids work. Input containing `*`, `?` or `[` is refused instead of matching some other issue. ([#26](https://github.com/riponcm/projectmem/pull/26))
|
|
40
|
+
|
|
41
|
+
- **`summary.md` could still cost ~9,000–12,000 tokens on an aged project.** 0.3.4 capped how many entries the summary shows, but not how long each one is. Each record is now clipped at 300 characters, with line breaks folded first and locations kept whole. A fixed issue is one line (id, title, location), and its details are one `get_issue` call away. Open issues still show their last 3 failed or partial attempts. On a real 238-event project, the summary went from 8,974 to 3,458 tokens. ([#29](https://github.com/riponcm/projectmem/issues/29), [#30](https://github.com/riponcm/projectmem/pull/30))
|
|
42
|
+
|
|
43
|
+
- **`precheck_file("")` reported the whole log.** An empty string is part of every summary, so a blank path matched every failed attempt and open issue. Blank paths are now ignored, and whitespace around a path is trimmed.
|
|
44
|
+
|
|
45
|
+
- A whitespace-only location rendered as `[]` in the summary and hid the fix's location. It now counts as no location.
|
|
46
|
+
|
|
47
|
+
### Changed
|
|
48
|
+
|
|
49
|
+
- **`AI_INSTRUCTIONS.md` asks for shorter records:** issue titles under 140 characters, everything else under 300. The five write tools say the same in their argument descriptions. Because the template changed, run `pjm init` once in each project. It refreshes the file and keeps your previous copy as `AI_INSTRUCTIONS.md.bak`, so merge back anything you added by hand.
|
|
50
|
+
|
|
51
|
+
- **Token figures corrected.** The guidance said `get_summary` costs "a few hundred to ~1,500 tokens". That was measured on short synthetic entries, and a real project with long entries was far above it ([#29](https://github.com/riponcm/projectmem/issues/29)). It now says a few hundred on a young project and a few thousand on an aged one. The README's per-session estimate also left out `get_instructions`, which agents read first in every session and which is about 3,300 tokens on its own. The table now counts it and gives measured figures: on nine real projects, the three files read at session start total about 3,700 to 7,600 tokens.
|
|
52
|
+
|
|
53
|
+
The fixes for #26 were contributed by [@vishalhabib99](https://github.com/vishalhabib99), and #29 was reported and fixed by [@bigfree](https://github.com/bigfree).
|
|
54
|
+
|
|
3
55
|
## 0.3.4
|
|
4
56
|
|
|
5
57
|
**Three reports, three community fixes, and six more bugs found by checking them.** Each report below was reproduced end to end before it was fixed, and each fix was reviewed by someone other than its author.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: projectmem
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.6
|
|
4
4
|
Summary: Coding agent memory — local-first memory and judgment for AI coding agents. One MCP server for every project; warns before repeating failed fixes.
|
|
5
5
|
Project-URL: Homepage, https://projectmem.dev
|
|
6
6
|
Project-URL: Repository, https://github.com/riponcm/projectmem
|
|
@@ -37,8 +37,8 @@ Description-Content-Type: text/markdown
|
|
|
37
37
|
<img src="https://raw.githubusercontent.com/projectmem/projectmemdoc/main/logo/projectmem-wordmark-800.png" alt="projectmem" width="420" />
|
|
38
38
|
|
|
39
39
|
<p>
|
|
40
|
-
<a href="https://github.com/riponcm/projectmem/blob/main/CHANGELOG.md"><b>🎉 v0.3.
|
|
41
|
-
|
|
40
|
+
<a href="https://github.com/riponcm/projectmem/blob/main/CHANGELOG.md"><b>🎉 v0.3.6 is out</b></a> —
|
|
41
|
+
lessons appear before every edit in Claude Code and Codex, precheck shows every past failure, and parallel sessions keep to their own issues.
|
|
42
42
|
<a href="https://github.com/riponcm/projectmem/blob/main/CHANGELOG.md">See what changed →</a>
|
|
43
43
|
</p>
|
|
44
44
|
|
|
@@ -68,7 +68,7 @@ Description-Content-Type: text/markdown
|
|
|
68
68
|
|
|
69
69
|
<br />
|
|
70
70
|
|
|
71
|
-
|
|
71
|
+
https://github.com/user-attachments/assets/e055988e-7253-4ba9-92fc-95d3d4bcd763
|
|
72
72
|
|
|
73
73
|
<br /><br />
|
|
74
74
|
|
|
@@ -166,7 +166,7 @@ projectmem is an open-source **agent memory** layer built for that job. It is
|
|
|
166
166
|
**local-first**: memory lives in a plain `.projectmem/` directory inside your
|
|
167
167
|
repository, with no cloud, no account and no telemetry — the only network call
|
|
168
168
|
it can make is an update check you turn on yourself. A native **MCP server**
|
|
169
|
-
exposes
|
|
169
|
+
exposes 19 tools to Claude Code, Claude Desktop, Cursor, Antigravity and Codex,
|
|
170
170
|
so your agent reads memory and logs its work on its own.
|
|
171
171
|
|
|
172
172
|
Unlike chat-history memory tools, projectmem stores **typed events** — issues,
|
|
@@ -196,7 +196,7 @@ cd your-project && pjm init
|
|
|
196
196
|
|---|---|
|
|
197
197
|
| **[Complete setup guide](https://projectmem.dev/blog/projectmem-complete-guide-ai-coding-agent-memory)** | The full walkthrough on the web — install, MCP setup per client, `pjm doctor`, your first logged issue, and both dashboards. Every terminal output is captured from a real run. |
|
|
198
198
|
| **[TUTORIAL.md](https://github.com/riponcm/projectmem/blob/main/TUTORIAL.md)** | 15-minute step-by-step walkthrough — set up projectmem on your own project, watch the lifecycle, see the pre-commit warning fire. |
|
|
199
|
-
| **[CHANGELOG.md](https://github.com/riponcm/projectmem/blob/main/CHANGELOG.md)** | Release history. Latest: v0.3.
|
|
199
|
+
| **[CHANGELOG.md](https://github.com/riponcm/projectmem/blob/main/CHANGELOG.md)** | Release history. Latest: v0.3.6 — lessons before every edit, precheck shows every past failure, one-call session start. |
|
|
200
200
|
| **[Research paper (arXiv:2606.12329)](https://arxiv.org/abs/2606.12329)** | *PROJECTMEM: A Local-First, Event-Sourced Memory and Judgment Layer for AI Coding Agents* — the peer-readable version: design, Memory-as-Governance framing, capability comparison, and the 207-event dogfooding study. |
|
|
201
201
|
| **[LICENSE](https://github.com/riponcm/projectmem/blob/main/LICENSE)** | MIT |
|
|
202
202
|
|
|
@@ -233,6 +233,74 @@ That's it. `pjm init` installs three git hooks (pre-commit warnings, post-commit
|
|
|
233
233
|
|
|
234
234
|
---
|
|
235
235
|
|
|
236
|
+
## ✨ New in 0.3.6 — lessons before every edit, and a precheck that remembers
|
|
237
|
+
|
|
238
|
+
**Your agent sees a file's lessons right before it edits it.** Agents were
|
|
239
|
+
asked to call `precheck_file` before editing, and mostly did not. A new edit
|
|
240
|
+
hook for Claude Code and Codex CLI puts the file's open issues, failed and
|
|
241
|
+
partial attempts and decisions in front of the agent at the moment it edits,
|
|
242
|
+
once per file per session, and adds nothing for a file with no lessons.
|
|
243
|
+
Install it once for every project:
|
|
244
|
+
|
|
245
|
+
```bash
|
|
246
|
+
pjm hooks install --agent claude-code # or: --agent codex
|
|
247
|
+
```
|
|
248
|
+
|
|
249
|
+
It takes effect in the next session. ([#37](https://github.com/riponcm/projectmem/issues/37))
|
|
250
|
+
|
|
251
|
+
**Precheck shows what already failed, however long ago.** An attempt logged
|
|
252
|
+
without its own location now counts for its issue's file, partial attempts
|
|
253
|
+
count as lessons, and old failures no longer drop out after 30 days. On the
|
|
254
|
+
reporter's real project, precheck showed the earlier failures for 72.5% of
|
|
255
|
+
cases instead of 33.3%. `precheck_files` checks several files in one call.
|
|
256
|
+
([#32](https://github.com/riponcm/projectmem/issues/32))
|
|
257
|
+
|
|
258
|
+
**Parallel sessions keep to their own issues.** With two agents on one project,
|
|
259
|
+
an attempt or fix without an `issue_id` went to the newest issue, and one agent
|
|
260
|
+
could close the other's. While several issues are open, `record_attempt` and
|
|
261
|
+
`record_fix` now ask for the `issue_id` and list the open ones.
|
|
262
|
+
([#33](https://github.com/riponcm/projectmem/issues/33))
|
|
263
|
+
|
|
264
|
+
**One call to start a session.** `start_session()` returns the rules, the
|
|
265
|
+
memory summary and the current plan together.
|
|
266
|
+
([#34](https://github.com/riponcm/projectmem/issues/34))
|
|
267
|
+
|
|
268
|
+
**Smaller replies.** Write tools reply with the new id instead of repeating
|
|
269
|
+
the text, search results are clipped around the match, and the summary's Key
|
|
270
|
+
files list holds only real files, ranked by how often memory cites them.
|
|
271
|
+
([#35](https://github.com/riponcm/projectmem/pull/35),
|
|
272
|
+
[#36](https://github.com/riponcm/projectmem/pull/36))
|
|
273
|
+
|
|
274
|
+
**Upgrading? Run `pjm init` once in each project** so its `CLAUDE.md` /
|
|
275
|
+
`AGENTS.md` bridge names `start_session()`.
|
|
276
|
+
|
|
277
|
+
All of 0.3.6 was reported, measured and contributed by
|
|
278
|
+
[@bigfree](https://github.com/bigfree) (Adam Mikó).
|
|
279
|
+
|
|
280
|
+
## ✨ New in 0.3.5 — warnings for every spelling, and a summary that stays small
|
|
281
|
+
|
|
282
|
+
**Precheck recognises a file however its path is spelled.** Events store
|
|
283
|
+
project-relative paths, so asking about `./src/auth.py`, an absolute path, a
|
|
284
|
+
path through a symlinked folder or a Windows `C:\` path matched nothing, and
|
|
285
|
+
precheck called a file with known failures "Safe to modify". Every spelling now
|
|
286
|
+
gets the same warnings, and checking is faster on large logs.
|
|
287
|
+
`get_issue("1")` and `get_issue("#1")` find issue 0001.
|
|
288
|
+
([#26](https://github.com/riponcm/projectmem/pull/26))
|
|
289
|
+
|
|
290
|
+
**Long entries no longer bloat the summary.** 0.3.4 capped how many entries
|
|
291
|
+
the summary shows, not how long each one is. Records are now clipped at 300
|
|
292
|
+
characters, and a fixed issue takes one line. On a real 238-event project the
|
|
293
|
+
summary went from 8,974 tokens to 3,458.
|
|
294
|
+
([#29](https://github.com/riponcm/projectmem/issues/29),
|
|
295
|
+
[#30](https://github.com/riponcm/projectmem/pull/30))
|
|
296
|
+
|
|
297
|
+
**Upgrading? Run `pjm init` once in each project.** The instructions now ask
|
|
298
|
+
agents for shorter records, and `pjm init` refreshes `AI_INSTRUCTIONS.md`,
|
|
299
|
+
keeping your previous copy as `AI_INSTRUCTIONS.md.bak`.
|
|
300
|
+
|
|
301
|
+
The #26 fixes were contributed by [@vishalhabib99](https://github.com/vishalhabib99),
|
|
302
|
+
and #29 was reported and fixed by [@bigfree](https://github.com/bigfree).
|
|
303
|
+
|
|
236
304
|
## ✨ New in 0.3.4 — memory that stays small, and warnings you can trust
|
|
237
305
|
|
|
238
306
|
**The summary no longer grows forever.** Notes were capped, but Recent issues
|
|
@@ -368,7 +436,7 @@ pjm project use ossdrop # the default when a call names no project
|
|
|
368
436
|
|
|
369
437
|
```
|
|
370
438
|
log_issue(summary="stars come back empty", project="ossdrop")
|
|
371
|
-
→ Logged issue #0019 → ossdrop
|
|
439
|
+
→ Logged issue #0019 → ossdrop
|
|
372
440
|
```
|
|
373
441
|
|
|
374
442
|
Every write names the project it landed in — in a shared server, the dangerous
|
|
@@ -464,7 +532,7 @@ Your project's memory is also something you can *watch* — and share.
|
|
|
464
532
|
| Keeps superseded memories (no deletion) | ✅ | ? | 🟡 versioned, but decay can evict | ✅ add-only since v3 | ✅ git-versioned memory |
|
|
465
533
|
| Cross-project lessons | ✅ stack-scoped with a manifest | 🟡 opt-in flag | 🟡 cross-project search | 🟡 user-scoped | 🟡 per agent |
|
|
466
534
|
| Runs locally with no LLM API key | ✅ | 🟡 local store, LLM compression | ✅ keyless mode | ❌ self-host needs a key | 🟡 local mode |
|
|
467
|
-
| Native MCP server | ✅
|
|
535
|
+
| Native MCP server | ✅ 19 tools | ✅ | ✅ 54 tools | 🟡 hosted only | ❌ MCP client |
|
|
468
536
|
| Price · licence | Free · MIT | Free · Apache-2.0, paid Pro | Free · Apache-2.0 | Free tier · Apache-2.0, paid cloud | Free tier · Apache-2.0, paid cloud |
|
|
469
537
|
|
|
470
538
|
<sub>✅ yes · 🟡 partial · ❌ not found in the project's own docs · ? not documented. Snapshot taken 2026-10-02 from each project's README, docs and changelog; design capabilities, not benchmark results. Corrections welcome — [open an issue](https://github.com/riponcm/projectmem/issues).</sub>
|
|
@@ -481,15 +549,19 @@ Want a source supported? [Open an issue](https://github.com/riponcm/projectmem/i
|
|
|
481
549
|
|
|
482
550
|
The architecture is built around one rule: **AI reads small, distilled files. Tools generate them from the big raw log.**
|
|
483
551
|
|
|
484
|
-
*
|
|
485
|
-
|
|
486
|
-
|
|
552
|
+
*Measured on 0.3.5 with the `cl100k_base` tokenizer, on nine real projects of
|
|
553
|
+
9 to 238 events.* At session start an agent reads three files.
|
|
554
|
+
`AI_INSTRUCTIONS.md` is about 3,300 tokens and costs the same in every project.
|
|
555
|
+
`summary.md` ranged from about 400 to 3,500 tokens, and `PROJECT_MAP.md` from
|
|
556
|
+
about 100 to 900. A synthetic worst case with 40 open issues and long entries in
|
|
557
|
+
every record brings the summary to about 6,300. The baseline and `pjm wrap` rows
|
|
558
|
+
are estimates.
|
|
487
559
|
|
|
488
|
-
| Access mode | Tokens / session
|
|
560
|
+
| Access mode | Tokens / session | How it works |
|
|
489
561
|
|---|---|---|
|
|
490
562
|
| No projectmem (baseline) | 5,000 – 20,000+ | AI re-reads source files every session |
|
|
491
|
-
| Universal Mode (markdown) | ~
|
|
492
|
-
| **MCP Mode** *(recommended)* | **~
|
|
563
|
+
| Universal Mode (markdown) | ~3,700 – 7,600 | AI reads 3 distilled files once |
|
|
564
|
+
| **MCP Mode** *(recommended)* | **~3,700 – 7,600** at session start | AI calls `start_session()` once (rules, summary and current plan), then `get_issue(issue_id)` or `precheck_file(file_path)` only when relevant |
|
|
493
565
|
| `pjm wrap` (pre-injection) | 500 – 2,000 | Pre-generated, you set the budget |
|
|
494
566
|
|
|
495
567
|
**AI never reads `events.jsonl` directly.** That file is for tools (`pjm score`, `pjm context`, `pjm wrap`). Tools distill the raw log into compact AI-readable summaries.
|
|
@@ -510,7 +582,7 @@ Your agent picks the project per call:
|
|
|
510
582
|
|
|
511
583
|
```
|
|
512
584
|
log_issue(summary="stars come back empty", project="ossdrop")
|
|
513
|
-
→ Logged issue #0019 → ossdrop
|
|
585
|
+
→ Logged issue #0019 → ossdrop
|
|
514
586
|
```
|
|
515
587
|
|
|
516
588
|
**Every write says where it landed.** That echo is the point: in a one-project
|
|
@@ -586,8 +658,7 @@ With one project registered, that is the whole setup — there is only one place
|
|
|
586
658
|
|
|
587
659
|
```text
|
|
588
660
|
Hi — I use projectmem as this project's memory. Before anything else,
|
|
589
|
-
call
|
|
590
|
-
load what we already know. As we work, log issues, attempts
|
|
661
|
+
call start_session() to load what we already know. As we work, log issues, attempts
|
|
591
662
|
(failed/worked), fixes, decisions, and notes with the projectmem tools,
|
|
592
663
|
and call precheck_file(file_path) before you edit a file. Ideas and plans go
|
|
593
664
|
in plan.md via get_plan() — never as events.
|
|
@@ -749,18 +820,20 @@ root or rely on the parent-walk auto-discovery.
|
|
|
749
820
|
|
|
750
821
|
### MCP Tools Exposed
|
|
751
822
|
|
|
752
|
-
All
|
|
823
|
+
All 19 tools your AI can call. Every repo tool takes an optional
|
|
753
824
|
`project` argument — see [One server, many projects](#one-server-many-projects):
|
|
754
825
|
|
|
755
|
-
**Read-side (
|
|
826
|
+
**Read-side (14 tools):**
|
|
756
827
|
|
|
757
828
|
| Tool | When to use |
|
|
758
829
|
|---|---|
|
|
759
|
-
| `
|
|
830
|
+
| `start_session()` | Start of every session — rules, summary and current plan in one call |
|
|
831
|
+
| `get_instructions()` | Load the workflow rules on their own |
|
|
760
832
|
| `get_summary()` | Start and end — distilled project memory |
|
|
761
833
|
| `get_project_map()` | Start — understand repo structure |
|
|
762
834
|
| `get_plan()` | Read `plan.md` — the ideas + plans (intent), separate from the event log |
|
|
763
835
|
| `precheck_file(file_path)` | Before editing any file — surface failure history |
|
|
836
|
+
| `precheck_files(file_paths)` | The same for several files in one call |
|
|
764
837
|
| `get_issue(issue_id)` | Read one specific issue's full history by ID |
|
|
765
838
|
| `search_events(query)` | Plain-text search across all logged events |
|
|
766
839
|
| `get_context(tokens, focus)` | Token-budgeted memory block with optional focus filter |
|
|
@@ -774,8 +847,8 @@ All 17 tools your AI can call. Every repo tool takes an optional
|
|
|
774
847
|
| Tool | When to use |
|
|
775
848
|
|---|---|
|
|
776
849
|
| `log_issue(summary, location)` | Immediately when encountering a bug |
|
|
777
|
-
| `record_attempt(summary, outcome)` | Immediately after each fix attempt (outcome: `failed`/`partial`/`worked`) |
|
|
778
|
-
| `record_fix(summary)` | After confirming a fix resolves the issue |
|
|
850
|
+
| `record_attempt(summary, outcome, issue_id)` | Immediately after each fix attempt (outcome: `failed`/`partial`/`worked`); `issue_id` is required while several issues are open |
|
|
851
|
+
| `record_fix(summary, issue_id)` | After confirming a fix resolves the issue |
|
|
779
852
|
| `add_decision(summary, supersedes?)` | When making architectural / design decisions; pass `supersedes` to retire a stale decision without losing history |
|
|
780
853
|
| `add_note(summary)` | When discovering gotchas, setup details, or constraints |
|
|
781
854
|
|
|
@@ -831,6 +904,7 @@ All 17 tools your AI can call. Every repo tool takes an optional
|
|
|
831
904
|
| `pjm stats` | Token ROI summary in the terminal |
|
|
832
905
|
| `pjm backfill` | Auto-populate memory from git history |
|
|
833
906
|
| `pjm hooks install\|uninstall` | Manage git hooks manually |
|
|
907
|
+
| `pjm hooks install --agent claude-code\|codex` | Show a file's lessons before every edit in Claude Code or Codex (`--project` for this project only) |
|
|
834
908
|
| `pjm regenerate` | Rebuild `summary.md` from `events.jsonl` |
|
|
835
909
|
|
|
836
910
|
> Use `--at "file.py:42"` with any logging command to attach precise location metadata.
|
|
@@ -896,7 +970,7 @@ projectmem is described in a peer-readable research paper:
|
|
|
896
970
|
|
|
897
971
|
> **PROJECTMEM: A Local-First, Event-Sourced Memory and Judgment Layer for AI Coding Agents**
|
|
898
972
|
> Ripon Chandra Malo, Tong Qiu — University of Utah
|
|
899
|
-
> [arXiv:2606.12329](https://arxiv.org/abs/2606.12329) · cs.
|
|
973
|
+
> [arXiv:2606.12329](https://arxiv.org/abs/2606.12329) · cs.AI
|
|
900
974
|
|
|
901
975
|
The paper introduces the **Memory-as-Governance** framing — memory that doesn't merely answer the agent but acts on its next action — and reports the design, the deterministic pre-commit judgment gate, a capability comparison against 12 contemporary memory systems, and a two-month, 207-event dogfooding study across 10 real projects.
|
|
902
976
|
|
|
@@ -910,7 +984,7 @@ If projectmem is useful in your research or writing, please cite:
|
|
|
910
984
|
year = {2026},
|
|
911
985
|
eprint = {2606.12329},
|
|
912
986
|
archivePrefix = {arXiv},
|
|
913
|
-
primaryClass = {cs.
|
|
987
|
+
primaryClass = {cs.AI},
|
|
914
988
|
url = {https://arxiv.org/abs/2606.12329}
|
|
915
989
|
}
|
|
916
990
|
```
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
<img src="https://raw.githubusercontent.com/projectmem/projectmemdoc/main/logo/projectmem-wordmark-800.png" alt="projectmem" width="420" />
|
|
5
5
|
|
|
6
6
|
<p>
|
|
7
|
-
<a href="https://github.com/riponcm/projectmem/blob/main/CHANGELOG.md"><b>🎉 v0.3.
|
|
8
|
-
|
|
7
|
+
<a href="https://github.com/riponcm/projectmem/blob/main/CHANGELOG.md"><b>🎉 v0.3.6 is out</b></a> —
|
|
8
|
+
lessons appear before every edit in Claude Code and Codex, precheck shows every past failure, and parallel sessions keep to their own issues.
|
|
9
9
|
<a href="https://github.com/riponcm/projectmem/blob/main/CHANGELOG.md">See what changed →</a>
|
|
10
10
|
</p>
|
|
11
11
|
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
|
|
36
36
|
<br />
|
|
37
37
|
|
|
38
|
-
|
|
38
|
+
https://github.com/user-attachments/assets/e055988e-7253-4ba9-92fc-95d3d4bcd763
|
|
39
39
|
|
|
40
40
|
<br /><br />
|
|
41
41
|
|
|
@@ -133,7 +133,7 @@ projectmem is an open-source **agent memory** layer built for that job. It is
|
|
|
133
133
|
**local-first**: memory lives in a plain `.projectmem/` directory inside your
|
|
134
134
|
repository, with no cloud, no account and no telemetry — the only network call
|
|
135
135
|
it can make is an update check you turn on yourself. A native **MCP server**
|
|
136
|
-
exposes
|
|
136
|
+
exposes 19 tools to Claude Code, Claude Desktop, Cursor, Antigravity and Codex,
|
|
137
137
|
so your agent reads memory and logs its work on its own.
|
|
138
138
|
|
|
139
139
|
Unlike chat-history memory tools, projectmem stores **typed events** — issues,
|
|
@@ -163,7 +163,7 @@ cd your-project && pjm init
|
|
|
163
163
|
|---|---|
|
|
164
164
|
| **[Complete setup guide](https://projectmem.dev/blog/projectmem-complete-guide-ai-coding-agent-memory)** | The full walkthrough on the web — install, MCP setup per client, `pjm doctor`, your first logged issue, and both dashboards. Every terminal output is captured from a real run. |
|
|
165
165
|
| **[TUTORIAL.md](https://github.com/riponcm/projectmem/blob/main/TUTORIAL.md)** | 15-minute step-by-step walkthrough — set up projectmem on your own project, watch the lifecycle, see the pre-commit warning fire. |
|
|
166
|
-
| **[CHANGELOG.md](https://github.com/riponcm/projectmem/blob/main/CHANGELOG.md)** | Release history. Latest: v0.3.
|
|
166
|
+
| **[CHANGELOG.md](https://github.com/riponcm/projectmem/blob/main/CHANGELOG.md)** | Release history. Latest: v0.3.6 — lessons before every edit, precheck shows every past failure, one-call session start. |
|
|
167
167
|
| **[Research paper (arXiv:2606.12329)](https://arxiv.org/abs/2606.12329)** | *PROJECTMEM: A Local-First, Event-Sourced Memory and Judgment Layer for AI Coding Agents* — the peer-readable version: design, Memory-as-Governance framing, capability comparison, and the 207-event dogfooding study. |
|
|
168
168
|
| **[LICENSE](https://github.com/riponcm/projectmem/blob/main/LICENSE)** | MIT |
|
|
169
169
|
|
|
@@ -200,6 +200,74 @@ That's it. `pjm init` installs three git hooks (pre-commit warnings, post-commit
|
|
|
200
200
|
|
|
201
201
|
---
|
|
202
202
|
|
|
203
|
+
## ✨ New in 0.3.6 — lessons before every edit, and a precheck that remembers
|
|
204
|
+
|
|
205
|
+
**Your agent sees a file's lessons right before it edits it.** Agents were
|
|
206
|
+
asked to call `precheck_file` before editing, and mostly did not. A new edit
|
|
207
|
+
hook for Claude Code and Codex CLI puts the file's open issues, failed and
|
|
208
|
+
partial attempts and decisions in front of the agent at the moment it edits,
|
|
209
|
+
once per file per session, and adds nothing for a file with no lessons.
|
|
210
|
+
Install it once for every project:
|
|
211
|
+
|
|
212
|
+
```bash
|
|
213
|
+
pjm hooks install --agent claude-code # or: --agent codex
|
|
214
|
+
```
|
|
215
|
+
|
|
216
|
+
It takes effect in the next session. ([#37](https://github.com/riponcm/projectmem/issues/37))
|
|
217
|
+
|
|
218
|
+
**Precheck shows what already failed, however long ago.** An attempt logged
|
|
219
|
+
without its own location now counts for its issue's file, partial attempts
|
|
220
|
+
count as lessons, and old failures no longer drop out after 30 days. On the
|
|
221
|
+
reporter's real project, precheck showed the earlier failures for 72.5% of
|
|
222
|
+
cases instead of 33.3%. `precheck_files` checks several files in one call.
|
|
223
|
+
([#32](https://github.com/riponcm/projectmem/issues/32))
|
|
224
|
+
|
|
225
|
+
**Parallel sessions keep to their own issues.** With two agents on one project,
|
|
226
|
+
an attempt or fix without an `issue_id` went to the newest issue, and one agent
|
|
227
|
+
could close the other's. While several issues are open, `record_attempt` and
|
|
228
|
+
`record_fix` now ask for the `issue_id` and list the open ones.
|
|
229
|
+
([#33](https://github.com/riponcm/projectmem/issues/33))
|
|
230
|
+
|
|
231
|
+
**One call to start a session.** `start_session()` returns the rules, the
|
|
232
|
+
memory summary and the current plan together.
|
|
233
|
+
([#34](https://github.com/riponcm/projectmem/issues/34))
|
|
234
|
+
|
|
235
|
+
**Smaller replies.** Write tools reply with the new id instead of repeating
|
|
236
|
+
the text, search results are clipped around the match, and the summary's Key
|
|
237
|
+
files list holds only real files, ranked by how often memory cites them.
|
|
238
|
+
([#35](https://github.com/riponcm/projectmem/pull/35),
|
|
239
|
+
[#36](https://github.com/riponcm/projectmem/pull/36))
|
|
240
|
+
|
|
241
|
+
**Upgrading? Run `pjm init` once in each project** so its `CLAUDE.md` /
|
|
242
|
+
`AGENTS.md` bridge names `start_session()`.
|
|
243
|
+
|
|
244
|
+
All of 0.3.6 was reported, measured and contributed by
|
|
245
|
+
[@bigfree](https://github.com/bigfree) (Adam Mikó).
|
|
246
|
+
|
|
247
|
+
## ✨ New in 0.3.5 — warnings for every spelling, and a summary that stays small
|
|
248
|
+
|
|
249
|
+
**Precheck recognises a file however its path is spelled.** Events store
|
|
250
|
+
project-relative paths, so asking about `./src/auth.py`, an absolute path, a
|
|
251
|
+
path through a symlinked folder or a Windows `C:\` path matched nothing, and
|
|
252
|
+
precheck called a file with known failures "Safe to modify". Every spelling now
|
|
253
|
+
gets the same warnings, and checking is faster on large logs.
|
|
254
|
+
`get_issue("1")` and `get_issue("#1")` find issue 0001.
|
|
255
|
+
([#26](https://github.com/riponcm/projectmem/pull/26))
|
|
256
|
+
|
|
257
|
+
**Long entries no longer bloat the summary.** 0.3.4 capped how many entries
|
|
258
|
+
the summary shows, not how long each one is. Records are now clipped at 300
|
|
259
|
+
characters, and a fixed issue takes one line. On a real 238-event project the
|
|
260
|
+
summary went from 8,974 tokens to 3,458.
|
|
261
|
+
([#29](https://github.com/riponcm/projectmem/issues/29),
|
|
262
|
+
[#30](https://github.com/riponcm/projectmem/pull/30))
|
|
263
|
+
|
|
264
|
+
**Upgrading? Run `pjm init` once in each project.** The instructions now ask
|
|
265
|
+
agents for shorter records, and `pjm init` refreshes `AI_INSTRUCTIONS.md`,
|
|
266
|
+
keeping your previous copy as `AI_INSTRUCTIONS.md.bak`.
|
|
267
|
+
|
|
268
|
+
The #26 fixes were contributed by [@vishalhabib99](https://github.com/vishalhabib99),
|
|
269
|
+
and #29 was reported and fixed by [@bigfree](https://github.com/bigfree).
|
|
270
|
+
|
|
203
271
|
## ✨ New in 0.3.4 — memory that stays small, and warnings you can trust
|
|
204
272
|
|
|
205
273
|
**The summary no longer grows forever.** Notes were capped, but Recent issues
|
|
@@ -335,7 +403,7 @@ pjm project use ossdrop # the default when a call names no project
|
|
|
335
403
|
|
|
336
404
|
```
|
|
337
405
|
log_issue(summary="stars come back empty", project="ossdrop")
|
|
338
|
-
→ Logged issue #0019 → ossdrop
|
|
406
|
+
→ Logged issue #0019 → ossdrop
|
|
339
407
|
```
|
|
340
408
|
|
|
341
409
|
Every write names the project it landed in — in a shared server, the dangerous
|
|
@@ -431,7 +499,7 @@ Your project's memory is also something you can *watch* — and share.
|
|
|
431
499
|
| Keeps superseded memories (no deletion) | ✅ | ? | 🟡 versioned, but decay can evict | ✅ add-only since v3 | ✅ git-versioned memory |
|
|
432
500
|
| Cross-project lessons | ✅ stack-scoped with a manifest | 🟡 opt-in flag | 🟡 cross-project search | 🟡 user-scoped | 🟡 per agent |
|
|
433
501
|
| Runs locally with no LLM API key | ✅ | 🟡 local store, LLM compression | ✅ keyless mode | ❌ self-host needs a key | 🟡 local mode |
|
|
434
|
-
| Native MCP server | ✅
|
|
502
|
+
| Native MCP server | ✅ 19 tools | ✅ | ✅ 54 tools | 🟡 hosted only | ❌ MCP client |
|
|
435
503
|
| Price · licence | Free · MIT | Free · Apache-2.0, paid Pro | Free · Apache-2.0 | Free tier · Apache-2.0, paid cloud | Free tier · Apache-2.0, paid cloud |
|
|
436
504
|
|
|
437
505
|
<sub>✅ yes · 🟡 partial · ❌ not found in the project's own docs · ? not documented. Snapshot taken 2026-10-02 from each project's README, docs and changelog; design capabilities, not benchmark results. Corrections welcome — [open an issue](https://github.com/riponcm/projectmem/issues).</sub>
|
|
@@ -448,15 +516,19 @@ Want a source supported? [Open an issue](https://github.com/riponcm/projectmem/i
|
|
|
448
516
|
|
|
449
517
|
The architecture is built around one rule: **AI reads small, distilled files. Tools generate them from the big raw log.**
|
|
450
518
|
|
|
451
|
-
*
|
|
452
|
-
|
|
453
|
-
|
|
519
|
+
*Measured on 0.3.5 with the `cl100k_base` tokenizer, on nine real projects of
|
|
520
|
+
9 to 238 events.* At session start an agent reads three files.
|
|
521
|
+
`AI_INSTRUCTIONS.md` is about 3,300 tokens and costs the same in every project.
|
|
522
|
+
`summary.md` ranged from about 400 to 3,500 tokens, and `PROJECT_MAP.md` from
|
|
523
|
+
about 100 to 900. A synthetic worst case with 40 open issues and long entries in
|
|
524
|
+
every record brings the summary to about 6,300. The baseline and `pjm wrap` rows
|
|
525
|
+
are estimates.
|
|
454
526
|
|
|
455
|
-
| Access mode | Tokens / session
|
|
527
|
+
| Access mode | Tokens / session | How it works |
|
|
456
528
|
|---|---|---|
|
|
457
529
|
| No projectmem (baseline) | 5,000 – 20,000+ | AI re-reads source files every session |
|
|
458
|
-
| Universal Mode (markdown) | ~
|
|
459
|
-
| **MCP Mode** *(recommended)* | **~
|
|
530
|
+
| Universal Mode (markdown) | ~3,700 – 7,600 | AI reads 3 distilled files once |
|
|
531
|
+
| **MCP Mode** *(recommended)* | **~3,700 – 7,600** at session start | AI calls `start_session()` once (rules, summary and current plan), then `get_issue(issue_id)` or `precheck_file(file_path)` only when relevant |
|
|
460
532
|
| `pjm wrap` (pre-injection) | 500 – 2,000 | Pre-generated, you set the budget |
|
|
461
533
|
|
|
462
534
|
**AI never reads `events.jsonl` directly.** That file is for tools (`pjm score`, `pjm context`, `pjm wrap`). Tools distill the raw log into compact AI-readable summaries.
|
|
@@ -477,7 +549,7 @@ Your agent picks the project per call:
|
|
|
477
549
|
|
|
478
550
|
```
|
|
479
551
|
log_issue(summary="stars come back empty", project="ossdrop")
|
|
480
|
-
→ Logged issue #0019 → ossdrop
|
|
552
|
+
→ Logged issue #0019 → ossdrop
|
|
481
553
|
```
|
|
482
554
|
|
|
483
555
|
**Every write says where it landed.** That echo is the point: in a one-project
|
|
@@ -553,8 +625,7 @@ With one project registered, that is the whole setup — there is only one place
|
|
|
553
625
|
|
|
554
626
|
```text
|
|
555
627
|
Hi — I use projectmem as this project's memory. Before anything else,
|
|
556
|
-
call
|
|
557
|
-
load what we already know. As we work, log issues, attempts
|
|
628
|
+
call start_session() to load what we already know. As we work, log issues, attempts
|
|
558
629
|
(failed/worked), fixes, decisions, and notes with the projectmem tools,
|
|
559
630
|
and call precheck_file(file_path) before you edit a file. Ideas and plans go
|
|
560
631
|
in plan.md via get_plan() — never as events.
|
|
@@ -716,18 +787,20 @@ root or rely on the parent-walk auto-discovery.
|
|
|
716
787
|
|
|
717
788
|
### MCP Tools Exposed
|
|
718
789
|
|
|
719
|
-
All
|
|
790
|
+
All 19 tools your AI can call. Every repo tool takes an optional
|
|
720
791
|
`project` argument — see [One server, many projects](#one-server-many-projects):
|
|
721
792
|
|
|
722
|
-
**Read-side (
|
|
793
|
+
**Read-side (14 tools):**
|
|
723
794
|
|
|
724
795
|
| Tool | When to use |
|
|
725
796
|
|---|---|
|
|
726
|
-
| `
|
|
797
|
+
| `start_session()` | Start of every session — rules, summary and current plan in one call |
|
|
798
|
+
| `get_instructions()` | Load the workflow rules on their own |
|
|
727
799
|
| `get_summary()` | Start and end — distilled project memory |
|
|
728
800
|
| `get_project_map()` | Start — understand repo structure |
|
|
729
801
|
| `get_plan()` | Read `plan.md` — the ideas + plans (intent), separate from the event log |
|
|
730
802
|
| `precheck_file(file_path)` | Before editing any file — surface failure history |
|
|
803
|
+
| `precheck_files(file_paths)` | The same for several files in one call |
|
|
731
804
|
| `get_issue(issue_id)` | Read one specific issue's full history by ID |
|
|
732
805
|
| `search_events(query)` | Plain-text search across all logged events |
|
|
733
806
|
| `get_context(tokens, focus)` | Token-budgeted memory block with optional focus filter |
|
|
@@ -741,8 +814,8 @@ All 17 tools your AI can call. Every repo tool takes an optional
|
|
|
741
814
|
| Tool | When to use |
|
|
742
815
|
|---|---|
|
|
743
816
|
| `log_issue(summary, location)` | Immediately when encountering a bug |
|
|
744
|
-
| `record_attempt(summary, outcome)` | Immediately after each fix attempt (outcome: `failed`/`partial`/`worked`) |
|
|
745
|
-
| `record_fix(summary)` | After confirming a fix resolves the issue |
|
|
817
|
+
| `record_attempt(summary, outcome, issue_id)` | Immediately after each fix attempt (outcome: `failed`/`partial`/`worked`); `issue_id` is required while several issues are open |
|
|
818
|
+
| `record_fix(summary, issue_id)` | After confirming a fix resolves the issue |
|
|
746
819
|
| `add_decision(summary, supersedes?)` | When making architectural / design decisions; pass `supersedes` to retire a stale decision without losing history |
|
|
747
820
|
| `add_note(summary)` | When discovering gotchas, setup details, or constraints |
|
|
748
821
|
|
|
@@ -798,6 +871,7 @@ All 17 tools your AI can call. Every repo tool takes an optional
|
|
|
798
871
|
| `pjm stats` | Token ROI summary in the terminal |
|
|
799
872
|
| `pjm backfill` | Auto-populate memory from git history |
|
|
800
873
|
| `pjm hooks install\|uninstall` | Manage git hooks manually |
|
|
874
|
+
| `pjm hooks install --agent claude-code\|codex` | Show a file's lessons before every edit in Claude Code or Codex (`--project` for this project only) |
|
|
801
875
|
| `pjm regenerate` | Rebuild `summary.md` from `events.jsonl` |
|
|
802
876
|
|
|
803
877
|
> Use `--at "file.py:42"` with any logging command to attach precise location metadata.
|
|
@@ -863,7 +937,7 @@ projectmem is described in a peer-readable research paper:
|
|
|
863
937
|
|
|
864
938
|
> **PROJECTMEM: A Local-First, Event-Sourced Memory and Judgment Layer for AI Coding Agents**
|
|
865
939
|
> Ripon Chandra Malo, Tong Qiu — University of Utah
|
|
866
|
-
> [arXiv:2606.12329](https://arxiv.org/abs/2606.12329) · cs.
|
|
940
|
+
> [arXiv:2606.12329](https://arxiv.org/abs/2606.12329) · cs.AI
|
|
867
941
|
|
|
868
942
|
The paper introduces the **Memory-as-Governance** framing — memory that doesn't merely answer the agent but acts on its next action — and reports the design, the deterministic pre-commit judgment gate, a capability comparison against 12 contemporary memory systems, and a two-month, 207-event dogfooding study across 10 real projects.
|
|
869
943
|
|
|
@@ -877,7 +951,7 @@ If projectmem is useful in your research or writing, please cite:
|
|
|
877
951
|
year = {2026},
|
|
878
952
|
eprint = {2606.12329},
|
|
879
953
|
archivePrefix = {arXiv},
|
|
880
|
-
primaryClass = {cs.
|
|
954
|
+
primaryClass = {cs.AI},
|
|
881
955
|
url = {https://arxiv.org/abs/2606.12329}
|
|
882
956
|
}
|
|
883
957
|
```
|
|
@@ -243,5 +243,5 @@ In about 15 minutes you exercised every part of projectmem:
|
|
|
243
243
|
|
|
244
244
|
---
|
|
245
245
|
|
|
246
|
-
*Last updated for projectmem 0.3.
|
|
246
|
+
*Last updated for projectmem 0.3.5 — see the [changelog](CHANGELOG.md) for what
|
|
247
247
|
changed since.*
|
|
@@ -41,7 +41,7 @@ it — as opposed to decay-based pruning or in-place fact rewriting.
|
|
|
41
41
|
plus distilled `summary.md`, `PROJECT_MAP.md`, `plan.md`
|
|
42
42
|
- **Cross-project store:** `~/.projectmem/global/` for library gotchas that carry
|
|
43
43
|
between repositories
|
|
44
|
-
- **MCP server:**
|
|
44
|
+
- **MCP server:** 19 tools, verified end-to-end on Claude Desktop, Cursor,
|
|
45
45
|
Antigravity and Codex
|
|
46
46
|
- **Network use:** none, apart from an update check you turn on yourself
|
|
47
47
|
(`pjm doctor --online` or `--auto`). The MCP server is a stdio subprocess your
|
|
@@ -70,12 +70,13 @@ pjm brief # 4. one-screen status check
|
|
|
70
70
|
- `pjm search <query>` — search across all events
|
|
71
71
|
- `pjm dashboard` — cross-project view of every registered repository
|
|
72
72
|
- `pjm export --claude-md` — write memory into CLAUDE.md for agents without MCP
|
|
73
|
+
- `pjm hooks install --agent claude-code|codex` — show a file's lessons before every edit
|
|
73
74
|
|
|
74
|
-
## MCP tools (
|
|
75
|
+
## MCP tools (19)
|
|
75
76
|
|
|
76
|
-
`get_instructions`, `get_summary`, `get_project_map`, `get_plan`,
|
|
77
|
-
`get_issue`, `get_score`, `get_global_gotchas`, `search_events`,
|
|
78
|
-
`list_projects`, `current_project`, `log_issue`, `record_attempt`, `record_fix`,
|
|
77
|
+
`start_session`, `get_instructions`, `get_summary`, `get_project_map`, `get_plan`,
|
|
78
|
+
`get_context`, `get_issue`, `get_score`, `get_global_gotchas`, `search_events`,
|
|
79
|
+
`precheck_file`, `precheck_files`, `list_projects`, `current_project`, `log_issue`, `record_attempt`, `record_fix`,
|
|
79
80
|
`add_decision`, `add_note`
|
|
80
81
|
|
|
81
82
|
## Common questions
|
|
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "projectmem"
|
|
7
|
-
version = "0.3.
|
|
7
|
+
version = "0.3.6"
|
|
8
8
|
description = "Coding agent memory — local-first memory and judgment for AI coding agents. One MCP server for every project; warns before repeating failed fixes."
|
|
9
9
|
authors = [{ name = "Ripon Chandra Malo" }]
|
|
10
10
|
readme = "README.md"
|
|
@@ -59,6 +59,7 @@ Paper = "https://arxiv.org/abs/2606.12329"
|
|
|
59
59
|
projectmem = "projectmem.cli:main"
|
|
60
60
|
pjm = "projectmem.cli:main"
|
|
61
61
|
pjm-mcp = "projectmem.mcp_server:main"
|
|
62
|
+
pjm-edit-hook = "projectmem.edit_hook:main"
|
|
62
63
|
|
|
63
64
|
[tool.hatch.build.targets.wheel]
|
|
64
65
|
packages = ["src/projectmem"]
|