Building an Async Approval Inbox for AI Agents: Architecture and Practice

    Human-in-the-loop review is often the weakest link in an AI agent pipeline: terminals lose context, agents block while waiting, and a casual "y" leaves no auditable decision record. This article explains how to replace that fragile synchronous flow with an async approval inbox—a local message queue paired with a web-based annotation interface. It covers the "mailroom" mental model (N agents converging on one review window), an onboarding layer with auto-detection, hooks, and MCP as a fallback, the message schema and annotation-first UI design, real-world resource costs reported by heavy users, and why this thin collaboration layer has clear product potential for teams building multi-agent systems.

    If you use command-line agents for real work, you’ve probably been through this: the task finishes, the agent dumps a long Markdown report into your terminal, you scroll line by line until your eyes glaze over, and finally type “y”. This flow has three serious flaws:

    • Information loss. The terminal scrollback is volatile. Miss a section and it’s gone—there’s no reliable way to look back.
    • Synchronous blocking. The agent finishes its work and must wait for a human reply. If you’re away from your desk, the entire pipeline sits idle.
    • Unstructured feedback. A “y” or a quick natural-language remark never becomes a machine-parseable decision record. Later, when you need to audit “why was this approved?”, there’s nothing to consult.

    Together these problems show that what’s missing isn’t “a better terminal theme”—it’s a complete async approval protocol. That’s exactly what “giving your agent an inbox” solves: move the “waiting for a human nod” step out of the terminal and into the browser, as a separate channel that supports annotations, queuing, and result delivery back to the agent.

    2. The Core Mental Model: A Mailroom

    A fitting analogy: imagine a group of hardworking interns with a mailroom.

    The agents (coding agents, personal-assistant agents, etc.) each do their own work in the background. When a task is done—or when they hit an uncertain point mid-task—they drop a note at the mailroom. You pick it up whenever you’re free, write a comment or mark it up, and the note goes back the same way; the corresponding intern resumes work. This model has three key properties:

    1. Many-to-one aggregation. N concurrently running agents funnel all their outputs and questions into a single local window. The human completes every approval in one interface instead of switching between N terminal windows.
    2. Human-side asynchrony. Agents don’t block and wait. Once they submit their note, they can “clock out” or move on to something else; a decision arriving late doesn’t stall overall progress.
    3. Closed feedback loop. Every approval or rejection carries structured feedback. When a rejection is sent back, the agent revises its plan, and the revision comes with a side-by-side diff so the human can instantly see what changed.

    3. The Integration Layer: Auto-Detection with a Protocol Fallback

    The most frictionless design for this kind of system is install-and-it’s-configured:

    • Auto-detection. A bootstrap script scans which agents are installed on your machine and automatically configures hooks, skills, and slash commands in one pass—no manual editing of each tool’s config files.
    • MCP as a fallback. For tools that don’t offer a plugin channel, integration goes through general protocols such as the Model Context Protocol (MCP), ensuring coverage.
    • Critical-path automation. Take “plan approval” as an example: when the agent invokes the built-in command to exit plan mode, a hook is triggered automatically and the browser opens the review page on its own—no commands to type.

    One detail worth savoring is the timeout configuration. In the documentation for manual hook setup, the timeout field contains a number that works out to roughly four days in seconds. This default is more honest than any marketing copy—it assumes you genuinely plan to come back and review four days later. That’s a genuinely async stance. Conversely, it also reminds us that approval hooks must run in a non-blocking mode: after the hook fires, the agent session continues or suspends as usual, with the result delivered via a separate channel.

    4. Engineering the Inbox

    4.1 The Message Model

    At its core, the inbox is a local message queue plus a web annotation interface. Each “note” should contain at least:

    1. {
    2. "agent_id": "which agent submitted this",
    3. "session_id": "which session it belongs to",
    4. "message": "the question or a description of the output",
    5. "payload": "attachments: code diff, plan text, artifact files",
    6. "status": "pending / approved / rejected",
    7. "feedback": "structured review comments",
    8. "diff": "side-by-side comparison after the agent revises per feedback"
    9. }

    Answers are sent back to the corresponding session with one click, and a session-side hook injects the result so execution resumes. Messages are persisted as an append-only log (e.g., a JSONL file), which naturally supports retrospective auditing.

    4.2 The Annotation Interface

    The core capability of the UI isn’t viewing—it’s marking up: circling and annotating directly on documents and messages, with the annotations sent back along with the approval decision. This carries far more information than a binary “approve/reject” button. What the agent receives is locatable, actionable revision guidance.

    4.3 The Resource Ledger: What Real Users Report

    Judge by real usage, not marketing. Is this pattern actually used heavily? The project’s issue tracker provides a ledger: one user complained that the inbox tab, while idle, consumed about 1.6 GB of memory plus 8% CPU; its data directory was roughly 425 MB, and the busiest project’s message log had reached 18 MB, holding more than nine thousand messages across three hundred-plus threads.

    These numbers tell us two things. First, there really are fleets of agents asking questions all day long—concurrent approval demand genuinely exists. Second, loading every session’s messages in full into the browser frontend carries a real cost. Engineering-wise you must implement pagination, lazy loading, and indexing, or the inbox itself becomes the new performance bottleneck.

    5. What It Means to Turn This into a Business

    “Moving human approval into the browser” looks like a thin layer, but it sits squarely on the critical path of human-agent collaboration. It naturally meets three conditions for productization:

    • High-frequency, essential use case: whenever an agent needs human review, this interface is unavoidable.
    • Data accumulation: approval records are high-value decision data, usable later to refine each agent’s autonomy boundaries.
    • A clear ecological niche: it doesn’t compete with the agents themselves; it’s purely a collaboration layer. Every mainstream agent tool is an upstream partner, not a rival.

    For teams building this in-house, even without adopting an existing solution, the same three-layer structure applies: a hook layer captures approval requests, a queue layer persists and distributes them, and an interface layer annotates and returns results. In enterprise settings, such an approval inbox can also be combined with cloud message queues, object storage, logging, and alerting services, archiving approval records as auditable work-order assets.

    6. Conclusion

    Giving AI agents an inbox looks, on the surface, like moving the “approve” click somewhere else. In substance, it upgrades human-agent collaboration from synchronous Q&A to an async protocol. The value of the mailroom model: humans intervene at their own pace, agents receive instructions in structured form, and every decision leaves a trace. As concurrent multi-agent operation becomes the norm, this kind of collaboration-layer infrastructure will only become more indispensable.