Skip to content

graff — a fast agentic coding harness in Zig: multi-provider, MCP, workflows, DGM evolution loop, TS/Python SDKs

Python

style(repl): identity accent is codegraff.com emerald, not coral

Rach Pradhan4c997b0da244
diff --git a/src/agent_render.zig b/src/agent_render.zig
index 9667b120..d71fbee1 100644
--- a/src/agent_render.zig
+++ b/src/agent_render.zig
@@ -432,8 +432,8 @@ pub fn flushStreamTail(self: *Agent) void {
/// Render one markdown line to ANSI (portable SGR only — bold/color, no
/// italic, so iTerm/Ghostty/Terminal/Windows-Terminal all agree): code
-/// fences + fenced bodies dimmed, ATX headers bold-coral, `-`/`*`/`+`
-/// bullets → coral •, and inline `**bold**` / `` `code` `` spans.
+/// fences + fenced bodies dimmed, ATX headers bold-emerald, `-`/`*`/`+`
+/// bullets → emerald •, and inline `**bold**` / `` `code` `` spans.
pub fn renderMdLine(self: *Agent, w: *Io.Writer, line: []const u8) void {
var lead: usize = 0;
while (lead < line.len and line[lead] == ' ') lead += 1;
diff --git a/src/anim.zig b/src/anim.zig
index 91c8e5b7..56c84619 100644
--- a/src/anim.zig
+++ b/src/anim.zig
@@ -131,8 +131,9 @@ pub fn saveThemeSetting(io: Io, gpa: Allocator, value: []const u8) bool {
return true;
}
-/// Restrained ember sweep for `ultracode`: sumi-adjacent rust through the
-/// Codegraff coral accent to warm gold, without the old full-spectrum flash.
+/// Restrained ember sweep for `ultracode`: sumi-adjacent rust through
+/// vermilion to warm gold, without the old full-spectrum flash. A deliberate
+/// fire theme for this mode, independent of the emerald identity accent.
pub const ultracode_ember = [_][]const u8{
"\x1b[38;2;168;99;67m", "\x1b[38;2;179;92;73m", "\x1b[38;2;196;81;61m",
"\x1b[38;2;179;92;73m", "\x1b[38;2;155;106;53m", "\x1b[38;2;165;101;59m",
diff --git a/src/ansi.zig b/src/ansi.zig
index a2e4095a..087742f6 100644
--- a/src/ansi.zig
+++ b/src/ansi.zig
@@ -12,9 +12,10 @@ pub const Style = struct {
reset: []const u8 = "",
dim: []const u8 = "",
bold: []const u8 = "",
- /// Codegraff's identity color: the vermilion/coral brush stroke from the
- /// app artwork. Keep this separate from status colors so coral always
- /// means "active/selected/Codegraff", never implicitly success or error.
+ /// Codegraff's identity color: the emerald accent from codegraff.com
+ /// (--accent: #059669). Keep this separate from status colors so the
+ /// accent always means "active/selected/Codegraff", never implicitly
+ /// success or error.
accent: []const u8 = "",
red: []const u8 = "",
green: []const u8 = "",
@@ -26,9 +27,10 @@ pub const Style = struct {
.reset = "\x1b[0m",
.dim = "\x1b[2m",
.bold = "\x1b[1m",
- // #C4513D keeps the coral identity while clearing WCAG AA contrast
- // against both pure-black and pure-white terminal backgrounds.
- .accent = "\x1b[38;2;196;81;61m",
+ // #059669 is the site's --accent token: 5.6:1 on pure-black and 3.8:1
+ // on pure-white terminal backgrounds, and it no longer reads as the
+ // error red users mistook the old coral for.
+ .accent = "\x1b[38;2;5;150;105m",
.red = "\x1b[31m",
.green = "\x1b[32m",
.yellow = "\x1b[33m",
@@ -49,7 +51,7 @@ test "Style: blank by default, ansi has escape codes" {
try std.testing.expectEqualStrings("", blank.accent);
try std.testing.expectEqualStrings("\x1b[0m", Style.ansi.reset);
try std.testing.expectEqualStrings("\x1b[1m", Style.ansi.bold);
- try std.testing.expectEqualStrings("\x1b[38;2;196;81;61m", Style.ansi.accent);
+ try std.testing.expectEqualStrings("\x1b[38;2;5;150;105m", Style.ansi.accent);
try std.testing.expectEqualStrings("\x1b[35m", Style.ansi.magenta);
try std.testing.expectEqualStrings("\x1b[36m", Style.ansi.cyan);
}
diff --git a/src/cli.zig b/src/cli.zig
index 422263f8..635e4b9b 100644
--- a/src/cli.zig
+++ b/src/cli.zig
@@ -21,6 +21,9 @@ const harness_version = root.harness_version;
pub const changelog_text =
\\What's new
\\──────────
+ \\0.0.243
+ \\ • The terminal palette now matches codegraff.com: the identity accent is the site's emerald (#059669) — spinner, prompt, headings, tool-call lines, and attached-file chips — so a routine ⚙ bash line no longer reads as error red
+ \\
\\0.0.242
\\ • MCP tool schemas load on demand: a 13-tool server's catalog drops 64.8%, about 1,700 input tokens off every request; small servers stay eager and unchanged
\\ • A big tool result returns a handle — preview, path, byte count, shape — instead of its contents, so it never occupies context turn after turn
diff --git a/src/input_util.zig b/src/input_util.zig
index da8473a4..29d2417f 100644
--- a/src/input_util.zig
+++ b/src/input_util.zig
@@ -140,7 +140,7 @@ test "type-ahead NUL is the line discipline's Ctrl-D, everything else is itself"
try std.testing.expectEqual(@as(u8, 0x1b), typeAheadByte(0x1b));
}
-/// Sumi-rust → Codegraff coral → warm-gold stops for the ultracode ember wave.
+/// Sumi-rust → vermilion → warm-gold stops for the ultracode ember wave.
const ultracode_rgb = [_]struct { r: u8, g: u8, b: u8 }{
.{ .r = 168, .g = 99, .b = 67 },
.{ .r = 179, .g = 92, .b = 73 },
@@ -304,7 +304,7 @@ pub fn cleanDroppedPath(gpa: Allocator, home: []const u8, pasted: []const u8) ?[
// Redraw the whole input below a fixed prompt prefix, wrapping it
// across rows. Spans listed in `marks` (paths from the @ picker or a
// file drop, plus "[Image]") render as an accent chip (reverse video +
-// Codegraff coral) so they keep reading as attached files, not typed words; a
+// Codegraff emerald) so they keep reading as attached files, not typed words; a
// chip crossing a row break keeps its colour. `st` carries the row
// count + cursor row of the previous draw so this one can clear it
// with relative moves only — no DECSC anchor for a scroll to strand.
@@ -367,7 +367,7 @@ pub fn redraw(o: *Io.Writer, items: []const u8, c: usize, marks: []const []const
o.writeAll("\x1b[0m") catch {};
shine_active = false;
}
- o.writeAll(if (main_mod.use_color) "\x1b[7;38;2;196;81;61m" else "\x1b[7m") catch {};
+ o.writeAll(if (main_mod.use_color) "\x1b[7;38;2;5;150;105m" else "\x1b[7m") catch {};
mark_end = i + best;
mark_open = true;
}
diff --git a/src/main.zig b/src/main.zig
index 35d7f2ff..787ed1ec 100644
--- a/src/main.zig
+++ b/src/main.zig
@@ -198,7 +198,7 @@ pub var g_companion_disabled: [companion_servers.len]bool = @splat(false);
var g_codedbpro_licensed: bool = false;
// Thinking animations: spinner animations + color themes (+ settings persistence) live in anim.zig; spinner consumers (Agent.spinnerTask, /animation, /theme) stay here.
const anim = @import("anim.zig");
-// Steering (Codex-style): bytes typed while a turn streams are captured (not discarded), echoed live in dim coral, and queued to run next on Enter —
+// Steering (Codex-style): bytes typed while a turn streams are captured (not discarded), echoed live in dim emerald, and queued to run next on Enter —
// follow-ups queue without waiting for the turn to finish. TTY-only (raw-stdin esc-watch is off in --json/GUI mode); watchdog/select arms may
// drain/echo stdin while the stream reader is blocked, so g_steer_visible pauses spinner redraws to keep the live row intact.
pub var g_steer_buf: std.ArrayList(u8) = .empty; // in-progress line (page-alloc)
diff --git a/src/repl.zig b/src/repl.zig
index 1224fe18..4cbfbd7d 100644
--- a/src/repl.zig
+++ b/src/repl.zig
@@ -1,5 +1,5 @@
//! `graff repl` — an interactive chat REPL on the zigzag TUI, styled in the
-//! Codegraff ink-and-coral language: a bordered welcome box, conversation turns
+//! Codegraff ink-and-emerald language: a bordered welcome box, conversation turns
//! (`>` you, `⏺` the model), a rounded input box pinned to the bottom, a status
//! line, and `/`-style commands mirroring the harness's interactive set.
//!
diff --git a/src/repl_util.zig b/src/repl_util.zig
index 2a051b74..f40d1f25 100644
--- a/src/repl_util.zig
+++ b/src/repl_util.zig
@@ -6,7 +6,7 @@
const std = @import("std");
const zz = @import("zigzag");
-pub const accent = zz.Color.fromRgb(0xC4, 0x51, 0x3D); // accessible Codegraff vermilion coral
+pub const accent = zz.Color.fromRgb(0x05, 0x96, 0x69); // codegraff.com emerald accent (#059669)
pub const HELP_CHAT =
\\Commands (mirrors the graff session):