跳到正文
FunCoding

搜索

搜索文档、Skill 和 MCP

Configuration reference

Every plugins.entries.active-memory key: type, meaning, range, and default, plus the extra tuning fields.

Configuration

All active memory configuration lives under plugins.entries.active-memory.

KeyTypeMeaning
enabledbooleanEnables the plugin itself
config.mode"escalate" | "always" | "off"Controls when the blocking deep-recall sub-agent runs; default "escalate"
config.agentsstring[]Agent ids that may use active memory
config.modelstringOptional blocking sub-agent model ref; when unset, inherits the current session model
config.allowedChatTypes("direct" | "group" | "channel" | "explicit")[]Session types that may run active memory; defaults to ["direct"]
config.allowedChatIdsstring[]Optional per-conversation allowlist applied after allowedChatTypes; non-empty lists fail closed
config.deniedChatIdsstring[]Optional per-conversation denylist that overrides allowed session types and allowed ids
config.queryMode"message" | "recent" | "full"Controls how much conversation the blocking sub-agent sees
config.promptStyle"balanced" | "strict" | "contextual" | "recall-heavy" | "precision-heavy" | "preference-only"Controls how eager or strict the blocking sub-agent is when deciding whether to return memory
config.toolsAllowstring[]Concrete deep-recall tool names. Explicit config wins over provider-declared and built-in defaults. Wildcards, group:*, and core agent tools are ignored. See Memory tools.
config.thinking"off" | "minimal" | "low" | "medium" | "high" | "xhigh" | "adaptive" | "max"Advanced thinking override for the blocking sub-agent; default off for speed
config.fastModeboolean | "auto"Optional fast-mode override for the blocking sub-agent; unset inherits normal agent, session, and model defaults
config.promptOverridestringAdvanced full prompt replacement; not recommended for normal use
config.promptAppendstringAdvanced extra instructions appended to the default or overridden prompt
config.timeoutMsnumberHard timeout for the blocking sub-agent (range 250-120000 ms; default 15000)
config.setupGraceTimeoutMsnumberAdvanced extra setup budget before the recall timeout expires; range 0-30000 ms, default 0. See Cold-start grace for v2026.4.x upgrade guidance
config.maxSummaryCharsnumberMaximum characters in the active-memory summary (range 40-1000; default 220)
config.loggingbooleanEmits active memory logs while tuning
config.persistTranscriptsbooleanExports blocking sub-agent transcripts as JSONL artifacts before removing their temporary SQLite session rows
config.transcriptDirstringRelative artifact directory under the plugin-owned per-agent transcript directory (default "active-memory")
config.modelFallbackstringOptional model used only as the last step in the model fallback chain

Useful tuning fields:

KeyTypeMeaning
config.recentUserTurnsnumberPrior user turns to include when queryMode is recent (range 0-4; default 2)
config.recentAssistantTurnsnumberPrior assistant turns to include when queryMode is recent (range 0-3; default 1)
config.recentUserCharsnumberMax chars per recent user turn (range 40-1000; default 220)
config.recentAssistantCharsnumberMax chars per recent assistant turn (range 40-1000; default 180)
config.cacheTtlMsnumberCache reuse for repeated identical queries (range 1000-120000 ms; default 15000)
config.circuitBreakerMaxTimeoutsnumberSkip recall after this many consecutive timeouts for the same agent/model. Resets on a successful recall or after the cooldown expires (range 1-20; default 3).
config.circuitBreakerCooldownMsnumberHow long to skip recall after the circuit breaker trips, in ms (range 5000-600000; default 60000).