projectmem 0.3.2__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.
- {projectmem-0.3.2 → projectmem-0.3.4}/.gitignore +3 -0
- {projectmem-0.3.2 → projectmem-0.3.4}/CHANGELOG.md +78 -0
- {projectmem-0.3.2 → projectmem-0.3.4}/PKG-INFO +142 -54
- {projectmem-0.3.2 → projectmem-0.3.4}/README.md +139 -53
- {projectmem-0.3.2 → projectmem-0.3.4}/SECURITY.md +1 -1
- {projectmem-0.3.2 → projectmem-0.3.4}/TUTORIAL.md +3 -3
- {projectmem-0.3.2 → projectmem-0.3.4}/llms.txt +12 -10
- {projectmem-0.3.2 → projectmem-0.3.4}/pyproject.toml +17 -3
- {projectmem-0.3.2 → projectmem-0.3.4}/src/projectmem/__init__.py +1 -1
- {projectmem-0.3.2 → projectmem-0.3.4}/src/projectmem/cli.py +16 -3
- {projectmem-0.3.2 → projectmem-0.3.4}/src/projectmem/commands/attempt.py +13 -3
- {projectmem-0.3.2 → projectmem-0.3.4}/src/projectmem/commands/auto_capture.py +148 -16
- {projectmem-0.3.2 → projectmem-0.3.4}/src/projectmem/commands/brief.py +2 -1
- {projectmem-0.3.2 → projectmem-0.3.4}/src/projectmem/commands/context.py +10 -1
- {projectmem-0.3.2 → projectmem-0.3.4}/src/projectmem/commands/dashboard.py +2 -1
- {projectmem-0.3.2 → projectmem-0.3.4}/src/projectmem/commands/doctor.py +16 -15
- {projectmem-0.3.2 → projectmem-0.3.4}/src/projectmem/commands/fix.py +6 -22
- {projectmem-0.3.2 → projectmem-0.3.4}/src/projectmem/commands/global_cmd.py +4 -3
- {projectmem-0.3.2 → projectmem-0.3.4}/src/projectmem/commands/hooks.py +135 -49
- {projectmem-0.3.2 → projectmem-0.3.4}/src/projectmem/commands/init.py +87 -46
- {projectmem-0.3.2 → projectmem-0.3.4}/src/projectmem/commands/precheck.py +30 -6
- {projectmem-0.3.2 → projectmem-0.3.4}/src/projectmem/commands/project.py +12 -11
- {projectmem-0.3.2 → projectmem-0.3.4}/src/projectmem/commands/score.py +11 -10
- {projectmem-0.3.2 → projectmem-0.3.4}/src/projectmem/commands/stats.py +4 -3
- {projectmem-0.3.2 → projectmem-0.3.4}/src/projectmem/commands/watch.py +3 -2
- {projectmem-0.3.2 → projectmem-0.3.4}/src/projectmem/commands/wrap.py +4 -3
- projectmem-0.3.4/src/projectmem/glyphs.py +139 -0
- {projectmem-0.3.2 → projectmem-0.3.4}/src/projectmem/mcp_server.py +59 -16
- projectmem-0.3.4/src/projectmem/staleness.py +291 -0
- {projectmem-0.3.2 → projectmem-0.3.4}/src/projectmem/storage.py +146 -6
- {projectmem-0.3.2 → projectmem-0.3.4}/src/projectmem/summary.py +92 -29
- projectmem-0.3.4/tests/test_agent_guidance.py +435 -0
- projectmem-0.3.4/tests/test_attempt.py +84 -0
- projectmem-0.3.4/tests/test_auto_capture.py +324 -0
- projectmem-0.3.4/tests/test_hooks_path.py +397 -0
- projectmem-0.3.4/tests/test_instructions_refresh.py +144 -0
- {projectmem-0.3.2 → projectmem-0.3.4}/tests/test_mcp_server.py +18 -0
- projectmem-0.3.4/tests/test_staleness_performance.py +146 -0
- projectmem-0.3.4/tests/test_staleness_repair.py +256 -0
- projectmem-0.3.4/tests/test_summary.py +249 -0
- projectmem-0.3.4/tests/test_windows_console_encoding.py +178 -0
- projectmem-0.3.4/tests/test_windows_hooks_and_context.py +208 -0
- projectmem-0.3.2/.github/FUNDING.yml +0 -13
- projectmem-0.3.2/src/projectmem/staleness.py +0 -113
- projectmem-0.3.2/tests/test_hooks_path.py +0 -183
- projectmem-0.3.2/tests/test_summary.py +0 -117
- {projectmem-0.3.2 → projectmem-0.3.4}/LICENSE +0 -0
- {projectmem-0.3.2 → projectmem-0.3.4}/src/projectmem/commands/__init__.py +0 -0
- {projectmem-0.3.2 → projectmem-0.3.4}/src/projectmem/commands/backfill.py +0 -0
- {projectmem-0.3.2 → projectmem-0.3.4}/src/projectmem/commands/decision.py +0 -0
- {projectmem-0.3.2 → projectmem-0.3.4}/src/projectmem/commands/export.py +0 -0
- {projectmem-0.3.2 → projectmem-0.3.4}/src/projectmem/commands/instructions.py +0 -0
- {projectmem-0.3.2 → projectmem-0.3.4}/src/projectmem/commands/log.py +0 -0
- {projectmem-0.3.2 → projectmem-0.3.4}/src/projectmem/commands/map.py +0 -0
- {projectmem-0.3.2 → projectmem-0.3.4}/src/projectmem/commands/note.py +0 -0
- {projectmem-0.3.2 → projectmem-0.3.4}/src/projectmem/commands/plan.py +0 -0
- {projectmem-0.3.2 → projectmem-0.3.4}/src/projectmem/commands/regenerate.py +0 -0
- {projectmem-0.3.2 → projectmem-0.3.4}/src/projectmem/commands/search.py +0 -0
- {projectmem-0.3.2 → projectmem-0.3.4}/src/projectmem/commands/show.py +0 -0
- {projectmem-0.3.2 → projectmem-0.3.4}/src/projectmem/commands/visualize.py +0 -0
- {projectmem-0.3.2 → projectmem-0.3.4}/src/projectmem/global_memory.py +0 -0
- {projectmem-0.3.2 → projectmem-0.3.4}/src/projectmem/models.py +0 -0
- {projectmem-0.3.2 → projectmem-0.3.4}/src/projectmem/project_registry.py +0 -0
- {projectmem-0.3.2 → projectmem-0.3.4}/src/projectmem/redaction.py +0 -0
- {projectmem-0.3.2 → projectmem-0.3.4}/src/projectmem/resolver.py +0 -0
- {projectmem-0.3.2 → projectmem-0.3.4}/src/projectmem/search.py +0 -0
- {projectmem-0.3.2 → projectmem-0.3.4}/src/projectmem/structure.py +0 -0
- {projectmem-0.3.2 → projectmem-0.3.4}/tests/conftest.py +0 -0
- {projectmem-0.3.2 → projectmem-0.3.4}/tests/test_client_config_discovery.py +0 -0
- {projectmem-0.3.2 → projectmem-0.3.4}/tests/test_dashboard.py +0 -0
- {projectmem-0.3.2 → projectmem-0.3.4}/tests/test_global_mcp.py +0 -0
- {projectmem-0.3.2 → projectmem-0.3.4}/tests/test_init.py +0 -0
- {projectmem-0.3.2 → projectmem-0.3.4}/tests/test_init_ux.py +0 -0
- {projectmem-0.3.2 → projectmem-0.3.4}/tests/test_location_parsing.py +0 -0
- {projectmem-0.3.2 → projectmem-0.3.4}/tests/test_log.py +0 -0
- {projectmem-0.3.2 → projectmem-0.3.4}/tests/test_plan.py +0 -0
- {projectmem-0.3.2 → projectmem-0.3.4}/tests/test_redaction.py +0 -0
- {projectmem-0.3.2 → projectmem-0.3.4}/tests/test_search.py +0 -0
- {projectmem-0.3.2 → projectmem-0.3.4}/tests/test_showoff.py +0 -0
- {projectmem-0.3.2 → projectmem-0.3.4}/tests/test_structure.py +0 -0
- {projectmem-0.3.2 → projectmem-0.3.4}/tests/test_v014_features.py +0 -0
- {projectmem-0.3.2 → projectmem-0.3.4}/tests/test_visualize.py +0 -0
- {projectmem-0.3.2 → projectmem-0.3.4}/tests/test_watch.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,83 @@
|
|
|
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
|
+
|
|
41
|
+
## 0.3.3
|
|
42
|
+
|
|
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.
|
|
44
|
+
|
|
45
|
+
### Fixed
|
|
46
|
+
|
|
47
|
+
- **`pjm watch --daemon` could not be seen or stopped on Windows, and leaked a process per run.** A hook whose shebang cannot be resolved does not get skipped — git aborts the commit. The hooks shipped `#!/usr/bin/env bash`, which depends on PATH; Git for Windows maps `/bin/sh` to its own shell, and under GitHub Desktop bash often is not there. The snippet body only ever used `[ ]`, `command -v` and `$( )`, so bash bought nothing. Two more faults fed the same failure: the baked binary path went in raw, and on Windows the shell ate its backslashes (`C:\Users\ripon` became `C:\Usersipon`), so the `-x` test failed and the hook silently fell through to its PATH lookup — it only ever worked by accident; and the venv fallback looked in `<prefix>/bin/pjm`, which cannot exist on Windows. ([#16](https://github.com/riponcm/projectmem/issues/16))
|
|
48
|
+
|
|
49
|
+
- **`get_context` described the wrong directory.** `generate_context` defaults its root to `Path.cwd()`, and the MCP server was the only caller that omitted it — both CLI call sites pass it. For an MCP server, cwd is wherever the client launched the process, so the git status and architecture came from the agent harness rather than your project. ([#15](https://github.com/riponcm/projectmem/issues/15))
|
|
50
|
+
|
|
51
|
+
- **A decorative character killed the command on a Windows console.** `pjm init` created `.projectmem/`, the git hooks, `CLAUDE.md` and `AGENTS.md`, then raised `UnicodeEncodeError` printing a box-drawing rule and exited 1 — so the command both did its work and reported failure, which is the worst outcome for any script checking the exit code. A stock Windows install runs the console on cp1252, where `U+2550` has no mapping, and writing it raises rather than degrades. The reported line was only the first one reached: 11 of the 14 glyphs projectmem prints to a terminal are unencodable there. Output streams are now set to replace what they cannot encode, so no glyph can abort a command, and the glyphs themselves fall back to ASCII when the stream cannot carry them — cp1252 output reads as deliberate rather than as a row of `?`. UTF-8 terminals are unchanged, and the web dashboard keeps its real characters.
|
|
52
|
+
|
|
53
|
+
- **Prose punctuation came out as black diamonds on the same console.** A second report against the fix above. An em dash *is* cp1252-encodable (`0x97`), so neither the ASCII fallbacks nor the replacement net touched it — and it still rendered wrong, because Python wrote `0x97` and a terminal set to UTF-8 read that as an invalid lead byte and drew `U+FFFD`. Encodable was never the right test. On a stream that cannot carry Unicode, projectmem now emits no non-ASCII byte at all, so nothing downstream has anything to misread.
|
|
54
|
+
|
|
55
|
+
- **`precheck_file` invented warnings about every project but the server's own.** The tool resolved the project root to read events, then called `_analyze_files` without it, so staleness asked "does this cited file exist?" relative to the MCP server's working directory. In global mode that is the agent harness, so a four-file precheck on an untouched repo came back with 373 phantom "cited file no longer exists" warnings. `_analyze_files` had the same gap one level down — it took the root but called `_git_recent_changes` without it, so `git log` ran in the wrong repository, and outside a repository git fails and the churn count silently fell back to the event log, reporting churn the project did not have. Both surface only when the root differs from cwd, which is every MCP client that does not chdir into the project and never the CLI — which is why `pjm precheck` was always correct.
|
|
56
|
+
|
|
57
|
+
- **Expected errors were reported as crashes.** `pjm fix` with no open issue printed a clear message and then a full traceback underneath it. `typer.Exit` escaped `main()` uncaught, so Python printed the chained cause.
|
|
58
|
+
|
|
59
|
+
### Faster
|
|
60
|
+
|
|
61
|
+
- **`pjm precheck` was taking 26 seconds on a 1,200-event project, and getting worse as the project aged.** It ran one `git log` per event — 1,201 subprocesses — to answer a question about a single file, and the instructions tell agents to call it before modifying anything. Three faults compounded: staleness was computed across the whole event log and then filtered down to the file being checked; the memo key was `(file, timestamp)`, which looks right but never hits because real events carry distinct timestamps; and nothing bounded the git walk. It now makes one `git log` per distinct file, bounded by the oldest event citing it, and counts in memory.
|
|
62
|
+
|
|
63
|
+
| events | before | after |
|
|
64
|
+
|---|---|---|
|
|
65
|
+
| 100 | 2,210 ms | 48 ms |
|
|
66
|
+
| 400 | 8,905 ms | 51 ms |
|
|
67
|
+
| 1,500 | ~33 s, 1,501 git processes | **82 ms, 2 processes** |
|
|
68
|
+
|
|
69
|
+
Latency is now flat rather than linear in project age. The project-wide path used by `pjm brief` and the dashboard went from 26,294 ms to 450 ms. Results are unchanged — verified against a reimplementation of the old algorithm, including across merge commits.
|
|
70
|
+
|
|
71
|
+
### Changed
|
|
72
|
+
|
|
73
|
+
- **Your project is named in `CLAUDE.md`.** One server serves every project, so a tool call that names none is refused rather than guessed at — but nothing ever told the agent the name, so it learned it from the error and retried. That round trip happened every session. The bridge now carries the registered name and the exact argument to pass. ([#14](https://github.com/riponcm/projectmem/issues/14))
|
|
74
|
+
|
|
75
|
+
- **`AGENTS.md` is written alongside `CLAUDE.md`.** The 0.3.3 fix for #14 put the project name in `CLAUDE.md` — which Antigravity and Codex never read, so for those clients the fix did not exist. `pjm init` now writes both files with identical content, and the guidance no longer asks the agent to look the project up before starting: it names the active project first and says calls that omit `project` land there. ([#14](https://github.com/riponcm/projectmem/issues/14))
|
|
76
|
+
|
|
77
|
+
- **Retiring a decision is discoverable.** `supersedes` has existed since 0.1.4 and the summary renderer honours it, but `AI_INSTRUCTIONS.md` mentioned it zero times in 12,503 characters, so models never called it and `summary.md` accumulated decisions that contradicted each other. It is documented now on all three surfaces an agent may read, and each says what it does to the summary rather than only that the argument exists. ([#17](https://github.com/riponcm/projectmem/issues/17))
|
|
78
|
+
|
|
79
|
+
Windows daemon support in 0.3.2 was contributed by [@medium-effort](https://github.com/medium-effort), who also reported every issue fixed in this release.
|
|
80
|
+
|
|
3
81
|
## 0.3.2
|
|
4
82
|
|
|
5
83
|
**Windows works properly now.** `pjm watch --daemon` crashed there, and fixing the crash uncovered a second bug one function away that had been hiding behind it. Both are fixed. `pjm doctor` also learned to notice when a fix you made gets undone.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: projectmem
|
|
3
|
-
Version: 0.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.
|
|
39
|
-
|
|
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.
|
|
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
|
|
172
|
-
|
|
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.
|
|
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,97 @@ 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
|
+
|
|
282
|
+
## ✨ New in 0.3.3 — precheck stops getting slower, and Windows works end to end
|
|
283
|
+
|
|
284
|
+
`pjm precheck` runs before every edit — the instructions tell agents to call it
|
|
285
|
+
first — so its cost is paid constantly. It was taking **26 seconds on a
|
|
286
|
+
1,200-event project**, and getting worse every week, because it ran one
|
|
287
|
+
`git log` per event to answer a question about a single file. It now makes one
|
|
288
|
+
call per distinct *file*, bounded by the oldest event citing it.
|
|
289
|
+
|
|
290
|
+
| events | before | after |
|
|
291
|
+
|---|---|---|
|
|
292
|
+
| 100 | 2,210 ms | 48 ms |
|
|
293
|
+
| 400 | 8,905 ms | 51 ms |
|
|
294
|
+
| 1,500 | ~33 s, 1,501 git processes | **82 ms, 2 processes** |
|
|
295
|
+
|
|
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.
|
|
299
|
+
|
|
300
|
+
**A retired decision no longer resurfaces.** `supersedes` has existed since
|
|
301
|
+
0.1.4, but the two surfaces an agent actually reads during work — `get_context`
|
|
302
|
+
and `precheck_file` — were not filtering it. You could retire a decision and
|
|
303
|
+
still be told about it. Both filter now, and `AI_INSTRUCTIONS.md` finally
|
|
304
|
+
documents how to retire one, which is why models never called it.
|
|
305
|
+
|
|
306
|
+
**Your project is named in the bridge file, and `AGENTS.md` is written too.**
|
|
307
|
+
One server serves every project, so a call naming none is refused rather than
|
|
308
|
+
guessed at — but nothing told the agent the name, so it learned it from the
|
|
309
|
+
error and retried, every session. The name is in the bridge now. It goes into
|
|
310
|
+
`AGENTS.md` as well as `CLAUDE.md`, because Antigravity and Codex never read
|
|
311
|
+
the latter.
|
|
312
|
+
|
|
313
|
+
**Six Windows reports are closed.** Git hooks shipped a `bash` shebang that
|
|
314
|
+
Git for Windows often cannot resolve — and an unresolvable shebang does not
|
|
315
|
+
skip the hook, it aborts your commit. The baked binary path lost its
|
|
316
|
+
backslashes to shell escaping. The venv fallback looked in `bin/`, which
|
|
317
|
+
cannot exist there. `pjm watch --daemon` could not be seen or stopped. And a
|
|
318
|
+
box-drawing character in the output killed `pjm init` outright on a cp1252
|
|
319
|
+
console — after it had already created everything, so the command both did its
|
|
320
|
+
work and reported failure.
|
|
321
|
+
|
|
322
|
+
Every one was fixed by running projectmem on the machines that reported it —
|
|
323
|
+
Windows 11, and three MCP clients (Antigravity, Claude, and Codex) — not by reading the code. Reported by
|
|
324
|
+
[@medium-effort](https://github.com/riponcm/projectmem/issues), who also
|
|
325
|
+
contributed the 0.3.2 Windows daemon support.
|
|
326
|
+
|
|
235
327
|
## ✨ New in 0.3.2 — Windows, properly
|
|
236
328
|
|
|
237
329
|
`pjm watch --daemon` crashed on Windows with `AttributeError: module 'os' has no
|
|
@@ -345,15 +437,15 @@ Your project's memory is also something you can *watch* — and share.
|
|
|
345
437
|
|
|
346
438
|
## Why You'll Love It
|
|
347
439
|
|
|
348
|
-
- **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.
|
|
349
|
-
- **Stale-Memory Detection** *(new in 0.1.4)* —
|
|
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.
|
|
350
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.
|
|
351
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.
|
|
352
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.
|
|
353
|
-
- **
|
|
354
|
-
- **Cross-Project Memory** — Lessons learned in one repo follow you forever. Library gotchas, decisions, and patterns live in `~/.projectmem/global/` and
|
|
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.
|
|
355
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`.
|
|
356
|
-
- **Native MCP Server** — Plugs into Claude Desktop, Cursor, Antigravity, Codex, and any MCP-compatible tool.
|
|
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.
|
|
357
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.
|
|
358
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.
|
|
359
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).
|
|
@@ -363,32 +455,25 @@ Your project's memory is also something you can *watch* — and share.
|
|
|
363
455
|
|
|
364
456
|
## How It Compares
|
|
365
457
|
|
|
366
|
-
| Capability | **projectmem** | claude-mem | agentmemory | mem0 | Letta
|
|
458
|
+
| Capability | **projectmem** | claude-mem | agentmemory | mem0 | Letta |
|
|
367
459
|
|---|:---:|:---:|:---:|:---:|:---:|
|
|
368
|
-
| Core focus | **Memory +
|
|
369
|
-
|
|
|
370
|
-
|
|
|
371
|
-
|
|
|
372
|
-
|
|
|
373
|
-
|
|
|
374
|
-
|
|
|
375
|
-
|
|
|
376
|
-
|
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
| Global dashboard (all repos) | ✅ read-time, local | ❌ | 🟡 central store | ❌ | ❌ |
|
|
382
|
-
| Editable intent (plan ≠ memory) | ✅ `plan.md` | ❌ | ❌ | ❌ | 🟡 |
|
|
383
|
-
| Price | ✅ Free · MIT | Free + paid tier | Free | Freemium | Free + cloud |
|
|
384
|
-
|
|
385
|
-
<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>
|
|
386
|
-
|
|
387
|
-
<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>
|
|
388
473
|
|
|
389
474
|
## 🚧 Upcoming
|
|
390
475
|
|
|
391
|
-
- **Import your existing memory** — `pjm import` *(planned for 0.
|
|
476
|
+
- **Import your existing memory** — `pjm import` *(planned for 0.4.0)* will migrate history from **mem0**, **agentmemory**, **Letta**, and Claude session logs into projectmem. It maps only to the core event vocabulary — issues, attempts, fixes, decisions, notes — so signal comes in and another tool's clutter stays out. Your judgment history moves with you.
|
|
392
477
|
|
|
393
478
|
Want a source supported? [Open an issue](https://github.com/riponcm/projectmem/issues) and tell us what you're migrating from.
|
|
394
479
|
|
|
@@ -396,11 +481,15 @@ Want a source supported? [Open an issue](https://github.com/riponcm/projectmem/i
|
|
|
396
481
|
|
|
397
482
|
The architecture is built around one rule: **AI reads small, distilled files. Tools generate them from the big raw log.**
|
|
398
483
|
|
|
399
|
-
|
|
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 |
|
|
400
489
|
|---|---|---|
|
|
401
490
|
| No projectmem (baseline) | 5,000 – 20,000+ | AI re-reads source files every session |
|
|
402
491
|
| Universal Mode (markdown) | ~2,500 | AI reads 3 small distilled files once |
|
|
403
|
-
| **MCP Mode** *(recommended)* | **~800 – 1,500** | AI calls `get_summary()`, then `get_issue(
|
|
492
|
+
| **MCP Mode** *(recommended)* | **~800 – 1,500** | AI calls `get_summary()`, then `get_issue(issue_id)` only when relevant |
|
|
404
493
|
| `pjm wrap` (pre-injection) | 500 – 2,000 | Pre-generated, you set the budget |
|
|
405
494
|
|
|
406
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.
|
|
@@ -435,14 +524,14 @@ How a call is routed, highest first:
|
|
|
435
524
|
|---|---|---|
|
|
436
525
|
| 1 | `--root` at startup | A boundary, not a default. A pinned server refuses to write elsewhere, even when asked. |
|
|
437
526
|
| 2 | `project="…"` on the call | id, alias or path. An unknown name is an error. |
|
|
438
|
-
| 3 | The client's workspace root |
|
|
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. |
|
|
439
528
|
| 4 | The active project | `pjm project use <name>`. |
|
|
440
529
|
| 5 | The working directory | Walks up looking for `.projectmem/`, like git. |
|
|
441
530
|
| 6 | — | Refuses, and lists what is registered. It never guesses. |
|
|
442
531
|
|
|
443
|
-
|
|
444
|
-
now, the active project is a mode you set
|
|
445
|
-
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.
|
|
446
535
|
|
|
447
536
|
Single-repo setups are untouched — `pjm init --mcp-config-single` still prints
|
|
448
537
|
the pinned config, and an existing `--root` entry keeps working exactly as before.
|
|
@@ -500,7 +589,7 @@ Hi — I use projectmem as this project's memory. Before anything else,
|
|
|
500
589
|
call get_instructions(), then get_summary(), then get_project_map() to
|
|
501
590
|
load what we already know. As we work, log issues, attempts
|
|
502
591
|
(failed/worked), fixes, decisions, and notes with the projectmem tools,
|
|
503
|
-
and call precheck_file(
|
|
592
|
+
and call precheck_file(file_path) before you edit a file. Ideas and plans go
|
|
504
593
|
in plan.md via get_plan() — never as events.
|
|
505
594
|
```
|
|
506
595
|
|
|
@@ -624,7 +713,6 @@ Append this block (preserves any existing config):
|
|
|
624
713
|
[mcp_servers.projectmem]
|
|
625
714
|
command = "/opt/anaconda3/bin/python"
|
|
626
715
|
args = ["-m", "projectmem.mcp_server"]
|
|
627
|
-
cwd = "/absolute/path/to/your/project"
|
|
628
716
|
```
|
|
629
717
|
|
|
630
718
|
Three things to know about this block:
|
|
@@ -664,7 +752,7 @@ root or rely on the parent-walk auto-discovery.
|
|
|
664
752
|
All 17 tools your AI can call. Every repo tool takes an optional
|
|
665
753
|
`project` argument — see [One server, many projects](#one-server-many-projects):
|
|
666
754
|
|
|
667
|
-
**Read-side (
|
|
755
|
+
**Read-side (12 tools):**
|
|
668
756
|
|
|
669
757
|
| Tool | When to use |
|
|
670
758
|
|---|---|
|
|
@@ -672,12 +760,14 @@ All 17 tools your AI can call. Every repo tool takes an optional
|
|
|
672
760
|
| `get_summary()` | Start and end — distilled project memory |
|
|
673
761
|
| `get_project_map()` | Start — understand repo structure |
|
|
674
762
|
| `get_plan()` | Read `plan.md` — the ideas + plans (intent), separate from the event log |
|
|
675
|
-
| `precheck_file(
|
|
676
|
-
| `get_issue(
|
|
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 |
|
|
677
765
|
| `search_events(query)` | Plain-text search across all logged events |
|
|
678
766
|
| `get_context(tokens, focus)` | Token-budgeted memory block with optional focus filter |
|
|
679
767
|
| `get_score()` | A+→F prevention score + ROI numbers |
|
|
680
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 |
|
|
681
771
|
|
|
682
772
|
**Write-side (5 tools):**
|
|
683
773
|
|
|
@@ -773,8 +863,6 @@ projectmem: Pre-Commit Check
|
|
|
773
863
|
pjm decision "..." --supersedes <id>
|
|
774
864
|
─────────────────────────────────────────────
|
|
775
865
|
3 warning(s). Review before committing.
|
|
776
|
-
|
|
777
|
-
~30 min re-debugging just saved.
|
|
778
866
|
```
|
|
779
867
|
|
|
780
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.
|
|
@@ -785,11 +873,11 @@ By default, `projectmem` commits the **distilled** files (`summary.md`, `PROJECT
|
|
|
785
873
|
|
|
786
874
|
**Want total privacy?** Add a single line `.projectmem/` to your `.gitignore`. Nothing leaves your machine.
|
|
787
875
|
|
|
788
|
-
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)
|
|
789
877
|
|
|
790
878
|
## Design Principles
|
|
791
879
|
|
|
792
|
-
- **Local-first** — No
|
|
880
|
+
- **Local-first** — No cloud, no telemetry, and no network calls unless you turn on the update check. Your data never leaves your machine.
|
|
793
881
|
- **Project-scoped** — Memory lives in the repo. When the code moves, the memory moves.
|
|
794
882
|
- **AI-tool-agnostic** — Works natively via MCP, or universally via Markdown instructions. Any AI tool, any workflow.
|
|
795
883
|
|
|
@@ -837,12 +925,12 @@ MIT — free for personal, commercial, and enterprise use forever.
|
|
|
837
925
|
|
|
838
926
|
**We don't need money. We need you.**
|
|
839
927
|
|
|
840
|
-
`projectmem`
|
|
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.
|
|
841
929
|
|
|
842
930
|
- **[Star the repo](https://github.com/riponcm/projectmem)** — takes one click, helps massively with discovery
|
|
843
931
|
- **Share on X / LinkedIn** — tell other devs they don't have to keep paying AI to relearn their codebase
|
|
844
932
|
- **[Open an issue](https://github.com/riponcm/projectmem/issues)** — bug, feature request, or just feedback
|
|
845
|
-
- **[Contribute code](https://github.com/riponcm/projectmem/
|
|
933
|
+
- **[Contribute code](https://github.com/riponcm/projectmem/pulls)** — PRs welcome; for anything large, open an issue first
|
|
846
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.
|
|
847
935
|
|
|
848
936
|
*Stars and shares matter more than money — but if you really want to:* [sponsor on GitHub](https://github.com/sponsors/riponcm) →
|