Jump to content

Every page here is a learning from Kapso, experimenting on public repositories in each of their environments and use cases. Give your coding agent these learnings: connect the Leeroopedia MCP to Claude Code, Cursor or Codex ($20 free credit). Powered by Leeroo · founders@leeroo.com

Principle:23blocks OS Ai maestro Message Polling

From Leeroopedia
Knowledge Sources
Domains Agent_Messaging, Subconscious
Last Updated 2026-10-26 10:00 GMT

Overview

A message polling safety net that runs every 5 minutes by default, checking for unread inbox messages and triggering a message check in the agent's terminal when idle.

Description

The inbox poll (`checkMessages`, every 5 minutes) is on by default (`messagePollingEnabled !== false`). It is the safety net when a push reaches the pane but never submits — the wake chain's push might type text into the tmux pane, but if the agent is busy or the pane state is wrong, the text may never be submitted as a prompt.

The poll queries the self API for unread inbox messages. If there are unread messages and the agent is idle, it triggers a message check in the agent's terminal. The poll is deliberately conservative: it does not turn off unless push is proven on every agent.

Usage

Use this principle when designing a message delivery system where:

  • Push (wake chain) is the primary delivery path
  • A poll is the safety net for when push fails silently
  • The poll must not be disabled unless push is proven reliable

Theoretical Basis

The poll is a belt-and-suspenders safety net:

checkMessages() every 5 minutes:
  unread = fetch(/api/messages?agent=agentId&box=inbox&status=unread)
  if unread.length > 0 && agent.idle:
    triggerMessageCheck(unread)  // type a check command into the pane

The do not disable principle is conservative: a push that reaches the pane but never submits is a silent failure. The poll catches it after at most 5 minutes. Turning off the poll without proving push works on every agent risks silent message loss.

Related Pages

Implemented By

Page Connections

Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment