Solution for long term memory for agent coding CLIs and to facilitate handoff between different agent vendors
Rust
merge main into the Cursor provider branch
José Fernando Gomes Marcial15c01c411811
diff --cc CHANGELOG.mdindex e80c8ae0,a1869c1f..14c4d539--- a/CHANGELOG.md+++ b/CHANGELOG.md@@@ -7,13 -7,30 +7,37 @@@ and this project adheres to [Semantic V## [Unreleased]+### Added+- Added the `cursor` LLM provider. Consolidation calls the logged-in Cursor+ Agent CLI (`agent --print --mode ask`) so a Cursor subscription can drive+ summaries without an API key. The default model is `cursor-grok-4.6-high`+ ("Grok 4.6"). `AI_MEMORY_CURSOR_AGENT` overrides the binary. The provider never passes+ `--yolo` or `--force`, because the prompt is captured session text.++ ### Fixed+ - Fixed the hook spool charging a spooled event's retry budget while the+ server was unreachable: an endpoint-level delivery failure (connection+ refused, timeout, DNS — the existing `Unreachable` classification) no+ longer increments `attempts`, so a total outage no longer deletes the+ oldest events at roughly one per `max_attempts` drain passes while the+ server is down. Post-connect failures (a server that answers with 5xx or+ a protocol error) keep the previous charging semantics, and the 10,000+ file cap and 7-day spool TTL bounds are unchanged. Also corrected the+ stale `hooks/_lib.sh` comment that claimed the backlog is drained at+ session boundaries only (a piggyback drain also runs after any+ successful 2xx POST). (#1121)+ - Fixed the PowerShell hook bundle silently losing every capture event+ during a server outage: the `.ps1` path now spools an undeliverable POST+ (connection failure, timeout, or 5xx) to the same `<data_dir>/hook-spool/`+ on-disk contract the shell bundle, the native hooks, and+ `ai-memory hook-drain` share — same `<ms>-<pid>-<seq>.json` entry names,+ same `SpoolEntry` JSON — and, like `ai_memory_post_hook`, kicks a detached+ bounded drain (≤64 entries) after the next successful delivery, retires+ entries on a 2xx or a terminal 4xx, and never spools a routed-repository+ or externally-owned capture event. The PowerShell POST also mints an+ idempotency `ingest_key` before its initial attempt and keeps it on the+ spooled replay, so an ambiguous delivery that committed server-side is+ discarded on replay instead of double-ingested. (#1122)## [2.6.0] - 2026-10-07