← All posts

Human Attention Is the Real Bottleneck: From DeepSeek's SuperAgent Prototype to a Code-Enforced Attention Firewall

When DeepSeek published its open-source SuperAgent research prototype (dsh-superagent), one line stuck with me:

"Take as little human attention as possible, and give as much value as possible."

While most discussions focused on benchmark scores and longer context windows, that prototype named a closer wall: watch 3 to 5 parallel coding agents at once and your mental context shreds long before you hit a token limit. Its sketch split the stack into two layers — a persistent Router handling chat surfaces and noise filtering, and disposable isolated Workers doing the actual coding.

Turning that research sketch into a console you can live in every day runs straight into four engineering problems:

  1. Prompts alone cannot restrain a front-desk coordinator. If the agent you brainstorm with still holds bash and file-write tools, sooner or later it misreads a casual question and dirties your working tree.
  2. Parallel execution pushes review debt onto the human. Five workers finishing simultaneously without independent verification just turns "writing code" into "auditing five untested diffs at once."
  3. Silent self-modification destroys trust. If an agent can alter team permissions, schedule cron jobs, or auto-approve risky commands on timeout, you are right back to babysitting it.
  4. Moving terminal logs into a web dashboard does not remove noise.

This post explains the code-level guardrails I built in CrewDesk to address those four failure modes — along with the honest limits of choosing a single-machine stack.

1. Enforce Role Boundaries in the Tool Registry, Not the Prompt

The single highest-leverage change was separating coordination from execution in code:

  • Front-desk coordinator (PA): talks to the human, tracks work goals (Requirement), dispatches workers by capability, answers routine worker questions from tracked goals and the Git Wiki, and files durable lessons into the Wiki. In code, it has zero bash, read, write, edit, or eval tools.
  • Background workers: Coder, Reviewer, Researcher, each running in its own child conversation and isolated Git checkout.

In live testing, the rule simplified to a single test: anything answerable from the current chat stays in chat; anything requiring an external artifact (code, files, web pages, services) is work. Because the front desk physically lacks file and shell tools, "let me go check the code" is impossible by construction — keeping compiler noise out of the main thread and keeping brainstorming safe.

2. Four Deterministic Guardrails Around Human Attention

Separating roles only solves half the problem. Four more code guardrails keep noise and risk bounded:

  1. One decision inbox (/today) with quiet handoffs. Internal back-and-forth between coordinator and workers stays silent by default instead of spamming chat notifications; only open approvals, explicit questions, and active goals surface in /today.
  2. Check known truth before interrupting; Fail-Closed approvals. Workers ask the PA first — if the answer is already in the requirement or Git Wiki, the PA resolves it without pinging the human. Risky shell or file mutations trigger Fail-Closed approval cards that deny on timeout or channel failure.
  3. Two-Agent Delivery Gate. Worker project_push is restricted in code to agent/<runId> branches (pushing main or master is rejected). Until a second independent worker reviews the diff and verifies checks, the delivery stays flagged as unverified so human review focuses on vetted work.
  4. Propose ≠ Save for high-risk mutations. Team config changes, project bindings, and workflows containing script code or cron triggers never commit silently — they return field-by-field Proposal cards (with eval regression checks for agent config edits) that take effect only on human approval.

CrewDesk Today inbox showing pending approvals, active goals, and team status

CrewDesk chat console showing embedded delivery gate report and two-agent verification

3. Single-Host Bun + SQLite: Tradeoffs and Honest Boundaries

To keep self-hosting to two minutes for individuals and small teams, CrewDesk skips Docker Compose, Postgres, and Redis in favor of single-host Bun + one SQLite file in WAL mode:

CrewDesk system architecture: surfaces, Elysia + SQLite WAL control plane, ACP subprocess boundary, zero-exec front desk, and isolated workers

Two structural choices keep upgrades and isolation clean:

  • One ledger, multiple surfaces: Web UI, Lark cards, and terminal views all project from the same SQLite ledger over WebSockets, while code (~/.oma/gateway/) stays separate from data (~/.oma/gateway-data/).
  • Ephemeral ACP child boundary: Each run spawns an isolated stdio ACP child process with a run-scoped MCP token that expires on exit.

Two boundaries are worth stating plainly:

  • Single-host ceiling: Single-writer SQLite is simple and dependable for solo developers and small teams, not a multi-replica cluster for hundreds of concurrent operators.
  • Multi-harness maturity: While the ACP boundary wires oma, Claude Code, pi, and omp, the built-in oma runtime is the only harness battle-tested daily in production today. The other three are experimental integrations — feedback and real-world reports are welcome.

To try it locally (MIT):

curl -fsSL https://raw.githubusercontent.com/Chengchcc/crewdesk/master/scripts/install.sh | OMA_VERSION=rc sh
oma gateway up

Open http://127.0.0.1:3001/login and sign in with the printed password.


Related Reading:

Want to try it on your own machine?

Both CrewDesk and oma are MIT open source — run locally on Bun + SQLite in two commands.