ghost/easy-dice

Easy Dice (F-Droid): roll any hand of d2, d4, d6, d8, d10, d100, d12, d20 and d30 dice for tabletop games and read the total. Offline, no account.

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

Token savings

98% fewer tokens
Tokenswithout844,242with20,778 (98% fewer)
Timewithout94.8 swith30.7 s (68% less time)
Tool callswithout32with3 (91% 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_dice · live agent session on a real phone

Control Easy Dice on Android with an AI agent

Control Easy Dice on Android with an AI agent. Your agent rolls the dice for your tabletop game: say 2d6 plus a d20 and get the total.

Target search phrase: AI agent rolls dice for D&D on Android with a polyhedral dice roller

Demo shows: add_dice (sides=20, count=2)

Ghost in the Droid seed skill for Easy Dice (net.pejici.easydice), an offline polyhedral dice roller. The ROLL and RESET buttons and the total text are readable, so an agent can build a hand, roll it and report the sum. Offline, no account.

ActionWhat it doesParams
open_diceRestart the app and read the hand.none
add_diceAdd dice of one size to the hand.sides, count
rollRoll the dice in the hand and return the total.none
reset_handRemove all dice from the hand.none
roll_diceClear the hand, add the dice in a notation like 2d6+d20, roll and return the total.spec

Toolkit

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

RoleAction
Entryopen_dice
Primitivesadd_dice, roll, reset_hand, roll_dice
Read stateroll (returns the sum and dice count)

Install

The app: F-Droid, or https://f-droid.org/packages/net.pejici.easydice/. 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/easy-dice

Use

ghost skill run ghost/easy-dice roll_dice --param spec=2d6+d20 --device <serial>
run_skill(name='ghost/easy-dice', action='roll_dice', params={'spec': '2d6+d20'})
# {"result": {"spec": "2d6+d20", "dice": [6, 6, 20], "sum": 20}}

Try asking: "Roll 2d6 and a d20 for my D&D attack and tell me the total."

Tested on

Real Samsung phone, Android 13 (720x1600, 300 dpi, en-GB), Easy Dice 11. License: MIT.

Known failure modes and versions tested

Versions tested

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

Recorded failures

  • Rolling with no dice in the hand raises an error.
  • Sides must be 2, 4, 6, 8, 10, 100, 12, 20 or 30.

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_dice

Play demo

Try asking

  • Open the Easy Dice app
  • open the dice roller
ghost skill run ghost/easy-dice open_dice

add_dice

Play demo

Try asking

  • Add two d20 dice to my hand
  • add three d6
ghost skill run ghost/easy-dice add_dice

roll

Play demo

Try asking

  • Roll the dice in my hand
  • roll again
ghost skill run ghost/easy-dice roll

reset_hand

Play demo

Try asking

  • Clear my dice
  • reset the dice
ghost skill run ghost/easy-dice reset_hand

roll_dice

Play demo

Try asking

  • Roll 2d6 and a d20
  • roll 3d8 for damage
ghost skill run ghost/easy-dice roll_dice