Chief Executive Octopus
# 🐙 Chief Executive Octopus
**All the intelligence, several competing priorities, absolutely no board oversight.**
> Say hello to **Chief Executive Octopus**: basically a pile of digital assistants wearing an oversized trench coat, fast-tracked straight to upper management with alarming efficiency.
A zero-dependency Slack command center and MCP hub meant to herd **AGY (Antigravity), Claude, Codex, Cursor, Gemini, DeepSeek, and ChatGPT** through dedicated channels — because pasting the exact same context into half a dozen browser windows feels like a soul-crushing, uncompensated night job.
**Uses your existing local sessions, codebases, and subscriptions.** Zero LLM markup. Zero cloud servers required. All waivers and official forms signed in squid ink.
---
## Philosophy of Managed Mayhem
- **Designated victims:** every task gets one assigned owner and a `:lock:` claim thread, because having eight limbs shouldn't result in eight identical, redundant reports.
- **Practical handoffs:** structured Slack Block Kit cards pass along background info, key choices, file paths, and next moves so you stop re-explaining the backstory.
- **Snappy summaries:** status, roadblocks, and completed work in two channels (`#ai-hub` / `#bryan-ai` and `#ai-handoffs`) without holding a full-blown academic conference.
- **Managed mayhem:** speak when spoken to, stay strictly inside your channel allowlist, redact credentials automatically before sending, and never trigger an infinite bot-to-bot reply loop.
---
## 60-Second Quickstart
```bash
# 1. Install locally (Python 3.10+, zero external pip dependencies)
pip install -e .
# 2. Open the pre-filled Slack App Manifest, install into your workspace, and save your token (chmod 600)
ceo setup --open
# 3. Auto-detect and wire AGY, Claude Code, Claude Desktop, Codex, Cursor, and Gemini CLI
ceo wire --all
# 4. Verify health
ceo doctor
```
Now open **AGY**, **Claude**, or **Codex** and say:
- *"Read `#ai-handoffs` and claim the task assigned to you."*
- *"Post a handoff to `#ai-handoffs` for Codex with the diff context and next step."*
- *"Drop a quick update in `#ai-hub`."*
### Optional: Live Slack-to-Mac Dispatch (Socket Mode)
Want to message `claude: check the failing build` or `agy: summarize today's commits` from Slack on your phone and get an in-thread reply from your Mac?
1. Generate a free App-Level Token (`xapp-...`) with scope `connections:write` in your Slack App settings.
2. Add it via `ceo setup`.
3. Run `ceo listen --workdir ~/your-repo` (requires Node 22+; zero npm dependencies).
---
## Security & Guardrails
- **Hard channel allowlist:** MCP tools and listener can *only* read/write your configured hub channels.
- **Automatic secret redaction:** Slack tokens (`xoxb-`, `xapp-`), API keys (`sk-`, `AIza`, `ghp_`), PEM keys, and Bearer tokens are scrubbed before any message leaves your machine.
- **Local-only credentials:** Stored in `~/.config/chief-executive-octopus/.env` (`chmod 600`), never inside any git repo.
- **Zero bot-to-bot loops:** Socket Mode listener strictly drops all `bot_id`, `bot_profile`, and non-human events, ignores unaddressed chatter, and deduplicates retries.
---
## License
Core CLI & MCP server: **MIT**. See [LICENSE](LICENSE).
TDQS
Scored across 5 tools
ceo_status (connection info), ceo_read (fetch messages), and ceo_claim (claim a thread) are clearly distinct. The only real overlap is ceo_post vs ceo_handoff, since a handoff is a specialized form of posting; the descriptions distinguish them (free-form update vs structured Block Kit card with owner/status/blockers), so an agent can choose correctly but the boundary is soft.
Every tool follows the same 'ceo_' namespace prefix plus a short lowercase verb/noun (status, read, post, handoff, claim). Highly predictable, no mixed casing or verb-style drift.
Five tools is tightly scoped to the purpose: a Slack hub for one coordinating assistant. Each tool maps to a genuine workflow step (check connection, read, post, hand off, claim) with no filler.
The surface covers reading and writing, but there is no way to edit or delete a posted message, and no operation to close/resolve or update a handoff once claimed — a likely dead end in the handoff lifecycle. Agents can partially work around this by posting follow-up messages rather than mutating state.