ap-sentinel

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

Watch a GitHub PR, a repo or another session through the agentproto daemon and wake a session when something happens: sentinelwatch, sentinellist, sentinelroutes, sentinelpollnow, sentinelunwatch, listsentineladapters, setupsentinelprovider. Trigger when asked to be woken when CI or a review lands on a PR, to watch a…

Skill for Claude CodeCodex

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

Install with agentmods
npx agentmods add skills/agentproto/ts/ap-sentinel
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-sentinel
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-sentinel

README.md
[![agentmods](https://agentmods.dev/badge/skills/agentproto/ts/ap-sentinel/github.svg)](https://agentmods.dev/skills/agentproto/ts/ap-sentinel)
Your own site
<a href="https://agentmods.dev/skills/agentproto/ts/ap-sentinel"><img src="https://agentmods.dev/badge/skills/agentproto/ts/ap-sentinel/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-sentinel

Your own site · 80×15
<a href="https://agentmods.dev/skills/agentproto/ts/ap-sentinel"><img src="https://agentmods.dev/badge/skills/agentproto/ts/ap-sentinel.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 99 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 958 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 unknown 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.00099 $0.00958
Opus 5.5 $0.00040 $0.00383
Sonnet 5.5 $0.00020 $0.00192
Haiku 4.5 $0.00010 $0.00096

Measured today against content hash 65bc639a1baa, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

ap-sentinel 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 today.

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-sentinel/SKILL.md · 76 lines

How it starts

The opening of the file, as written. The whole thing — 76 lines — stays where its author put it; the contents beside it link to each section on GitHub.

ap-sentinel

MCP profile: admin and full

sentinel_watch, sentinel_list, sentinel_routes, sentinel_unwatch, sentinel_poll_now and setup_sentinel_provider are on the admin MCP profile (and full). list_sentinel_adapters is on full only. In a session narrowed to core, orchestrator or apps they are not in tools/list, so a call fails before reaching the daemon.

A sentinel is a persisted watch: events that match it are delivered as a message into a session's inbox, and the watch ends on its own until.

Tools

Task: be woken when CI or a review lands on a PR

  1. Call sentinel_watch with prUrl. Delivery defaults to the calling session, until to the PR's close, and types to the PR event set.
  2. Keep going with other work; the event arrives as a notice in the inbox at the next turn (urgency is next-turn by default).
  3. If you think an event was missed, call sentinel_poll_now, then sentinel_list and read eventCount and lastError.
  4. When you no longer care, call sentinel_unwatch.

Task: wake a supervisor when a child session finishes

Call sentinel_watch with subject: "session:<child id>" and sessionId set to the supervisor. The session provider is chosen for you, needs no credential, and the watch ends when the child exits. Prefer this to session_follow for one known target; use session_follow for a broad selector across many sessions.

Task: set up a provider that needs a credential

  1. list_sentinel_adapters: read each provider's status and info.readiness.reason.
  2. For agentpush, ask the human for the workspace API key (the gesture is theirs: you cannot create one), then call setup_sentinel_provider. Never write the key in a message, a file or an example.
  3. For webhook the human provides a public daemon URL (a named tunnel or AGENTPROTO_PUBLIC_URL) and a gh token with admin:repo_hook; there is no setup call for it.

Gotchas

Read the full file on GitHub · 76 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. today First seen · 76 lines · 99 tokens per session scan A 65bc639a1baa

Subscribe to this mod's changes

ap-sentinel is a skill published in the GitHub repository agentproto/ts (11 stars, last pushed today), licensed Apache-2.0. It adds 99 tokens to every session and 958 once invoked, about $0.0004 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-12-02.

Related

ap-sentinel compared with skills from other repositories

ap-sentinel next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ap-sentinelagentproto/tsSkill11todayApache-2.0A99Claude Code, Codex
code-review-recent-changessammcj/agentic-codingSkill175todayApache-2.0A66Claude Code
code-reviewsammcj/agentic-codingSkill175todayApache-2.0A20Claude Code, Codex
code-simplificationsammcj/agentic-codingSkill175todayApache-2.0A42Claude Code, Codex
self-reviewsammcj/agentic-codingSkill175todayApache-2.0A24Claude Code
improve-codebase-architecturesammcj/agentic-codingSkill175todayApache-2.0A66Claude Code, Codex
resolve-drive-promnigent-ai/omnigentSkill12ktodayApache-2.0A21Claude Code, Codex