Skip to content

Solution for long term memory for agent coding CLIs and to facilitate handoff between different agent vendors

Rust

Merge PR #47: feat(consolidate): add slot write regimes (closes #14)

AkitaOnRails1cbe30836ade
diff --cc CHANGELOG.md
index e5e643a4,e1df6a45..3c0aa69d
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@@ -7,19 -7,17 +7,29 @@@ and this project adheres to [Semantic V
## [Unreleased]
+ ### Added
+ - `_slots/*.md` pages can now declare `slot_kind: state` or
+ `slot_kind: invariant` frontmatter. `state` remains the default for existing
+ slots; `invariant` marks high-resistance project context or preferences that
+ consolidation should not rewrite unless observations directly contradict the
- existing slot content.
++ existing slot content ([#47], closes [#14]).
+
### Fixed
+- **Windows PowerShell hooks no longer hang or stall the agent.** The shared
+ `hooks/lib/ai-memory-hook.ps1` read stdin via `[Console]::In.ReadToEnd()`,
+ which blocks indefinitely when the agent does not close the stdin pipe
+ (observed on Claude Code `PreCompact`); because the `Invoke-WebRequest`
+ timeout only starts after the read returns, a stuck read meant the hook
+ never POSTed anything. Stdin is now read asynchronously, guarded by
+ `[Console]::IsInputRedirected` with a 2s cap, so the hook can never freeze.
+ HTTP timeouts were also raised from 1s to 3s (POST) / 2s (handoff GET) to
+ tolerate remote servers over higher-latency links. The full raw payload is
+ still forwarded (parity with `_lib.sh`), so observation title/body stay
+ intact. Affects every agent still on the PowerShell hook runner
- (Codex, Cursor, Gemini CLI, Antigravity, OpenCode on Windows).
++ (Codex, Cursor, Gemini CLI, Antigravity, OpenCode on Windows) ([#48]).
+ - Page upserts now treat frontmatter/title/tier/pinned changes as real page
- updates instead of short-circuiting solely on unchanged body text, keeping the
- SQLite index consistent with markdown frontmatter-only edits.
++ updates instead of short-circuiting solely on unchanged body text, keeping
++ the SQLite index consistent with markdown frontmatter-only edits ([#47]).
## [0.6.1] - 2026-05-28