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:42 evey Hermes plugins Signal Collection

From Leeroopedia
Knowledge Sources
Domains Autonomous_Agents, Information_Gathering
Last Updated 2026-10-29 00:00 GMT

Overview

A pattern for gathering candidate actions from heterogeneous signal sources — databases, files, system state, and time-of-day triggers — into a unified action queue for priority-based decision-making.

Description

Signal Collection is the first stage of an autonomous decision loop. Rather than waiting for user commands, the agent proactively scans multiple environmental sources for actionable items: pending tasks in a message bridge, uncompleted goals, dirty git repositories, stale memories, failing cron jobs, and time-based triggers. Each source produces action dicts with a consistent schema (source, action, description, urgency, importance, recency, task_type) that the decision engine can rank uniformly.

This solves the problem of attention allocation: an autonomous agent operating in a complex environment with many concurrent demands needs a systematic way to discover what needs doing without human prompting. By polling diverse sources through a collector interface, the agent transforms environmental state into a prioritizable action queue.

Usage

Use this principle when designing autonomous agent systems that must decide their own next action. It is appropriate when the agent has access to multiple heterogeneous state sources (databases, files, external services) and needs a unified view of pending work. Not suitable for purely reactive systems that only respond to direct user commands.

Theoretical Basis

The collector pattern abstracts heterogeneous sources behind a uniform interface:

# Abstract pattern (NOT real implementation)
def collect_signals(sources: list[Callable]) -> list[Action]:
    """Each source is a zero-arg function returning Action dicts."""
    actions = []
    for source in sources:
        try:
            actions.extend(source())
        except Exception:
            pass  # fail-safe: one broken source doesn't block others
    return actions

Each action carries a uniform schema allowing cross-source comparison:

Failed to parse (syntax error): {\displaystyle \text{action} = (\text{source}, \text{action\_name}, \text{description}, \text{urgency}, \text{importance}, \text{recency}, \text{task\_type}) }

The fail-safe design (each collector wrapped in try/except) ensures that a broken source (e.g., missing database, unreadable file) produces zero actions rather than crashing the entire decision loop.

Related Pages

Implemented By

Uses Heuristic

Page Connections

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