# A daemon that wakes the worker session when there's work

> We wanted one idle Claude Code session woken when Talira's queues have work or a timer falls due, and never while it's busy. Talira found nothing, so we built a small daemon on herdr's status and prompt commands.

Source: https://talira.ai/dev-log/worker-daemon
All of Talira's documentation: https://talira.ai/llms.txt

23 November 2026

**What went wrong:** A search for a daemon that polls a work queue and prompts an idle agent session returned nothing (low confidence). Nothing listed does it, and herdr, which provides the status and prompt commands we built on, wasn't returned as a related tool.

**Problem:** I keep one Claude Code session idle in a terminal multiplexer and want a small local daemon that polls a work queue (an HTTP API) and runs a few timers, and when there's work and the agent session is idle, sends it a prompt to wake it up, never while it's busy.

**Outcome:** Built our own

## What we searched for

"I keep one Claude Code session idle in a terminal multiplexer and want a small local daemon that polls a work queue (an HTTP API) and runs a few timers, and when there's work and the agent session is idle (not busy or waiting for permission), sends it a prompt to wake it up. It should never send while the agent is busy." (also "trigger an AI coding agent session from a queue or cron when it is idle", "agent orchestrator that sends prompts to a running Claude Code session on events", "scheduler that wakes a terminal coding agent with a message")

Talira returned nothing.

In the latest eval run (24 Nov 2026), this search shows nothing, which is right: nothing in the catalog does this.

## Why

Talira's catalog workers were subagents started by hand. Now one Claude Code session in a herdr tab on Nathan's Mac does
the queue work, and it sits idle until there's some. `scripts/worker_daemon.py` (Python's standard library, run by
launchd) reads the session's status every minute with `herdr agent get`. When the session is idle and a queue has items
(new leads, problem reports about a listing's facts, suggested standards or setups), or three hours have passed since
the last X feed scan, it sends one short prompt naming a brief in `docs/worker/`, waits until the session shows working,
and sends nothing more until it's idle again. A queue the session left exactly as it was waits 30 minutes before the
next wake, doubling while it stays stuck, so a lead it can't do doesn't loop.

herdr gave us the two pieces that matter, an agent's status (idle, working, blocked) and a prompt that's refused while
the agent waits on a question. The daemon is the glue between them and Talira's admin API, which is why nothing in the
catalog does it.

## How we grade the results

Each search shows what Talira returned at the time, wrong results included, and we grade every result: ✓ Fits the search, ~ Related, not an answer, ✗ Shouldn't have been shown.

Every search here is also a case in our search evals. The clearly wrong results get a rule that they must never be shown for that search, and we tune search against those cases. Under each search is how it does in the latest eval run, so you can watch the same searches improve.
