Skip to content

fix: add trust_code env config#347

Merged
nicoloboschi merged 2 commits intomainfrom
trust
Feb 11, 2026
Merged

fix: add trust_code env config#347
nicoloboschi merged 2 commits intomainfrom
trust

Conversation

@nicoloboschi
Copy link
Collaborator

No description provided.

@nicoloboschi nicoloboschi merged commit 60574ee into main Feb 11, 2026
26 of 28 checks passed
r0gig0r pushed a commit to r0gig0r/hindsight that referenced this pull request Feb 25, 2026
Use Claude Code (Sonnet 4.6) as primary LLM for all operations (retain,
consolidation, reflect) with automatic failover to OpenRouter when
claude-code is unavailable. Governed by a circuit breaker that opens
after 3 failures and probes again after 5min cooldown.

Key changes:
- New FallbackLLMProvider + CircuitBreaker in fallback_llm.py
- PRIMARY_LLM_* config fields for enabling/configuring the fallback
- Env sanitization: removes DEBUG=* and ANTHROPIC_LOG=debug which
  corrupt Claude Agent SDK JSON-over-stdio protocol (SDK issue vectorize-io#347)
- Sets CLAUDE_CODE_STREAM_CLOSE_TIMEOUT for macOS EINTR fix (SDK #541)
- Fix Pydantic serialization in claude_code_llm.py tracing (consolidation)
- 30s timeout cap on primary calls for fast failover

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant