<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: TaseenTariq</title>
    <description>The latest articles on DEV Community by TaseenTariq (@taseen_tariq_).</description>
    <link>https://dev.to/taseen_tariq_</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F702231%2F8cdee4a5-3ff4-426f-809e-4c275a855c29.png</url>
      <title>DEV Community: TaseenTariq</title>
      <link>https://dev.to/taseen_tariq_</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/taseen_tariq_"/>
    <language>en</language>
    <item>
      <title>I held a séance for a feature that lived 17 minutes</title>
      <dc:creator>TaseenTariq</dc:creator>
      <pubDate>Sat, 31 Oct 2026 11:27:31 +0000</pubDate>
      <link>https://dev.to/taseen_tariq_/i-held-a-seance-for-a-feature-that-lived-17-minutes-15lj</link>
      <guid>https://dev.to/taseen_tariq_/i-held-a-seance-for-a-feature-that-lived-17-minutes-15lj</guid>
      <description>&lt;p&gt;&lt;em&gt;This is a submission for the &lt;a href="https://dev.to/challenges/hacktoberfest-week4-2026-10-26"&gt;Hacktoberfest Open-Source AI Challenge Week 4: Ghost in the Machine&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What I Built
&lt;/h2&gt;

&lt;p&gt;On 30 September, at 15:07:58, I gave my Android app &lt;a href="https://github.com/taseen-t/tapoff" rel="noopener noreferrer"&gt;TapOff&lt;/a&gt; a new trick: turn the phone on its side, tap the camera hole, and the brightness and volume sliders open. At 15:25:05 I deleted it.&lt;/p&gt;

&lt;p&gt;Seventeen minutes and seven seconds. About the camera tap, the commit that killed it says only "Removed the lock-screen double-tap switch and the landscape camera tap, with their code". The rest of the story is in the code that died. One comment in it explains the whole thing: in portrait, Android's status bar sits over the camera and takes every tap there. So the trick only ever worked sideways, and I asked for it to go.&lt;/p&gt;

&lt;p&gt;Every project has a graveyard like this, and nobody visits it. So for Día de los Muertos I built &lt;strong&gt;Exhume&lt;/strong&gt;: a medium that runs on my laptop, digs up the dead, and lets me ask them what happened.&lt;/p&gt;

&lt;p&gt;Exhume knows three graveyards:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Code:&lt;/strong&gt; files and functions deleted from a git repo, read from its history.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Websites:&lt;/strong&gt; dead sites, read back from the Wayback Machine. My demo is Orkut.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Apps:&lt;/strong&gt; Mac apps I stopped opening, from the last-opened date macOS keeps.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;For each one it does the same three things:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Finds the dead&lt;/strong&gt; and collects the evidence: commits, dates, authors, archived pages. Each piece gets an ID (E1, E2, …). The facts (when it was born, when it died, who made it, how long it lived) are worked out by code, not by the model.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Writes a tombstone:&lt;/strong&gt; a cause of death and an epitaph, written by Gemma from that evidence only.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Holds a séance:&lt;/strong&gt; you ask questions, and every answer cites the evidence it rests on. Under each answer Exhume prints the sentence from that evidence that backs it up, so you can check it yourself. If the evidence doesn't say, the answer is "The spirits are silent."&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Here's the camera tap, summoned:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ python3 exhume.py summon cameraTap "Why only in landscape?"
  The code that was removed included a comment stating that the camera tap was for landscape only because in portrait the status bar sits over the camera and takes every tap there.  [E5]
    E5: // Tapping the camera, in landscape only: in portrait the status bar sits over the camera and takes every tap there.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;And here's what happens when the evidence has nothing to say. EdgeVolume was a TapOff file that lived 46 minutes; the commit that added it called it "untested on device yet".&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ python3 exhume.py summon EdgeVolume "How many people downloaded you?"
  The spirits are silent.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;Then I pointed it at a bigger grave: Orkut, Google's first social network. The oldest copy of orkut.com in the Wayback Machine is from 2 February 2001, three years before Orkut opened. In 2003 its title was "Web Page Under Construction". Orkut itself ran from January 2004 to September 2014, says the archive page Google left behind.&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ python3 exhume.py summon orkut "When did you die?"
  I was bid farewell in June 2014, and the service was set to shut down on September 30, 2014.  [E4]
    E4: We will shut down Orkut on September 30, 2014.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;Asked how many users it had, Orkut's spirit said "over 300 million" and cited E7. E7 isn't Google: it's the page the founder, the engineer orkut.com was named after, put up at orkut.com in 2016. So the number is his own claim, and the citation is what tells you so.&lt;/p&gt;

&lt;p&gt;The apps graveyard is the smallest. &lt;code&gt;find apps --days 14&lt;/code&gt; found one app I'd stopped opening, NordVPN, last opened on 7 October. Its tombstone's cause of death reads "The record does not say why." That's the right answer: macOS knows when, not why.&lt;/p&gt;
&lt;h2&gt;
  
  
  Demo
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://exhume.tech/demo.mp4" rel="noopener noreferrer"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F7fmw8npdophy514xgein.gif" alt="Exhume in 58 seconds" width="600" height="338"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The full 58-second video, with sound and captions: &lt;a href="https://exhume.tech/demo.mp4" rel="noopener noreferrer"&gt;exhume.tech/demo.mp4&lt;/a&gt;. The terminal scenes are real runs of the same &lt;code&gt;exhume.py&lt;/code&gt; that's on GitHub, replayed on screen with Gemma's waits sped up; the real time each call took is shown.&lt;/p&gt;

