new_game
Play demoTry asking
- Start a Mancala game
- play mancala
- new mancala game with 6 pits
ghost skill run ghost/mancala new_game Mancala (F-Droid): start a Kalah game, play pits for each player in turn, read the board, stores and winner. The whole game is a readable text console. Offline, no account.
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.
4.3× fewer tokens, 1.1× slower with the skill. Agent run: finished without the skill, finished with it (not independently checked).
| Run | Time | Tokens | Tool calls | Result |
|---|---|---|---|---|
| No skill: agent drives by hand | 46.6 s | 354,880 | 17 | finished |
| With skill: find_skill, run_skill | 51.8 s | 81,677 | 6 | finished |
Prompt: Start a Mancala game on my phone and play pits 3, 1 and 5, then tell me the score. Do not use the Play Store, no installs, no sign-in.
Same prompt, same phone, clean app state per side. Left: no skill, the agent drives the UI by hand. Right: find_skill + run_skill. 'ok' means the agent finished its turn; the result was not independently checked.
One recorded pair on samsung-a03s, claude-haiku-5-5; tokens count every input, cache and output token once per assistant message. Not a signed run: it adds no run evidence.
Control Mancala on Android with an AI agent. Play Mancala on your phone: an agent sets up a game, sows pits for each player and reads the board and the winner.
Target search phrase: AI agent plays Mancala on Android
Demo shows: move (pit=3)
Ghost in the Droid seed skill for Mancala (
com.willie.mancala), an offline two-player Mancala (Kalah) game played in a text console. The transcript is fully readable, so the board, both stores, whose turn it is and the winner are parsed exactly. Offline, no account.
| Action | What it does | Params |
|---|---|---|
new_game | Restart and set up a game (default 6 pits, 4 seeds) | pits, seeds |
move | Sow one pit for whoever is to move; returns the board, stores and next player | pit |
play_moves | Play several pits in a row (3,1,5) | pits |
get_state | Read both rows, both stores, whose turn it is and the result | none |
An agent can drive the whole app with these; compose them.
| Role | Action |
|---|---|
| Entry | new_game |
| Primitives | move, play_moves |
| Read state | get_state (rows, stores, to_move, game_over, result) |
The app: F-Droid, or https://f-droid.org/packages/com.willie.mancala/. 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/mancala
ghost skill run ghost/mancala new_game --param pits=6 --param seeds=4 --device <serial>
ghost skill run ghost/mancala move --param pit=3 --device <serial>
run_skill(name="ghost/mancala", action="move", params={"pit": 3})
# {"result": {"player": 1, "extra_turn": true, "state": {"player1_store": 1, ...}}}
Try asking: "Start a Mancala game and play pits 3, 1 and 5."
Real Samsung phone, Android 13 (720x1600, 300 dpi, en-GB), Mancala 12. License: MIT.
| App version | Android | Device | Skill version | Dates |
|---|---|---|---|---|
| 12 | 13 | Samsung real phone (720x1600, 300 dpi, en-GB) | 1.0.0 | 2026-11-02 |
SOFT.md is the narrative an agent reads when the exact steps no longer match your app version and it has to adapt the skill.
What each action means, which UI landmarks it relies on and how success is recognised, so an agent can adapt it to another app of this kind or another version.
Package: com.willie.mancala (Mancala, MIT, version 12 from the official F-Droid repository, sha256-verified)
Verified: 2026-11-02 on a real Samsung phone, Android 13, 720x1600 @ 300 dpi, en-GB. Offline, no account.
Skill class: HARD. No login, no checkpoints.
outputText (the scrolling transcript) and inputText (a line editor). The setup asks pits per player, then seeds per pit; then each turn asks Player N, choose a pit (1-K).store2 ... store1, Player 1's row. It is a hot-seat game: the same phone plays both sides, so the agent chooses for both.exit quits the whole app, so the skill never uses it: a new game force-stops and relaunches the app.new_game(pits, seeds)Force-stops the app, relaunches it and answers the two setup prompts. Success: board shows pits*seeds in Player 1's row.
move(pit)Types the pit number. extra_turn is true when the last seed lands in the mover's store.
play_moves(pits)Same as move per entry; stops at game over.
get_state()Parses the last board block of the transcript.
Two players share the phone, so the agent decides every move for both sides (it can play itself or take a human opponent's moves as input). There is no computer opponent in this app.
Try a sample prompt or run an action by name. Replace any parameters in braces with your own values.
new_gameTry asking
ghost skill run ghost/mancala new_game moveTry asking
ghost skill run ghost/mancala move play_movesTry asking
ghost skill run ghost/mancala play_moves get_stateTry asking
ghost skill run ghost/mancala get_state Each release is an immutable git tag. The tree hash pins the exact skill directory the installer verifies.
| Version | Released | App versions | Tree | Size | Provenance |
|---|---|---|---|---|---|
1.0.0latest | never | >=1.2 | pending | 14.7 KB | untagged |