Repository navigation
Releases
Releases · maxLWS/agy-memory
agy-memory v0.4.2
Bug Fixes (v0.4.2)
- Legacy
v0.3.0Markdown notes migration (--cli migrate-notes): reads the actualv0.3.0path (<dataDir>/plugin_data/agy-memory/memory/topics, with fallback to<dataDir>/memory/topics) and implements--dry-runpreview without writing to disk. - Strict boolean parsing at the MCP boundary (
src/tools.ts): prevents string"false"from being coerced totrueviaBoolean(...)forallScopes,delete,regex,includeChildren,includeTools, andincludeThinking. - Multibyte CJK Swarm message recovery (
src/store.ts): checks both character length and UTF-8 byte length so oversized CJK single-message reads always keep the fullboard.jsonlrecovery path within the8,650-byte inline cap. - CLI
readboolean flags (src/mcp-server.ts): accepts both--tools/--include-toolsand--thinking/--include-thinkingwithout swallowing positional session IDs. - Multi-client Swarm merge & byte-cap safety (
src/store.ts): preservesswarm*paths from Swarm-bearing copies during cross-client merge and wraps remainingread_sessionreturn paths intruncateUtf8. - Docs & cleanup: corrected
v0.3.0 -> v0.4.xsource line counts, benchmark table labels (error_historypre-hint baseline &0/5dual-project pass wording), andSessionStartinline snippet formatting; removed unused legacyscripts/analytics.ts.
v0.4.1
What changed
- Per-project Markdown blackboard (
board_read,board_post)- Stores active project conventions, decisions, and open handoffs as one Markdown file per key under
~/.gemini/agy-memory/boards/<scope>/entries/<slug>.md, with per-key atomiclinkSynclocking, serialized dead-PID lock reaping, andexpectedRevisioncompare-and-swap checks. - Resolves scope by
ScopeKey: named Projects (project/<id>, reading Protobuf field 18 fromconversations/<id>.dbon Turn 0 beforeconversation_summaries.dbis populated), plain CLI repos (cli_repo/<gitCommonDir>, unifying linked Git worktrees with zero subprocesses and expanding Windows 8.3 short paths viafs.realpathSync.native), plain directories (cli_workspace/<realpath>),global, and fail-closedunresolved. - Merges read-only catalogs across Antigravity App, CLI, and IDE by conversation UUID, and injects whole board entries (
<= 1,536 B) or a key index onSessionStartinstead of the old 88-char prompt slice.
- Stores active project conventions, decisions, and open handoffs as one Markdown file per key under
- Smaller 4-tool surface and lowest Turn-1 prompt cost since
v0.1.0- Merged
list_sessionsintosearch_sessions(omitqueryintextmode) and enforced project scoping unlessallScopes=trueis passed. - Cut combined startup metadata (
tools/list+rules/AGENTS.md) from11,022 B(v0.2.0),7,674 B(v0.3.0), and13,946 B(expanded schemas) to7,092 B(4tools,43params).
- Merged
- Unclipped single-message Swarm reads (
v0.4.1)- Removed the hardcoded 1,400-char cap in
read_session(mode="swarm")when reading single or small message slices so long audit conclusions fit inside the inline8,650 Bbudget.
- Removed the hardcoded 1,400-char cap in
Breaking changes and upgrading from v0.3
- Removed Codex (
~/.codex) and Claude Code (~/.claude) adapters (sourceparameter). - Replaced
save_note,recall_notes, and standalonelist_sessionswithboard_read,board_post, andsearch_sessions. - Existing v0.3 notes (
topics/*.mdornotes.json) remain untouched on disk. Import them into the global board non-destructively if needed:
node ~/.gemini/config/plugins/agy-memory/dist/mcp-server.mjs --cli migrate-notes --scope globalMeasured trajectory (v0.1.0 -> v0.4.1, 150+ isolated agy -p runs)
| Scenario | No plugin | v0.2.0 |
v0.3.0 |
v0.4.1 |
|---|---|---|---|---|
7-task archive recall (T1–T7) |
594.4s model, 10 spills |
213.2s (-64%), 0 spills |
208.7s (-65%), 0 spills |
Preserved (0 spills) |
Blackboard & isolation (B1–B5, Gemini) |
0/15 | No project_id board |
11/15 (0/3 dual-proj bleed) |
15/15 (3/3 zero bleed) |
| Same suite on Claude Sonnet 5.5 | - | - | 6/10 (0/2 dual-proj bleed) |
10/10 (2/2 zero bleed) |
| Turn-1 prompt tax (unrelated math, Gemini) | Baseline (9,617 tok) |
+3,907 tok |
+3,304 tok |
+2,648 tok (-20% vs v0.3.0) |
| 3.5 KB Swarm audit verdict (190 sessions) | Timeout (125.7s) |
- | Timeout (126.0s) |
50.4s, 5 turns, 0 spills |
Upgrade
# If installed from a local clone
node scripts/install.mjs update
# Or one-line installer (macOS / Linux)
curl -fsSL https://raw.githubusercontent.com/maxLWS/agy-memory/main/install.sh | shFull changelog and benchmark methodology: CHANGELOG.md and docs/BENCHMARK_REPORT.md.
v0.3.0
What changed
- File & error history in
search_sessions(still 5 tools, zero runtime dependencies):mode="file_history"(agy): tells apart sessions that actually edited a file (write_succeeded/write_failed/write_unverified) from read-only sessions, with duplicate-filename disambiguation and exact#steplinks.mode="error_history"(agy): finds past command/tool failures with exit codes, later edits in the same session, and whether the exact same command + working directory later passed (PASSEDvsUNRESOLVED).- Streaming JSONL reader with incremental byte offsets, 32 MB / 2.5 s scan caps, partial-progress resumption, and explicit
INCOMPLETE SCANnotices.
- Editable Markdown notes (
topics/<id>.md+MEMORY.md):- Each note lives in its own Markdown file with
schema: 1frontmatter;MEMORY.mdkeeps a managed index block without touching user text outside the markers. - Returns
Revisionon save/recall and enforces compare-and-swap viaexpectedRevision, with lockfile serialization across concurrent MCP processes and automatic migration from legacynotes.json(while keepingSessionStartstrictly read-only).
- Each note lives in its own Markdown file with
- Read-only Codex & Claude Code support:
list_sessions,search_sessions(mode="text"), andread_sessionacceptsource="codex"|"claude"|"all"while keepingsource="agy"as the default, using source-qualified IDs (codex:<id>,claude:<id>,agy:<id>).
- Smaller startup prompt & bug fixes:
- Cut startup metadata (
5 tool schemas + rules/AGENTS.md) by 30.4% vsv0.2.0(11,022 B → 7,668 B). - Bypassed raw-file
rgprefiltering onregex: truesearches, preserved artifact-filename-only hits, enforced single-session ambiguity checks insearch_sessions(sessionId=...), and propagated read I/O errors as incomplete scans.
- Cut startup metadata (
Upgrade
# If installed from a local clone
node scripts/install.mjs update
# Or one-line installer (macOS / Linux)
curl -fsSL https://raw.githubusercontent.com/maxLWS/agy-memory/main/install.sh | shFull details: CHANGELOG.md
v0.2.0 — Initial Open-Source Release
Changelog
All notable changes to agy-memory are documented in this file.
[0.2.0] - 2026-11-25
Added
- TypeScript + zero-dependency single-file packaging: Migrated all source modules to strict TypeScript (
src/*.ts) compiled withesbuildinto unminified, zero-dependency single-file bundles (dist/mcp-server.mjs,dist/session-start.mjs). - Cross-platform support (Linux, macOS, Windows):
- Native Node 22.5+/24
node:sqliteread-only backend (zero subprocess spawn), with automatic fallback tosqlite3CLI, cross-platform Python (pathlib.Path.as_uri()+?mode=ro), and pure-JSbrain/directory scanning. - Windows
file:///C:/...workspace URI normalization, backslash path matching, and Windowsrgpath lookup. - One-command installers (
install.shandinstall.ps1), self-containedscripts/install.mjs(install,update,uninstall,status,doctor,--project), and synthetic CI stress suite (npm run bench:stress).
- Native Node 22.5+/24
- Search & recall upgrades:
sessionIdsingle-conversation scoping and prefix/multi-IDexcludeSessionIdonsearch_sessionsandlist_sessions.- Automatic
transcript_full.jsonlhydration fortruncated_fieldsin both search andread_session(mode="turns"), pluscharOffsetpagination for >8.2 KB turns. - Automatic exclusion of active in-flight
USER_INPUTprompts (eliminating self-matching on negative queries) and authoritative 0-match coverage reporting. - Greedy term-coverage & step/source diversity snippet selection, recency-decayed ranking, and strict
scopeisolation. - Artifact hits expose full
Pathand line count for direct nativeread_filehandoff.
- Swarm & digest upgrades:
- Newest-preserving budget packing in
read_session(mode="swarm"), board-derived agent roster fallback whenmembers.jsonis absent, andstartSeq/endSeq/queryfilters (tailMessagesup to 100). - Tool-only turn summaries and high-signal middle milestone sampling in
read_session(mode="digest").
- Newest-preserving budget packing in
- Diagnostics & offline analytics:
- Added
--cli statsoffline transcript usage analyzer (src/analytics.ts) andinstall.mjs doctor.
- Added
Fixed
- Fixed
SessionStartsnapshot surfacing noisy tiny/temp probes and failing to extract substantive prompts from >160 KB tool tails; now injectsCurrent session: <shortId>and pinned note[tags]. - Fixed UTF-16 surrogate-pair splitting, ASCII byte overrun near 8650 B, and negative
maxCharsclamping intruncateUtf8. - Fixed LSP stdio framing when
Content-TypeprecedesContent-Length, added proper JSON-RPC-32700/-32600error responses, MCPisError: trueon validation failures, and clean stdout flushing on EOF.
[0.1.0] - 2026-11-24
Added
- Initial Antigravity native plugin release with 5 eager MCP tools (
list_sessions,search_sessions,read_session,save_note,recall_notes),SessionStartsnapshot hook,rules/AGENTS.md, and--clifallback mode.