&lt;p&gt;The live site: &lt;strong&gt;&lt;a href="https://exhume.tech" rel="noopener noreferrer"&gt;exhume.tech&lt;/a&gt;&lt;/strong&gt;. It tells the camera tap's story as a scrolling comic, with the real evidence behind each grave one click away.&lt;/p&gt;

&lt;p&gt;Every answer in this post is copied from a real run on my Mac.&lt;/p&gt;
&lt;h2&gt;
  
  
  Code
&lt;/h2&gt;


&lt;div class="ltag-github-readme-tag"&gt;
  &lt;div class="readme-overview"&gt;
    &lt;h2&gt;
      &lt;img src="https://assets.dev.to/assets/github-logo-5a155e1f9a670af7944dd5e12375bc76ed542ea80224905ecaf878b9157cdefc.svg" alt="GitHub logo"&gt;
      &lt;a href="https://github.com/taseen-t" rel="noopener noreferrer"&gt;
        taseen-t
      &lt;/a&gt; / &lt;a href="https://github.com/taseen-t/exhume" rel="noopener noreferrer"&gt;
        exhume
      &lt;/a&gt;
    &lt;/h2&gt;
    &lt;h3&gt;
      A local Gemma medium for three graveyards: deleted code, dead websites and unused Mac apps. Every answer cites its evidence.
    &lt;/h3&gt;
  &lt;/div&gt;
  &lt;div class="ltag-github-body"&gt;
    
&lt;div id="readme" class="md"&gt;&lt;div class="markdown-heading"&gt;
&lt;h1 class="heading-element"&gt;Exhume&lt;/h1&gt;
&lt;/div&gt;

&lt;p&gt;Talk to the dead, on your own laptop.&lt;/p&gt;

&lt;p&gt;Exhume is a medium that runs Gemma 4 locally through Ollama. It lets you question three kinds of dead things: code deleted from a git repository, websites that now live only in the Wayback Machine, and Mac apps you stopped opening.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://exhume.tech/demo.mp4" rel="nofollow noopener noreferrer"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fraw.githubusercontent.com%2Ftaseen-t%2Fexhume%2FHEAD%2Fdemo.gif" alt="Exhume in 58 seconds: real runs on dead code, a dead website and a forgotten app"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Live:&lt;/strong&gt; &lt;a href="https://exhume.tech" rel="nofollow noopener noreferrer"&gt;exhume.tech&lt;/a&gt; · &lt;strong&gt;Code:&lt;/strong&gt; this repo · &lt;strong&gt;Agent session:&lt;/strong&gt; &lt;a href="https://github.com/taseen-t/exhume#how-it-was-built" rel="noopener noreferrer"&gt;Entire checkpoint&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Every graveyard works the same way:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Find the dead.&lt;/strong&gt; Code collects the evidence, numbers each piece (E1, E2, …) and works out the facts itself: dates, commits, authors, how long it lived.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Tombstone.&lt;/strong&gt; Gemma writes the cause of death and an epitaph, from the evidence only.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Summon.&lt;/strong&gt; Ask it anything. Every answer cites the evidence it rests on. When the evidence doesn't say, the answer is "The spirits are silent."&lt;/li&gt;
&lt;/ol&gt;


&lt;blockquote&gt;

&lt;p&gt;&lt;strong&gt;Verify in 30 seconds&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;/p&gt;&lt;div class="table-wrapper-paragraph"&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;table&gt;

&lt;thead&gt;

&lt;tr&gt;

&lt;/tr&gt;

&lt;/thead&gt;

&lt;tbody&gt;

&lt;tr&gt;

&lt;td&gt;&lt;strong&gt;Model&lt;/strong&gt;&lt;/td&gt;

&lt;td&gt;
&lt;br&gt;
&lt;strong&gt;Gemma 4 E4B&lt;/strong&gt; (&lt;code&gt;gemma4:e4b&lt;/code&gt;), run locally with Ollama. Licence: &lt;a href="https://ai.google.dev/gemma/apache_2" rel="nofollow noopener noreferrer"&gt;Apache 2.0&lt;/a&gt;. &lt;/td&gt;

&lt;/tr&gt;

&lt;/tbody&gt;

&lt;/table&gt;&lt;/div&gt;&lt;br&gt;
&lt;p&gt;&lt;/p&gt;
&lt;/blockquote&gt;…&lt;/div&gt;
&lt;br&gt;
  &lt;/div&gt;
&lt;br&gt;
  &lt;div class="gh-btn-container"&gt;&lt;a class="gh-btn" href="https://github.com/taseen-t/exhume" rel="noopener noreferrer"&gt;View on GitHub&lt;/a&gt;&lt;/div&gt;
&lt;br&gt;
&lt;/div&gt;
&lt;br&gt;


&lt;h2&gt;
  
  
  How I Built It
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Model:&lt;/strong&gt; Gemma 4 E4B (&lt;code&gt;gemma4:e4b&lt;/code&gt;, open weights, Apache 2.0), running locally through Ollama's HTTP API. No cloud model is called.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Code:&lt;/strong&gt; one Python file, &lt;code&gt;exhume.py&lt;/code&gt;, 723 lines, standard library only. It calls git, curl and macOS's &lt;code&gt;mdls&lt;/code&gt;. No frameworks, nothing to &lt;code&gt;pip install&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Code graveyard:&lt;/strong&gt; &lt;code&gt;git log -M --diff-filter=D&lt;/code&gt; finds deleted files that never came back. For functions, Exhume walks the whole history (&lt;code&gt;git log -p -M --unified=0&lt;/code&gt;) and matches definition lines in common languages. That's a heuristic, not a parser. Renamed files don't count, and neither does a function that comes back in the same place under a new name. Binary files are skipped, and &lt;code&gt;--skip GLOB&lt;/code&gt; ignores generated folders. On TapOff it found 8 graves.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Website graveyard:&lt;/strong&gt; the Wayback Machine's CDX index lists the saved copies of the home page, and Exhume reads four of them, spread across the years; &lt;code&gt;--page&lt;/code&gt; adds snapshots you name. For Orkut that's 8 pages: four home pages (2003, 2008, 2023, 2026) plus four I picked (Google's June 2014 goodbye post, the archive notice, the "Preserving Orkut's history" post and the founder's 2016 page). Pages are cached on disk, so once &lt;code&gt;find&lt;/code&gt; has run, tombstones and séances work offline.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Apps graveyard:&lt;/strong&gt; &lt;code&gt;mdls&lt;/code&gt; reads &lt;code&gt;kMDItemLastUsedDate&lt;/code&gt; for each app in &lt;code&gt;/Applications&lt;/code&gt;. Apps macOS has no record of opening are left out unless you ask for them with &lt;code&gt;--unrecorded&lt;/code&gt;. Apps only, never documents.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Keeping Gemma honest:&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Gemma never supplies a date, a commit or a name. Code gives it the evidence as a numbered list in the prompt.&lt;/li&gt;
&lt;li&gt;Gemma must answer in JSON that matches a schema (Ollama's &lt;code&gt;format&lt;/code&gt;). Its &lt;code&gt;cites&lt;/code&gt; list is an enum of that grave's real evidence IDs, and code drops anything else anyway.&lt;/li&gt;
&lt;li&gt;The answer becomes "The spirits are silent." when it cites nothing real, when Gemma itself says the evidence is silent, or when it contains &lt;strong&gt;any number that isn't in the evidence it cites&lt;/strong&gt;. A reply that loops until the 400-token cap gets one retry with a new seed, then silence.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;selftest&lt;/code&gt; builds a small haunted git repo (a dead file, a dead function, a rename, a binary, a skipped folder) and checks what the finder digs up, the citation guard, the number check and the receipts. With Ollama running, it also asks Gemma when the ghost died (the answer must cite the commit that deleted it) and what its favourite colour was (the answer must be silence). Its last run printed &lt;code&gt;offline checks passed&lt;/code&gt; and &lt;code&gt;live checks passed&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Hardware:&lt;/strong&gt; a 16 GB Mac. The whole selftest, three Gemma calls included, took 36 seconds. When the Mac is short on memory, one call can take minutes.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;It isn't perfect, and the citations show where. Gemma's tombstone for the camera tap gives as its cause of death "screen off closes in on your tap; simpler back-tap sliders". That's the title of the commit that removed it: a headline, not a reason. The citation points straight at it, so you can see that's all it had.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why Does Open Innovation Matter?
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;The dead stay private.&lt;/strong&gt; My code graveyard is my git history, and some repos are private. After &lt;code&gt;find&lt;/code&gt;, nothing leaves my laptop: not the code, not my questions.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;It works with the lights off.&lt;/strong&gt; Once the archive pages are cached, a séance needs no internet.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;It costs nothing to ask.&lt;/strong&gt; No API key, no account, no bill for every question to a ghost.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;It can't be taken away.&lt;/strong&gt; The challenge asks whether what you build is "locked inside a service that might disappear someday". Orkut was a Google service. It ran from January 2004 to September 2014, and then it disappeared. Gemma is also from Google, but its weights are on my disk, and no shutdown notice can take them back.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;I can see every knob.&lt;/strong&gt; I set the context window (4,096 tokens), the reply cap (400), the seed and the temperature myself, and Exhume checks how many tokens the prompt really used before it trusts a reply. The model I tested against is the one that will still run next year, because it's a file on my laptop and not an endpoint someone can retire.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  My Agent Session
&lt;/h2&gt;

&lt;p&gt;I built Exhume with Claude Code, with &lt;a href="https://entire.io" rel="noopener noreferrer"&gt;Entire&lt;/a&gt; recording the sessions started in the repo folder.&lt;/p&gt;

&lt;p&gt;The session that moved the site into the repo is checkpoint &lt;a href="https://github.com/taseen-t/exhume/tree/0fa3d99fe86b728ce0c76c34c5c60daa54f1d792/0" rel="noopener noreferrer"&gt;&lt;code&gt;01M68DJQZ15JTSD4DEV3RTZ8D7&lt;/code&gt;&lt;/a&gt;, tied to the commit "Site: the Exhume page, moved into site/" by its &lt;code&gt;Entire-Checkpoint&lt;/code&gt; trailer.&lt;/p&gt;

&lt;p&gt;A note on the checkpoint: I redacted it before publishing. The Claude app puts my private notes, my email and my list of connected services into every session, so I kept only the conversation itself, cut it off at the commit, and replaced my email and home-folder paths. The work it records is unchanged.&lt;/p&gt;

&lt;p&gt;It's a small séance of its own: ask the checkpoint where &lt;code&gt;site/&lt;/code&gt; came from, and it answers with the session that copied the page and its 16 images in, then checked every path the page loads before committing.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Spirit of It
&lt;/h2&gt;

&lt;p&gt;Gemma's epitaph for the camera tap, as it came out: "A tap that once saw the light, now rests in the dark."&lt;/p&gt;

&lt;p&gt;The moment that got me was Orkut. Its founder's 2016 page says people went on dates, found jobs, got married and had kids because of it. Google's last Orkut blog post says 51 million communities were saved. So I asked Orkut's spirit which community was its favourite.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ python3 exhume.py summon orkut "What was your favourite community?"
  The spirits are silent.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Fifty-one million communities kept, and nothing in the record says which one it loved. The medium won't make one up.&lt;/p&gt;

&lt;h2&gt;
  
  
  Prize Categories
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Best Use of Gemma:&lt;/strong&gt; Gemma 4 E4B, running on my laptop through Ollama, writes every tombstone and answers every question, held to the evidence by a JSON schema, a citation guard and a number check.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Best Use of Entire:&lt;/strong&gt; the build was recorded with Entire; the published checkpoint is &lt;a href="https://github.com/taseen-t/exhume/tree/0fa3d99fe86b728ce0c76c34c5c60daa54f1d792/0" rel="noopener noreferrer"&gt;&lt;code&gt;01M68DJQZ15JTSD4DEV3RTZ8D7&lt;/code&gt;&lt;/a&gt;, redacted as described above.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Best Use of a .tech Domain:&lt;/strong&gt; the project lives at &lt;a href="https://exhume.tech" rel="noopener noreferrer"&gt;exhume.tech&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;em&gt;I wrote this post with help from an AI assistant, working from my build notes and the repo's history.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>devchallenge</category>
      <category>hf26challenge</category>
      <category>gemma</category>
      <category>python</category>
    </item>
    <item>
      <title>I built a Gemma 4 medicine reminder in 100 minutes at a hackathon</title>
      <dc:creator>TaseenTariq</dc:creator>
      <pubDate>Tue, 27 Oct 2026 19:31:06 +0000</pubDate>
      <link>https://dev.to/taseen_tariq_/i-built-a-gemma-4-medicine-reminder-in-100-minutes-at-a-hackathon-2kf2</link>
      <guid>https://dev.to/taseen_tariq_/i-built-a-gemma-4-medicine-reminder-in-100-minutes-at-a-hackathon-2kf2</guid>
      <description>&lt;p&gt;&lt;em&gt;This is a submission for the &lt;a href="https://dev.to/mlh-hackathon"&gt;MLH x DEV Writing Challenge&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What I Built
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Anatono&lt;/strong&gt; is a medicine reminder that starts from a photo. Snap a medicine strip, a box, or a whole handwritten&lt;br&gt;
prescription. Type or say how you take it, in English, Urdu or Roman Urdu. Anatono turns that into reminders, and it&lt;br&gt;
checks every medicine for warning signs before you take it. It's made for elders and the people who look after them.&lt;/p&gt;

&lt;p&gt;I built it at MLH's &lt;strong&gt;Hacktoberfest Hack Day in Faisalabad on 23 October 2026&lt;/strong&gt;. It's live at&lt;br&gt;
&lt;a href="https://anatono.site" rel="noopener noreferrer"&gt;anatono.site&lt;/a&gt;, and the code is open source (MIT).&lt;/p&gt;


&lt;div class="ltag-github-readme-tag"&gt;
  &lt;div class="readme-overview"&gt;
    &lt;h2&gt;
      &lt;img src="https://assets.dev.to/assets/github-logo-5a155e1f9a670af7944dd5e12375bc76ed542ea80224905ecaf878b9157cdefc.svg" alt="GitHub logo"&gt;
      &lt;a href="https://github.com/taseen-t" rel="noopener noreferrer"&gt;
        taseen-t
      &lt;/a&gt; / &lt;a href="https://github.com/taseen-t/anatono-meds" rel="noopener noreferrer"&gt;
        anatono-meds
      &lt;/a&gt;
    &lt;/h2&gt;
    &lt;h3&gt;
      Anatono: snap a medicine or prescription, Gemma 4 reads and checks it, say how you take it, get reminders. Hack Day Faisalabad 2026.
    &lt;/h3&gt;
  &lt;/div&gt;
  &lt;div class="ltag-github-body"&gt;
    
&lt;div id="readme" class="md"&gt;&lt;div class="markdown-heading"&gt;
&lt;h1 class="heading-element"&gt;Anatono&lt;/h1&gt;
&lt;/div&gt;
&lt;p&gt;&lt;strong&gt;Never miss a dose again.&lt;/strong&gt; Snap a medicine strip, a box or a whole handwritten prescription. Say or type how you
take it, in English, Urdu or Roman Urdu. Anatono turns it into reminders, and checks every medicine for warning signs
before you take it. Made for elders and the people who look after them.&lt;/p&gt;
&lt;p&gt;Made by &lt;strong&gt;Taseen Tariq&lt;/strong&gt; at Hack Day Faisalabad, 23 October 2026.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Try it:&lt;/strong&gt; &lt;a href="https://anatono.site" rel="nofollow noopener noreferrer"&gt;anatono.site&lt;/a&gt; (landing page) · &lt;a href="https://anatono.site/app.html" rel="nofollow noopener noreferrer"&gt;anatono.site/app.html&lt;/a&gt;
(the app) · &lt;a href="https://anatono.site/anatono.apk" rel="nofollow noopener noreferrer"&gt;Android app (APK)&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://anatono.site/demo.mp4" rel="nofollow noopener noreferrer"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fraw.githubusercontent.com%2Ftaseen-t%2Fanatono-meds%2FHEAD%2Fdemo.gif" alt="Anatono in 30 seconds: a real run of the app"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;▶ &lt;a href="https://anatono.site/demo.mp4" rel="nofollow noopener noreferrer"&gt;Watch the 30-second demo&lt;/a&gt;&lt;/strong&gt;: a real run of the app (Gemma 4's waits shown sped up), with captions.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Verify in 30 seconds&lt;/strong&gt;&lt;/p&gt;
&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Model&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;
&lt;strong&gt;Gemma 4&lt;/strong&gt; (&lt;code&gt;gemma-4-26b-a4b-it&lt;/code&gt;; &lt;code&gt;gemma-4-31b-it&lt;/code&gt; only as a fallback) through the &lt;strong&gt;Gemini API&lt;/strong&gt; (&lt;code&gt;google-genai&lt;/code&gt;). Licence: &lt;a href="https://ai.google.dev/gemma/apache_2" rel="nofollow noopener noreferrer"&gt;Apache 2.0&lt;/a&gt;. &lt;a href="https://github.com/taseen-t/anatono-meds/anatono.py#L24" rel="noopener noreferrer"&gt;&lt;code&gt;anatono.py&lt;/code&gt; line 24&lt;/a&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Where Gemma is called&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;ask()&lt;/code&gt; in &lt;a href="https://github.com/taseen-t/anatono-meds/anatono.py#L69" rel="noopener noreferrer"&gt;&lt;code&gt;anatono.py&lt;/code&gt; line 69&lt;/a&gt; → &lt;code&gt;ask_gemma()&lt;/code&gt; (&lt;a href="https://github.com/taseen-t/anatono-meds/anatono.py#L85" rel="noopener noreferrer"&gt;line 85&lt;/a&gt;). It reads every photo (&lt;code&gt;read_photo&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;
&lt;/blockquote&gt;…&lt;/div&gt;
  &lt;/div&gt;
  &lt;div class="gh-btn-container"&gt;&lt;a class="gh-btn" href="https://github.com/taseen-t/anatono-meds" rel="noopener noreferrer"&gt;View on GitHub&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;


&lt;h3&gt;
  
  
  Why medicines
&lt;/h3&gt;

&lt;p&gt;My sister is a doctor. With a doctor in the family, I learned that writing the prescription is the&lt;br&gt;
easy part. The hard part happens at home: the right medicine, at the right time, every day, with no doctor in the room.&lt;/p&gt;

&lt;p&gt;This is the kind of paper that goes home. It's a sample I made for the demo, not a real patient:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F5ip6ilzjustpo7rqsgr6.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F5ip6ilzjustpo7rqsgr6.jpg" alt="A sample handwritten prescription: Amoxil 500mg 1+0+1 for 5 days after meals, Omez 20mg 1+0+0 before breakfast for 14 days, Brufen syrup 2 tsp TDS if fever" width="800" height="1018"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Three medicines, three schedules, all in shorthand: &lt;code&gt;1+0+1&lt;/code&gt;, &lt;code&gt;TDS&lt;/code&gt;, &lt;code&gt;x 14 days&lt;/code&gt;. Easy for a doctor, hard for a&lt;br&gt;
patient. Then you're supposed to type it all into a reminder app yourself, in English. That's where people give up.&lt;/p&gt;

&lt;p&gt;And it isn't just one family. The WHO says about &lt;strong&gt;1 in 2&lt;/strong&gt; people on long-term medicines don't take them as&lt;br&gt;
prescribed (&lt;a href="https://iris.who.int/handle/10665/42682" rel="noopener noreferrer"&gt;Adherence to Long-Term Therapies, 2003&lt;/a&gt;), and &lt;strong&gt;1 in 10&lt;/strong&gt;&lt;br&gt;
medical products in low- and middle-income countries is substandard or falsified&lt;br&gt;
(&lt;a href="https://www.who.int/news/item/28-11-2017-1-in-10-medical-products-in-developing-countries-is-substandard-or-falsified" rel="noopener noreferrer"&gt;WHO, 2017&lt;/a&gt;).&lt;br&gt;
So Anatono does two things: it reminds you, and it checks the medicine.&lt;/p&gt;
&lt;h3&gt;
  
  
  How it works
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Read.&lt;/strong&gt; Gemma 4 reads the photo: name, salt, strength, maker, batch number, dates, registration number, and the
dose as the doctor wrote it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Check.&lt;/strong&gt; Plain code, not the model, decides whether each medicine is &lt;code&gt;ok&lt;/code&gt;, &lt;code&gt;careful&lt;/code&gt; or &lt;code&gt;stop&lt;/code&gt;. An expired
medicine gets no reminders.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Understand the dose.&lt;/strong&gt; Type or say it any way you like. "ek goli subah aur raat khane ke baad paanch din" (one
tablet morning and night, after food, five days) becomes 1 tablet at 8:00 AM and 9:00 PM, after food, for 5 days.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Confirm and remind.&lt;/strong&gt; Nothing is saved until you tap "Add to my routine". Reminders show in the app and go into
your phone's own calendar as alarms, so they ring even when the app is closed.&lt;/li&gt;
&lt;/ol&gt;
&lt;h3&gt;
  
  
  The one rule: Gemma 4 reads, code decides
&lt;/h3&gt;

&lt;p&gt;The model is good at reading messy handwriting and messy sentences. It shouldn't be the one deciding whether you take a&lt;br&gt;
pill. So Gemma 4 only turns a photo or a sentence into JSON, and plain Python makes every decision after that.&lt;/p&gt;

&lt;p&gt;Each medicine collects flags: expired (stop), expiring soon, a made-on date after the expiry date, a missing batch&lt;br&gt;
number, expiry, maker or registration number ("Genuine packs print it."), the same ingredient as something already in&lt;br&gt;
your routine, or a warning sign Gemma spotted on the pack. Then one line decides:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="n"&gt;level&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;stop&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt; &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="nf"&gt;any&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;stop&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;f&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="n"&gt;flags&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="ow"&gt;or&lt;/span&gt; &lt;span class="nf"&gt;sum&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;careful&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;f&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="n"&gt;flags&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;=&lt;/span&gt; &lt;span class="mi"&gt;3&lt;/span&gt;
         &lt;span class="k"&gt;else&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;careful&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt; &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;flags&lt;/span&gt; &lt;span class="k"&gt;else&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;ok&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A &lt;code&gt;stop&lt;/code&gt; card says "Don't take this one. Show it to your pharmacist." and has no dose form at all.&lt;/p&gt;

&lt;p&gt;Doses work the same way. Gemma 4 turns your words into &lt;code&gt;amount&lt;/code&gt;, &lt;code&gt;times&lt;/code&gt; ("morning", "night"…), &lt;code&gt;food&lt;/code&gt;, &lt;code&gt;days&lt;/code&gt;,&lt;br&gt;
&lt;code&gt;as_needed&lt;/code&gt; and anything it was &lt;code&gt;unclear&lt;/code&gt; about. Code turns that into clock times (morning 8:00, afternoon 2:00 PM,&lt;br&gt;
evening 6:00 PM, night 9:00 PM), only accepts 1 to 365 days, flags more than 6 doses a day, and reads prescription&lt;br&gt;
shorthand on its own so it can check Gemma's answer:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;pattern_slots&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;text&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
    &lt;span class="sh"&gt;"""'&lt;/span&gt;&lt;span class="s"&gt;1+0+1&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt; / &lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;1-1-1&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt; / &lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;0+0+1&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt; -&amp;gt; the slots it means, or None. Code&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;s own reading, to cross-check Gemma.&lt;/span&gt;&lt;span class="sh"&gt;"""&lt;/span&gt;
    &lt;span class="n"&gt;m&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;re&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;search&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sa"&gt;r&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;(?&amp;lt;![\d/])([\d½]+)\s*[+\-]\s*([\d½]+)\s*[+\-]\s*([\d½]+)(?:\s*[+\-]\s*([\d½]+))?(?![\d/])&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;text&lt;/span&gt; &lt;span class="ow"&gt;or&lt;/span&gt; &lt;span class="sh"&gt;""&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="ow"&gt;not&lt;/span&gt; &lt;span class="n"&gt;m&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="bp"&gt;None&lt;/span&gt;
    &lt;span class="n"&gt;parts&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;p&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;p&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="n"&gt;m&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;groups&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;p&lt;/span&gt; &lt;span class="ow"&gt;is&lt;/span&gt; &lt;span class="ow"&gt;not&lt;/span&gt; &lt;span class="bp"&gt;None&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
    &lt;span class="n"&gt;names&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;morning&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;afternoon&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;night&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="nf"&gt;len&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;parts&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="mi"&gt;3&lt;/span&gt; &lt;span class="k"&gt;else&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;morning&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;afternoon&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;evening&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;night&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;n&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;n&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;p&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="nf"&gt;zip&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;names&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;parts&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;p&lt;/span&gt; &lt;span class="ow"&gt;not&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;0&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,)]&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If Gemma's times don't match, you see a note like "'1+0+1' usually means morning and night. Please check the times."&lt;br&gt;
You always see what was understood and can change the times before anything is saved. Anatono never changes a dose.&lt;/p&gt;

&lt;p&gt;There's also an &lt;strong&gt;agent skill&lt;/strong&gt;, &lt;a href="https://github.com/taseen-t/anatono-meds/tree/main/skills/anatono-nuskha" rel="noopener noreferrer"&gt;&lt;code&gt;anatono-nuskha&lt;/code&gt;&lt;/a&gt;&lt;br&gt;
("nuskha" is Urdu for prescription), built to the Agent Skills open standard. Any skills-compatible agent can run the&lt;br&gt;
same pipeline from the command line: photo in, checks and a calendar file out. Its rules tell the agent to read the&lt;br&gt;
flags back and get a yes before saving, to never change or round a dose, and to say "warning signs", never "fake".&lt;/p&gt;
&lt;h3&gt;
  
  
  What I learned
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Put the safety rules in code, not in the prompt.&lt;/strong&gt; Then the model can't talk its way around them, and I can test
them. &lt;code&gt;python3 anatono.py&lt;/code&gt; runs a self-check of the rules with no API call.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Design around a slow model.&lt;/strong&gt; On the night, one read of the sample prescription took about a minute and another
took three. More on what I did about it under Partner Technologies.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Be honest about limits.&lt;/strong&gt; A photo can't prove a medicine is genuine. So Anatono only ever says "warning signs",
the FAQ says why, and the README has a "Limits, honestly" section.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Dropping an idea late can be the right call.&lt;/strong&gt; The organisers' guide said to stop adding features 90 minutes
before the deadline. I started a whole new project with 100 minutes left. It worked out because I picked a problem I
already knew from home.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A small one from the last minutes.&lt;/strong&gt; Two minutes before the deadline, the calendar buttons were showing on an empty
routine even though they had the &lt;code&gt;hidden&lt;/code&gt; attribute. A &lt;code&gt;.stack { display: grid }&lt;/code&gt; rule was beating &lt;code&gt;hidden&lt;/code&gt;. One line
fixed it: &lt;code&gt;[hidden] { display: none !important; }&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;
  
  
  Demo
&lt;/h2&gt;

&lt;p&gt;  &lt;iframe src="https://www.youtube.com/embed/28Ysk18Aheg" width="710" height="399"&gt;
  &lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;A one-minute run of the web app. Gemma 4 reads the prescription (Amoxil 500mg and Omez 20mg, both OK), understands&lt;br&gt;
"ek goli subah aur raat, khane ke baad, 5 din" as 8:00 AM and 9:00 PM for 5 days, and plain code stops an expired&lt;br&gt;
pack. The app has changed a little since this was recorded, and the live app now runs on Gemma 4 only.&lt;/p&gt;

&lt;p&gt;Try it yourself:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;The app:&lt;/strong&gt; &lt;a href="https://anatono.site/app.html" rel="noopener noreferrer"&gt;anatono.site/app.html&lt;/a&gt;. Tap &lt;strong&gt;Try a sample&lt;/strong&gt; to read the prescription
above. Reading can take a minute or more (see below). Works in any phone browser and installs as an app on Android.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The landing page:&lt;/strong&gt; &lt;a href="https://anatono.site" rel="noopener noreferrer"&gt;anatono.site&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Android:&lt;/strong&gt; &lt;a href="https://anatono.site/anatono.apk" rel="noopener noreferrer"&gt;anatono.apk&lt;/a&gt;, the same web app wrapped to open full screen like any
app.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The code:&lt;/strong&gt; &lt;a href="https://github.com/taseen-t/anatono-meds" rel="noopener noreferrer"&gt;github.com/taseen-t/anatono-meds&lt;/a&gt;, MIT. The README has a
"Verify in 30 seconds" box with the model, the exact lines that call it, the licence and the key dependencies.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Partner Technologies
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Gemma 4, through the Gemini API.&lt;/strong&gt; Gemma 4 is the centre of Anatono: it reads every photo and understands every&lt;br&gt;
dose. I use &lt;code&gt;gemma-4-26b-a4b-it&lt;/code&gt; through the &lt;code&gt;google-genai&lt;/code&gt; Python SDK, with &lt;code&gt;gemma-4-31b-it&lt;/code&gt; only as a fallback. Both&lt;br&gt;
are Gemma 4, under the &lt;a href="https://ai.google.dev/gemma/apache_2" rel="noopener noreferrer"&gt;Apache 2.0&lt;/a&gt; licence. The key stays on the server, so the&lt;br&gt;
browser never sees it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What working with it was like:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;It sometimes answers with a 500, or with JSON wrapped in extra text.&lt;/strong&gt; So every call pulls the JSON object out of
the reply, and if anything fails it tries the 26B model twice, then the 31B one:
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;  &lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;ask_gemma&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;contents&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
      &lt;span class="sh"&gt;"""&lt;/span&gt;&lt;span class="s"&gt;Gemma 4 through the Gemini API. It sometimes answers 500 or loose JSON: try the 26B model twice, then the 31B
      one (both Gemma 4).&lt;/span&gt;&lt;span class="sh"&gt;"""&lt;/span&gt;
      &lt;span class="n"&gt;client&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;genai&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Client&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;                       &lt;span class="c1"&gt;# keep a reference: a dropped client closes its connection
&lt;/span&gt;      &lt;span class="n"&gt;tries&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;MODEL&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;MODEL&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;MODEL_BACKUP&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
      &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;attempt&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;model&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="nf"&gt;enumerate&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;tries&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
          &lt;span class="k"&gt;try&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
              &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nf"&gt;as_json&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;client&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;models&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;generate_content&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;model&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;model&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;contents&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;contents&lt;/span&gt;&lt;span class="p"&gt;).&lt;/span&gt;&lt;span class="n"&gt;text&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
          &lt;span class="k"&gt;except&lt;/span&gt; &lt;span class="nb"&gt;Exception&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;  &lt;span class="c1"&gt;# noqa: BLE001
&lt;/span&gt;              &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;attempt&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="nf"&gt;len&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;tries&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
                  &lt;span class="k"&gt;raise&lt;/span&gt;
              &lt;span class="n"&gt;time&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;sleep&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;attempt&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Gemma 4 on the API doesn't take audio.&lt;/strong&gt; So when you tap the mic, &lt;code&gt;gemini-3.5-flash-lite&lt;/code&gt; only writes down the
words you said, and Gemma 4 does all the understanding.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Other surprises:&lt;/strong&gt; asking for a thinking level gave a 400, and &lt;code&gt;gemma-4-e4b-it&lt;/code&gt; gave a 404 on the API, so I stuck
with the 26B model.&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;The hosted model can be slow.&lt;/strong&gt; On the night, the sample prescription took anywhere from about a minute to three.&lt;br&gt;
At a live demo that's a long time. After the deadline I made three changes:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Ask less first.&lt;/strong&gt; The first call only reads the medicines. "What is it for", in English and Urdu, comes from a
second, shorter call that fills in after the cards are already on screen.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Read a tall page in two parts.&lt;/strong&gt; A full prescription is cut into two overlapping halves. The app reads part 1,
shows those medicines, and offers "Read the remaining medicines". A medicine that shows up in both halves is kept
once (matched by name and strength).
&lt;/li&gt;
&lt;/ol&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt; &lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;pieces&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;img&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
     &lt;span class="sh"&gt;"""&lt;/span&gt;&lt;span class="s"&gt;A tall page (a full prescription) is cut into two overlapping halves, because Gemma 4 on the API is slow and
     two short answers come back sooner than one long one. The overlap keeps a line cut in half readable in one piece.&lt;/span&gt;&lt;span class="sh"&gt;"""&lt;/span&gt;
     &lt;span class="n"&gt;w&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;h&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;img&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;size&lt;/span&gt;
     &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;h&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt; &lt;span class="mf"&gt;1.2&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;w&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
         &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;img&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
     &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;img&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;crop&lt;/span&gt;&lt;span class="p"&gt;((&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;w&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nf"&gt;int&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;h&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="mi"&gt;58&lt;/span&gt;&lt;span class="p"&gt;))),&lt;/span&gt; &lt;span class="n"&gt;img&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;crop&lt;/span&gt;&lt;span class="p"&gt;((&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nf"&gt;int&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;h&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="mi"&gt;42&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt; &lt;span class="n"&gt;w&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;h&lt;/span&gt;&lt;span class="p"&gt;))]&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/li&gt;
