Skip to content

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

Rust

docs(config): describe the 3.3.0 keys in the shipped config template

Vinícius DS Andrade8e0487011d18
diff --git a/crates/ai-memory-cli/templates/config.default.toml b/crates/ai-memory-cli/templates/config.default.toml
index 264a1197..464df6c6 100644
--- a/crates/ai-memory-cli/templates/config.default.toml
+++ b/crates/ai-memory-cli/templates/config.default.toml
@@ -102,6 +102,11 @@ log_level = "info"
# queries keep local order. Env equivalent: `AI_MEMORY_RERANKER=llm`.
# reranker = "llm"
+# Seconds one reranker call may take before memory_query keeps its pre-rerank
+# order. Raise it when an LLM fallback chain answers slowly. Must be at least 1.
+# Env equivalent: `AI_MEMORY_RERANK_TIMEOUT_SECS`.
+# rerank_timeout_secs = 20
+
# --- LLM provider (consolidation, auto-improve, reranker) -----------------
# Unset = zero-LLM: session pages are written heuristically and search needs no
# provider. Setting a provider turns on the LLM features that need one. Each key
@@ -518,9 +523,12 @@ pending_path = "_pending/auto-improve"
# directly (not through a shell), split on whitespace, with JSON on stdin. Use a
# wrapper script for paths with spaces, custom environment, or multiple commands.
# It must print JSON such as { "score_before": 0.72, "score_after": 0.76, "passed": true }.
+# Or set builtin = "structure" to run the built-in structural checks in process
+# instead; builtin and command are mutually exclusive.
[auto_improve.eval]
enabled = false
command = ""
+builtin = ""
timeout_secs = 120
targets = ["_rules", "procedures"]
min_delta = 0.0
@@ -601,8 +609,13 @@ mid_session = "follow-cwd"
# (docs/managed-workstreams.md). Off by default. The `--require-server` flag
# requests it for one launch, and `AI_MEMORY_RUN_REQUIRE_SERVER=true` for an
# environment; the variable can only turn it on.
+#
+# exit_prompt offers the switch and rerun menu after a successful interactive
+# session. On by default; `run --no-exit-prompt` skips it for one launch and
+# `AI_MEMORY_RUN_EXIT_PROMPT=false` for an environment.
# [run]
# require_server = false
+# exit_prompt = true
# Client-side hook spool retry policy. max_attempts is the number of failed
# drain passes before a spooled hook event is dropped. 0 disables the limit.
@@ -707,6 +720,14 @@ mid_session = "follow-cwd"
# [search.fts]
# stopwords = ["e", "é", "de", "que", "em", "uma"]
+# Estimated token budget for the evidence memory_query(answer=true) sends to
+# the model, counting each UTF-8 byte as one token. Unset (the default) admits
+# every hit. Evidence that does not fit is reported in answer_context, and zero
+# or a too-small value prevents synthesis. Env equivalent:
+# `AI_MEMORY_QUERY_ANSWER__MAX_CONTEXT_TOKENS`.
+# [query_answer]
+# max_context_tokens = 16000
+
# Cross-project profile: how you usually work, delivered to every project as
# defaults below the repository's rules file (docs/cross-project-profile.md).
# Env equivalents have the form `AI_MEMORY_PROFILE__<KEY>`, for example