ghost/coin-flip

Flip a coin (F-Droid): flip a coin once or many times and read head or tail. Offline, no account.

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

Token savings

81% fewer tokens
Tokenswithout228,309with43,616 (81% fewer)
Timewithout53.2 swith39.5 s (26% 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. 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.

ActionWhat it doesParams
open_coinRestart the app and read the coin screen.none
flipFlip the coin once and return head or tail.none
flip_manyFlip the coin several times (1 to 20) and return every result with the head and tail counts.count
get_resultRead the current coin result.none

Toolkit

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

RoleAction
Entryopen_coin
Primitivesflip, flip_many
Read stateget_result

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/coin-flip

Use

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

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

  • The outcome is random: check head or tail, not a fixed value.
  • Each flip waits for the animation, so 20 flips take about a minute.

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 coin flip app
  • open Flip a coin
ghost skill run ghost/coin-flip open_coin

flip

Play demo

Try asking

  • Flip a coin for me please
  • heads or tails
  • toss a coin to decide
ghost skill run ghost/coin-flip flip

flip_many

Play demo

Try asking

  • Flip a coin five times
  • flip a coin 10 times and count heads
ghost skill run ghost/coin-flip flip_many

get_result

Play demo

Try asking

  • What does the coin show?
  • what was the last flip
ghost skill run ghost/coin-flip get_result