Merged
Conversation
Reviewer's GuideThis PR replaces legacy Claude model constants (Haiku/Sonnet/Opus v3.5 and v4) with the new Sonnet 4.5, Haiku 4.5, Opus 4.1, and Opus Plan Mode identifiers across core configs, pricing, CLI, analytics, dashboard visuals, and agent registry to ensure consistent handling and display. Entity relationship diagram for updated model pricing structureerDiagram
CLAUDE_MODEL_IDS {
string HAIKU_4_5
string SONNET_4_5
string OPUS_4_1
string OPUS_PLAN_MODE
}
BUNDLED_PRICING {
string id
string name
float input
float output
float cache_read
float cache_write
}
CLAUDE_MODEL_IDS ||--o| BUNDLED_PRICING : provides
BUNDLED_PRICING {
string model_id
}
CLAUDE_MODEL_IDS ||--o| BUNDLED_PRICING : "model_id"
Class diagram for updated Claude model constants and usageclassDiagram
class CLAUDE_MODEL_IDS {
+HAIKU_4_5: string
+SONNET_4_5: string
+OPUS_4_1: string
+OPUS_PLAN_MODE: string
}
class MODEL_DISPLAY_NAMES {
+"claude-4-5-haiku-20250107": "Claude Haiku 4.5"
+"claude-sonnet-4-5-20250107": "Claude Sonnet 4.5"
+"claude-opus-4-1-20250805": "Claude Opus 4.1"
+"claude-opus-plan-mode-20250805": "Claude Opus Plan Mode"
}
class MODEL_SHORT_NAMES {
+"claude-4.5-haiku": string
+"claude-4.5-sonnet": string
+"claude-opus-4.1": string
+"claude-opus-plan": string
}
class ALLOWED_MODELS {
+SONNET_4_5
+OPUS_4_1
+HAIKU_4_5
+OPUS_PLAN_MODE
}
CLAUDE_MODEL_IDS <|-- MODEL_DISPLAY_NAMES
CLAUDE_MODEL_IDS <|-- MODEL_SHORT_NAMES
CLAUDE_MODEL_IDS <|-- ALLOWED_MODELS
Class diagram for AgentRegistry model alias handlingclassDiagram
class AgentRegistry {
-cache: AgentCache | null
-workspaces: Map<string, AgentWorkspace>
+loadAgentFile(filePath: string): void
}
class MODEL_ALIASES {
+opus: AllowedModel
+"opus-plan": AllowedModel
+sonnet: AllowedModel
+haiku: AllowedModel
}
AgentRegistry --> MODEL_ALIASES : uses
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
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.
Summary
Testing
bun run lint(fails: 403 when downloading biome)bun run typecheck(fails: missing bun-types definitions in the environment)bun run format(fails: 403 when downloading biome)https://chatgpt.com/codex/tasks/task_e_68fe20204f0c833190165685c1a0c0da
Summary by Sourcery
Replace existing Claude model constants and defaults with the new Sonnet 4.5, Haiku 4.5, Opus 4.1 and Opus Plan Mode across the codebase
Enhancements: