osborn 0.9.16 → 0.9.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -593,8 +593,11 @@ export class ClaudeLLM extends llm.LLM {
593
593
  * @param callbacks - Event callbacks for the background consumer
594
594
  */
595
595
  pushMessage(userText, sdkOptions, callbacks) {
596
- // Lower compaction threshold to 65% so PreCompact fires earlier and context is preserved
597
- process.env.CLAUDE_AUTOCOMPACT_PCT_OVERRIDE = '75';
596
+ // Auto-compact threshold fires PreCompact when context fills to this %.
597
+ // Higher = uses more of the window before compacting (more context retained
598
+ // per turn, but less headroom for the next reply). 85% is the sweet spot
599
+ // before Claude starts hard-capping replies near the limit.
600
+ process.env.CLAUDE_AUTOCOMPACT_PCT_OVERRIDE = '85';
598
601
  const userMessage = {
599
602
  type: 'user',
600
603
  message: { role: 'user', content: [{ type: 'text', text: userText }] },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "osborn",
3
- "version": "0.9.16",
3
+ "version": "0.9.17",
4
4
  "description": "Voice AI coding assistant - local agent that connects to Osborn frontend",
5
5
  "type": "module",
6
6
  "bin": {