Compare commits

...
Author SHA1 Message Date
DK09876andClaude Opus 4.6 dbe1183f79 fix(opencode): lower retainEveryNTurns default from 10 to 3
Users were not seeing auto-retain fire because 10 turns is too high
a bar for typical sessions. Lowering to 3 makes the feature work
out of the box without config changes.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
2026-04-21 13:46:57 -07:00
5 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -97,7 +97,7 @@ This ensures memories survive context window trimming.
"recallTags": [],
"recallTagsMatch": "any",
"retainTags": [],
"retainEveryNTurns": 10,
"retainEveryNTurns": 3,
"debug": false
}]
]
@@ -129,7 +129,7 @@ A practical starting point looks like this:
"autoRecall": true,
"autoRetain": true,
"recallBudget": "mid",
"retainEveryNTurns": 10,
"retainEveryNTurns": 3,
"debug": false
}]
]
+1 -1
View File
@@ -92,7 +92,7 @@ Create `~/.hindsight/opencode.json` for persistent configuration:
"hindsightApiUrl": "http://localhost:8888",
"hindsightApiToken": "your-api-key",
"recallBudget": "mid",
"retainEveryNTurns": 10,
"retainEveryNTurns": 3,
"debug": false
}
```
@@ -68,7 +68,7 @@ const DEFAULTS: HindsightConfig = {
// Retain
autoRetain: true,
retainMode: "full-session",
retainEveryNTurns: 10,
retainEveryNTurns: 3,
retainOverlapTurns: 2,
retainContext: "opencode",
retainTags: [],
@@ -13,7 +13,7 @@ export function makeConfig(overrides: Partial<HindsightConfig> = {}): HindsightC
recallTagsMatch: "any",
autoRetain: true,
retainMode: "full-session",
retainEveryNTurns: 10,
retainEveryNTurns: 3,
retainOverlapTurns: 2,
retainContext: "opencode",
retainTags: [],