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.
npx agentmods add skills/agentproto/ts/ap-wait-durablenpx skills add agentproto/ts --skill ap-wait-durablegit clone --depth 1 https://github.com/agentproto/tsWrote 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.
[](https://agentmods.dev/skills/agentproto/ts/ap-wait-durable)<a href="https://agentmods.dev/skills/agentproto/ts/ap-wait-durable"><img src="https://agentmods.dev/badge/skills/agentproto/ts/ap-wait-durable.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00080 | $0.00813 |
| Opus 5 | $0.00040 | $0.00407 |
| Sonnet 5 | $0.00016 | $0.00163 |
| Haiku 4.5 | $0.00008 | $0.00081 |
Grade A, and why
ap-wait-durable 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 yesterday.
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.
How it starts
The opening of the file, as written. The whole thing — 87 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Wait For Sessions Without Blocking (Durable)
When to use
You need to know when a spawned agentproto session finishes, but you don't want to sit inside a single turn blocking on it — either because the wait could be long, or because you want to keep working on other things in the meantime. This is the non-blocking counterpart to ap-wait-fanin.
Pattern: background CLI wait with a notification
Run the wait as a background terminal process and let its completion notify you, instead of parking your own turn on it.
agentproto sessions wait sess_abc123 --until turn-end
Launched via a Hermes terminal with background=true, notify_on_complete=true, the wait runs off to the side and its completion
arrives as a new message — zero polling inside your own context.
agentproto sessions --watch
Alternative for open-ended supervision of many sessions at once rather than one specific wait.
Pattern: cron re-ping as a durable fallback
For waits that must survive a daemon restart, or where a background terminal isn't an option, arm a cron job that re-pings your own living session by id.
MCP: cron_create
{
"tool": "cron_create",
"args": {
"schedule": "*/10 * * * *",
"action": { "kind": "prompt-session", "sessionId": "sess_self001" },
"prompt": "Check whether sess_abc123 has finished its turn yet."
}
}
MCP: cron_list / cron_run / cron_delete
{ "tool": "cron_list", "args": {} }
{ "tool": "cron_run", "args": { "cronId": "cron_77f1" } }
{ "tool": "cron_delete", "args": { "cronId": "cron_77f1" } }
cron_run fires the job immediately (useful to test it before trusting the
schedule); cron_delete disarms it once the wait is over — a stale
re-ping cron will keep nagging a session that no longer needs it.
Gotchas
- From a cowork/Hermes session, prefer
terminal(background=true, notify_on_complete=true)over anything foreground — the notification lands as a new message with zero polling cost to your context. cron_createwithprompt-sessionre-pings a LIVING session by id. It is the durable alarm that survives daemon restarts, but it is a nudge that re-invokes you to go check — not a wait result delivered automatically. Your re-invoked turn still has to call agent_output or session_events_poll to actually learn the outcome.- Never foreground-block your own turn with a long sleep to simulate a wait — watchdogs will kill long in-turn sleeps, and (per ap-wait-fanin) killing a wait mid-flight can corrupt the session being waited on.
- Delete the cron once the wait resolves; an armed re-ping left behind will keep firing on schedule and burning tokens on a session that's long done.
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.
- yesterday First seen · 87 lines · 80 tokens per session scan A 12603ff690e2
ap-wait-durable is a skill published in the GitHub repository agentproto/ts (5 stars, last pushed today), licensed Apache-2.0. It adds 80 tokens to every session and 813 once invoked, about $0.0004 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-09-04.
Other skills, from other repositories
markedit-tools
Provides tools for managing MarkEdit, a macOS markdown editor.
differed-task-execution
Delays execution of a task until a specified time or after a duration. Use when the user asks to run something later, in X minutes/hours, at a specific time, schedule a command, or defer work to a future point.
herdr
Control Herdr, a terminal multiplexer for coding agents. Use only when the user explicitly asks to you use or configure Herdr.
strands-review
Local preview of the strands-agents/devtools /strands review agent. Body is the upstream Task Reviewer SOP verbatim — do not paraphrase. Use when the user types /strands-review, asks for a "strands review" of a PR, or wants to anticipate what the remote /strands review GitHub Action will flag. Findings are close but…
docs-writer
Draft or rewrite Strands Agents documentation pages. Use when writing new doc pages, rewriting pages that failed audit, drafting sections for existing pages, or writing blog posts and release notes about Strands. Also triggers on "write a doc", "draft a page", "rewrite the quickstart", "add a tutorial for X"…
pr-writer
Generates pull request titles and descriptions. Use when the user asks to create, open, write, draft, or generate a PR, pull request, or merge request description.