pollers

pollers is a skill for Claude Code, Codex from tkellogg/open-strix. It costs 63 tokens per session (1,445 once invoked), scanned A, original, MIT.

A system for running small monitoring scripts on a schedule and reporting only when an external service needs attention. A poller is a scheduled check for services such as GitHub, RSS feeds, APIs, or Bluesky.

In plain words
What is it for?
Creating, debugging, and managing scheduled checks, including their scripts, configuration files, saved state, and JSON event output.
Why use it?
It turns recurring checks into automatic events while staying quiet when nothing has changed.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/tkellogg/open-strix/pollers
Any agent
npx skills add tkellogg/open-strix --skill pollers
Clone the repo
git clone --depth 1 https://github.com/tkellogg/open-strix

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for pollers

README.md
[![agentmods](https://agentmods.dev/badge/skills/tkellogg/open-strix/pollers.svg)](https://agentmods.dev/skills/tkellogg/open-strix/pollers)
Your own site
<a href="https://agentmods.dev/skills/tkellogg/open-strix/pollers"><img src="https://agentmods.dev/badge/skills/tkellogg/open-strix/pollers.svg" alt="Measured on agentmods" height="20"></a>
Per session 63 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,445 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00063 $0.01445
Opus 5 $0.00032 $0.00723
Sonnet 5 $0.00013 $0.00289
Haiku 4.5 $0.00006 $0.00145

Measured 4d ago against content hash 0ed57e70dc12, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

pollers scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

open_strix/builtin_skills/pollers/SKILL.md · 164 lines

How it starts

The opening of the file, as written. The whole thing — 164 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Pollers — Event-Driven Monitoring

Pollers are lightweight scripts that check external services on a schedule and report back when something needs attention. They live inside skills and are discovered automatically by the scheduler.

How It Works

  1. A skill includes a pollers.json file alongside its SKILL.md
  2. The scheduler discovers all pollers.json files at startup and when reload_pollers is called
  3. On each cron tick, the scheduler runs the poller command as a subprocess
  4. Each line of stdout is parsed as JSON and delivered to the agent as an event
  5. If there's nothing to report, the poller outputs nothing — silence is the filter

Creating a Poller

1. Write the poller script

The script runs in the skill directory. It receives these environment variables automatically:

Variable Description
STATE_DIR The skill directory (writable, for cursors/state)
POLLER_NAME The poller's name from pollers.json

Plus any custom env vars from the env field, plus the agent's existing environment.

Output contract:

  • stdout: JSONL (one JSON object per line). Each line must have poller (string) and prompt (string) fields.
  • stderr: Free-form logging. Not forwarded to the agent.
  • Exit 0: Success. Non-zero: Error, this cycle is skipped.

Example poller script:

#!/usr/bin/env python3
"""Check for new items since last poll."""
import json, os, sys
from pathlib import Path

STATE_DIR = Path(os.environ.get("STATE_DIR", "."))
CURSOR_FILE = STATE_DIR / "cursor.json"

def load_cursor():
    if CURSOR_FILE.exists():
        return json.loads(CURSOR_FILE.read_text())
    return {}

def save_cursor(cursor):
    CURSOR_FILE.write_text(json.dumps(cursor, indent=2))

def main():
    cursor = load_cursor()
    # ... check your service, compare against cursor ...

    new_items = []  # your logic here

    for item in new_items:
        event = {
            "poller": os.environ.get("POLLER_NAME", "my-poller"),
            "prompt": f"New item: {item['title']}"
        }
        print(json.dumps(event))

    # Update cursor so next run skips these items
    save_cursor(cursor)

if __name__ == "__main__":
    main()

Read the full file on GitHub · 164 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 164 lines · 63 tokens per session scan A 0ed57e70dc12

Subscribe to this mod's changes

pollers is a skill published in the GitHub repository tkellogg/open-strix (84 stars, last pushed 29d ago), licensed MIT. It adds 63 tokens to every session and 1,445 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.