crabmate 0.5.0

Rust AI agent: OpenAI-compatible chat/completions, function calling, HTTP serve, ops CLI
Documentation
# 长期记忆嵌入默认(启用开关、作用域、向量后端、SQLite 路径、注入与分块参数等)。
# 与 `config/default_config.toml`、`config/session.toml`、`config/context_inject.toml`、`config/tools.toml`、`config/sandbox.toml`、`config/planning.toml` 在 `load_config` 中顺序合并(本文件在 planning 之后),再被 config.toml / .agent_demo.toml 与 CM_LONG_TERM_MEMORY_* 覆盖。

[agent]

long_term_memory_enabled = true
long_term_memory_scope_mode = "conversation"
# 向量后端:需编译时启用 Cargo feature `fastembed`(`cargo build --features fastembed`);默认构建未链接时 finalize 降为 disabled。
long_term_memory_vector_backend = "fastembed"
long_term_memory_max_entries = 256
long_term_memory_inject_max_chars = 8000
long_term_memory_store_sqlite_path = ".crabmate/long_term_memory.db"
long_term_memory_top_k = 8
long_term_memory_max_chars_per_chunk = 1024
long_term_memory_min_chars_to_index = 8
long_term_memory_async_index = true
# 回合结束是否自动索引 user/assistant 终答;false 时仅 long_term_remember 等显式写入。CM_LONG_TERM_MEMORY_AUTO_INDEX_TURNS
long_term_memory_auto_index_turns = true
# 回合内构建/验证工具由失败转成功后自动沉淀经验(summarize 路径)。CM_LONG_TERM_MEMORY_AUTO_SUMMARIZE_EXPERIENCE
long_term_memory_auto_summarize_experience = true
# 召回注入时优先经验条(summarize / 自动沉淀 / explicit),并匹配 tags。CM_LONG_TERM_MEMORY_PRIORITIZE_EXPERIENCE_RECALL
long_term_memory_prioritize_experience_recall = true
# 自动索引条默认存活秒数;0 永不过期(仍受 max_entries 淘汰)。CM_LONG_TERM_MEMORY_DEFAULT_TTL_SECS
long_term_memory_default_ttl_secs = 0