Fast mobile-simulator computer-use.
sim-use observes and acts on iOS / Android simulators. TypeSafe Jev chooses the next action from a bounded candidate list.
Same architecture as Cua jev-use — observe → build candidates in code → Jev Choice over IDs → execute — but the driver is sim-use, not Cua Driver.
flowchart LR
A[Goal] --> B[sim-use ui --json]
B --> C[Build candidates<br/>tap @N / scroll / wait / done]
C --> D[TypeSafe Jev<br/>Choice over IDs]
D --> E[sim-use tap / gesture]
E --> B
Traditional computer-use asks a large LLM to generate the next click. That is slow, expensive, and hard to verify.
jev-sim keeps code in control:
- sim-use returns a compact accessibility outline +
@Naliases. - jev-sim deterministically turns entries into candidates
{id, kind, selector, label}. - Jev (
jev-latest) answers a typed Choice over those IDs (+done/scroll-up/scroll-down/wait). - sim-use executes
tap @Nor a gesture; we re-observe and log latency + confidence.
brew tap lycorp-jp/tap
brew install lycorp-jp/tap/sim-use
# Homebrew 6.0.5+: brew trust lycorp-jp/tap # if needed
sim-use --version
sim-use devicespip install -e ".[dev]"
# or from GitHub once published:
# pip install git+https://github.com/Aben25/jev-sim.gitcp .env.example .env
# edit .env — set TYPESAFE_API_KEY=...
export TYPESAFE_API_KEY=... # never commit thisjev-sim doctor # sim-use on PATH? key present? devices?
jev-sim dry-run "Open General" --ui-file tests/fixtures/ui_settings.json --list-only
jev-sim dry-run "Open General" --ui-file tests/fixtures/ui_settings.json
jev-sim step "Open General settings" --device "$UDID"
jev-sim loop "Enable Dark Mode" --device "$UDID" --max-steps 15
jev-sim step "…" --dry-run # decide only# Boot an iOS Simulator (or Android emulator), then:
export TYPESAFE_API_KEY=… # from https://typesafe.ai
export UDID=$(sim-use devices --json | …) # or copy from `sim-use devices`
jev-sim doctor
jev-sim step "Open Settings → General" --device "$UDID"
jev-sim loop "Turn on Dark Mode" --device "$UDID" --max-steps 20 -vEach step logs something like:
choice=@9 conf=0.910 observe=320ms decide=45ms exec=80ms total=450ms [exec]
| Layer | Cua jev-use | jev-sim |
|---|---|---|
| Observe / act | Cua Driver (macOS / Windows / Linux desktop) | sim-use (iOS Simulator + Android) |
| Candidates | Deterministic from AX / DOM / perception | Deterministic from sim-use ui --json entries |
| Decision | TypeSafe Jev Choice over IDs | Same — POST /v1/systemone model jev-latest |
| Meta actions | done / scroll / wait (etc.) | done, scroll-up, scroll-down, wait |
jev-sim does not vendor or clone sim-use source; it shells out to the CLI only.
from jev_sim import run_step, build_candidates
from jev_sim.sim_use import SimUseClient
from jev_sim.typesafe import TypeSafeClient
result = run_step(
"Open General",
sim=SimUseClient(device=udid),
jev=TypeSafeClient(), # reads TYPESAFE_API_KEY
)
print(result.summary_line())pip install -e ".[dev]"
pytest # offline unit tests (mocked HTTP + fixture UI)
pytest -m integration # optional live TypeSafe / sim-use (needs key + binary)See skills/jev-sim/SKILL.md for Claude Code / Codex / Cursor agents.
MIT — see LICENSE.
Suggested GitHub repo: Aben25/jev-sim