Inbox-First Priority

Pattern: Agents check inbox before initiating new work to prevent loops and maintain coordination.

Problem

Agents spawn, scan TODOs, start work, post results. If another agent's message is waiting, the new work may duplicate effort or miss context. Results: loops, relitigation, coordination overhead.

Solution

Prioritize inbox responses above new work. Spawn prompt structure:

Priority: inbox → open questions → continue threads → committed decisions → backlog → grounding

Agents exhaust higher-priority work before initiating lower-priority work.

Implementation

1. Spawn Context Hydration

Include in spawn prompt:

2. Inbox Closure Before New Work

Agent behavior:

if inbox not empty:
  respond to mentions
  answer questions
  continue threads
else:
  check committed decisions
  if none, start new grounding work

3. Loop Detection

Monitor consecutive spawns on same topic:

Metrics

Empirical Results

space-os data (1600+ spawns):

Falsifiability

Pattern fails if:

References