projectmem 0.3.3__tar.gz → 0.3.4__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.
Files changed (82) hide show
  1. {projectmem-0.3.3 → projectmem-0.3.4}/.gitignore +3 -0
  2. {projectmem-0.3.3 → projectmem-0.3.4}/CHANGELOG.md +38 -0
  3. {projectmem-0.3.3 → projectmem-0.3.4}/PKG-INFO +100 -57
  4. {projectmem-0.3.3 → projectmem-0.3.4}/README.md +97 -56
  5. {projectmem-0.3.3 → projectmem-0.3.4}/SECURITY.md +1 -1
  6. {projectmem-0.3.3 → projectmem-0.3.4}/TUTORIAL.md +3 -3
  7. {projectmem-0.3.3 → projectmem-0.3.4}/llms.txt +12 -10
  8. {projectmem-0.3.3 → projectmem-0.3.4}/pyproject.toml +17 -3
  9. {projectmem-0.3.3 → projectmem-0.3.4}/src/projectmem/__init__.py +1 -1
  10. {projectmem-0.3.3 → projectmem-0.3.4}/src/projectmem/cli.py +5 -2
  11. {projectmem-0.3.3 → projectmem-0.3.4}/src/projectmem/commands/attempt.py +13 -3
  12. {projectmem-0.3.3 → projectmem-0.3.4}/src/projectmem/commands/auto_capture.py +148 -16
  13. {projectmem-0.3.3 → projectmem-0.3.4}/src/projectmem/commands/fix.py +6 -22
  14. {projectmem-0.3.3 → projectmem-0.3.4}/src/projectmem/commands/hooks.py +107 -51
  15. {projectmem-0.3.3 → projectmem-0.3.4}/src/projectmem/commands/init.py +18 -25
  16. {projectmem-0.3.3 → projectmem-0.3.4}/src/projectmem/commands/precheck.py +10 -0
  17. {projectmem-0.3.3 → projectmem-0.3.4}/src/projectmem/mcp_server.py +16 -5
  18. {projectmem-0.3.3 → projectmem-0.3.4}/src/projectmem/staleness.py +116 -8
  19. {projectmem-0.3.3 → projectmem-0.3.4}/src/projectmem/storage.py +132 -7
  20. {projectmem-0.3.3 → projectmem-0.3.4}/src/projectmem/summary.py +92 -29
  21. {projectmem-0.3.3 → projectmem-0.3.4}/tests/test_agent_guidance.py +155 -0
  22. projectmem-0.3.4/tests/test_attempt.py +84 -0
  23. projectmem-0.3.4/tests/test_auto_capture.py +324 -0
  24. projectmem-0.3.4/tests/test_hooks_path.py +397 -0
  25. projectmem-0.3.4/tests/test_instructions_refresh.py +144 -0
  26. {projectmem-0.3.3 → projectmem-0.3.4}/tests/test_mcp_server.py +18 -0
  27. projectmem-0.3.4/tests/test_staleness_repair.py +256 -0
  28. projectmem-0.3.4/tests/test_summary.py +249 -0
  29. {projectmem-0.3.3 → projectmem-0.3.4}/tests/test_windows_hooks_and_context.py +5 -1
  30. projectmem-0.3.3/.github/FUNDING.yml +0 -13
  31. projectmem-0.3.3/tests/test_hooks_path.py +0 -183
  32. projectmem-0.3.3/tests/test_summary.py +0 -117
  33. {projectmem-0.3.3 → projectmem-0.3.4}/LICENSE +0 -0
  34. {projectmem-0.3.3 → projectmem-0.3.4}/src/projectmem/commands/__init__.py +0 -0
  35. {projectmem-0.3.3 → projectmem-0.3.4}/src/projectmem/commands/backfill.py +0 -0
  36. {projectmem-0.3.3 → projectmem-0.3.4}/src/projectmem/commands/brief.py +0 -0
  37. {projectmem-0.3.3 → projectmem-0.3.4}/src/projectmem/commands/context.py +0 -0
  38. {projectmem-0.3.3 → projectmem-0.3.4}/src/projectmem/commands/dashboard.py +0 -0
  39. {projectmem-0.3.3 → projectmem-0.3.4}/src/projectmem/commands/decision.py +0 -0
  40. {projectmem-0.3.3 → projectmem-0.3.4}/src/projectmem/commands/doctor.py +0 -0
  41. {projectmem-0.3.3 → projectmem-0.3.4}/src/projectmem/commands/export.py +0 -0
  42. {projectmem-0.3.3 → projectmem-0.3.4}/src/projectmem/commands/global_cmd.py +0 -0
  43. {projectmem-0.3.3 → projectmem-0.3.4}/src/projectmem/commands/instructions.py +0 -0
  44. {projectmem-0.3.3 → projectmem-0.3.4}/src/projectmem/commands/log.py +0 -0
  45. {projectmem-0.3.3 → projectmem-0.3.4}/src/projectmem/commands/map.py +0 -0
  46. {projectmem-0.3.3 → projectmem-0.3.4}/src/projectmem/commands/note.py +0 -0
  47. {projectmem-0.3.3 → projectmem-0.3.4}/src/projectmem/commands/plan.py +0 -0
  48. {projectmem-0.3.3 → projectmem-0.3.4}/src/projectmem/commands/project.py +0 -0
  49. {projectmem-0.3.3 → projectmem-0.3.4}/src/projectmem/commands/regenerate.py +0 -0
  50. {projectmem-0.3.3 → projectmem-0.3.4}/src/projectmem/commands/score.py +0 -0
  51. {projectmem-0.3.3 → projectmem-0.3.4}/src/projectmem/commands/search.py +0 -0
  52. {projectmem-0.3.3 → projectmem-0.3.4}/src/projectmem/commands/show.py +0 -0
  53. {projectmem-0.3.3 → projectmem-0.3.4}/src/projectmem/commands/stats.py +0 -0
  54. {projectmem-0.3.3 → projectmem-0.3.4}/src/projectmem/commands/visualize.py +0 -0
  55. {projectmem-0.3.3 → projectmem-0.3.4}/src/projectmem/commands/watch.py +0 -0
  56. {projectmem-0.3.3 → projectmem-0.3.4}/src/projectmem/commands/wrap.py +0 -0
  57. {projectmem-0.3.3 → projectmem-0.3.4}/src/projectmem/global_memory.py +0 -0
  58. {projectmem-0.3.3 → projectmem-0.3.4}/src/projectmem/glyphs.py +0 -0
  59. {projectmem-0.3.3 → projectmem-0.3.4}/src/projectmem/models.py +0 -0
  60. {projectmem-0.3.3 → projectmem-0.3.4}/src/projectmem/project_registry.py +0 -0
  61. {projectmem-0.3.3 → projectmem-0.3.4}/src/projectmem/redaction.py +0 -0
  62. {projectmem-0.3.3 → projectmem-0.3.4}/src/projectmem/resolver.py +0 -0
  63. {projectmem-0.3.3 → projectmem-0.3.4}/src/projectmem/search.py +0 -0
  64. {projectmem-0.3.3 → projectmem-0.3.4}/src/projectmem/structure.py +0 -0
  65. {projectmem-0.3.3 → projectmem-0.3.4}/tests/conftest.py +0 -0
  66. {projectmem-0.3.3 → projectmem-0.3.4}/tests/test_client_config_discovery.py +0 -0
  67. {projectmem-0.3.3 → projectmem-0.3.4}/tests/test_dashboard.py +0 -0
  68. {projectmem-0.3.3 → projectmem-0.3.4}/tests/test_global_mcp.py +0 -0
  69. {projectmem-0.3.3 → projectmem-0.3.4}/tests/test_init.py +0 -0
  70. {projectmem-0.3.3 → projectmem-0.3.4}/tests/test_init_ux.py +0 -0
  71. {projectmem-0.3.3 → projectmem-0.3.4}/tests/test_location_parsing.py +0 -0
  72. {projectmem-0.3.3 → projectmem-0.3.4}/tests/test_log.py +0 -0
  73. {projectmem-0.3.3 → projectmem-0.3.4}/tests/test_plan.py +0 -0
  74. {projectmem-0.3.3 → projectmem-0.3.4}/tests/test_redaction.py +0 -0
  75. {projectmem-0.3.3 → projectmem-0.3.4}/tests/test_search.py +0 -0
  76. {projectmem-0.3.3 → projectmem-0.3.4}/tests/test_showoff.py +0 -0
  77. {projectmem-0.3.3 → projectmem-0.3.4}/tests/test_staleness_performance.py +0 -0
  78. {projectmem-0.3.3 → projectmem-0.3.4}/tests/test_structure.py +0 -0
  79. {projectmem-0.3.3 → projectmem-0.3.4}/tests/test_v014_features.py +0 -0
  80. {projectmem-0.3.3 → projectmem-0.3.4}/tests/test_visualize.py +0 -0
  81. {projectmem-0.3.3 → projectmem-0.3.4}/tests/test_watch.py +0 -0
  82. {projectmem-0.3.3 → projectmem-0.3.4}/tests/test_windows_console_encoding.py +0 -0