&lt;/ul&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Read once, not twice&lt;/strong&gt; (the next day). The phone and the server both keep what was read, keyed by a SHA-256 of
 the photo. On a repeat only the code checks run again, because they depend on today's date and on what's already
 in your routine.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Hackathon Experience
&lt;/h2&gt;

&lt;p&gt;I went to MLH's &lt;strong&gt;Hacktoberfest Hack Day in Faisalabad&lt;/strong&gt; on 23 October 2026.&lt;/p&gt;

&lt;p&gt;The organisers sent a "before you arrive" list: accounts on GitHub, DEV and Google, a Gemini API key from Google AI&lt;br&gt;
Studio, and one line: "Do this at home, not on venue Wi-Fi." The rule was that setup before the day is fine,&lt;br&gt;
but project code isn't. So I came with a ready laptop and no code.&lt;/p&gt;

&lt;p&gt;Honestly, I started with a different idea. In the afternoon I built a karaoke vocal coach and called it Anatono: it&lt;br&gt;
split a song into music and voice, showed the lyrics in time with the song, and Gemma 4 gave you a score and tips on&lt;br&gt;
your singing. It worked, but I didn't like it. At 7:20 PM, with 100 minutes to go, I dropped it. I kept the name and&lt;br&gt;
picked the problem I already knew from home.&lt;/p&gt;

