ap-wait-durable

ap-wait-durable is a skill for Claude Code, Codex from agentproto/ts. It costs 80 tokens per session (813 once invoked), scanned A, original, Apache-2.0.

A background waiting pattern for agent sessions that notifies you when work finishes without pausing your current session. It can also use a scheduled reminder that survives a daemon restart.

In plain words
What is it for?
Use it to wait for a specific session in the background or supervise work that may outlast a process restart.
Why use it?
It lets you keep working while a long-running agent finishes and reduces the risk of losing track of completion.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to wait for a specific session in the background or supervise work that may outlast a process restart.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/agentproto/ts/ap-wait-durable
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.

Any agent
npx skills add agentproto/ts --skill ap-wait-durable
Clone the repo
git clone --depth 1 https://github.com/agentproto/ts

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 ap-wait-durable

README.md
[![agentmods](https://agentmods.dev/badge/skills/agentproto/ts/ap-wait-durable/github.svg)](https://agentmods.dev/skills/agentproto/ts/ap-wait-durable)
Your own site
<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.

agentmods 80×15 button for ap-wait-durable

Your own site · 80×15
<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>
Per session 80 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 813 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.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

Measured 2mo ago against content hash 12603ff690e2, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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.

packages/skill-pack-agentproto/src/skills/ap-wait-durable/SKILL.md · 87 lines

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_create with prompt-session re-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.

Read the full file on GitHub · 87 lines

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. 2mo ago First seen · 87 lines · 80 tokens per session scan A 12603ff690e2

Subscribe to this mod's changes

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.

Related

ap-wait-durable compared with skills from other repositories

ap-wait-durable next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ap-wait-durableagentproto/tsSkill11todayApache-2.0A80Claude Code, Codex
markedit-toolssammcj/agentic-codingSkill1743d agoApache-2.0A16Claude Code, Codex
deferred-task-executionsammcj/agentic-codingSkill1743d agoApache-2.0A54Claude Code
herdrsammcj/agentic-codingSkill1743d agoApache-2.0A29Claude Code, Codex
gadgetomnigent-ai/omnigentSkill12ktodayApache-2.0A46Claude Code
glyphyonatangross/orchestkitSkill312todayMITA53Claude Code
disk-cleanupyonatangross/orchestkitSkill312todayMITA61Claude Code