When retainToolCalls is enabled (new default), the retention transcript is output as JSON with full message structure including tool_use blocks (Edit, Read, Bash, Grep, etc.) and their complete input dicts, plus tool_result blocks (truncated at 2k chars). This preserves the context of what actions the assistant actually took, not just its narration. Hindsight MCP tools (recall/retain/reflect) are excluded to prevent feedback loops. Channel message tools still get their text extracted inline. Setting retainToolCalls=false falls back to the legacy text format.
37 lines
1.4 KiB
JSON
37 lines
1.4 KiB
JSON
{
|
|
"hindsightApiUrl": "",
|
|
"bankId": "claude_code",
|
|
"bankMission": "You are a Claude Code AI assistant. Focus on technical discussions, decisions, and context relevant to the user's projects.",
|
|
"retainMission": "Extract technical decisions, architectural choices, user preferences, project context, and people/tool relationships. Ignore routine greetings and transient operational details.",
|
|
"autoRecall": true,
|
|
"autoRetain": true,
|
|
"retainMode": "full-session",
|
|
"recallBudget": "mid",
|
|
"recallMaxTokens": 1024,
|
|
"recallTypes": ["world", "experience"],
|
|
"recallContextTurns": 1,
|
|
"recallMaxQueryChars": 800,
|
|
"recallRoles": ["user", "assistant"],
|
|
"recallPromptPreamble": "Relevant memories from past conversations (prioritize recent when conflicting). Only use memories that are directly useful to continue this conversation; ignore the rest:",
|
|
"recallTopK": null,
|
|
"retainRoles": ["user", "assistant"],
|
|
"retainEveryNTurns": 10,
|
|
"retainOverlapTurns": 2,
|
|
"retainToolCalls": true,
|
|
"retainTags": ["{session_id}"],
|
|
"retainMetadata": {},
|
|
"retainContext": "claude-code",
|
|
"hindsightApiToken": null,
|
|
"apiPort": 9077,
|
|
"daemonIdleTimeout": 0,
|
|
"embedVersion": "latest",
|
|
"embedPackagePath": null,
|
|
"bankIdPrefix": "",
|
|
"dynamicBankId": false,
|
|
"dynamicBankGranularity": ["agent", "project"],
|
|
"agentName": "",
|
|
"llmProvider": null,
|
|
"llmModel": null,
|
|
"llmApiKeyEnv": null,
|
|
"debug": false
|
|
}
|