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.
npx skills add openwong2kim/wmux --skill agent-desktop-ffigit clone --depth 1 https://github.com/openwong2kim/wmuxWrote 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.
[](https://agentmods.dev/skills/openwong2kim/wmux/agent-desktop-ffi)<a href="https://agentmods.dev/skills/openwong2kim/wmux/agent-desktop-ffi"><img src="https://agentmods.dev/badge/skills/openwong2kim/wmux/agent-desktop-ffi/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.
<a href="https://agentmods.dev/skills/openwong2kim/wmux/agent-desktop-ffi"><img src="https://agentmods.dev/badge/skills/openwong2kim/wmux/agent-desktop-ffi.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00122 | $0.02825 |
| Opus 5.5 | $0.00049 | $0.01130 |
| Sonnet 5.5 | $0.00024 | $0.00565 |
| Haiku 4.5 | $0.00012 | $0.00282 |
Grade A, and why
agent-desktop-ffi 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.
How it starts
The opening of the file, as written. The whole thing — 190 lines — stays where its author put it; the contents beside it link to each section on GitHub.
agent-desktop-ffi
Direct C-ABI access to the same operations as the CLI. Build the cdylib with the
release-ffi profile:
cargo build --profile release-ffi -p agent-desktop-ffi
The output is target/release-ffi/libagent_desktop_ffi.dylib (.so on Linux,
agent_desktop_ffi.dll on Windows) plus a committed C header at
crates/ffi/include/agent_desktop.h. The default release profile uses
panic = "abort": a Rust panic inside an extern "C" function would SIGABRT
the host. release-ffi keeps panic = "unwind", which the panic traps need.
Four reference topics, loaded as needed:
- ownership.md: who allocates and who frees every pointer the FFI hands back.
- error-handling.md: errno-style last-error contract, error codes, enum validation, panic boundary.
- threading.md: host-thread contract, mutation ordering across threads and processes, adapter-bound native handles, AXIsProcessTrusted inheritance.
- build-and-link.md: prebuilt archives, ABI handshake, struct size validation, C and Python examples.
Observe-act workflow (canonical path)
ad_init(AD_ABI_VERSION_MAJOR) // verify header ↔ dylib match
adapter = ad_adapter_create_with_session("s1") // or ad_adapter_create()
rc = ad_snapshot(adapter, "Finder", 0, 10, false, false, &json_out)
// parse json_out: locate snapshot-qualified refs in data.tree
ad_free_string(json_out)
// build action:
AdAction act = {0}; act.kind = AD_ACTION_KIND_CLICK;
rc = ad_execute_by_ref(adapter, "@s8f3k2p9:e5", &act, 0, &result_out)
ad_free_string(result_out)
ad_adapter_destroy(adapter)
ad_snapshot returns the CLI envelope {version, ok, command, data}.
data.tree carries snapshot-qualified refs for interactive elements. Read
data.complete before trusting a tree: false means the observation budget ran
out and the tree is partial, not an error. ad_snapshot reads the owner selected
by surface. On macOS, menu and menubar are application-owned, need no
document window, and omit data.window; window-owned snapshots include it.
Window targeting, skeleton mode and --root drill-down are not exposed over the
ABI. A bare @eN ref returns
AD_RESULT_ERR_INVALID_ARGS.
What ships with it
4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
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.
- yesterday First seen · 190 lines · 122 tokens per session scan A 4a2564ce3739
agent-desktop-ffi is a skill published in the GitHub repository openwong2kim/wmux (448 stars, last pushed yesterday), licensed MIT. It adds 122 tokens to every session and 2,825 once invoked, about $0.0005 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-11-07.
agent-desktop-ffi compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| agent-desktop-ffiopenwong2kim/wmux | Skill | 448 | yesterday | MIT | A | 122 | Claude Code, Codex |
| coding-agents-farmgriddynamics/rosetta | Skill | 373 | yesterday | Apache-2.0 | B | 32 | Claude Code |
| apitapn1byn1kt/apitap | Skill | 131 | 18d ago | Apache-2.0 | A | 0 | Claude Code, Codex |
| x-use-inboxihuzaifashoukat/x-use | Skill | 181 | 5d ago | MIT | A | 64 | Claude Code |
| x-use-engageihuzaifashoukat/x-use | Skill | 181 | 5d ago | MIT | A | 57 | Claude Code |
| x-use-contentihuzaifashoukat/x-use | Skill | 181 | 5d ago | MIT | A | 48 | Claude Code |
| x-use-reviewihuzaifashoukat/x-use | Skill | 181 | 5d ago | MIT | A | 56 | Claude Code |