Agents
For AI agents
Pick the route that fits your agent:
| Your agent | Use | Set up |
|---|---|---|
| Claude Code | The plugin: the CLI plus a skill that teaches the loop | /plugin install looktap --marketplace lakpriya1s/looktap, then /looktap:setup (details) |
| Other agents with a shell (Codex, Cursor, Gemini CLI, Copilot, OpenCode, …) | The CLI plus the skill, in each agent's own skills folder | looktap skill --install (details) |
| Chat apps without a shell (Claude Desktop, …) | The MCP server | npx -y @looktap/mcp (details) |
Every coding agent
looktap skill --install finds the coding agents on your machine (by their config folder or command) and writes
the skill into the folder each one reads, with the frontmatter that agent accepts: Codex, for one, rejects fields
it doesn't know. The skill is a short SKILL.md for the everyday loop plus references/ (every command, flows,
devices, debugging) that the agent reads only when a task needs them; both are copied. Each copy carries looktap's
version: run it again after upgrading, and looktap doctor says when a copy is out of date. looktap skill
commands (or flows, devices, debugging) prints one reference.
looktap skill --install # every agent found here, user-wide
looktap skill --install --agents codex,gemini # just these (or --agents all)
looktap skill --install --project # into this repo, to commit for the team
looktap skill --list # what's supported, found and installed where
looktap skill --uninstall
| Agent | --agents | User-wide | In a repo (--project) |
|---|---|---|---|
| Claude Code | claude | ~/.claude/skills | .claude/skills |
| Codex CLI | codex | ~/.agents/skills | .agents/skills |
| Cursor | cursor | ~/.cursor/skills | .cursor/skills |
| Gemini CLI | gemini | ~/.gemini/skills | .gemini/skills |
| GitHub Copilot | copilot | ~/.copilot/skills | .github/skills |
| OpenCode | opencode | ~/.config/opencode/skills | .opencode/skills |
| Antigravity | antigravity | ~/.gemini/config/skills | .agent/skills |
| Kiro | kiro | ~/.kiro/skills | .kiro/skills |
| Grok Build | grok | ~/.grok/skills | .grok/skills |
| Hermes Agent | hermes | ~/.hermes/skills | .hermes/skills |
| Pi | pi | ~/.pi/agent/skills | .pi/skills |
| Mistral Vibe | vibe | ~/.vibe/skills | .vibe/skills |
| Qoder | qoder | ~/.qoder/skills | .qoder/skills |
| Rovo Dev | rovo-dev | ~/.rovodev/skills | .rovodev/skills |
| Trae / Trae CN | trae, trae-cn | ~/.trae/skills, ~/.trae-cn/skills | .trae/skills, .trae-cn/skills |
Claude Code's folder follows CLAUDE_CONFIG_DIR when it's set. If Claude Code already has the looktap plugin, it's
skipped: the plugin carries the skill and updates with it, and a second copy would show Claude the skill twice.
--project writes .claude/skills and .agents/skills unless you name agents: between them, Claude Code, Codex,
Cursor, Gemini CLI, Copilot, OpenCode, Pi, Mistral Vibe, Antigravity and Grok Build all find it. Some agents need
skills switched on first (Cursor, Gemini CLI); Hermes asks you to trust a repo's skills once (hermes skills trust).
An agent without skills can read the guide from looktap skill, which prints it.
Already manage skills with npx skills? npx skills add lakpriya1s/looktap
finds the skill in this repo and installs it too. It copies the guide as it is, without the per-agent frontmatter or
the version that doctor checks, so looktap skill --install is the one to rerun after upgrading looktap.
An agent spends seconds per turn, so turns matter more than milliseconds. looktap is built to save them: in the benchmark the CLI needed 8 calls for a scenario that took other tools 9–27 on iOS, and 12 where they took 11–19 on Android.
--lson any action prints the screen once it has settled, so acting and looking take one turn instead of two:looktap tap @3 --ls looktap fill "Email" [email protected] --lswaitinstead of guessingsleeps. After an action that loads data,--lscan return a loading skeleton, so wait for the text you expect. For a launch,launch --until "<text>"does both in one call.runbatches steps you already know into one call and one process. It prints each step as$ <step>, stops at the first failure, and names it.--lsprints the screen it ended on:looktap run 'tap General; wait About; tap About' --ls looktap run - < steps.txt # one step per line, # for comments- A failure shows the screen. When a label or
@refisn't there, a label is ambiguous or anexpectdoesn't hold (in arunstep too), looktap prints the error and then the screen as it is, with fresh@refs. The next call can fix the step without anlsfirst. logs/crashesafter a step that misbehaved. Eachlogsshows only what's new since the last one.perf/launch --timewhen the question is speed or memory: numbers instead of impressions.perf --forwhile the screen does the thing being measured, andperf --framesbefore and after it.ls --jsonfor structured output:{screen, elements: [{ref, label, type, x, y, w, h, value}]}.shot --scale 0.5costs a quarter of the image tokens when the agent needs to see the screen (layout, colours, images). Usuallylsis enough and the PNG is never opened.- Hints when the screen isn't what it seems. When a passcode or permission prompt covers the app,
lsprints a hint rather than an empty list.
Claude Code plugin
In Claude Code, run:
/plugin install looktap --marketplace lakpriya1s/looktap
- What it adds:
- the looktap skill, which teaches Claude the look-act loop, how to pick targets, when to wait, when a screenshot is worth it, how to debug a crash, and the safety rules;
/looktap:setup, which gets the machine ready: it installs the CLI (asking first), runslooktap doctorand explains each fix, offers to boot a simulator or emulator, walks you through a real iPhone's one-time steps, and finishes with a workingls. Addios,androidoriphoneto set up just that.
- What it doesn't install: Xcode, the Android SDK and the Apple ID sign-in are yours to do;
/looktap:setuptells you exactly what's missing. - What it costs: about 150 tokens per session for the skill's description, and about 4.5k tokens each time Claude loads the skill.
- Staying current: every push to this repo is a new plugin version. Claude Code doesn't auto-update
third-party plugins unless you turn it on (
/plugin→ Marketplaces → looktap → Enable auto-update); otherwise run/plugin marketplace update looktapnow and then. - The CLI: the skill runs
looktapcommands. Install them withnpm install -g @looktap/cli, or the skill falls back tonpx @looktap/cli. - No MCP server inside, on purpose: with a shell, the CLI and the skill do the same job with fewer tokens, and
an MCP server would add its 16 tool definitions to every session. Add
@looktap/mcpseparately if you want it anyway.
MCP server, for clients without a shell
Agents with a shell (Claude Code, Codex, Cursor's agent, …) are best served by the CLI and the skill above.
For chat apps and other clients without a shell, such as Claude Desktop, looktap is also an MCP server,
published as @looktap/mcp and listed in the
MCP Registry as io.github.lakpriya1s/looktap. Nothing to install first:
{ "mcpServers": { "looktap": { "command": "npx", "args": ["-y", "@looktap/mcp"] } } }
If your client can't find npx (desktop apps start servers with a minimal PATH), install the CLI and let it
write the config with absolute paths:
looktap mcp --config # prints a ready-to-paste client config with absolute paths
{
"mcpServers": {
"looktap": {
"command": "/path/to/node",
"args": ["/path/to/looktap/bin/looktap.js", "mcp"],
"env": { "PATH": "/path/to/node/bin:/path/to/Android/sdk/platform-tools:/usr/bin:/bin" }
}
}
}
- Where to paste it:
- Claude Desktop:
~/Library/Application Support/Claude/claude_desktop_config.json - Cursor:
~/.cursor/mcp.json - Claude Code:
claude mcp add looktap -- npx -y @looktap/mcp(no install needed: it runs the latest version from npm). Or the absolute paths:claude mcp add looktap -- <node> <looktap.js> mcp
- Claude Desktop:
- Why absolute paths: desktop apps start servers with a minimal
PATH.looktapalso findsadbin the Android SDK by itself. - The tools:
ls,tap,tap_xy,long_press,fill,paste,code,type,key,hide_keyboard,swipe,scroll_to,back,homeandwait;screenshot, which returns the image itself;logsandcrashes;perf: CPU, memory and threads, or withframesthe frames and jank since the last call (for: seconds to sample);looktap, for any other command line (apps,perf,launch --time,boot…), or several separated by;.
- Actions return the settled screen unless
ls: false. That saves the agent a separatels, but each action then waits for the screen to stop moving, 0.7–1.9 s in the benchmark. Passls: falsewhen you don't need to see the result. - The device is remembered: name a
platform(ordevice) once when both an iPhone and an Android are booted. - Speed: the server keeps each device's helper connection open, so a warm
lscomes back in 40–70 ms.
Why a CLI first? Any agent with a shell can use it with no configuration, and its output is already as small as
it gets. In the benchmark the CLI beat the MCP server on both platforms, mostly because it doesn't wait for the screen
to settle unless asked (--ls).
Generated from README.md. Edit it there.