ghost/block-night

Block Night (F-Droid) falling-blocks puzzle: start the first floor, drop pieces by drag/rotate/swipe, read pieces left and lines cleared. Offline, no account.

Proven 43× fewer tokens Score 41/100 Official hard skill python

Token savings

98% fewer tokens
Tokenswithout1,656,598with38,214 (98% fewer)
Timewithout68.7 swith31.6 s (54% less time)
Tool callswithout27with5 (81% fewer)

Agent run: stopped early 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: start_floor · live agent session on a real phone

Control Block Night on Android with an AI agent — play falling-block puzzles

Control Block Night on Android with an AI agent. Play a polished falling-blocks puzzle: an agent starts a floor, moves, rotates and drops pieces and reads progress.

Target search phrase: AI agent plays Tetris-style game on Android

Demo shows: start_floor (shifts=-3,3,0)

Ghost in the Droid seed skill for Block Night (pt.tiago.blocknight), a polished offline falling-blocks puzzle from F-Droid (every floor is a fixed set of pieces and a goal). Offline, no account.

ActionWhat it doesParams
start_floorStart (or restart) floor 1 and return the starting progressnone
play_piecesFresh floor, then drop several pieces by cell shift (2, -1, 2r1 = shift 2 and rotate once)shifts
drop_pieceMove/rotate and drop the current piece on the running floorshift, rotate
hold_pieceSwap the falling piece with the held onenone
get_progressRead floor, pieces left, lines done and goal, pointsnone

Toolkit

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

RoleAction
Entrystart_floor
Primitivesdrop_piece, hold_piece, play_pieces
Read stateget_progress

Install

The app: F-Droid, or https://f-droid.org/packages/pt.tiago.blocknight/. 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/block-night

Use

ghost skill run ghost/block-night start_floor --device <serial>
ghost skill run ghost/block-night drop_piece --param shift=2 --device <serial>
run_skill(name="ghost/block-night", action="get_progress")
# {"progress": {"floor": "Floor 1", "pieces_left": 6, "lines": 0, "lines_goal": 2, "points": 82}}

Try asking: "Start the first floor in Block Night and drop three pieces: one to the left, one to the right and one in the middle."

Tested on

Real Samsung phone, Android 13 (720x1600, 300 dpi, en-GB), Block Night 0.3.10. License: MIT.

Known failure modes and versions tested

Versions tested

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

Recorded failures

  • Piece gravity runs in real time: a piece can lock between two calls, so assert 'at least N pieces used' rather than exact counts.
  • A drop right after a drag is sometimes swallowed as one gesture: the helper repeats the swipe if the counter did not drop.
  • Restart asks a second confirmation ('Restart this floor?'); the subroutine handles both sheets.
  • Points vary slightly between runs (timing), so they are never asserted.

Popups and first-run screens handled

  • The pause sheet and the restart confirmation are handled inside the subroutine; no other first-run screens.

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

start_floor

Play demo

Try asking

  • Start the first floor in Block Night
  • start a Block Night game
  • begin floor 1 of Block Night
  • play the falling blocks game
ghost skill run ghost/block-night start_floor

play_pieces

Play demo

Try asking

  • Start Block Night and drop three pieces
  • drop two blocks in Block Night
  • play a few pieces on the first floor
ghost skill run ghost/block-night play_pieces

drop_piece

Play demo

Try asking

  • Drop the current Block Night piece two cells to the right
  • drop this block on the left
  • rotate the piece once and drop it
ghost skill run ghost/block-night drop_piece

hold_piece

Play demo

Try asking

  • Hold the current Block Night piece
  • save this piece for later
  • use the hold slot
ghost skill run ghost/block-night hold_piece

get_progress

Play demo

Try asking

  • How is my Block Night floor going?
  • how many pieces are left in Block Night
  • what is my line count
ghost skill run ghost/block-night get_progress