Skip to content

an open-source alternative to the dots, bots and muses of the world, run an office of claude code/codex like agents on your laptop, sandboxes or anywhere, uses your existing subscriptions

merge: statusLine-driven context gauge — exact tokens + real window (#12)

Chaitanya Giri1c23178deffc
diff --cc src/main/hive.ts
index 29d45b13,f06ade4e..5b040cdb
--- a/src/main/hive.ts
+++ b/src/main/hive.ts
@@@ -373,10 -373,12 +373,16 @@@ export class HiveManager
hooks: [{ type: 'command', command: cmd }]
});
return {
+ // Match the TUI's truecolor palette to the harness terminal theme —
+ // PER SESSION, so the user's global Claude theme (their own terminals
+ // outside the app) is never touched.
+ ...(theme ? { theme } : {}),
+ // The status line gets the session status JSON after every response —
+ // including context_window.{total_input_tokens,context_window_size},
+ // the only clean programmatic source for the session's REAL context
+ // window. The shim prints a compact in-terminal gauge and forwards the
+ // payload to the harness (agent-card context gauge, exact limit).
+ statusLine: { type: 'command', command: `${cmd} --status`, padding: 0 },
hooks: {
Stop: [entry()],
SubagentStop: [entry()],