graff — a fast agentic coding harness in Zig: multi-provider, MCP, workflows, DGM evolution loop, TS/Python SDKs
Python
gpt-6.1-sol on Codex, with async direct tools
justrach233a3276b878
diff --git a/src/async_tool_policy.zig b/src/async_tool_policy.zigindex c977f4e4..af7b5d0d 100644--- a/src/async_tool_policy.zig+++ b/src/async_tool_policy.zig@@ -10,7 +10,7 @@ pub fn configure(value: ?[]const u8) void {pub fn enabled(provider: Provider) bool {return configured and provider.kind == .responses and(std.mem.eql(u8, provider.id, "openai") or std.mem.eql(u8, provider.id, "codex")) and- (std.mem.eql(u8, provider.model, "gpt-6-astra") or std.mem.eql(u8, provider.model, "gpt-6-sol"));+ (std.mem.eql(u8, provider.model, "gpt-6-astra") or std.mem.eql(u8, provider.model, "gpt-6-sol") or std.mem.eql(u8, provider.model, "gpt-6.1-sol"));}pub fn eligible(name: []const u8) bool {@@ -53,12 +53,12 @@ test "async tool policy exact route model and off switch" {var p = fixture();for ([_][]const u8{ "codex", "openai" }) |id| {p.id = id;- for ([_][]const u8{ "gpt-6-astra", "gpt-6-sol" }) |model| {+ for ([_][]const u8{ "gpt-6-astra", "gpt-6-sol", "gpt-6.1-sol" }) |model| {p.model = model;try std.testing.expect(enabled(p));}}- for ([_][]const u8{ "gpt-5.6-terra", "gpt-6-unknown", "gpt-6-sol-future", "grok-4.7" }) |model| {+ for ([_][]const u8{ "gpt-5.6-terra", "gpt-6-unknown", "gpt-6-sol-future", "gpt-6.1-sol-future", "grok-4.7" }) |model| {p.model = model;try std.testing.expect(!enabled(p));}diff --git a/src/pricing.zig b/src/pricing.zigindex 57ce6d69..e89fb05a 100644--- a/src/pricing.zig+++ b/src/pricing.zig@@ -221,12 +221,12 @@ pub const model_table = [_]ModelInfo{.{ .provider = "xiaomi", .name = "mimo-v2.5", .context = 1_048_576 },.{ .provider = "xiaomi", .name = "mimo-v2.5-pro-ultraspeed", .context = 1_048_576 },.{ .provider = "xiaomi", .name = "mimo-v2-flash", .context = 262_144 },- // Offline snapshot only. At startup models_cache.zig replaces the entire+ // Offline snapshot only: at startup models_cache.zig replaces the whole// Codex slice from the account-scoped /models response (5-minute cache).- // Keep this usable when auth/discovery is unavailable: these are the- // visible rows and advertised windows from the 2026-07-10 Codex catalog.+ // These rows keep Codex usable when auth or discovery is unavailable..{ .provider = "codex", .name = "gpt-6-astra", .context = 272_000 },.{ .provider = "codex", .name = "gpt-6-sol", .context = 272_000 },+ .{ .provider = "codex", .name = "gpt-6.1-sol", .context = 272_000 },.{ .provider = "codex", .name = "gpt-5.6-sol", .context = 272_000 },.{ .provider = "codex", .name = "gpt-5.6-terra", .context = 272_000 },.{ .provider = "codegraff", .name = "muse-spark-1.2", .context = 262_144 },diff --git a/src/pricing_tests.zig b/src/pricing_tests.zigindex 2c3ff604..3b5ef87d 100644--- a/src/pricing_tests.zig+++ b/src/pricing_tests.zig@@ -97,6 +97,8 @@ test "usdFor: per-million math, cache writes, and negative clamping" {try std.testing.expectApproxEqAbs(@as(f64, 0.2 + 0.01 + 10.0), pricing.usdForUsage(sol61, "gpt-6.1-sol", 100_000, 100_000, 0, 1_000_000), 1e-9);try std.testing.expectApproxEqAbs(@as(f64, 0.8 + 0.04 + 1.5), pricing.usdForUsage(sol61, "gpt-6.1-sol", 200_000, 200_000, 0, 100_000), 1e-9); // long-context tiertry std.testing.expectEqual(@as(u64, 1_050_000), pricing.contextFor("openai", "gpt-6.1-sol"));+ try std.testing.expectEqual(pricing.codex_context_window, pricing.contextFor("codex", "gpt-6.1-sol"));+ try std.testing.expect(pricing.providerModelInTable("codex", "gpt-6.1-sol"));}test "grok-4.6 window is 500k and compact-at is 80%" {