Solution for long term memory for agent coding CLIs and to facilitate handoff between different agent vendors
Rust
Merge remote-tracking branch 'origin/main' into merge-422
AkitaOnRailse29b044c322a
diff --cc CHANGELOG.mdindex b5a25ccb,d34a2969..0cf548c1--- a/CHANGELOG.md+++ b/CHANGELOG.md@@@ -41,23 -41,16 +41,32 @@@ and this project adheres to [Semantic Vunchanged ([#412]). The key is documented in the generated`config.default.toml` so it is discoverable without reading the source.+ ### Improved+ - The `open_questions` field in automatic SessionEnd handoffs now uses+ multi-signal heuristics instead of blindly copying the last user prompt.+ Trailing acknowledgments ("ok", "thanks", "好的") are filtered; a+ question-mark-terminated final prompt is tagged as an unresolved question;+ file-tool activity without a subsequent Stop produces an advisory to check+ the working tree; and a mid-task exit (Stop without SessionEnd) is flagged+ so the receiver knows the previous session did not finish cleanly. (#425)+### Fixed+- `install-hooks` now writes agent-distinct extension filenames+ (`ai-memory-pi.ts`, `ai-memory-omp.ts`) instead of both agents sharing+ `ai-memory.ts`, so a Pi install and an OMP install no longer overwrite each+ other when `PI_CODING_AGENT_DIR` points them at one home. A superseded+ `ai-memory.ts` is removed only when it carries this tool's generated marker+ *for that same agent* — a file you wrote yourself, or the other agent's, is+ left alone and reported. OMP profiles are supported via `--profile` or+ `OMP_PROFILE`; `PI_CODING_AGENT_DIR` takes precedence over a profile, since+ it names the agent directory outright.++ Note distinct filenames stop the overwrite but do **not** make a shared+ directory safe: each agent loads every `*.ts` it finds there, so installing+ both into one home captures every event twice, once per agent identity.+ That collision is upstream — both agents read the same environment+ variable — so `install-hooks` now warns when it detects one and points at+ the two ways out. (#421)- `install-hooks --agent pi`, `--agent omp`, and `uninstall` now honor`PI_CODING_AGENT_DIR`, instead of always writing to `~/.pi/agent/extensions/`and `~/.omp/agent/extensions/`. Both agents relocate their whole agent