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 branch 'feature/task-kanban' into integration/roadmap

Chaitanya Giriff6230394048
diff --cc node_modules
index 00000000,00000000..5af93d3b
new file mode 120000
--- /dev/null
+++ b/node_modules
@@@ -1,0 -1,0 +1,1 @@@
++/Users/chaitanya/Documents/Personal/claudeTerminalHarness/node_modules
diff --cc src/main/index.ts
index d65a2f60,5998bae1..bf068937
--- a/src/main/index.ts
+++ b/src/main/index.ts
@@@ -9,10 -9,9 +9,10 @@@ import
} from './config';
import { listDir, readFileText, writeFileText } from './fs';
import {
- getBranch, getStatus, getLog, getBranches, getAheadBehind, isRepo
+ getBranch, getStatus, getLog, getBranches, getAheadBehind, isRepo,
+ addWorktree, removeWorktree
} from './git';
- import { HiveManager, type AgentMeta, type HiveMessage } from './hive';
+ import { HiveManager, type AgentMeta, type HiveMessage, type HiveTask } from './hive';
import { HookServer } from './hooks';
import { MemoryManager } from './memory';
import { enrichMessage } from './assistant';
diff --cc src/preload/index.ts
index 1a70d5aa,d0b2ec40..16744eb4
--- a/src/preload/index.ts
+++ b/src/preload/index.ts
@@@ -233,11 -233,10 +245,16 @@@ const api =
* into onboarding. The process exits, so this promise never resolves. */
resetAll: (): Promise<void> => ipcRenderer.invoke('app:resetAll'),
+ // ─── Token telemetry (real usage + est. cost from CC transcripts) ──────────
+ /** Sum input/output/cache tokens + estimated USD cost for an agent from its
+ * Claude Code transcripts. Returns null for an invalid cwd. */
+ agentUsage: (cwd: string): Promise<AgentUsage | null> =>
- ipcRenderer.invoke('hive:agentUsage', cwd)
++ ipcRenderer.invoke('hive:agentUsage', cwd),
++
+ // ─── Task kanban (hive/tasks.json) ───────────────────────────────────────
+ /** Overwrite the hive task ledger with the full task list and commit it. */
+ hiveWriteTasks: (tasks: HiveTask[]): Promise<{ ok: boolean; error?: string }> =>
+ ipcRenderer.invoke('hive:writeTasks', tasks)
};
contextBridge.exposeInMainWorld('cth', api);