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
HTML agent-harnessagent-orchestrationagentsai-agentsautonomous-agentsclaude-codecodexcoding-agentsdesktop-appdeveloper-toolselectrongemini-cliharnessharness-engineeringlocal-firstmemorymulti-agentopencodeorchestrationtypescript
feat: remove the add-task button - the kanban is a read surface, work enters via the god
Gulum2e442eb2ef4b
diff --git a/src/renderer/src/components/TasksKanban.tsx b/src/renderer/src/components/TasksKanban.tsxindex 88e5cb37..0eeeeb5a 100644--- a/src/renderer/src/components/TasksKanban.tsx+++ b/src/renderer/src/components/TasksKanban.tsx@@ -56,10 +56,6 @@ const COLUMNS: { key: Status; label: string; accent: string }[] = [const POLL_MS = 5000;-function shortId(): string {- return `t-${Date.now().toString(36)}-${Math.random().toString(36).slice(2, 6)}`;-}-/** Deterministic fallback id derived from a task's content (djb2 → base36).* Used for tasks lacking a valid string id so re-parsing tasks.json on every* 5s poll yields the SAME id — no React key churn / card remount. Unlike@@ -103,14 +99,14 @@ function parseTasks(raw: unknown): HiveTask[] {}/**- * Task kanban over hive/tasks.json. Polls every 5s, lets the human add tasks- * (assignee from the live roster, priority, dependsOn), and "assign" a card —- * which pre-fills the Floor tab's dispatch box and switches to it.+ * Task kanban over hive/tasks.json — a READ surface. Polls every 5s; cards+ * carry just the title and open the app-wide detail overlay on click. The god+ * is the ledger's writer: new work enters via the dispatch box (mailed to the+ * god), never by the human inserting cards the orchestrator never heard about.*/export function TasksKanban() {const agents = useStore((s) => s.agents);const [tasks, setTasks] = useState<HiveTask[]>([]);- const [adding, setAdding] = useState(false);// Detail view: cards show just the title — clicking one opens the full// breakdown as an APP-WIDE overlay over the office floor (see// TaskDetailOverlay) — the content grows (contracts, deps, human Q&A), so it@@ -128,16 +124,6 @@ export function TasksKanban() {return () => { if (timer.current) clearInterval(timer.current); };}, [refresh]);- const persist = useCallback(async (next: HiveTask[]) => {- setTasks(next); // optimistic- try { await window.cth.hiveWriteTasks(next); } catch { refresh(); }- }, [refresh]);-- const addTask = useCallback((t: HiveTask) => {- persist([...tasks, t]);- setAdding(false);- }, [tasks, persist]);-const restorableAgents = useStore((s) => s.restorableAgents);/** Resolve an assignee id to a display name — falls back to the restorable* roster so a done card keeps its author's name even after that worker's@@ -151,7 +137,9 @@ export function TasksKanban() {return (<div style={{ flex: 1, minHeight: 0, display: 'flex', flexDirection: 'column', background: 'var(--cth-paper-200)', position: 'relative' }}>- {/* Toolbar */}+ {/* Toolbar — read-only: the god is the ledger's writer. New work enters+ through the dispatch box (which mails the god), not by the human+ inserting cards the orchestrator never heard about. */}<div style={{display: 'flex', alignItems: 'center', gap: 8, padding: '8px 10px', flexShrink: 0,borderBottom: '1px solid var(--cth-ink-300)'@@ -159,27 +147,11 @@ export function TasksKanban() {<span style={{ fontFamily: 'var(--cth-font-display)', fontSize: 9, color: 'var(--cth-ink-500)' }}>{tasks.length} task{tasks.length === 1 ? '' : 's'}</span>- <PixelButton- variant={adding ? 'secondary' : 'primary'}- size="sm"- onClick={() => setAdding((v) => !v)}- style={{ marginLeft: 'auto' }}- >- <span style={{ display: 'inline-flex', alignItems: 'center', gap: 4 }}>- <Icon name={adding ? 'x' : 'plus'} /> {adding ? 'cancel' : 'add task'}- </span>- </PixelButton>+ <span style={{ marginLeft: 'auto', fontSize: 11, color: 'var(--cth-ink-300)' }}>+ new work? dispatch it to Michael (monitor tab)+ </span></div>- {adding && (- <AddTaskForm- agents={agents}- existing={tasks}- onCancel={() => setAdding(false)}- onCreate={addTask}- />- )}-{/* Columns */}<div style={{flex: 1, minHeight: 0, display: 'flex', gap: 8, padding: 10, overflowX: 'auto'@@ -434,111 +406,6 @@ function PriorityDots({ level }: { level: number }) {);}-// ─── Add-task form ─────────────────────────────────────────────────────────----function AddTaskForm({ agents, existing, onCancel, onCreate }: {- agents: { id: string; name: string; isGod?: boolean }[];- existing: HiveTask[];- onCancel: () => void;- onCreate: (t: HiveTask) => void;-}) {- const [title, setTitle] = useState('');- const [description, setDescription] = useState('');- const [assignee, setAssignee] = useState('');- const [priority, setPriority] = useState(3);- const [deps, setDeps] = useState<string[]>([]);-- const submit = () => {- if (!title.trim()) return;- onCreate({- id: shortId(),- title: title.trim(),- description: description.trim() || undefined,- assignee: assignee || undefined,- status: 'todo',- dependsOn: deps,- priority,- createdAt: new Date().toISOString()- });- };-- const toggleDep = (id: string) => {- setDeps((d) => (d.includes(id) ? d.filter((x) => x !== id) : [...d, id]));- };-- return (- <div style={{ padding: '0 10px 8px', flexShrink: 0 }}>- <PixelPanel variant="inset" style={{ display: 'flex', flexDirection: 'column', gap: 6 }}>- <input- autoFocus- value={title}- onChange={(e) => setTitle(e.target.value)}- onKeyDown={(e) => { if (e.key === 'Enter' && (e.metaKey || e.ctrlKey)) submit(); }}- placeholder="Task title…"- style={inputStyle}- />- <textarea- value={description}- onChange={(e) => setDescription(e.target.value)}- rows={2}- placeholder="Description / context (optional)"- style={{ ...inputStyle, resize: 'none', fontFamily: 'var(--cth-font-mono)' }}- />- <div style={{ display: 'flex', gap: 6, flexWrap: 'wrap', alignItems: 'center' }}>- <label style={labelStyle}>assignee</label>- <select value={assignee} onChange={(e) => setAssignee(e.target.value)} style={selectStyle}>- <option value="">unassigned</option>- {agents.map((a) => (- <option key={a.id} value={a.id}>{a.name}{a.isGod ? ' (god)' : ''}</option>- ))}- </select>- <label style={labelStyle}>priority</label>- <select value={String(priority)} onChange={(e) => setPriority(Number(e.target.value))} style={selectStyle}>- {[1, 2, 3, 4, 5].map((p) => (<option key={p} value={p}>{p}</option>))}- </select>- </div>-- {existing.length > 0 && (- <div>- <div style={{ ...labelStyle, marginBottom: 4 }}>depends on</div>- <div style={{- display: 'flex', flexWrap: 'wrap', gap: 4, maxHeight: 84, overflowY: 'auto',- padding: 4, background: 'var(--cth-paper-100)', boxShadow: 'inset 0 0 0 1px var(--cth-ink-300)'- }}>- {existing.map((t) => {- const on = deps.includes(t.id);- return (- <button- key={t.id}- onClick={() => toggleDep(t.id)}- title={t.title}- style={{- maxWidth: 160, overflow: 'hidden', textOverflow: 'ellipsis', whiteSpace: 'nowrap',- padding: '2px 7px 1px', border: 'none', cursor: 'pointer',- background: on ? 'var(--cth-sky)' : 'var(--cth-cream-200)',- boxShadow: `inset 0 0 0 1px ${on ? 'var(--cth-ink-900)' : 'var(--cth-ink-300)'}`,- fontFamily: 'var(--cth-font-ui)', fontSize: 11, color: 'var(--cth-ink-900)'- }}- >{t.title}</button>- );- })}- </div>- </div>- )}-- <div style={{ display: 'flex', gap: 6 }}>- <PixelButton variant="primary" size="sm" onClick={submit} disabled={!title.trim()}>- <span style={{ display: 'inline-flex', alignItems: 'center', gap: 3 }}>- <Icon name="check" /> create- </span>- </PixelButton>- <PixelButton variant="ghost" size="sm" onClick={onCancel}>cancel</PixelButton>- </div>- </PixelPanel>- </div>- );-}-const inputStyle: React.CSSProperties = {width: '100%', padding: '6px 8px', background: 'var(--cth-paper-100)', border: 'none',boxShadow: 'inset 0 0 0 1px var(--cth-ink-700)', fontFamily: 'var(--cth-font-ui)',