simulang-js CLAUDE.md

simulang-js CLAUDE.md is an instructions file for coding agents from simular-ai/simulang-js. It costs 1,562 tokens per session, scanned A, original, MIT.

Node.js bindings for a Rust automation library that controls desktop computers and Android devices through apps, windows, accessibility trees, mouse, keyboard, screenshots, clipboard, and models.

In plain words
What is it for?
Use it to automate desktop or Android tasks, inspect accessibility information, enter text, handle clipboard data, take screenshots, and access audio or AI models.
Why use it?
It lets one programming interface automate different machines and devices while exposing their visible controls and content.

Instructions file

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/simular-ai/simulang-js/claude-md
Clone the repo
git clone --depth 1 https://github.com/simular-ai/simulang-js

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for simulang-js CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/simular-ai/simulang-js/claude-md.svg)](https://agentmods.dev/instructions/simular-ai/simulang-js/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/simular-ai/simulang-js/claude-md"><img src="https://agentmods.dev/badge/instructions/simular-ai/simulang-js/claude-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 1,562 This file is loaded in full into every session.
When invoked 1,562 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.01562 $0.01562
Opus 5 $0.00781 $0.00781
Sonnet 5 $0.00312 $0.00312
Haiku 4.5 $0.00156 $0.00156

Measured 4d ago against content hash 1153326f7a43, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

simulang-js CLAUDE.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

CLAUDE.md · 126 lines

How it starts

The opening of the file, as written. The whole thing — 126 lines — stays where its author put it; the contents beside it link to each section on GitHub.

@simular-ai/simulang-js

Node.js bindings for the Rust simulang-rs crate (via napi-rs). Cross-platform automation of desktops and Android devices: apps, windows, accessibility trees, mouse/keyboard, screenshots, clipboard, audio, and VLM/LLM/STT model access.

This file ships in the npm tarball alongside index.d.ts and is versioned with it.

Where the API is documented

Read index.d.ts first — it is the source of truth. Every class, function, and enum is fully typed (~2100 lines) and carries JSDoc covering idioms, lifecycle rules, platform quirks, and inter-API trade-offs that types alone can't express. The JSDoc is generated from doc comments, so the per-symbol guidance there is authoritative — trust it over any restatement elsewhere.

Mental model

  • Machine is the entry point. Machine.local() is the desktop this process runs on; Machine.android(endpoint) is an Android device driven over adb from the host. Apps, windows, and accessibility nodes are obtained from a machine and stay bound to it; mouse, keyboard, and clipboard access are flat methods on the machine itself (moveMouse, typeText, getClipboardString, …). The same code drives any backend — write against Machine and the handles it returns, and only reach for machine.asAndroid() when an operation has no desktop counterpart.
  • Calls into the native module are synchronous. No Promises are returned; Result::Err on the Rust side is translated to a thrown JS exception by napi-rs, so JS callers try/catch as usual.
  • Many objects are handles to platform resources (windows, audio devices, accessibility trees, file/directory handles). Their lifetime matters; dropping them can free the underlying resource.
  • Coordinates live on the global desktop: top-left origin at (0, 0) on the primary monitor (on Android, the device screen), in OS-native units — the unit is not the same on every platform:
    • Windows / Linux / Android: physical pixels (raw hardware pixels).
    • macOS: logical points — on a 2× Retina display one point spans two hardware pixels, so a 1920×1080-logical screen is 1920×1080 here, not 3840×2160.

Read the full file on GitHub · 126 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 126 lines · 1,562 tokens per session scan A 1153326f7a43

Subscribe to this mod's changes

simulang-js CLAUDE.md is an instructions file published in the GitHub repository simular-ai/simulang-js (3 stars, last pushed 6d ago), licensed MIT. It adds 1,562 tokens to every session, about $0.0078 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.