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.

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/agentproto/ts/ap-wait-durable
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.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.svg" alt="Measured on agentmods" 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. 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.1 $0.00080 $0.00813
Opus 5 $0.00040 $0.00407
Sonnet 5 $0.00016 $0.00163
Haiku 4.5 $0.00008 $0.00081

Measured yesterday against content hash 12603ff690e2, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, 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 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.

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. yesterday 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 (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.

Related

Other skills, from other repositories

markedit-tools

Provides tools for managing MarkEdit, a macOS markdown editor.

sammcj/agentic-coding · 16 tokens

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.

sammcj/agentic-coding · 55 tokens

herdr

Control Herdr, a terminal multiplexer for coding agents. Use only when the user explicitly asks to you use or configure Herdr.

sammcj/agentic-coding · 29 tokens

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…

strands-agents/harness-sdk · 125 tokens

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"…

strands-agents/harness-sdk · 74 tokens

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.

strands-agents/harness-sdk · 39 tokens