Minimap
Android navigation memory for AI agents.
Minimap helps an AI remember how to get around an Android app. Teach it a route
once, such as Home → Settings, then ask it to follow that route and check the
screen it reaches. Following a saved route does not need a new AI decision for
every tap.
The routes live in your project's .minimap/ folder. Commit them to Git so your
teammates and their AI agents can use what has already been learned.
Results
Our latest test build reused saved routes in about 4–7 seconds, compared
with 7–11 seconds without Minimap. It reached the right screen in 60/60
trips. Across the six app/Android combinations, the middle time saving in
matched runs was 30–45%.
These results are from the experimental build in PR #12,
which has not been released. The full comparison was 179/180 verified:
one released-version control's separate screen checker timed out. That means
our strict rule that every test must pass has not been met.
Navigation time
We tested the same short routes in three Android sample apps on two emulators
running different Android versions (APIs 36 and 37). Each route took one or two
taps. Every method already knew the route; no AI chose the individual steps.
| Method | What it does |
|---|
| Without Minimap | Uses regular Android tools to follow the known route and check the screen. |
| Previous Minimap | Reuses the saved route with released Minimap v0.2.0. |
| New Minimap | Reuses the same route with faster screen reads and a check that buttons have stopped moving before a tap. |

Each bar is the middle result (median) from up to ten successful runs for
that app and Android version. Shorter bars are better. Startup, the one-time
work of recording the route, and the separate test checker are outside these
times. The new build was faster in 58 of 60 matched trips against the
no-Minimap script; the two slower trips remain in the detailed graphs.
A saved route still runs through one minimap go call. Minimap reads the
screen, taps, and verifies the destination without asking an LLM to decide
each step. Much of this build's speed improvement comes from faster screen reads.
Less text for the AI to read
A token is a small chunk of text an AI reads. In this run, the new build
returned about 83–88% less navigation-tool text than the tools used without
Minimap.

These bars combine both Android versions and count each tool response once.
We have not measured the full AI-token cost or money saved. Instructions,
reasoning, previous conversation text, and caching also affect the total.
Loading the full Minimap instructions for every short task can erase the
saving shown here.
What still needs testing?
- The full AI task: the prepared agent comparison must measure actual input, output, timing, and API-equivalent cost, including instructions and reasoning.
- Recovery without help: all 16 scripted change/error checks passed, but an AI discovering and repairing unexpected navigation on its own remains untested.
- Broader use: these were short routes on two emulators, so longer routes, physical devices, larger graphs, and more app states still need evaluation.
See the complete results, every-run graphs, failures, and raw evidence,
including a graph showing the time saved or lost in each matched trip and
instructions for rebuilding all the graphs.
The earlier failed test build
and the released-version benchmark
remain available with their original results.
Install
From a checkout:
cargo build -p minimap-cli --bin minimap
Building requires Rust 1.89 or newer.
From source after publication:
cargo install --git https://github.com/mttmcknn/minimap minimap-cli
Basic Workflow
Initialize the repo and install agent skills:
minimap init --agents all --package com.example.myapp
minimap doctor
Label the current place:
minimap whereami --label home
Navigate and learn a verified transition:
minimap tap --selector "text=SEARCH" --label search --reason "open search"
Reuse the graph:
minimap go search --expect "text=Categories"
Use raw layout only when the agent needs details Minimap does not model:
minimap layout