ghost/futoshiki

Futoshiki (F-Droid): start a 4x4 puzzle, place digits, read the grid. The inequality arrows are drawn only, so an agent reads them from a screenshot. Offline, no account.

Runs 16.8× fewer tokens Score 34/100 Official hard skill python

Token savings

94% fewer tokens
Tokenswithout526,587with31,285 (94% fewer)
Timewithout52.8 swith39.3 s (26% less time)
Tool callswithout16with4 (75% 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: new_game · live agent session on a real phone

Control Futoshiki on Android with an AI agent

Control Futoshiki on Android with an AI agent. Solve Futoshiki number puzzles on your phone: an agent starts a 4x4 puzzle, places digits and reads the grid.

Target search phrase: AI agent solves Futoshiki on Android

Demo shows: new_game (difficulty=easy)

Ghost in the Droid seed skill for Futoshiki (com.hexcorp.futoshiki), an offline Futoshiki puzzle (a Latin square with inequality arrows). Every digit on the grid is readable; the arrows between cells are drawn only, and the given digits cannot be told from your own entries. Offline, no account.

ActionWhat it doesParams
new_gameRestart the app and start a 4x4 puzzledifficulty
placePut a digit 1-4 into a cell; reports whether the cell shows itrow, col, digit
reset_puzzleClear all your entries (needs confirm=yes)confirm
get_gridRead the 4x4 grid (0 = empty), the timer and whether rows and columns are completenone

Toolkit

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

RoleAction
Entrynew_game
Primitivesplace, reset_puzzle
Read stateget_grid (digits only, NOT the inequality arrows)

Install

The app: F-Droid, or https://f-droid.org/packages/com.hexcorp.futoshiki/. 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/futoshiki

Use

ghost skill run ghost/futoshiki new_game --param difficulty=easy --device <serial>
ghost skill run ghost/futoshiki place --param row=2 --param col=2 --param digit=3 --device <serial>
run_skill(name="ghost/futoshiki", action="place", params={"row": 2, "col": 2, "digit": 3})
# {"result": {"accepted": true, "cell_now": 3, "state": {"grid": [[3,1,0,2],[0,3,0,0],...]}}}

Try asking: "Start an easy Futoshiki puzzle, read the grid, then put a 3 in row 2 column 2."

Tested on

Real Samsung phone, Android 13 (720x1600, 300 dpi, en-GB), Futoshiki 5. License: MIT.

Known failure modes and versions tested

Versions tested

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

Recorded failures

  • HONEST LIMIT: the inequality arrows are not readable from the accessibility tree; use a screenshot.
  • Given digits and your entries look the same in the grid read; placing on a given cell returns accepted: false.
  • Only the 4x4 grid is supported (cell positions are calibrated for it).
  • There is a running timer and a pause button; the skill never taps pause.

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.

new_game

Play demo

Try asking

  • Start a Futoshiki puzzle
  • play futoshiki
  • new number puzzle
ghost skill run ghost/futoshiki new_game

place

Play demo

Try asking

  • Put 2 in row 1 column 2
  • write 3 in the top right cell
  • fill row 2 column 3 with 1
ghost skill run ghost/futoshiki place

reset_puzzle

Play demo

Try asking

  • Reset the puzzle
  • reset the futoshiki board
ghost skill run ghost/futoshiki reset_puzzle

get_grid

Play demo

Try asking

  • What is on the Futoshiki board?
  • show the futoshiki grid
  • how far am I in the puzzle
ghost skill run ghost/futoshiki get_grid