ghost/habit-tracker

Loop Habit Tracker (F-Droid): create a yes/no habit, tick or untick a day, list habits and read a habit's score and total count. Offline, no account.

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

Token savings

98% fewer tokens
Tokenswithout1,562,778with38,069 (98% fewer)
Timewithout58.1 swith35.4 s (39% less time)
Tool callswithout31with5 (84% 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: create_habit · live agent session on a real phone

Control Loop Habit Tracker on Android with an AI agent

Control Loop Habit Tracker on Android with an AI agent. Create habits, tick days and read your score and totals on your phone by asking an agent.

Target search phrase: AI agent habit tracker Android

Demo shows: create_habit (name=Meditate)

Ghost in the Droid seed skill for Loop Habit Tracker (org.isoron.uhabits), the popular open-source habit tracker with scores and charts from F-Droid. Offline, no account.

ActionWhat it doesParams
create_habitCreate a yes/no habitname, question
check_habitMark a day done or missed (day 0 = today ... 3)name, day, result
get_habitsList the habit namesnone
get_habit_statsRead score, month/year change, total count, frequencyname

Toolkit

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

RoleAction
Entrycreate_habit
Primitivescheck_habit
Read stateget_habits, get_habit_stats

Install

The app: F-Droid, or https://f-droid.org/packages/org.isoron.uhabits/. 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/habit-tracker

Use

ghost skill run ghost/habit-tracker create_habit --param name=Meditate --device <serial>
ghost skill run ghost/habit-tracker check_habit --param name=Meditate --param result=done --device <serial>
run_skill(name="ghost/habit-tracker", action="get_habit_stats", params={"name": "Meditate"})
# {"stats": {"score": "5%", "total": "1", "month": "+5%", "year": "+5%", "frequency": "Every day"}}

Try asking: "Create a habit called Meditate, mark it done today and show me its stats."

Tested on

Real Samsung phone, Android 13 (720x1600, 300 dpi, en-GB), Loop Habit Tracker 2.3.2. License: MIT.

Known failure modes and versions tested

Versions tested

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

Recorded failures

  • The yes/no dialog appears about half a second after the tap: the helper waits for the yesBtn/noBtn ids.
  • Check marks are drawn, so the list cannot be read for ticks: use get_habit_stats (total and score) to verify.
  • CLI turns yes/no into booleans, so the result enum is done/missed.
  • Day cells are at fixed x positions for a 720 px wide screen; only the last four days are reachable.

Popups and first-run screens handled

  • The first-run welcome (skip) is handled in the open_list subroutine; the notification permission is pre-granted.

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

create_habit

Play demo

Try asking

  • Create a habit called Meditate
  • add a new habit: drink water
  • track a habit called Read
  • start tracking Exercise
ghost skill run ghost/habit-tracker create_habit

check_habit

Play demo

Try asking

  • Mark Meditate as done today
  • I meditated today
  • tick off Read for yesterday
ghost skill run ghost/habit-tracker check_habit

get_habits

Play demo

Try asking

  • Which habits am I tracking?
  • list my habits
  • what am I tracking
ghost skill run ghost/habit-tracker get_habits

get_habit_stats

Play demo

Try asking

  • How is my Meditate habit going?
  • what is my streak score for Read
  • how many times did I do Exercise
ghost skill run ghost/habit-tracker get_habit_stats