Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.