ghost/flip-a-coin

Flip a coin (F-Droid): toss a coin with one tap and read heads or tails. Offline, no account.

Runs 6.3× fewer tokens Score 37/100 Official hard skill python

Token savings

84% fewer tokens
Tokenswithout273,345with43,586 (84% fewer)
Timewithout64.9 swith50.0 s (23% less time)
Tool callswithout19with4 (79% fewer)

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.

Recorded: open_coin · live agent session on a real phone

Control Flip a coin on Android with an AI agent

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.

ActionWhat it doesParams
open_coinRestart the app and read the coin face.none
flipFlip the coin once and return head or tail.none
flip_manyFlip the coin several times and return every result with the head and tail counts.count
get_coinRead the face the coin currently shows.none

Toolkit

An agent can drive the whole app with these; compose them.

RoleAction
Entryopen_coin
Primitivesflip, flip_many
Read stateget_coin

Install

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

Use

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."

Tested on

Real Samsung phone, Android 13 (720x1600, 300 dpi, en-GB), Flip a coin 3. License: MIT.

Known failure modes and versions tested

Versions tested

App versionAndroidDeviceSkill versionDates
313Samsung real phone (720x1600, 300 dpi, en-GB)1.0.02026-11-02

Recorded failures

  • Count must be 1 to 20.
  • If the coin does not settle within a few seconds the action raises an error.

Popups and first-run screens handled

  • None.

Try a sample prompt or run an action by name. Replace any parameters in braces with your own values.

open_coin

Play demo

Try asking

  • Open the Flip a coin app
  • open the coin flipper
ghost skill run ghost/flip-a-coin open_coin

flip

Play demo

Try asking

  • Flip a coin for me
  • heads or tails
ghost skill run ghost/flip-a-coin flip

flip_many

Play demo

Try asking

  • Flip a coin five times
  • toss a coin 3 times
ghost skill run ghost/flip-a-coin flip_many

get_coin

Play demo

Try asking

  • What does the coin show?
  • show the last flip
ghost skill run ghost/flip-a-coin get_coin