&lt;p&gt;The new project's first commit went in at 8:21 PM. The repo went public on GitHub at 8:50 PM, and at 8:52 PM Gemma 4&lt;br&gt;
was answering on anatono.site, a domain I'd bought that same day.&lt;/p&gt;

&lt;h3&gt;
  
  
  Since the deadline
&lt;/h3&gt;

&lt;p&gt;I kept building overnight. All of these use the same Gemma 4 reading and the same code checks behind anatono.site:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;scroll and page-change animations on the landing page&lt;/li&gt;
&lt;li&gt;the Android download, which opens full screen with no browser bar&lt;/li&gt;
&lt;li&gt;a native iPhone app (SwiftUI, with real iOS reminders that ring with the app closed), running in the simulator&lt;/li&gt;
&lt;li&gt;a native Android app (Kotlin, reminders in the phone's calendar, Urdu in Nastaliq script), in testing&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  What's next
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Gemma 4 on the phone&lt;/strong&gt;, so it reads offline in seconds instead of waiting on the hosted model.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Family mode&lt;/strong&gt;: remind a parent's phone from yours, and see when a dose is taken.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Doctors first&lt;/strong&gt;: put it in front of the people who write these prescriptions, starting with my sister.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;And the limits, honestly: a photo can't prove a medicine is genuine, so Anatono only shows warning signs. It's a&lt;br&gt;
reminder, not medical advice, and it never changes a dose. Photos are sent to Google's Gemini API to be read; your&lt;br&gt;
routine stays on your phone.&lt;/p&gt;

&lt;p&gt;Thanks to MLH and the Faisalabad organisers for the day.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;An AI assistant wrote this post from my build notes and the repo's history.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>mlhacks</category>
      <category>devchallenge</category>
      <category>hackathon</category>
      <category>gemma</category>
    </item>
  </channel>
</rss>
