Skip to content

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

Rust

docs(config): document strip_root_combinators in the config template

AkitaOnRailse32476608672
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 4a6e775d..495b2f6d 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -7,6 +7,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]
+### Added
+- New `strip_root_combinators` config flag (env `AI_MEMORY_STRIP_ROOT_COMBINATORS`,
+ or `strip_root_combinators = true` in config.toml) strips root-level
+ `anyOf`/`oneOf`/`allOf` from MCP tool input schemas on every `tools/list`.
+ Generic MCP clients such as OpenCode and Cursor never send the `?flavor=`
+ marker, yet forward schemas verbatim to strict upstreams (Moonshot, Bedrock)
+ that reject root combinators with a 400 — this gives operators behind such an
+ upstream a mode-independent opt-in. Runtime "exactly one of" validation is
+ unchanged ([#412]). The key is documented in the generated
+ `config.default.toml` so it is discoverable without reading the source.
+
## [1.28.1] - 2026-08-18
### Security
@@ -17,14 +28,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
client use. Lockfile-only change.
### Added
-- New `strip_root_combinators` config flag (env `AI_MEMORY_STRIP_ROOT_COMBINATORS`,
- or `strip_root_combinators = true` in config.toml) strips root-level
- `anyOf`/`oneOf`/`allOf` from MCP tool input schemas on every `tools/list`.
- Generic MCP clients such as OpenCode and Cursor never send the `?flavor=`
- marker, yet forward schemas verbatim to strict upstreams (Moonshot, Bedrock)
- that reject root combinators with a 400 — this gives operators behind such an
- upstream a mode-independent opt-in. Runtime "exactly one of" validation is
- unchanged ([#412]).
- The built-in sanitizer now redacts seven further credential shapes, completing
three vendor families it already covered only in part. **GitHub:** every
token prefix — `gho_` (OAuth, the form `gh auth login` writes to disk),
diff --git a/crates/ai-memory-cli/templates/config.default.toml b/crates/ai-memory-cli/templates/config.default.toml
index dbfe2ca4..d3a36450 100644
--- a/crates/ai-memory-cli/templates/config.default.toml
+++ b/crates/ai-memory-cli/templates/config.default.toml
@@ -35,6 +35,14 @@ log_level = "info"
# --capture-assistant`. Env equivalent: `AI_MEMORY_CAPTURE_ASSISTANT=true`.
# capture_assistant = false
+# Strip root-level anyOf/oneOf/allOf from MCP tool input schemas on every
+# tools/list, even without a `?flavor=moonshot` / `?flavor=bedrock` marker.
+# Generic MCP clients (OpenCode, Cursor) never send that marker yet forward
+# schemas verbatim to strict upstreams that reject root combinators with a
+# 400. Runtime "exactly one of" validation is unchanged. Env equivalent:
+# `AI_MEMORY_STRIP_ROOT_COMBINATORS=true`.
+# strip_root_combinators = false
+
# Optional final LLM relevance pass for project/scopes memory_query calls.
# Requires an LLM provider and adds at most one provider call per eligible
# query. The bounded query, page titles, and search snippets are sent to that