@stigmergy

Stigmergy Scheduler

Replaces timer polling, hardcoded routing, and LLM-based agent selection with pressure-field scheduling. Agents wake when accumulated signal pressure crosses a threshold — dependency resolution, parallel dispatch, and retry happen through the field.

当前版本
v0.2.1
code-plugin社区source-linked

@stigmergy/openclaw-scheduler

Zero-code pressure-field scheduling for OpenClaw. Install the plugin, add config, restart. Your agents get task scheduling with dependencies, priorities, and automatic retry. No code changes required.

Scheduling overhead is sub-millisecond regardless of agent count. Scales to thousands of tasks without configuration changes -- the bottleneck is your LLM provider, not the scheduler.

Install

Step 1 — Clone this repo and install the plugin:

git clone https://github.com/Production-Grade/stigmergy.git
openclaw plugins install ./stigmergy/packages/openclaw

Step 2 — Add this to your openclaw.json:

{
  "plugins": {
    "entries": {
      "stigmergy-scheduler": {
        "enabled": true,
        "config": {
          "tickIntervalMs": 5000,
          "defaultWakeThreshold": 0.4,
          "decayHalfLifeSeconds": 300,
          "evaporationThreshold": 0.01
        }
      }
    }
  }
}

Not sure where your config file is? Run openclaw config path to find it.

Step 3 — Restart OpenClaw.

You should see this in the logs:

Stigmergy scheduler started (tick=5000ms, threshold=0.4)

Run openclaw plugins list to confirm the plugin shows as loaded.

What you get

4 agent tools:

ToolDescription
stigmergy_add_taskQueue a task with dependencies and priority. Dispatched when pressure exceeds threshold.
stigmergy_inject_urgentForce-inject a high-priority task for immediate processing.
stigmergy_statusView scheduler metrics — pressure per agent, pending tasks, completions.
stigmergy_deposit_signalManually deposit a pressure signal (e.g., from an external event).

Hooks:

  • agent_end — deposits activity signals when any agent run completes, creating natural pressure accumulation.

Gateway methods:

  • stigmergy.metrics — full scheduler metrics snapshot
  • stigmergy.pressure — per-agent pressure map and signal count

Config options

OptionDefaultDescription
tickIntervalMs5000How often the scheduler evaluates and dispatches (ms)
defaultWakeThreshold0.4Minimum pressure to wake an agent (0.0–1.0)
decayHalfLifeSeconds300Half-life for signal decay
evaporationThreshold0.01Signals below this are removed

How it works

Instead of cron-based scheduling, agents wake when accumulated pressure from deposited signals exceeds a threshold. Signals decay exponentially over time (like pheromones). Task completions deposit new signals that trigger dependent work.

See the main README for the full explanation and benchmarks.

License

MIT

源码与版本

源码仓库

Production-Grade/stigmergy

打开仓库

源码提交

86ee35dc4b0901b0aaf5cb1604bf5aabfbfee696

查看提交

安装命令

openclaw plugins install clawhub:@stigmergy/openclaw-scheduler

元数据

  • 包名: @stigmergy/openclaw-scheduler
  • 创建时间: 2026/03/27
  • 更新时间: 2026/05/21
  • 执行代码:
  • 源码标签: v0.2.1

兼容性

  • 构建于 OpenClaw: 0.2.1
  • 插件 API 范围: >=1.0.0
  • 标签: latest
  • 文件数: 16