Skip to content

Releases

agy-memory v0.4.2

Choose a tag to compare

@maxLWS maxLWS released this 26 Nov 07:40

Bug Fixes (v0.4.2)

  • Legacy v0.3.0 Markdown notes migration (--cli migrate-notes): reads the actual v0.3.0 path (<dataDir>/plugin_data/agy-memory/memory/topics, with fallback to <dataDir>/memory/topics) and implements --dry-run preview without writing to disk.
  • Strict boolean parsing at the MCP boundary (src/tools.ts): prevents string "false" from being coerced to true via Boolean(...) for allScopes, delete, regex, includeChildren, includeTools, and includeThinking.
  • 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 full board.jsonl recovery path within the 8,650-byte inline cap.
  • CLI read boolean flags (src/mcp-server.ts): accepts both --tools/--include-tools and --thinking/--include-thinking without swallowing positional session IDs.
  • Multi-client Swarm merge & byte-cap safety (src/store.ts): preserves swarm* paths from Swarm-bearing copies during cross-client merge and wraps remaining read_session return paths in truncateUtf8.
  • Docs & cleanup: corrected v0.3.0 -> v0.4.x source line counts, benchmark table labels (error_history pre-hint baseline & 0/5 dual-project pass wording), and SessionStart inline snippet formatting; removed unused legacy scripts/analytics.ts.

v0.4.1

Choose a tag to compare

@maxLWS maxLWS released this 26 Nov 05:01

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 atomic linkSync locking, serialized dead-PID lock reaping, and expectedRevision compare-and-swap checks.
    • Resolves scope by ScopeKey: named Projects (project/<id>, reading Protobuf field 18 from conversations/<id>.db on Turn 0 before conversation_summaries.db is populated), plain CLI repos (cli_repo/<gitCommonDir>, unifying linked Git worktrees with zero subprocesses and expanding Windows 8.3 short paths via fs.realpathSync.native), plain directories (cli_workspace/<realpath>), global, and fail-closed unresolved.
    • 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 on SessionStart instead of the old 88-char prompt slice.
  • Smaller 4-tool surface and lowest Turn-1 prompt cost since v0.1.0
    • Merged list_sessions into search_sessions (omit query in text mode) and enforced project scoping unless allScopes=true is passed.
    • Cut combined startup metadata (tools/list + rules/AGENTS.md) from 11,022 B (v0.2.0), 7,674 B (v0.3.0), and 13,946 B (expanded schemas) to 7,092 B (4 tools, 43 params).
  • 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 inline 8,650 B budget.

Breaking changes and upgrading from v0.3

  • Removed Codex (~/.codex) and Claude Code (~/.claude) adapters (source parameter).
  • Replaced save_note, recall_notes, and standalone list_sessions with board_read, board_post, and search_sessions.
  • Existing v0.3 notes (topics/*.md or notes.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 global

Measured 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 | sh

Full changelog and benchmark methodology: CHANGELOG.md and docs/BENCHMARK_REPORT.md.

v0.3.0

Choose a tag to compare

@maxLWS maxLWS released this 25 Nov 04:45

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 #step links.
    • 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 (PASSED vs UNRESOLVED).
    • Streaming JSONL reader with incremental byte offsets, 32 MB / 2.5 s scan caps, partial-progress resumption, and explicit INCOMPLETE SCAN notices.
  • Editable Markdown notes (topics/<id>.md + MEMORY.md):
    • Each note lives in its own Markdown file with schema: 1 frontmatter; MEMORY.md keeps a managed index block without touching user text outside the markers.
    • Returns Revision on save/recall and enforces compare-and-swap via expectedRevision, with lockfile serialization across concurrent MCP processes and automatic migration from legacy notes.json (while keeping SessionStart strictly read-only).
  • Read-only Codex & Claude Code support:
    • list_sessions, search_sessions(mode="text"), and read_session accept source="codex"|"claude"|"all" while keeping source="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% vs v0.2.0 (11,022 B → 7,668 B).
    • Bypassed raw-file rg prefiltering on regex: true searches, preserved artifact-filename-only hits, enforced single-session ambiguity checks in search_sessions(sessionId=...), and propagated read I/O errors as incomplete scans.

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 | sh

Full details: CHANGELOG.md

v0.2.0 — Initial Open-Source Release

Choose a tag to compare

@maxLWS maxLWS released this 25 Nov 02:20

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 with esbuild into 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:sqlite read-only backend (zero subprocess spawn), with automatic fallback to sqlite3 CLI, cross-platform Python (pathlib.Path.as_uri() + ?mode=ro), and pure-JS brain/ directory scanning.
    • Windows file:///C:/... workspace URI normalization, backslash path matching, and Windows rg path lookup.
    • One-command installers (install.sh and install.ps1), self-contained scripts/install.mjs (install, update, uninstall, status, doctor, --project), and synthetic CI stress suite (npm run bench:stress).
  • Search & recall upgrades:
    • sessionId single-conversation scoping and prefix/multi-ID excludeSessionId on search_sessions and list_sessions.
    • Automatic transcript_full.jsonl hydration for truncated_fields in both search and read_session(mode="turns"), plus charOffset pagination for >8.2 KB turns.
    • Automatic exclusion of active in-flight USER_INPUT prompts (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 scope isolation.
    • Artifact hits expose full Path and line count for direct native read_file handoff.
  • Swarm & digest upgrades:
    • Newest-preserving budget packing in read_session(mode="swarm"), board-derived agent roster fallback when members.json is absent, and startSeq / endSeq / query filters (tailMessages up to 100).
    • Tool-only turn summaries and high-signal middle milestone sampling in read_session(mode="digest").
  • Diagnostics & offline analytics:
    • Added --cli stats offline transcript usage analyzer (src/analytics.ts) and install.mjs doctor.

Fixed

  • Fixed SessionStart snapshot surfacing noisy tiny/temp probes and failing to extract substantive prompts from >160 KB tool tails; now injects Current session: <shortId> and pinned note [tags].
  • Fixed UTF-16 surrogate-pair splitting, ASCII byte overrun near 8650 B, and negative maxChars clamping in truncateUtf8.
  • Fixed LSP stdio framing when Content-Type precedes Content-Length, added proper JSON-RPC -32700 / -32600 error responses, MCP isError: true on 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), SessionStart snapshot hook, rules/AGENTS.md, and --cli fallback mode.