graff — a fast agentic coding harness in Zig: multi-provider, MCP, workflows, DGM evolution loop, TS/Python SDKs
Python
Merge branch 'verify/tui-clickable-merge' into release/v0.0.265
Rach Pradhanc6ba87266f42
diff --cc src/commands_misc.zigindex c00c308c,e9e2ddfa..b13fe977--- a/src/commands_misc.zig+++ b/src/commands_misc.zig@@@ -374,24 -379,21 +380,22 @@@ pub fn tryHandle(root: *Agent, keys: *K// TTL that made /models show a boot-time snapshot until restart.const pinged = providers.refreshModelListing(root, keys.*);if (pinged > 0) try out.print("{s}(pinged {d} provider catalog(s) live){s}\n", .{ style.dim, pinged, style.reset });- try out.writeAll("model ctx compact@ provider key vision\n");- for (pricing.models()) |m| {- const has_key = keys.get(m.provider) != null;- const current = std.mem.eql(u8, m.name, root.provider.model) and std.mem.eql(u8, m.provider, root.provider.id);- const context = pricing.contextFor(m.provider, m.name);- try out.print("{s:<26} {d:>5}k {d:>5}k {s:<11} {s} {s}{s}\n", .{- m.name,- context / 1000,- context / 10 * 8 / 1000,- m.provider,- if (has_key) "✓" else "—",- if (visionModel(m.name)) "✓" else "—",- if (current) " ← current" else "",- });- }+ // `cost` answers what a model name cannot: the same model through codex+ // (plan), codegraff (credits) and openai (api) is three different+ // bills. Same wording as the TUI picker; the surfaces must agree.+ try out.writeAll(models_table.header);+ for (pricing.models()) |m| try models_table.writeRow(out, .{+ .name = m.name,+ .context = pricing.contextFor(m.provider, m.name),+ .provider = m.provider,+ .cost = billing.costFor(m.provider, keys.source(m.provider)).badge(),+ .has_key = keys.get(m.provider) != null,+ .vision = visionModel(m.name),+ .current = std.mem.eql(u8, m.name, root.provider.model) and std.mem.eql(u8, m.provider, root.provider.id),+ });try out.print("(codex catalog: {s})\n", .{models_cache.codex_catalog_source});try out.print("(kimi catalog: {s})\n", .{kimi_catalog.catalog_source});+ if (pricing_db.source.len != 0) try out.print("(price db: {s})\n", .{pricing_db.source});try out.print("(unknown models: {d}k ctx; claude* → anthropic, else → codegraff)\n", .{default_context / 1000});// Live LM Studio models: query the local server so loaded models show up// in /models without hand-typing their ids. Best-effort and silent if the