Skip to content

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

Rust

Merge PR #970 into main

AkitaOnRailsb6cef64a1f6d
diff --cc CHANGELOG.md
index a66e7935,8d91c29e..c376849a
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@@ -65,30 -59,15 +65,36 @@@ and this project adheres to [Semantic V
lexically and drops the event when an argument, resolved from the event's
`cwd`, matches an ignored pattern or is a glob that can reach one. Variables,
command substitution and commands that name no path are not followed. The
- generated OpenCode, OMP, Pi and OpenClaw integrations are unchanged. The
marker-file reference also documents excluding large tool results that Claude
Code saves and re-reads from `~/.claude/projects/**/tool-results/**`. (#946)
+- The generated OpenCode, OMP, Pi and OpenClaw integrations now apply the same
+ lexical shell-command `ignore_paths` matching as the native hook, so a `bash`
+ call such as `cat docs/adr/0001.md` is dropped there too instead of being
+ captured. Both matchers now also recognize OpenClaw's and Devin's `exec` shell
+ tool, resolve relative arguments from a shell tool's `workdir` (OpenCode
+ `bash`, OpenClaw `exec`, Codex `shell`) instead of the event cwd, and treat
+ `dir/**` as covering `dir` itself when `dir` holds a glob (`docs/a?r/**`), as
+ the generated plugins already did. Refresh or reinstall generated plugins to
+ pick it up. (#948)
+- Shell-command `ignore_paths` matching no longer joins an argument vector
+ before splitting it, which broke a path with spaces (`["cat", "private
+ notes/x.md"]`) apart and let one element's stray quote hide the elements
+ after it; each element now counts whole and is split on its own. An invalid
+ `.ai-memory.toml` now makes a shell command metadata-only, like a file tool,
+ instead of keeping its command and output, including one whose command is
+ missing or unparseable (`web_search` runs nothing and is still kept), and the
+ server now does the same when it cannot parse the client's capture marker. A
+ long `bash -lc "<script>"` element is read only as words, not also as one
+ path, so it can no longer exhaust the match budget and drop an innocuous
+ event. Applies to the native hook and the generated plugins; the server
+ accepts the new metadata-only shell form, so upgrade it together with them
+ (an older server drops such an event). (#973)
+ - `ai-memory-importer omc-wiki` now reads the frontmatter of a page saved
+ with CRLF line endings or a UTF-8 BOM, as a wiki checked out on Windows
+ with `core.autocrlf=true` is. It missed the fence, so the page's kind,
+ tier, tags and pin were dropped and the YAML block was imported as the
+ top of the body; the fence check now matches the wiki's own parser.
+ (#970)
- Grok Build CLI tool observations are no longer stored with an empty body.
Grok posts Claude Code's snake_case tool fields (`tool_name` / `tool_input` /
`tool_use_id`), but it was missing from both `closed_tool_agent` and the