Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions server/context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ import type { ModelSelection } from "./contracts.ts";
* forgetting this replaces.
*/
const LIMITS: Array<[RegExp, number]> = [
[/^claude-fable-5-2(?:$|-)/i, 1_000_000],
[/^claude-fable-5-1(?:$|-)/i, 1_000_000],
[/^claude-opus-5-5(?:$|-)/i, 1_000_000],
[/^claude/i, 200_000],
Expand Down
1 change: 1 addition & 0 deletions server/drivers/claude.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ const DRIVER_KIND = "claudeAgent";
const MODELS: ModelCatalog = {
default: "claude-sonnet-5",
options: [
{ id: "claude-fable-5-2", label: "Claude Fable 5.2" },
{ id: "claude-fable-5-1", label: "Claude Fable 5.1" },
{ id: "claude-opus-5-5", label: "Claude Opus 5.5" },
{ id: "claude-fable-5", label: "Claude Fable 5" },
Expand Down
1 change: 1 addition & 0 deletions test/claude-models.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ process.stdin.resume();
const claude = instances.find((i: any) => i.instanceId === "claude");
assert.equal(claude.models.acceptsAnyId, true);
assert.match(claude.models.note, /not fetched/i);
assert.ok(claude.models.options.some((o: any) => o.id === "claude-fable-5-2"), "no entry for claude-fable-5-2");
for (const alias of ["opus", "sonnet", "haiku"]) {
assert.ok(claude.models.options.some((o: any) => o.id === alias), `no Latest entry for ${alias}`);
}
Expand Down
1 change: 1 addition & 0 deletions test/context.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ test("Antigravity's exhausted trajectory takes the context recovery path", () =>
describe("how much a model will take", () => {
test("the families we actually run", () => {
assert.equal(contextLimitFor("claude-sonnet-5"), 200_000);
assert.equal(contextLimitFor("claude-fable-5-2"), 1_000_000);
assert.equal(contextLimitFor("claude-fable-5-1"), 1_000_000);
assert.equal(contextLimitFor("gpt-6-astra"), 272_000);
assert.equal(contextLimitFor("gemini-2.5-pro"), 1_000_000);
Expand Down