ap-desktop

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

List, read, create, and ask Claude Desktop (Code tab) and Codex Desktop conversations through the agentproto daemon: desktopconversationlist/read/create/ask. Trigger when asked to inspect a Desktop app conversation, start a Codex thread from the daemon, draft a Claude Desktop chat, or send a question to a conversation…

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Codex.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/agentproto/ts/ap-desktop"><img src="https://agentmods.dev/badge/skills/agentproto/ts/ap-desktop.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 75 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 980 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.00075 $0.00980
Opus 5.5 $0.00030 $0.00392
Sonnet 5.5 $0.00015 $0.00196
Haiku 4.5 $0.00007 $0.00098

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

Security

Grade A, and why

ap-desktop 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-desktop/SKILL.md · 72 lines

How it starts

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

ap-desktop

MCP profile: full only

desktop_conversation_list, desktop_conversation_read, desktop_conversation_create and desktop_conversation_ask exist only on the daemon's full MCP profile. In a session narrowed to core, orchestrator, apps or admin they are not in tools/list at all, so a call fails before reaching the daemon. If a Desktop tool is "missing", check the profile of the connection that is asking.

Everything here reads the apps' own local stores or talks to them through the daemon; nothing writes to a Claude or Codex data store directly.

Tools

Task: ask a Desktop chat a question and read the answer

  1. List with app and q; note the row's externalId.
  2. Read the last messages first, so the question does not repeat what the chat already said.
  3. Ask with urgency: "next-turn" and a waitMs that fits the work. Check delivered.via: inbox means the message is parked and no reply will come inside waitMs; do not loop on it.
  4. To start a new conversation instead, create it: a Codex thread runs now, a Claude draft needs a human to open the link and send.

Gotchas

  • id is the app's own conversation id; externalId is its daemon address (cc:<id> / codex:<id>). Both are accepted by read and ask.
  • A Claude draft is not a conversation until a human opens the link and sends; do not loop waiting for a threadId that will not appear.
  • read looks the id up among the 500 most recent conversations of that app, archived ones included: an archived chat is readable by id even though a default list hides it, but an id outside that window, or unknown, is an error, never a guess.
  • list shows chats that never called agentproto, but only those with an addressable session. Rows are newest first by last activity and carry lastActivityMs, cwd, title and archived. limit is 1 to 500 (default 50). On a Node older than 22.5 the Codex rows are empty without an error, and the Claude rows still come back.
  • read: tail is 1 to 200 (default 20).
  • Codex create: cwd must be an absolute path to an existing directory; prompt is at most 20,000 characters; timeoutMs defaults to 120,000 (min 1,000, max 600,000); a failed or timed-out first turn is an error result. The creating session is recorded as the thread's owner, so its later ask passes the messaging ACL. Claude create: cwd must be absolute, and the 14,000 character cap on prompt is below the schema's 20,000 ceiling.
  • ask: text is at most 20,000 characters; urgency is never interrupt; waitMs is at most 300,000 and 0 only sends. A parked message (delivered.via is inbox) is read at the chat's next hook poll and normally yields no reply inside waitMs; the note says so. On Codex, desktopWake is accepted, unavailable, busy or uncertain. A session caller needs the chat's workspace, a grant or a peer group that allows it.
  • On a messaging refusal (e.g. forbidden_recipient) run permissions_explain for the exact rule rather than retrying, and never echo a credential.

Read the full file on GitHub · 72 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 · 72 lines · 75 tokens per session scan A 758a59dbb39c

Subscribe to this mod's changes

ap-desktop is a skill published in the GitHub repository agentproto/ts (11 stars, last pushed today), licensed Apache-2.0. It adds 75 tokens to every session and 980 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-12-02.

Related

ap-desktop compared with skills from other repositories

ap-desktop next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ap-desktopagentproto/tsSkill11todayApache-2.0A75Claude Code, Codex
skill-creator-primersammcj/agentic-codingSkill175todayApache-2.0A74Claude Code
extract-wisdomsammcj/agentic-codingSkill175todayApache-2.0A43Claude Code
llm-wikisammcj/agentic-codingSkill175todayApache-2.0A82Claude Code
apply-mantel-stylessammcj/agentic-codingSkill175todayApache-2.0A37Claude Code, Codex
authoring-claude-mdsammcj/agentic-codingSkill175todayApache-2.0A33Claude Code, Codex
home-assistantsammcj/agentic-codingSkill175todayApache-2.0A57Claude Code