ghost

ghost is a skill for Claude Code, Codex from ghost-in-the-droid/android-agent. It costs 50 tokens per session (1,269 once invoked), scanned B, original, MIT.

A skill for controlling Android phones, and iOS devices through the Ghost MCP server, using installed, verified app workflows before manual tapping. MCP is a way for an AI agent to call external tools.

In plain words
What is it for?
Selecting a connected device, finding installed phone skills and running app actions through Ghost.
Why use it?
It helps an agent find and replay known phone actions more reliably and with less manual interaction than tapping through an app each time.

Skill for Claude CodeCodex

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

Good fit Selecting a connected device, finding installed phone skills and running app actions through Ghost.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ghost-in-the-droid/android-agent/ghost-base
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 ghost-in-the-droid/android-agent --skill ghost-base
Clone the repo
git clone --depth 1 https://github.com/ghost-in-the-droid/android-agent

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 ghost

README.md
[![agentmods](https://agentmods.dev/badge/skills/ghost-in-the-droid/android-agent/ghost-base/github.svg)](https://agentmods.dev/skills/ghost-in-the-droid/android-agent/ghost-base)
Your own site
<a href="https://agentmods.dev/skills/ghost-in-the-droid/android-agent/ghost-base"><img src="https://agentmods.dev/badge/skills/ghost-in-the-droid/android-agent/ghost-base/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 ghost

Your own site · 80×15
<a href="https://agentmods.dev/skills/ghost-in-the-droid/android-agent/ghost-base"><img src="https://agentmods.dev/badge/skills/ghost-in-the-droid/android-agent/ghost-base.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 50 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,269 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe.
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.00050 $0.01269
Opus 5.5 $0.00020 $0.00508
Sonnet 5.5 $0.00010 $0.00254
Haiku 4.5 $0.00005 $0.00127

Measured 11d ago against content hash 1b1e63ebf999, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

ghost scanned grade B with 1 finding 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 11d ago.

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.

Enumerates other installed skillsmediumAgent snooping

Other skills' SKILL.md files reveal prompts, capabilities and secrets that should be invisible to peers.

`ghost skill install <author>/<skill>`, then `ghost skill list` to inspect installed skills.
skillhub/_guides/ghost-base/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.

Ghost: use skills first

You control an Android phone (or iOS via ios:<udid>) through the Ghost MCP tools. Installed skills are recorded, verified flows for one app. A skill replay costs zero LLM tokens per tap, so it is cheaper and more reliable than driving the app by hand.

Install and connect

From a Ghost source checkout, install the current CLI with pip install -e .. Register the server in Claude Code with claude mcp add ghost -- android-agent-mcp; for other MCP clients use command android-agent-mcp with no arguments. The full server currently exposes 66 MCP tools. Client profiles and GHOST_MCP_HIDE_TOOLS reduce that set; ask the connected server for its tool list. Set GHOST_MCP_PROFILE=skills-first in the server environment for the smaller tool set. Use list_devices to select the user's intended device before acting.

Hub app skills are separate from this agent guide: use ghost skill search <words>, ghost skill install <author>/<skill>, then ghost skill list to inspect installed skills. Run a known action with ghost skill run <author>/<skill> <action> --device <device> or its MCP equivalent below. Inspect its declared side effects before replay.

Rule

  1. Call find_skill with the task in plain words (e.g. "make a note called Shopping with milk and eggs").
  2. On a hit, call run_skill(name=<skill>, action=<action>, params=<json>, device=<serial>). Check the returned result, then answer.
  3. If the result is needs_input (a gate: human, code or LLM ask), answer it with run_skill_resume(token, answer).
  4. Drive by hand (screenshot, get_elements, tap, type_text) only when no skill matches or the skill fails. If a skill matched the app, read its notes first with get_skill_notes.
  5. To build your own flow from scratch: explore_app to map the app, then create_skill to save the steps you verified. The author guide is the separate ghost-skill-creation-guide skill.

Hard vs soft skills

  • Hard: fully deterministic replay, no LLM and no human. Run it and read the result.
  • Soft: the skill's SOFT.md reference notes (tab and element ids, first-launch dialogs, failure modes). When the hard replay does not match the phone or app version, or the task is off-script, call get_skill_notes(skill) and drive by hand (tap, swipe, type_text) following the notes. That is faster than exploring the app blind.
  • Gates are separate: a skill can pause with needs_input (human captcha, code, LLM ask); answer with run_skill_resume.

Read the full file on GitHub · 76 lines

Files

What ships with it

1 file 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.

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. 11d ago First seen · 76 lines · 50 tokens per session scan B 1b1e63ebf999

Subscribe to this mod's changes

ghost is a skill published in the GitHub repository ghost-in-the-droid/android-agent (430 stars, last pushed 11d ago), licensed MIT. It adds 50 tokens to every session and 1,269 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it B with 1 finding (enumerates other installed skills). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-15.

Related

ghost compared with skills from other repositories

ghost next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ghostghost-in-the-droid/android-agentSkill43011d agoMITB50Claude Code, Codex
android-device-perceptionWorksOnMyVM/android-device-perception-skillSkill33mo agoApache-2.0A105Codex
android-ui-journey-testingsickn33/agentic-awesome-skillsSkill50ktodayMITA27Claude Code
solopi-aialipay/SoloPiSkill6.6k6d agoApache-2.0A82Codex
solopi-desktop-clialipay/SoloPiSkill6.6k6d agoApache-2.0B127Codex
argent-device-interactsoftware-mansion/argentSkill3.2ktodayApache-2.0A83Claude Code, Codex
simvynpranshuchittora/simvynSkill45228d agoMITA63Codex