add_counter
Play demoTry asking
- Create a counter called Groceries
- make a new tally counter named Steps
- add a counter for pushups starting at 5
- start counting Coffee cups
ghost skill run ghost/tally-counter add_counter Counter tally app (F-Droid): create a named counter, count up by tapping, list every counter with its value. Offline, no account.
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.
51× fewer tokens, 2.4× faster with the skill. Agent run: stopped early without the skill, finished with it (not independently checked).
| Run | Time | Tokens | Tool calls | Result |
|---|---|---|---|---|
| No skill: agent drives by hand | 61.9 s | 1,538,130 | 22 | stopped early |
| With skill: find_skill, run_skill | 25.9 s | 30,445 | 4 | finished |
Prompt: Create a counter called Groceries and count three items on it.
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 Counter on Android with an AI agent. Create named tally counters, count up, reset and list them from your phone by asking an agent.
Target search phrase: AI agent tally counter Android
Demo shows: add_counter (name=Groceries, value=0)
Ghost in the Droid seed skill for Counter (
me.tsukanov.counter), a FOSS tally counter from F-Droid. Offline, no account.
| Action | What it does | Params |
|---|---|---|
add_counter | Create a named counter with a starting value | name, value |
increment_counter | Select a counter and tap it N times, return before/after | name, times |
select_counter | Make a counter the active one, return its value | name |
reset_counter | Reset a counter to zero, return before and after | name |
get_counters | List every counter with its value | none |
An agent can drive the whole app with these; compose them.
| Role | Action |
|---|---|
| Entry | add_counter |
| Primitives | select_counter, increment_counter, reset_counter |
| Read state | get_counters |
The app: F-Droid, or https://f-droid.org/packages/me.tsukanov.counter/. 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/tally-counter
ghost skill run ghost/tally-counter add_counter --param name=Groceries --device <serial>
ghost skill run ghost/tally-counter increment_counter --param name=Groceries --param times=3 --device <serial>
run_skill(name="ghost/tally-counter", action="get_counters")
# {"counters": [{"name": "First counter", "value": 0}, {"name": "Groceries", "value": 3}]}
Try asking: "Create a counter called Groceries and count three items on it."
Real Samsung phone, Android 13 (720x1600, 300 dpi, en-GB), Counter 35. License: MIT.
| App version | Android | Device | Skill version | Dates |
|---|---|---|---|---|
| 35 | 13 | Samsung real phone (720x1600, 300 dpi, en-GB) | 1.0.0 | 2026-11-02 |
open_counter subroutine presses BACK when it sees the dialog title.open_list only taps the hamburger when the drawer is closed.increment_counter, select_counter and reset_counter fail with "no counter named ..." when the title does not exist; run get_counters first.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: me.tsukanov.counter (Counter, Apache-2.0, version 35 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.
desc="Open the list of counters"), the active counter's title, reset (desc="Reset counter") and edit buttons; the whole body is one tap target (id/counterFrame) with the big number (id/counterLabel).id/add_counter ("Add counter") and one row per counter with id/row_title and id/row_count.id/edit_name (Title), id/edit_value (Value), android:id/button1 (ADD), android:id/button2 (CANCEL).First counter at 0. Adding or selecting a counter makes it the active one.add_counter(name, value)Open the drawer, tap "Add counter", type the title and the starting value (typed by a helper because callers pass digits as integers), tap ADD. Success: the toolbar shows the title and the big number equals the value.
increment_counter(name, times)Open the drawer, tap the row whose title is name, tap the big number area times times. Success: the number rose by exactly times.
select_counter(name)Open the drawer and tap the row. Returns active: {name, value}.
reset_counter(name)Select the counter, tap Reset in the toolbar (confirm if the app asks). Success: the value is 0.
get_counters()Open the drawer and read every row. Returns counters: [{name, value}].
Other counter apps usually keep the same three ideas: a list of named counters, a create dialog and a big tap target. Re-find the ids with dump_xml; the helpers only depend on row_title, row_count, counterFrame and counterLabel.
Try a sample prompt or run an action by name. Replace any parameters in braces with your own values.
add_counterTry asking
ghost skill run ghost/tally-counter add_counter increment_counterTry asking
ghost skill run ghost/tally-counter increment_counter get_countersTry asking
ghost skill run ghost/tally-counter get_counters select_counterTry asking
ghost skill run ghost/tally-counter select_counter reset_counterTry asking
ghost skill run ghost/tally-counter reset_counter 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.0 | pending | 17.8 KB | untagged |