open_coin
Play demoTry asking
- Open the coin flip app
- open Flip a coin
ghost skill run ghost/coin-flip open_coin Flip a coin (F-Droid): flip a coin once or many times and read head or tail. Offline, no account.
Agent run: finished without the skill, finished with it (not independently checked).
One recorded run each way, claude-haiku-5-5, same phone and same prompt. Watch it in the Before / after tab.
5.2× fewer tokens, 1.3× faster with the skill. Agent run: finished without the skill, finished with it (not independently checked).
| Run | Time | Tokens | Tool calls | Result |
|---|---|---|---|---|
| No skill: agent drives by hand | 53.2 s | 228,309 | 19 | finished |
| With skill: find_skill, run_skill | 39.5 s | 43,616 | 4 | finished |
Prompt: Flip a coin five times and tell me how many heads and tails you got. Do not use the Play Store, no installs, no sign-in.
Same prompt, same phone, clean app state per side. Left: no skill, the agent drives the UI by hand. Right: find_skill + run_skill. 'ok' means the agent finished its turn; the result was not independently checked.
One recorded pair on samsung-a03s, claude-haiku-5-5; tokens count every input, cache and output token once per assistant message. Not a signed run: it adds no run evidence.
Control Flip a coin on Android with an AI agent. Settle it with a coin: an agent flips once or many times and reports head or tail.
Target search phrase: AI agent flips a coin on Android
Demo shows: flip_many (count=3)
Ghost in the Droid seed skill for Flip a coin (
org.ecos.logic.flip_a_coin), an offline coin flipper. The result label is a text node, so an agent can flip and count head and tail. Offline, no account.
| Action | What it does | Params |
|---|---|---|
open_coin | Restart the app and read the coin screen. | none |
flip | Flip the coin once and return head or tail. | none |
flip_many | Flip the coin several times (1 to 20) and return every result with the head and tail counts. | count |
get_result | Read the current coin result. | none |
An agent can drive the whole app with these; compose them.
| Role | Action |
|---|---|
| Entry | open_coin |
| Primitives | flip, flip_many |
| Read state | get_result |
The app: F-Droid, or https://f-droid.org/packages/org.ecos.logic.flip_a_coin/. The skill:
pip install "ghost-in-the-droid>=1.6.0" # 1.6.0 is not on PyPI yet: until it ships, git clone the repo and `pip install -e .`
ghost skill install ghost/coin-flip
ghost skill run ghost/coin-flip flip_many --param count=5 --device <serial>
run_skill(name="ghost/coin-flip", action="flip")
# {"result": {"flip": "head"}}
Try asking: "Flip a coin five times and tell me how many heads and tails you got."
Real Samsung phone, Android 13 (720x1600, 300 dpi, en-GB), Flip a coin 3. License: MIT.
| App version | Android | Device | Skill version | Dates |
|---|---|---|---|---|
| 3 | 13 | Samsung real phone (720x1600, 300 dpi, en-GB) | 1.0.0 | 2026-11-02 |
SOFT.md is the narrative an agent reads when the exact steps no longer match your app version and it has to adapt the skill.
What each action means, which UI landmarks it relies on and how success is recognised, so an agent can adapt it to another app of this kind or another version.
Package: org.ecos.logic.flip_a_coin (Flip a coin, AGPL-3.0-only, version 3 from the official F-Droid repository, sha256-verified)
Verified: 2026-11-02 on a real Samsung phone, Android 13, 720x1600 @ 300 dpi, en-GB. Offline, no account.
Skill class: HARD. No login, no checkpoints.
coin (image, content-desc head or tail), coinLabel (the result text), flipAction (Flip), and a strip of small decorative coin images.open_coin()Force-stops and relaunches.
flip()Taps Flip, waits for the animation and reads the coin label.
flip_many(count)Repeats flip and counts.
get_result()Reads the coin label.
The app has one coin and no settings. Its versionName is the text DVNE (not a number), so the skill accepts any app version (tested with versionCode 3).
Try a sample prompt or run an action by name. Replace any parameters in braces with your own values.
open_coinTry asking
ghost skill run ghost/coin-flip open_coin flipTry asking
ghost skill run ghost/coin-flip flip flip_manyTry asking
ghost skill run ghost/coin-flip flip_many get_resultTry asking
ghost skill run ghost/coin-flip get_result Each release is an immutable git tag. The tree hash pins the exact skill directory the installer verifies.
| Version | Released | App versions | Tree | Size | Provenance |
|---|---|---|---|---|---|
1.0.0latest | never | * | pending | 11.2 KB | untagged |