ap-devices

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

Pair clients and machines with an agentproto daemon: pairoffer/pending/confirm/decline/list/revoke, deviceadd/list/rename/revoke/sessions/prompt/offer, and jointokencreate/list/revoke. Trigger when asked to pair a phone or another CLI, register a remote machine as a host, drive its sessions, give a phone app a link…

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-devices
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-devices
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-devices

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/agentproto/ts/ap-devices"><img src="https://agentmods.dev/badge/skills/agentproto/ts/ap-devices.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 91 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,333 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.00091 $0.01333
Opus 5.5 $0.00036 $0.00533
Sonnet 5.5 $0.00018 $0.00267
Haiku 4.5 $0.00009 $0.00133

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

Security

Grade A, and why

ap-devices 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-devices/SKILL.md · 106 lines

How it starts

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

ap-devices

MCP profile

pair_*, join_token_* and most device_* tools are on the admin and full MCP profiles. device_offer and device_pair_pending are full only. In a session narrowed to core, orchestrator or apps they are not in tools/list. device_prompt and join_token_* also need the daemon to have the matching registry wired, so they can be missing even on full.

All traffic between paired machines is end-to-end encrypted and crosses a rendezvous broker that sees only ciphertext. By default that is the hosted broker; pair_offer says so with rendezvousIsHostedDefault.

Secrets: what never to print

An offer url, a join token, and a device_offer link are bootstrap secrets. Pass each only to the one place it is for, and never put it in a log, a chat message, a file in a repository, or a PR. Short pairing codes are shown to the human, who compares them; they are not a reason to repeat the offer URL. Use neutral names for machines (build-box, team-laptop).

Tools

Journey 1: pair a client (phone or another CLI)

  1. pair_offer (add ttlMinutes if the person needs longer than 10 minutes). Hand the url to the person: the other CLI runs agentproto pair accept "<url>"; a phone uses agentproto pair offer --qr or --url from a terminal, which gives the web pair page link.
  2. When they say the client connected, call pair_pending and read out the short code.
  3. Human gesture: the person compares that code with the one on the client's screen. Only when they say it matches, call pair_confirm with the code. If it does not match or the client is unknown, pair_decline. Never confirm on your own initiative, and never confirm by client name.
  4. pair_list shows the result; pair_revoke cuts a client off later.

Journey 2: register a host machine you want to drive

  1. On the machine to be driven, pair_offer with host: true. A plain offer is refused by device_add.
  2. On the controlling daemon, call device_add with that offerUrl and a name such as build-box.
  3. Human gesture: the operator of the host machine runs pair_pending there and pair_confirm with the matching code. Until then the host is registered on one side only and drives nothing.
  4. device_sessions lists the host's sessions or tails one; it is read-only and needs no opt-in. To send prompts with device_prompt, the host must also run agentproto devices allow-spawn on (off by default; restart the daemon for it to apply).
  5. Check device_list for online, lastError and stale before blaming the session.

Read the full file on GitHub · 106 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 · 106 lines · 91 tokens per session scan A 5d3ac04fba3d

Subscribe to this mod's changes

ap-devices is a skill published in the GitHub repository agentproto/ts (11 stars, last pushed today), licensed Apache-2.0. It adds 91 tokens to every session and 1,333 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-devices compared with skills from other repositories

ap-devices next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ap-devicesagentproto/tsSkill11todayApache-2.0A91Claude Code, Codex
deepevalsammcj/agentic-codingSkill175todayApache-2.0A19Claude Code, Codex
prompt-enhancersammcj/agentic-codingSkill175todayApache-2.0A63Claude Code, Codex
ambitious-model-usesammcj/agentic-codingSkill175todayApache-2.0A58Claude Code
ml-llm-wikisammcj/agentic-codingSkill175todayApache-2.0A80Claude Code, Codex
llm-prompting-guidesammcj/agentic-codingSkill175todayApache-2.0A79Claude Code, Codex
tao-run-automlNVIDIA/skillsSkill4.3ktodayApache-2.0A235Claude Code