open_coin
Play demoTry asking
- Open the Flip a coin app
- open the coin flipper
ghost skill run ghost/flip-a-coin open_coin Flip a coin (F-Droid): toss a coin with one tap and read heads or tails. 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.
6.3× 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 | 64.9 s | 273,345 | 19 | finished |
| With skill: find_skill, run_skill | 50.0 s | 43,586 | 4 | finished |
Prompt: Flip a coin five times and tell me how many heads and tails I 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. Your agent flips a coin for you, once or many times, and tells you heads or tails.
Target search phrase: AI agent flips a coin on Android to decide heads or tails
Demo shows: flip_many (count=5)
Ghost in the Droid seed skill for Flip a coin (
org.ecos.logic.flip_a_coin), an offline coin toss. The coin exposes its face (head or tail) as an accessibility description once the animation settles, so an agent can flip and read the result. Offline, no account.
| Action | What it does | Params |
|---|---|---|
open_coin | Restart the app and read the coin face. | none |
flip | Flip the coin once and return head or tail. | none |
flip_many | Flip the coin several times and return every result with the head and tail counts. | count |
get_coin | Read the face the coin currently shows. | none |
An agent can drive the whole app with these; compose them.
| Role | Action |
|---|---|
| Entry | open_coin |
| Primitives | flip, flip_many |
| Read state | get_coin |
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/flip-a-coin
ghost skill run ghost/flip-a-coin flip_many --param count=5 --device <serial>
run_skill(name="ghost/flip-a-coin", action="flip")
# {"result": {"face": "tail"}}
Try asking: "Flip a coin five times and tell me how many heads and tails I 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.
open_coin()Force-stops and relaunches.
flip()Taps Flip and waits for the coin to settle.
flip_many(count)Taps Flip repeatedly, reading the coin after each settles.
get_coin()Reads the coin description.
The result is read from the coin description after the toss animation settles (about 3.5 seconds per flip). Coin style selection is not driven. flip_many allows up to 20 flips.
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/flip-a-coin open_coin flipTry asking
ghost skill run ghost/flip-a-coin flip flip_manyTry asking
ghost skill run ghost/flip-a-coin flip_many get_coinTry asking
ghost skill run ghost/flip-a-coin get_coin 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 |