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 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/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<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="Reviewed on agentmods" width="80" 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.5 | $0.00032 | $0.00325 |
| Sonnet 5.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 2mo 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.
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.
- 2mo ago First seen · 87 lines · 80 tokens per session scan A 12603ff690e2
ap-wait-durable is a skill published in the GitHub repository agentproto/ts (11 stars, last pushed today), licensed Apache-2.0. It adds 80 tokens to every session and 813 once invoked, about $0.0003 per session on Opus 5.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.
ap-wait-durable compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| ap-wait-durableagentproto/ts | Skill | 11 | today | Apache-2.0 | A | 80 | Claude Code, Codex |
| markedit-toolssammcj/agentic-coding | Skill | 174 | 3d ago | Apache-2.0 | A | 16 | Claude Code, Codex |
| deferred-task-executionsammcj/agentic-coding | Skill | 174 | 3d ago | Apache-2.0 | A | 54 | Claude Code |
| herdrsammcj/agentic-coding | Skill | 174 | 3d ago | Apache-2.0 | A | 29 | Claude Code, Codex |
| gadgetomnigent-ai/omnigent | Skill | 12k | today | Apache-2.0 | A | 46 | Claude Code |
| glyphyonatangross/orchestkit | Skill | 312 | today | MIT | A | 53 | Claude Code |
| disk-cleanupyonatangross/orchestkit | Skill | 312 | today | MIT | A | 61 | Claude Code |