Scan your whole stack
From OX Research Newsroom
Are you using agenttwin?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v0.3.38
agenttwin was last scanned on 23 Nov 2026 at version 0.3.38. Risk score 80 of 100 (high). High-severity rules fired.
| Version | Published | Status |
|---|---|---|
| 0.3.38 LATEST | 23 Nov 2026 | 1 rule fired |
| 0.3.37 | 23 Nov 2026 | 1 rule fired |
| 0.3.36 | 22 Nov 2026 | 1 rule fired |
| 0.3.35 | 22 Nov 2026 | Not shown |
| 0.3.34 | 21 Nov 2026 | Not shown |
Findings for v0.3.38. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
Code that spreads a package worm: it looks up every npm package its token's owner maintains and republishes them. In obfuscated code, or in a script an install hook runs, republishing paired with stealing CI publishing credentials or forging signed provenance counts as well. Legitimate release tools publish only the package a person runs them for.
HIGHThe score describes 0.3.38; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
AgentTwin finds the bugs your AI agent would cause in production, before it gets there. It runs your real code against digital twins of the services it calls (Stripe, Slack, HubSpot, OpenAI, Postgres and any other HTTP API), injects the failures that happen in real life (a lost reply, a 500, a slow response, a duplicate event), and shows you each bug with what it would cost, the line of code, and a fix it can prove. Nothing reaches your real services.
Run this in your project (JavaScript, TypeScript or Python; any Node.js version):
npx agenttwin
In about ten seconds it picks a workflow, runs it on twins, breaks it on purpose and prints what it found, for example "Your agent refunded ch_at_1001 twice: $26.00 paid out more than intended", with the exact code change that fixes it. Apply and prove the fix with npx agenttwin --fix.
npx agenttwin connects your repository to agenttwin.si.npx agenttwin mcp gives Claude Code, Cursor, Codex and others the same tools (find_and_fix, run history, team and more).npx agenttwin check install adds the AgentTwin check to pull requests.The rest of this page is the full reference.
npx agenttwin agents --hook
Writes the testing guide into AGENTS.md, CLAUDE.md and Cursor rules, registers the AgentTwin MCP server in .mcp.json and .cursor/mcp.json, adds an AgentTwin skill for Claude Code, and (with --hook) a git pre-push check. Only marked blocks are edited; running it again changes nothing. Commit the files so every teammate's agent gets the same setup.
Agents then call two MCP tools:
check_change: after editing code, tests the workflows the change touches (uncommitted edits included) against digital twins with production failures injected, and returns pass or fail with each problem's file, line, cost and fix. Same as npx agenttwin check --working-tree.find_and_fix: the full loop on one workflow, with a fix applied and proven on the same faults when applyFix is true.Works with any Node.js version. Run discovery from your project; npx installs the CLI automatically:
npx agenttwin
This command also works in non-JavaScript repositories: the project's language does not have to match the CLI's Node.js implementation. Discovery recognizes dependency and language clues across Node, Python, Go, Java, Ruby, PHP and .NET, with different coverage per ecosystem. Runnable worlds currently require bundled Node applications; discovery support alone does not establish execution support.
The Python entry point is being prepared in packages/python/ for uvx agenttwin. It is not published to PyPI yet. See that package's README for the source-install command and its Node.js prerequisite. It invokes the same versioned engine and uses the same repository/account flow, rather than implementing a second discovery service.
npx agenttwin scans your repository and saves the project map to .agenttwin/inventory.json. In a terminal it offers to sign in (once, through the browser) and uploads the map so the dashboard shows every service and workflow it found. Then it picks a workflow, runs it on twins, breaks it and shows what failed. Choose a workflow with --workflow <name>. npx agenttwin refresh updates discovery without executing application code. npx agenttwin sync --watch stays open to prepare tests you request from the dashboard. Seeded fault trials: npx agenttwin explore --file world.json.
Discovery writes the inventory, workflow candidates, agenttwin.config.json, ENVIRONMENT.md, REPLICATION.md, and an offline browser report. A discovered candidate is not an executable specification: the menu accepts a reviewed agenttwin.world.json with explicit bundled Node files, synthetic services, invocation and required outcomes. The optional demo is clearly labeled as synthetic. refresh --json --dry-run writes nothing. Sign-in is offered only in an interactive terminal; saved connections sync without another approval. CI and --yes runs never open a browser and upload only when a token is already configured.
Seeded exploration (npx agenttwin explore --file world.json [--seed S] [--trials N], then explore replay|verify|save --id ID) includes an unfaulted control and up to 31 timeout-after-write trials. A seed controls the selected service/path and delay, not OS scheduling or arbitrary application randomness. Each trial uses fresh service state. Captured application files, checks, fault cases and receipts stay under .agenttwin/explorations/. Replay uses the captured application; patch verification uses current application files with the captured checks and fault cases. Hash mismatches reject accidental snapshot edits. This is local evidence, not a tamper-proof security boundary; protected CI anchors saved regression checks in a trusted Git baseline. Unexercised fault targets and unsupported provider operations remain incomplete.
Installed packages and source references are clues, not proof that an integration is active. Credentials, environment keys and deployment configuration are kept separately. Unmatched .env entries do not require setup and are never turned into services by an interactive prompt.
Exclude unused integrations by name; your choices are remembered for this repository:
npx agenttwin refresh --exclude "Ollama,ClickHouse,AWS,Google Cloud"
npx agenttwin run --file path/to/agenttwin.world.json
npx agenttwin sync
Run from your original repository so receipts stay in its .agenttwin/runs/ directory. Local execution currently supports bundled Node workflows with HTTP collections and bounded Slack operations. It stages the listed files, passes only generated twin credentials, and records assertions, faults, events and Git metadata. It is a process on your computer, not a filesystem or network isolation boundary. PostgreSQL/Redis worlds require explicit cloud execution. Review recorded output and synthetic state before syncing.
Sign in with npx agenttwin login. For an operator-managed API, you can instead supply its URL and individual token:
export AGENTTWIN_API_URL=https://your-agenttwin-api.example.com
export AGENTTWIN_TOKEN=your_individual_token
npx agenttwin run --runtime hosted --file agenttwin-example/agenttwin.world.json
npx agenttwin run --runtime hosted --file agenttwin-example/agenttwin.world.json --fault timeout-after-write
npx agenttwin run --runtime hosted --file agenttwin-example/safe.world.json
The first run is clean and should pass. The second opts into --fault timeout-after-write and should fail: a write commits but its response is delayed, and an unsafe retry creates two tickets. The safe version reuses an idempotency key and passes. Both execute real application code against a custom ticket API and a bounded Slack adapter. Every run starts from fresh seeds and credentials, then deletes its sandbox. These are examples you can replace, not a refund-specific product.
run --fault none disables an active fault. --fault configured uses the existing active fault; a named faults preset (or the active fault type) opts into its declared target and parameters. Unknown selections fail before execution; AgentTwin never guesses a target. Presets alone inject nothing. For verify, pass the same --fault selection as the original run, or verify against the effective world.json saved beside the receipt. Replay uses that saved effective world automatically. Seed matrices also honor the selection.
run --json emits a receipt with source/spec hashes, application output, ordered service events, initial/final service state, assertions, fault activation, runner details and Git metadata when available. Evidence stays in .agenttwin/runs/. Exit codes: 0 passed; 1 failed/error; 2 incomplete/blocked; 3 invalid input. An unsupported adapter operation or an untriggered requested fault makes the run incomplete.
export E2B_API_KEY=your_key
npx agenttwin setup
npx agenttwin run --runtime e2b --file agenttwin-example/safe.world.json
setup builds a Node 22/PostgreSQL 15/Redis template on E2B and stores its nonsecret ID in ~/.agenttwin/runtime.json. E2B_TEMPLATE_ID overrides that ID. It creates no local Docker containers. Sandboxes are created only for runs. The runtime boundary permits adding another hosted provider later; only E2B is implemented today.
Edit a world JSON file, listing only the built application files to upload. Bundle npm dependencies before the run. Cloud sandboxes have no outbound internet and perform no npm install; local runs use the host network. command is an argv array starting with node; cloud apps run as uid 1000. A world file resolves its application files relative to its own directory. Optional workflowId links to a workflow in the current discovery inventory.
Use the generated AGENTTWIN_<SERVICE>_URL and AGENTTWIN_<SERVICE>_TOKEN values to configure your test clients. Production accounts, OAuth sessions, .env files and host credentials are not copied. Tokens and service state are fresh per run. Source files may contain hardcoded secrets; review the explicit upload list and bundle before uploading it.
Supported now (run npx agenttwin contracts for every operation and limit):
charge.refunded events are recorded, not pushed as webhooks.DATABASE_URL, SELECT assertions) and real Redis (string-key assertions).Every twin is a bounded subset, not a vendor clone. Unsupported operations return 501 and are never forwarded to a real service. There is no automatic cloning of arbitrary software, provider account provisioning, browser workflow runtime or automatic regression-code generation.
discover, decide, plan, status, inspect, grant, schema, export, report, and feedback remain available. --json sends results to stdout and logs to stderr. Discovery inspects files and bounded commands; remote reads require scoped grants. --probe explicitly requests provider reads. Local application observation and the legacy refund demo/trial/check/reset commands are retired in the public CLI; use run instead. Development unit tests still exercise adapter code locally.
The package includes dist/gateway.js. Deploy it on a server with Node 20 or newer, HTTPS ingress and persistent disk. See the repository's docs/HOSTED-RUNTIME.md for deployment, accounts, limits and operational boundaries. The gateway stores synced discovery and CLI results, serves chat, and can optionally dispatch cloud jobs. It starts without E2B credentials; cloud submissions then return a clear unavailable response. Applications submitted for cloud execution run in separate E2B sandboxes.
MIT license.
npx agenttwin --yes detects project dependencies, tooling and available connector configuration, then writes .agenttwin/dashboard/index.html. Open that file to review the detected environment without selecting every connector or uploading inventory. The dashboard includes its assets and an allowlisted discovery payload; account records, credential values and evidence paths are excluded. It starts with no saved run receipts. Detection does not verify provider access or implement an adapter.
The website starts empty and does not import this repository’s inventory automatically. Create an account on the website, connect your terminal with npx agenttwin login, and run npx agenttwin sync, or import discovery JSON manually. Removed detected resources stay excluded until a fresh discovery revision. The generated project dashboard loads its own embedded discovery.
After init, select a candidate from .agenttwin/inventory.json or the dashboard's Workflows view. Write preparation.json beside your application files:
{
"schema": "agenttwin/preparation-v1",
"workflowId": "YOUR_DISCOVERED_WORKFLOW_ID",
"world": {
"schema": "agenttwin/world-v1",
"name": "notification",
"files": ["workflow.mjs"],
"command": ["node", "workflow.mjs"],
"timeoutSeconds": 20,
"services": [{"name":"slack","adapter":"slack","collections":[{"path":"/messages","seed":[]},{"path":"/channels","seed":[{"id":"C_TEST","name":"test"}]}]}],
"assertions": [{"service":"slack","path":"/messages","count":1}]
},
"mappings": [{"toolId":"YOUR_DISCOVERED_SLACK_TOOL_ID","service":"slack","contract":"slack","operations":["chat.postMessage"],"reviewed":true}]
}
Use your actual discovered IDs and include every operation recorded for the candidate. Configure code to use the generated AGENTTWIN_SLACK_URL and AGENTTWIN_SLACK_TOKEN; an SDK needs its base URL overridden. The runtime does not install dependencies or transpile source: include a built, self-contained Node entrypoint and every required application file. Preparation never executes your code.
npx agenttwin prepare --file preparation.json --out .agenttwin/prepared/notification
npx agenttwin run --file .agenttwin/prepared/notification/agenttwin.world.json
The output contains your unchanged source, a world spec, a SHA-256 manifest, and agenttwin.bundle.json. In Workflows, connect with an individual API token through Settings, choose that bundle, review the upload and execute. Runs lists jobs for refresh, cancellation and inspection. Tokens stay in page memory. Discovery imports remain in the browser; executing uploads the explicit bundle to the API.
Supported mapping contracts: bounded Slack operations, PostgreSQL, Redis and custom JSON collections (GET /path / POST /path). Preparation rejects missing/unreviewed mappings and unsupported vendor SDK operations. Discovery and mappings remain user-reviewed declarations, not proof that every operation or dependency in arbitrary source was discovered. Hosted execution checks the declared assertions.
Interactive npx agenttwin checks the official npm registry on startup and automatically installs and runs a newer stable release in the same repository. Offline startup continues with an explicit warning. Updates do not run in CI, noninteractive/JSON mode, dry runs, or advanced automation commands. Set AGENTTWIN_AUTO_UPDATE=0 to retain an installed release; checkouts ahead of the published release are never downgraded.
Older releases without this updater cannot update themselves. After the new release is published, bootstrap once with npx --yes agenttwin@latest; normal guided use remains npx agenttwin. npm can otherwise resolve a local or cached older package.
Run npx agenttwin inside your repository (any Node.js version). It offers sign-in, uploads the project map to your dashboard and tests a workflow. It does not launch a coding agent. Coding agents can use .agenttwin/AGENT-TASK.md. To give Claude Code or Cursor the local MCP tools and skills in one install, add the AgentTwin plugin (/plugin marketplace add AgentTwin/agenttwin-agent-tools in Claude Code).
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.