@@ -98,6 +98,9 @@ brand/CHANGELOG.md
98
98
  # arXiv paper draft, LaTeX sources, and figures — kept off GitHub.
99
99
  arxiv/
100
100
  /arxiv/
101
+ # Paper evaluation artifacts (benchmarks, self-study data, acceptance notes).
102
+ paper/
103
+ /paper/
101
104
  # Poster + research dossier folder (note: the directory name has a
102
105
  # trailing space). Cover both spellings to be safe.
103
106
  poster resource/
@@ -1,5 +1,43 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.3.4
4
+
5
+ **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.
6
+
7
+ ### Fixed
8
+
9
+ - **The guidance named arguments the tools reject.** `AI_INSTRUCTIONS.md`, the `CLAUDE.md`/`AGENTS.md` bridge and the MCP server's own instructions said `precheck_file(path)`; the argument is `file_path`, so an agent that copied the call got a validation error. The README had the same mistake for `get_issue(id)` (it is `issue_id`). A test now reads every call shown on every surface and checks it against the tool's real signature, so a rename can no longer leave the docs behind. ([#18](https://github.com/riponcm/projectmem/issues/18), [#22](https://github.com/riponcm/projectmem/pull/22))
10
+
11
+ - **`summary.md` grew without limit.** Notes were capped at 10, but Recent issues and Decisions listed everything ever logged, so on an aged project the summary cost more to read than the code it describes. Every **open** issue is still listed — it is the one thing the next session must not miss — while fixed issues are capped at the newest 10 and decisions at the newest 15, each with a line saying how many were left out and where to find them. Issue ids sort as numbers, so ids past 9999 no longer sort the newest to the bottom. Past 20 open issues, the older ones are listed by id on a single line instead of in full, so a neglected backlog cannot regrow the summary either. ([#19](https://github.com/riponcm/projectmem/issues/19), [#25](https://github.com/riponcm/projectmem/pull/25))
12
+
13
+ - **Auto-captured commits were filed under `.projectmem/summary.md`.** The location was the first changed path in git's sort order, and `.projectmem/` sorts first, so most commits pointed at the regenerated summary; the staleness check then called valid memories stale and the real file lost its history. The location is now the file the commit is about: deleted paths are skipped, renames use the new name, the first commit and merge commits list their files, non-ASCII paths are unquoted, and source code is preferred over tests, docs, build files, assets and lockfiles. ([#20](https://github.com/riponcm/projectmem/issues/20), [#23](https://github.com/riponcm/projectmem/pull/23))
14
+
15
+ - **Staleness depended on the time zone — a regression in 0.3.3.** The 0.3.3 speed-up compared git's local-offset commit times with UTC event times as plain strings. West of UTC, recent stale memories were never flagged; east of UTC, fresh ones were flagged at once. Both sides are now compared in UTC.
16
+
17
+ - **Already-polluted logs stop warning without being rewritten.** Events filed under `.projectmem/` before this release are no longer stale-checked, and neither are auto-captured fix and note records — they record what a commit did, which cannot go stale. Auto-captured decisions (`Refactor:`, `Breaking change:`) still are. Nothing to run.
18
+
19
+ - **One mistyped issue id broke every later write.** `pjm attempt --issue 0099` (or `record_attempt` with a wrong `issue_id`) appended an attempt with no issue behind it, and the summary rebuild after every following command raised `StopIteration`. Unknown ids are now refused before anything is written, ids are normalised the way `pjm fix` does it, a stale active-issue marker is ignored and cleared, and the summary skips a malformed group instead of crashing.
20
+
21
+ - **`pjm precheck` warned about projectmem's own files.** Staging the regenerated summary printed "HIGH CHURN … may indicate an unresolved architectural issue". Memory files are left out of the check, and `precheck_file` on one now says to use the log tools instead of calling it safe to edit.
22
+
23
+ - **Fixes to the git hooks never reached existing projects.** `pjm init` skipped any hook it had already installed, so the 0.3.3 hook fixes for Windows and GitHub Desktop only reached new projects. Re-running `pjm init` now refreshes projectmem's block in place and leaves everything else in the hook untouched. The hook also records the `pjm` that ran `init`, not whichever one PATH finds first.
24
+
25
+ ### Changed
26
+
27
+ - **`pjm init` refreshes an outdated `AI_INSTRUCTIONS.md`.** It was written only when missing, so every existing project kept the guidance of the release that created it — including the wrong argument above. Re-run `pjm init` once: the file is brought up to date, your previous copy is saved as `AI_INSTRUCTIONS.md.bak` (gitignored), and your inherited global-memory block is kept. A file already at the current version is never touched.
28
+
29
+ - **The guidance states what reading memory costs.** It said a `get_summary` call costs ~500 tokens. Measured on the capped summary it is about 250 tokens on a young project and about 1,100 on an aged one, more with many open issues, so it now says "a few hundred to ~1,500".
30
+
31
+ - `pjm init` no longer writes `summary_size_limit_kb` to `config.toml`. Nothing ever read it.
32
+
33
+ - **After upgrading, the CLI says to run `pjm init` in each project**, since that is what refreshes the instructions file and the git hooks.
34
+
35
+ ### Docs
36
+
37
+ - The README, `llms.txt`, `SECURITY.md` and the tutorial were checked line by line against the code. Fixed: the MCP tool count (17, not 15 or 8), links that broke on PyPI, a link to a contributing guide that did not exist, an example `precheck` line the command never prints, token figures now labelled as estimates, the client-workspace-root routing step marked as planned (it is not wired up yet), and claims that no other tool offers pre-commit warnings or keeps superseded memories — the comparison table was rebuilt from each project's own docs as of 2026-10-02.
38
+
39
+ Fixes for #18 and #20 were contributed by [Rohan Tiwari](https://github.com/RTE404) and the first cap for #19 by [hylin](https://github.com/linhongyu510). #18 and #19 were reported by [@medium-effort](https://github.com/medium-effort) and #20 by [@bigfree](https://github.com/bigfree).
40
+
3
41
  ## 0.3.3
4
42
 
5
43
  **Three reports from Windows, and the tool no longer freezes as your project grows.** Every fix below was found by running projectmem on a real machine, not by reading the code.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: projectmem
3
- Version: 0.3.3
3
+ Version: 0.3.4
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
@@ -19,6 +19,8 @@ Classifier: Programming Language :: Python :: 3
19
19
  Classifier: Programming Language :: Python :: 3.10
20
20
  Classifier: Programming Language :: Python :: 3.11
21
21
  Classifier: Programming Language :: Python :: 3.12
22
+ Classifier: Programming Language :: Python :: 3.13
23
+ Classifier: Programming Language :: Python :: 3.14
22
24
  Classifier: Topic :: Software Development :: Documentation
23
25
  Requires-Python: >=3.10
24
26
  Requires-Dist: mcp<3,>=1.0
@@ -35,13 +37,13 @@ Description-Content-Type: text/markdown
35
37
  <img src="https://raw.githubusercontent.com/projectmem/projectmemdoc/main/logo/projectmem-wordmark-800.png" alt="projectmem" width="420" />
36
38
 
37
39
  <p>
38
- <a href="https://github.com/riponcm/projectmem/blob/main/CHANGELOG.md"><b>🎉 v0.3.3 is out</b></a> —
39
- `pjm precheck` no longer slows down as your project grows, and Windows works end to end.
40
+ <a href="https://github.com/riponcm/projectmem/blob/main/CHANGELOG.md"><b>🎉 v0.3.4 is out</b></a> —
41
+ the summary stays small as your project ages, commits are filed under the code they change, and stale warnings no longer depend on your time zone.
40
42
  <a href="https://github.com/riponcm/projectmem/blob/main/CHANGELOG.md">See what changed →</a>
41
43
  </p>
42
44
 
43
45
  <p><b>We don't make AI smarter. We make it experienced.</b></p>
44
- <p><i><b>Coding agent memory</b> — the local-first memory + judgment layer for AI coding agents. One MCP server for every project. Save up to 50%+ of AI tokens. Stop repeating yesterday's bug.</i></p>
46
+ <p><i><b>Coding agent memory</b> — the local-first memory + judgment layer for AI coding agents. One MCP server for every project. Stop re-reading your project every session. Stop repeating yesterday's bug.</i></p>
45
47
 
46
48
  <p>
47
49
  <a href="https://pypi.org/project/projectmem/"><img src="https://img.shields.io/pypi/v/projectmem.svg?color=4c1d95&label=pypi" alt="PyPI version"></a>
@@ -168,9 +170,8 @@ exposes 17 tools to Claude Code, Claude Desktop, Cursor, Antigravity and Codex,
168
170
  so your agent reads memory and logs its work on its own.
169
171
 
170
172
  Unlike chat-history memory tools, projectmem stores **typed events** — issues,
171
- attempts, fixes, decisions, notes — which is what makes the one thing no other
172
- tool does possible: a **pre-commit warning** that fires *before* you repeat an
173
- approach that already failed.
173
+ attempts, fixes, decisions, notes — which is what makes its signature feature possible: a **pre-commit warning**
174
+ that fires *before* you repeat an approach that already failed in this project.
174
175
 
175
176
  ```bash
176
177
  pip install projectmem
@@ -194,10 +195,10 @@ cd your-project && pjm init
194
195
  | Doc | What's in it |
195
196
  |---|---|
196
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. |
197
- | **[TUTORIAL.md](TUTORIAL.md)** | 15-minute step-by-step walkthrough — set up projectmem on your own project, watch the lifecycle, see the pre-commit warning fire. |
198
- | **[CHANGELOG.md](CHANGELOG.md)** | Release history. Latest: v0.3.3 — `pjm precheck` is flat rather than linear in project age, and six Windows reports are closed. |
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.4 — fixes for three community reports, a bounded summary, and a time-zone regression from 0.3.3. |
199
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. |
200
- | **[LICENSE](LICENSE)** | MIT |
201
+ | **[LICENSE](https://github.com/riponcm/projectmem/blob/main/LICENSE)** | MIT |
201
202
 
202
203
  ---
203
204
 
@@ -232,6 +233,52 @@ That's it. `pjm init` installs three git hooks (pre-commit warnings, post-commit
232
233
 
233
234
  ---
234
235
 
236
+ ## ✨ New in 0.3.4 — memory that stays small, and warnings you can trust
237
+
238
+ **The summary no longer grows forever.** Notes were capped, but Recent issues
239
+ and Decisions listed everything ever logged, so on an aged project reading the
240
+ memory cost more than reading the code. Every **open** issue is still shown —
241
+ the newest 20 in full, older ones by id — while fixed issues are capped at the
242
+ newest 10 and decisions at the newest 15, each with a line saying what was left
243
+ out and where to find it. On a test project with 25 issues and 60 decisions the
244
+ summary went from about 2,900 tokens to about 1,100.
245
+ ([#19](https://github.com/riponcm/projectmem/issues/19))
246
+
247
+ **Commits are filed under the code they change.** Auto-capture used the first
248
+ changed path in git's sort order, which was usually the regenerated
249
+ `.projectmem/summary.md` — so valid memories were flagged stale and the real
250
+ file lost its history. The location is now the source file the commit is about,
251
+ with deletions, renames, merges and a repository's first commit handled.
252
+ ([#20](https://github.com/riponcm/projectmem/issues/20))
253
+
254
+ **Stale warnings no longer depend on your time zone.** A 0.3.3 speed-up compared
255
+ git's local-time commit dates with UTC event times as text: west of UTC, recent
256
+ stale memories were never flagged; east of UTC, fresh ones were flagged at once.
257
+ Both sides are compared in UTC now, and events already filed under
258
+ `.projectmem/` stop warning without your log being rewritten.
259
+
260
+ **The guidance names the tools' real arguments.** It gave `precheck_file` and
261
+ `get_issue` the wrong argument names (`path` and `id`, where the tools take
262
+ `file_path` and `issue_id`) and showed `search_events` without its required
263
+ `query`, so an agent copying the call got a validation error. A test
264
+ now checks every call shown to an agent against the tool's actual signature.
265
+ ([#18](https://github.com/riponcm/projectmem/issues/18))
266
+
267
+ **Upgrading? Run `pjm init` once in each project.** Older projects kept the
268
+ `AI_INSTRUCTIONS.md` and git hooks of the release that created them, so fixes to
269
+ either never arrived. `pjm init` now refreshes both — your previous instructions
270
+ are kept as `AI_INSTRUCTIONS.md.bak`, and anything of yours outside
271
+ projectmem's block in a hook is left untouched.
272
+
273
+ Also: a mistyped issue id no longer breaks every later command, `pjm precheck`
274
+ stops warning about projectmem's own files, and Python 3.13 and 3.14 are
275
+ supported.
276
+
277
+ Fixes for #18 and #20 were contributed by [Rohan Tiwari](https://github.com/RTE404),
278
+ and the first cap for #19 by [hylin](https://github.com/linhongyu510). #18 and #19
279
+ were reported by [@medium-effort](https://github.com/medium-effort), #20 by
280
+ [@bigfree](https://github.com/bigfree).
281
+
235
282
  ## ✨ New in 0.3.3 — precheck stops getting slower, and Windows works end to end
236
283
 
237
284
  `pjm precheck` runs before every edit — the instructions tell agents to call it
@@ -246,9 +293,9 @@ call per distinct *file*, bounded by the oldest event citing it.
246
293
  | 400 | 8,905 ms | 51 ms |
247
294
  | 1,500 | ~33 s, 1,501 git processes | **82 ms, 2 processes** |
248
295
 
249
- Latency is now flat rather than linear in project age. Results are unchanged —
250
- verified against a reimplementation of the old algorithm, including across
251
- merge commits.
296
+ Latency is now flat rather than linear in project age. Results matched a
297
+ reimplementation of the old algorithm, including across merge commits — except
298
+ for a time-zone bug this change introduced, which 0.3.4 fixes.
252
299
 
253
300
  **A retired decision no longer resurfaces.** `supersedes` has existed since
254
301
  0.1.4, but the two surfaces an agent actually reads during work — `get_context`
@@ -273,7 +320,7 @@ console — after it had already created everything, so the command both did its
273
320
  work and reported failure.
274
321
 
275
322
  Every one was fixed by running projectmem on the machines that reported it —
276
- Windows 11, and the four MCP clients — not by reading the code. Reported by
323
+ Windows 11, and three MCP clients (Antigravity, Claude, and Codex) — not by reading the code. Reported by
277
324
  [@medium-effort](https://github.com/riponcm/projectmem/issues), who also
278
325
  contributed the 0.3.2 Windows daemon support.
279
326
 
@@ -390,15 +437,15 @@ Your project's memory is also something you can *watch* — and share.
390
437
 
391
438
  ## Why You'll Love It
392
439
 
393
- - **Pre-Commit Warnings** — `pjm precheck` warns you *before* you commit if you're about to repeat a failed approach, modify a high-churn file, or touch an unresolved issue. No other AI tool does this — it requires the memory layer underneath. The warning now lists the dead ends themselves (*"What already failed here: ✗ tried CSS contain:layout"*), and `pjm precheck --snooze 2h` silences it politely — the snooze is itself logged, so even the silence is audited.
394
- - **Stale-Memory Detection** *(new in 0.1.4)* — other memory tools silently decay or delete old memories; projectmem **never deletes**. Every decision that cites a file is cross-checked against that file's git history — when the file has moved on, the memory is *flagged* ("predates 7 commits to auth.py — confirm or supersede") and a human decides. Retire it cleanly with `pjm decision "new way" --supersedes <id>`: the old event stays in the log, tagged, forever.
440
+ - **Pre-Commit Warnings** — `pjm precheck` warns you *before* you commit if you're about to repeat a failed approach, modify a high-churn file, or touch an unresolved issue. It works from this project's own recorded failures, which is why it needs the memory layer underneath. The warning now lists the dead ends themselves (*"What already failed here: ✗ tried CSS contain:layout"*), and `pjm precheck --snooze 2h` silences it politely — the snooze is itself logged, so even the silence is audited.
441
+ - **Stale-Memory Detection** *(new in 0.1.4)* — projectmem **never deletes** a memory. Every decision that cites a file is cross-checked against that file's git history — when the file has moved on, the memory is *flagged* ("predates 7 commits to auth.py — confirm or supersede") and a human decides. Retire it cleanly with `pjm decision "new way" --supersedes <id>`: the old event stays in the log, tagged, forever.
395
442
  - **Session-Start Briefing** *(new in 0.1.4)* — `pjm brief` answers "where was I?" in one screen: active warnings, possibly-stale memories, open issues, recent decisions, stack gotchas, and your prevention score with a week-over-week delta.
396
443
  - **Memory for agents without MCP** *(new in 0.1.4)* — `pjm export --claude-md` compiles live decisions, gotchas, and a "Do NOT retry — these already failed" list into a marked block in CLAUDE.md (or `.cursorrules`). Copilot, plain Claude, any agent that reads the file inherits your project's judgment.
397
444
  - **Smart Context Injection** — `pjm wrap claude` (or cursor/aider) injects a token-budgeted memory block into your AI before the session opens. Your AI starts experienced, not blank.
398
- - **Provable ROI Score** — `pjm score` outputs a letter grade (A+ → F) backed by concrete numbers — debugging hours saved, tokens prevented, dollars protected. CI-friendly JSON output and shields.io badge for your README.
399
- - **Cross-Project Memory** — Lessons learned in one repo follow you forever. Library gotchas, decisions, and patterns live in `~/.projectmem/global/` and auto-inherit into every new project that matches your stack.
445
+ - **Estimated ROI Score** — `pjm score` outputs a letter grade (A+ → F) with the tool's own estimates of debugging hours saved, tokens avoided, and dollars saved. CI-friendly JSON output and shields.io badge for your README.
446
+ - **Cross-Project Memory** — Lessons learned in one repo follow you forever. Library gotchas, decisions, and patterns live in `~/.projectmem/global/` and are inherited by new projects. A project with a manifest (`pyproject.toml`, `requirements.txt`, `package.json`, `Cargo.toml`, `go.mod`) is offered only the lessons for its stack.
400
447
  - **Real-time File Watcher** — Background daemon detects rapid edits to the same file (debugging sessions) between commits. Battery-aware, gitignore-aware, auto-started by `pjm init`.
401
- - **Native MCP Server** — Plugs into Claude Desktop, Cursor, Antigravity, Codex, and any MCP-compatible tool. 15 native tools force the AI to read context, check files for known failures, read your `plan.md`, and log work automatically. Verified end-to-end against all four clients.
448
+ - **Native MCP Server** — Plugs into Claude Desktop, Cursor, Antigravity, Codex, and any MCP-compatible tool. 17 native tools force the AI to read context, check files for known failures, read your `plan.md`, and log work automatically. Verified end-to-end in all four clients at first release; the 0.3.3 acceptance suite was re-run in Antigravity, Claude, and Codex.
402
449
  - **Interactive Dashboard** *(expanded in 0.1.6)* — `pjm visualize` opens a six-tab local dashboard: Overview, Story Map (failure heatmap with collapse/focus controls), ROI Dashboard, Project Map (**Flow** / Tree / Graph, now over your real code structure), Timeline (**Time Spine** / Details), and **Showoff** — animated story scenes with a built-in video recorder.
403
450
  - **One MCP server for every project** *(new in 0.3.0)* — configure your client once instead of once per repository. Calls name their project (`project="ossdrop"`), or fall back to the active one; every write reports which repo it landed in, and a pinned `--root` server refuses to write outside its own. Existing single-project setups are untouched.
404
451
  - **Global Dashboard** *(new in 0.2.0)* — `pjm dashboard` is one cross-project view over every repo you've `pjm init`-ed: grades, issues, savings, and per-project drill-in. A global *view*, never a global *store* — each repo's memory is aggregated at read time and never leaves its folder. Serverless by default; `--serve` for an ephemeral live server (Ctrl+C to stop).
@@ -408,28 +455,21 @@ Your project's memory is also something you can *watch* — and share.
408
455
 
409
456
  ## How It Compares
410
457
 
411
- | Capability | **projectmem** | claude-mem | agentmemory | mem0 | Letta (MemGPT) |
458
+ | Capability | **projectmem** | claude-mem | agentmemory | mem0 | Letta |
412
459
  |---|:---:|:---:|:---:|:---:|:---:|
413
- | Core focus | **Memory + Judgment** | Session capture | Memory engine | Chat memory | Agent framework |
414
- | Pre-commit failure warnings | ✅ **unique** | ❌ | ❌ | ❌ | ❌ |
415
- | Stale memory: **flag, never delete** | ✅ *new in 0.1.4* | ❌ | ❌ silent decay | ❌ | ❌ |
416
- | Supersede without losing history | ✅ *new in 0.1.4* | ❌ | ❌ | ❌ | ❌ |
417
- | Captures development history | ✅ typed events | 🟡 | 🟡 | 🟡 | 🟡 |
418
- | Records architectural decisions | ✅ | ❌ | 🟡 | ❌ | ❌ |
419
- | Memory for agents without MCP | ✅ CLAUDE.md export | ❌ | ❌ | ❌ | 🟡 |
420
- | Cross-project memory | ✅ library-scoped | 🟡 | 🟡 | 🟡 | 🟡 |
421
- | Provable ROI score | ✅ A+ → F + $ | ❌ | ❌ | ❌ | ❌ |
422
- | Plain-text, greppable store | ✅ events.jsonl | ❌ | ❌ | ❌ | 🟡 |
423
- | No persistent server or DB | ✅ stdio + files † | ❌ | ❌ | ❌ | ❌ server + DB |
424
- | No telemetry, no accounts | ✅ | ❌ default-on | ✅ | ❌ | 🟡 |
425
- | Native MCP server | ✅ 15 focused tools | ✅ | 🟡 53 tools | 🟡 | 🟡 |
426
- | Global dashboard (all repos) | ✅ read-time, local | ❌ | 🟡 central store | ❌ | ❌ |
427
- | Editable intent (plan ≠ memory) | ✅ `plan.md` | ❌ | ❌ | ❌ | 🟡 |
428
- | Price | ✅ Free · MIT | Free + paid tier | Free | Freemium | Free + cloud |
429
-
430
- <sub>✅ yes · 🟡 partial · ❌ no — snapshot June 2026; design capabilities, not benchmark results. claude-mem runs a background worker (port 37777) and enables telemetry by default (v13.5+); agentmemory down-ranks and prunes old memories via decay, mem0 rewrites facts on update, Letta's memory blocks self-edit in place — projectmem never deletes: it flags staleness and lets you decide. Letta requires a running server (Postgres or cloud).</sub>
431
-
432
- <sub>† There is **no database** and **nothing you have to keep running**: the MCP server is a stdio subprocess your AI client spawns, and everything else is plain files. The only server anywhere is the *optional* `pjm dashboard --serve`, an ephemeral local viewer you start and stop with Ctrl+C — never a background service.</sub>
460
+ | Core focus | **Memory + judgment** | Session capture | Memory engine | Chat / user memory | Agent harness |
461
+ | Warns before a commit from a file's own failure history | ✅ | ❌ | ❌ | ❌ | ❌ |
462
+ | Checks memory for staleness against git history | ✅ | ❌ | 🟡 links sessions to commits; time decay | ❌ | ❌ |
463
+ | Failed attempts as typed events | ✅ worked / partial / failed | 🟡 bugfix type | 🟡 captures tool failures | ❌ | ❌ |
464
+ | Keeps superseded memories (no deletion) | ✅ | ? | 🟡 versioned, but decay can evict | ✅ add-only since v3 | ✅ git-versioned memory |
465
+ | Cross-project lessons | ✅ stack-scoped with a manifest | 🟡 opt-in flag | 🟡 cross-project search | 🟡 user-scoped | 🟡 per agent |
466
+ | Runs locally with no LLM API key | ✅ | 🟡 local store, LLM compression | ✅ keyless mode | ❌ self-host needs a key | 🟡 local mode |
467
+ | Native MCP server | ✅ 17 tools | ✅ | ✅ 54 tools | 🟡 hosted only | ❌ MCP client |
468
+ | 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
+
470
+ <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>
471
+
472
+ <sub>There is **no database** and **nothing you have to keep running**: the MCP server is a stdio subprocess your AI client spawns, and everything else is plain files. The only server anywhere is the *optional* `pjm dashboard --serve`, an ephemeral local viewer you start and stop with Ctrl+C.</sub>
433
473
 
434
474
  ## 🚧 Upcoming
435
475
 
@@ -441,11 +481,15 @@ Want a source supported? [Open an issue](https://github.com/riponcm/projectmem/i
441
481
 
442
482
  The architecture is built around one rule: **AI reads small, distilled files. Tools generate them from the big raw log.**
443
483
 
444
- | Access mode | Tokens / session | How it works |
484
+ *Estimates, not benchmarks.* Measured on the 0.3.4 summary itself: about 250
485
+ tokens for a young project and about 1,100 for one with 25 issues and 60
486
+ decisions; more when many issues are open.
487
+
488
+ | Access mode | Tokens / session (estimate) | How it works |
445
489
  |---|---|---|
446
490
  | No projectmem (baseline) | 5,000 – 20,000+ | AI re-reads source files every session |
447
491
  | Universal Mode (markdown) | ~2,500 | AI reads 3 small distilled files once |
448
- | **MCP Mode** *(recommended)* | **~800 – 1,500** | AI calls `get_summary()`, then `get_issue(id)` only when relevant |
492
+ | **MCP Mode** *(recommended)* | **~800 – 1,500** | AI calls `get_summary()`, then `get_issue(issue_id)` only when relevant |
449
493
  | `pjm wrap` (pre-injection) | 500 – 2,000 | Pre-generated, you set the budget |
450
494
 
451
495
  **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.
@@ -480,14 +524,14 @@ How a call is routed, highest first:
480
524
  |---|---|---|
481
525
  | 1 | `--root` at startup | A boundary, not a default. A pinned server refuses to write elsewhere, even when asked. |
482
526
  | 2 | `project="…"` on the call | id, alias or path. An unknown name is an error. |
483
- | 3 | The client's workspace root | Only when exactly one resolves. |
527
+ | 3 | The client's workspace root | *Planned for 0.4.0* — the resolver supports it, but MCP clients don't pass their roots to it yet. |
484
528
  | 4 | The active project | `pjm project use <name>`. |
485
529
  | 5 | The working directory | Walks up looking for `.projectmem/`, like git. |
486
530
  | 6 | — | Refuses, and lists what is registered. It never guesses. |
487
531
 
488
- Client roots outrank the active project on purpose: the root is where you are
489
- now, the active project is a mode you set days ago. When they disagree, the
490
- stale one is the wrong answer.
532
+ Once client roots are wired in, they will outrank the active project on
533
+ purpose: the root is where you are now, the active project is a mode you set
534
+ days ago. When they disagree, the stale one is the wrong answer.
491
535
 
492
536
  Single-repo setups are untouched — `pjm init --mcp-config-single` still prints
493
537
  the pinned config, and an existing `--root` entry keeps working exactly as before.
@@ -545,7 +589,7 @@ Hi — I use projectmem as this project's memory. Before anything else,
545
589
  call get_instructions(), then get_summary(), then get_project_map() to
546
590
  load what we already know. As we work, log issues, attempts
547
591
  (failed/worked), fixes, decisions, and notes with the projectmem tools,
548
- and call precheck_file(path) before you edit a file. Ideas and plans go
592
+ and call precheck_file(file_path) before you edit a file. Ideas and plans go
549
593
  in plan.md via get_plan() — never as events.
550
594
  ```
551
595
 
@@ -669,7 +713,6 @@ Append this block (preserves any existing config):
669
713
  [mcp_servers.projectmem]
670
714
  command = "/opt/anaconda3/bin/python"
671
715
  args = ["-m", "projectmem.mcp_server"]
672
- cwd = "/absolute/path/to/your/project"
673
716
  ```
674
717
 
675
718
  Three things to know about this block:
@@ -709,7 +752,7 @@ root or rely on the parent-walk auto-discovery.
709
752
  All 17 tools your AI can call. Every repo tool takes an optional
710
753
  `project` argument — see [One server, many projects](#one-server-many-projects):
711
754
 
712
- **Read-side (10 tools):**
755
+ **Read-side (12 tools):**
713
756
 
714
757
  | Tool | When to use |
715
758
  |---|---|
@@ -717,12 +760,14 @@ All 17 tools your AI can call. Every repo tool takes an optional
717
760
  | `get_summary()` | Start and end — distilled project memory |
718
761
  | `get_project_map()` | Start — understand repo structure |
719
762
  | `get_plan()` | Read `plan.md` — the ideas + plans (intent), separate from the event log |
720
- | `precheck_file(path)` | Before editing any file — surface failure history |
721
- | `get_issue(id)` | Read one specific issue's full history by ID |
763
+ | `precheck_file(file_path)` | Before editing any file — surface failure history |
764
+ | `get_issue(issue_id)` | Read one specific issue's full history by ID |
722
765
  | `search_events(query)` | Plain-text search across all logged events |
723
766
  | `get_context(tokens, focus)` | Token-budgeted memory block with optional focus filter |
724
767
  | `get_score()` | A+→F prevention score + ROI numbers |
725
768
  | `get_global_gotchas(library)` | Cross-project library lessons inherited from past repos |
769
+ | `list_projects()` | See every registered project, and which one is active |
770
+ | `current_project()` | Check which project a call would resolve to, without writing anything |
726
771
 
727
772
  **Write-side (5 tools):**
728
773
 
@@ -818,8 +863,6 @@ projectmem: Pre-Commit Check
818
863
  pjm decision "..." --supersedes <id>
819
864
  ─────────────────────────────────────────────
820
865
  3 warning(s). Review before committing.
821
-
822
- ~30 min re-debugging just saved.
823
866
  ```
824
867
 
825
868
  Need it quiet for a refactor sprint? `pjm precheck --snooze 2h` — warnings pause, the pause itself is logged, and every commit shows one dim line so silence is never mistaken for a clean check.
@@ -830,11 +873,11 @@ By default, `projectmem` commits the **distilled** files (`summary.md`, `PROJECT
830
873
 
831
874
  **Want total privacy?** Add a single line `.projectmem/` to your `.gitignore`. Nothing leaves your machine.
832
875
 
833
- Full security policy and threat model: [SECURITY.md](SECURITY.md) · [Privacy & Security guide](https://projectmem.dev/guide#privacy-security)
876
+ Full security policy and threat model: [SECURITY.md](https://github.com/riponcm/projectmem/blob/main/SECURITY.md) · [Privacy & Security guide](https://projectmem.dev/guide#privacy-security)
834
877
 
835
878
  ## Design Principles
836
879
 
837
- - **Local-first** — No network calls, no cloud, no telemetry. Your data never leaves your machine.
880
+ - **Local-first** — No cloud, no telemetry, and no network calls unless you turn on the update check. Your data never leaves your machine.
838
881
  - **Project-scoped** — Memory lives in the repo. When the code moves, the memory moves.
839
882
  - **AI-tool-agnostic** — Works natively via MCP, or universally via Markdown instructions. Any AI tool, any workflow.
840
883
 
@@ -882,12 +925,12 @@ MIT — free for personal, commercial, and enterprise use forever.
882
925
 
883
926
  **We don't need money. We need you.**
884
927
 
885
- `projectmem` is built by one developer for the open-source community. Every star, every share, and every contribution helps the project survive and grow.
928
+ `projectmem` was started by one developer and is now shaped by contributors from the open-source community. Every star, every share, and every contribution helps the project survive and grow.
886
929
 
887
930
  - **[Star the repo](https://github.com/riponcm/projectmem)** — takes one click, helps massively with discovery
888
931
  - **Share on X / LinkedIn** — tell other devs they don't have to keep paying AI to relearn their codebase
889
932
  - **[Open an issue](https://github.com/riponcm/projectmem/issues)** — bug, feature request, or just feedback
890
- - **[Contribute code](https://github.com/riponcm/projectmem/blob/main/CONTRIBUTING.md)** — PRs welcome, see contributing guide
933
+ - **[Contribute code](https://github.com/riponcm/projectmem/pulls)** — PRs welcome; for anything large, open an issue first
891
934
  - **Using `projectmem` at work or in a commercial product?** Reach out to [support@projectmem.dev](mailto:support@projectmem.dev) so we know who's shipping with us. It's free — we just love hearing about it.
892
935
 
893
936
  *Stars and shares matter more than money — but if you really want to:* [sponsor on GitHub](https://github.com/sponsors/riponcm) →