Skip to content

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

Python

Merge origin/main (poop prank + stealth host detection) into 0.0.170

Rach Pradhan5b631deea78d
diff --cc src/main.zig
index 5bee6d3a,52575e9c..7d314c43
--- a/src/main.zig
+++ b/src/main.zig
@@@ -2952,11 -2954,12 +2954,17 @@@ var g_anim_index: usize = 0; // /animat
var g_anim_random = false; // pick a fresh one per request
var g_anim_off = false; // /animation off
var g_anim_current: usize = 0; // what spinnerTask draws right now
+// 🎂 Birthday easter egg (flagged, temporary) — when graff runs from
+// limyuxi/yxlyx's home dir it paints her Ghostty white (OSC 11 bg + OSC 10 fg),
+// reset on exit. Cosmetic and gated to her cwd, like the old dragon spinner.
+// Flip to false / delete to remove after the bday.
+const limyuxi_birthday_white = true;
+ var g_obfs_select: bool = false; // auto-detect for legacy host profiles
+ // PRANK — remove in a future release. Gives blackfloofie a poop
+ // thinking spinner when graff runs from their home dir (/Users/blackfloofie). To
+ // remove: delete this flag, animPoop, the "poop" anims entry, and the cwd
+ // hook in main.
+ const blackfloofie_poop_prank = true;
var g_shine_phase: usize = 0; // ultracode input-wave animation frame
// Steering (Codex-style): bytes typed while a turn streams are captured
@@@ -5251,21 -5307,17 +5312,32 @@@ pub fn main(init: std.process.Init) !vo
g_codedb_guard = init.environ_map.get("GRAFF_NO_CODEDB_GUARD") == null; // issue #626 guard, opt-out via env
loadSkillSettings(io, arena); // per-skill opt-outs, also gates the auto-connect
loadAnimationSetting(io, arena); // {"animation": "..."} → thinking spinner choice
+ // 🎂 Birthday easter egg — paint limyuxi/yxlyx's Ghostty white while graff
+ // runs from her home dir, and reset it on exit. Cosmetic, flagged, gated to
+ // her cwd like the old dragon spinner. Remove (the flag) after the bday.
+ const limyuxi_white = limyuxi_birthday_white and use_color and !json_mode and
+ (std.mem.eql(u8, g_cwd_display, "/Users/limyuxi") or std.mem.startsWith(u8, g_cwd_display, "/Users/limyuxi/"));
+ if (limyuxi_white) {
+ // OSC 11 → white background, OSC 10 → near-black text so it stays
+ // readable. Ghostty honors both; reset with OSC 110/111 on exit.
+ out.writeAll("\x1b]11;#ffffff\x07\x1b]10;#1a1a1a\x07") catch {};
+ out.flush() catch {};
+ }
+ defer if (limyuxi_white) {
+ out.writeAll("\x1b]110\x07\x1b]111\x07") catch {}; // reset fg + bg
+ out.flush() catch {};
+ };
+ loadDevSpinnerOptOut(io, arena, init.environ_map);
+ // PRANK — remove in a future release (see the blackfloofie_poop_prank flag).
+ // A poop thinking spinner just for blackfloofie, when running from
+ // their home dir. Still overridable at runtime with /animation.
+ if (blackfloofie_poop_prank and !devSpinnerOptOut(io, arena) and (std.mem.eql(u8, g_cwd_display, "/Users/blackfloofie") or std.mem.startsWith(u8, g_cwd_display, "/Users/blackfloofie/"))) {
+ if (animIndex("poop")) |di| {
+ g_anim_index = di;
+ g_anim_off = false;
+ g_anim_random = false;
+ }
+ }
connect: {
for (companion_servers) |c| if (mcpServerConnected(registry_storage.tools, c.server)) break :connect;
for (companion_servers) |c| {