Solution for long term memory for agent coding CLIs and to facilitate handoff between different agent vendors
Rust
fix(config): keep the default config's example tables below its top-level keys
Vinícius DS Andraded3183b679099
diff --git a/crates/ai-memory-cli/templates/config.default.toml b/crates/ai-memory-cli/templates/config.default.tomlindex 817cd2a2..33086700 100644--- a/crates/ai-memory-cli/templates/config.default.toml+++ b/crates/ai-memory-cli/templates/config.default.toml@@ -31,14 +31,6 @@ allowed_hosts = ["localhost", "127.0.0.1", "::1"]# Default tracing filter (overridable by RUST_LOG).log_level = "info"-# Optional env-only presets for managed harness launches. Select one with-# `ai-memory run --profile work claude`. `--env-file` overrides the profile,-# and repeated `--env` entries override both. Keep executable paths, native-# argv, and permission-bypass choices on the command line.-# [run.profiles.work.env]-# CLAUDE_CONFIG_DIR = "/home/me/.claude-work"-# ANTHROPIC_BASE_URL = "https://api.anthropic.com"-# Optional server-side hook ingest limiter for shared/remote installs. The rate# is tokens per second per actor/session source; 0 or unset disables it. Burst# defaults to the rate (minimum one token when enabled). Env equivalents:@@ -56,15 +48,6 @@ log_level = "info"# --capture-assistant`. Env equivalent: `AI_MEMORY_CAPTURE_ASSISTANT=true`.# capture_assistant = false-# Server-side drop list for tool events (#1241): the server acknowledges and-# discards a matching PreToolUse/PostToolUse event before it is sanitized or-# stored, whatever the client sends. Applies to every project on this server.-# At most 64 entries per list, 128 characters each. Example: Claude Code marks-# plugin tool calls with their own tool-use id prefix.-# [ingest]-# drop_tool_use_id_prefixes = ["toolu_plugin_"]-# drop_tool_names = ["mcp__noisy__poll"]-# 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@@ -162,6 +145,27 @@ observation_retention_days = 0 # 0 = never prune raw observationsobservation_prune_batch = 5000 # rows per prune transactionledger_retention_months = 0 # 0 = never delete hook event ledgers+# NOTE: commented example tables stay below the first real table, where the+# top-level keys have ended. A `[table]` header owns every key after it, so an+# example table uncommented above a top-level key would silently capture it.++# Optional env-only presets for managed harness launches. Select one with+# `ai-memory run --profile work claude`. `--env-file` overrides the profile,+# and repeated `--env` entries override both. Keep executable paths, native+# argv, and permission-bypass choices on the command line.+# [run.profiles.work.env]+# CLAUDE_CONFIG_DIR = "/home/me/.claude-work"+# ANTHROPIC_BASE_URL = "https://api.anthropic.com"++# Server-side drop list for tool events (#1241): the server acknowledges and+# discards a matching PreToolUse/PostToolUse event before it is sanitized or+# stored, whatever the client sends. Applies to every project on this server.+# At most 64 entries per list, 128 characters each. Example: Claude Code marks+# plugin tool calls with their own tool-use id prefix.+# [ingest]+# drop_tool_use_id_prefixes = ["toolu_plugin_"]+# drop_tool_names = ["mcp__noisy__poll"]+# Privacy strip.## Built-in patterns ALWAYS run; they cover bearer tokens, vendor-prefixed