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

feat(composer): make Delegate a toggle switch stacked above Send

Chaitanya Giridbe6429483e5
diff --git a/CHANGELOG.md b/CHANGELOG.md
index d1665863..e5643b91 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -13,7 +13,7 @@ cleanup that ends the breaker inbox-flood, Slack requests that actually reply wi
substance, a delegate toggle, six new tutorials/blogs, and an enriched landing diagram.
### Added
-- **Delegate-to-agents toggle.** A toggle beside the god orchestrator's message composer prepends a delegation instruction so a request fans out to available agents (and is handled one-by-one if none are free). God-only, default off.
+- **Delegate-to-agents toggle.** A toggle switch above the Send button in the god orchestrator's composer prepends a delegation instruction so a request fans out to available agents (and is handled one-by-one if none are free). God-only, default off.
- **AUTONOMOUS REQUEST PROTOCOL for Slack-origin requests.** Inbound Slack requests now run fully autonomously: god routes the request to the most-relevant agent, that agent does the work and **posts its substantive result back into the Slack thread itself**, then reports to god. It pauses only for high-severity actions (pushing to main, spawning infrastructure/paid services, deleting files it didn't create), and any decision it needs is asked as a numbered-options reply in the thread and correlated back by `thread_ts`.
- **Six new tutorials & blog posts** — webhook setup, the full Slack setup, deploying an automated PR-reviewer agent, deploying a blog-writer agent, why CLI agents are so powerful (and how the hive cuts token use), and why a mixed-capability swarm beats a clone army.
- **Enriched "how it works" landing diagram** — Slack / Webhook / Schedule triggers feeding the orchestrator, plus a band showing each agent in its own isolated local git worktree.
diff --git a/src/renderer/src/components/MessageQueueComposer.tsx b/src/renderer/src/components/MessageQueueComposer.tsx
index 7f522ab0..ae3aa29d 100644
--- a/src/renderer/src/components/MessageQueueComposer.tsx
+++ b/src/renderer/src/components/MessageQueueComposer.tsx
@@ -167,24 +167,58 @@ export function MessageQueueComposer({ agent }: MessageQueueComposerProps) {
outline: 'none'
}}
/>
- {agent.isGod && (
- <PixelButton
- variant={delegate ? 'primary' : 'secondary'}
- size="md"
- onClick={() => setDelegate((d) => !d)}
- title="Prepend a delegation instruction so Michael hands the task to other available agents (or does it himself one-by-one if none are free)."
- >
+ {/* Right column: Delegate toggle stacked ABOVE Send (god/Michael only). */}
+ <div style={{ display: 'flex', flexDirection: 'column', gap: 6, alignItems: 'stretch' }}>
+ {agent.isGod && (
+ <DelegateSwitch on={delegate} onToggle={() => setDelegate((d) => !d)} />
+ )}
+ <PixelButton variant="primary" size="md" onClick={queueIt} disabled={!text.trim()}>
<span style={{ display: 'inline-flex', gap: 6, alignItems: 'center' }}>
- {delegate && <Icon name="check" />} Delegate
+ send <Icon name="arrow-right" />
</span>
</PixelButton>
- )}
- <PixelButton variant="primary" size="md" onClick={queueIt} disabled={!text.trim()}>
- <span style={{ display: 'inline-flex', gap: 6, alignItems: 'center' }}>
- send <Icon name="arrow-right" />
- </span>
- </PixelButton>
+ </div>
</div>
</div>
);
}
+
+/**
+ * A pixel-style toggle switch for the god/Michael delegation flag. ON prepends
+ * DELEGATE_PREFIX to the enqueued message so Michael fans the task out to other
+ * available agents (or does it himself one-by-one if none are free).
+ */
+function DelegateSwitch({ on, onToggle }: { on: boolean; onToggle: () => void }) {
+ return (
+ <button
+ type="button"
+ role="switch"
+ aria-checked={on}
+ onClick={onToggle}
+ title="When ON, Michael hands the task to other available agents (or does it himself one-by-one if none are free)."
+ style={{
+ display: 'inline-flex', alignItems: 'center', justifyContent: 'space-between', gap: 8,
+ padding: '3px 6px', border: 'none', cursor: 'pointer', background: 'transparent',
+ fontFamily: 'var(--cth-font-ui)', fontSize: 12,
+ color: on ? 'var(--cth-ink-900)' : 'var(--cth-ink-700)'
+ }}
+ >
+ <span>Delegate</span>
+ {/* track */}
+ <span style={{
+ position: 'relative', flexShrink: 0, width: 28, height: 14,
+ background: on ? 'var(--cth-lilac)' : 'var(--cth-cream-200)',
+ boxShadow: `inset 0 0 0 1px ${on ? 'var(--cth-ink-900)' : 'var(--cth-ink-700)'}`,
+ transition: 'background 120ms ease'
+ }}>
+ {/* knob */}
+ <span style={{
+ position: 'absolute', top: 2, left: on ? 16 : 2, width: 10, height: 10,
+ background: 'var(--cth-paper-100)',
+ boxShadow: '0 0 0 1px var(--cth-ink-900)',
+ transition: 'left 120ms ease'
+ }} />
+ </span>
+ </button>
+ );
+}