Scan your whole stack
Are you using @bastani/atomic-codemode?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v0.10.13-alpha.1
@bastani/atomic-codemode was last scanned on 27 Nov 2026 at version 0.10.13-alpha.1. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 0.10.13-alpha.1 LATEST | 27 Nov 2026 | No rules fired |
| 0.10.12 | 27 Nov 2026 | No rules fired |
| 0.10.12-alpha.1 | 27 Nov 2026 | No rules fired |
| 0.10.11 | 27 Nov 2026 | Not shown |
| 0.10.11-alpha.4 | 27 Nov 2026 | Not shown |
Findings for v0.10.13-alpha.1. 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.
The score describes 0.10.13-alpha.1; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
@bastani/atomic-codemode runs model-written JavaScript inside a QuickJS WebAssembly sandbox. Scripts call only the tools you inject, so intermediate tool calls stay out of the model's context while the script's output and return value come back cleanly. Atomic uses it for its built-in codemode tool, and the package supports Node.js, Bun, and Cloudflare Workers.
Atomic runs on this package and publishes it with every release at the same version.
npm install @bastani/atomic-codemode
Inside an Atomic extension, you can import it without installing it because the running Atomic process provides it. See Libraries.
Sandboxed scripts have access to tools (your injected tool functions), text() and image() (for structured output), store() and load() (for passing values between steps), exit(), and ALL_TOOLS:
import { readFile } from "node:fs/promises";
import { CodemodeSandbox } from "@bastani/atomic-codemode";
const sandbox = new CodemodeSandbox({
timeoutMs: 60_000,
tools: [
{
name: "read",
execute: async (args, { signal }) => {
const { path } = args as { path: string };
return await readFile(path, { encoding: "utf8", signal });
},
},
],
});
const result = await sandbox.execute(`
const source = await tools.read({ path: "package.json" });
text("bytes " + source.length);
return JSON.parse(source).name;
`);
console.log(result.output); // [{ type: "text", text: "bytes 1234" }]
if (result.ok) console.log(result.value); // "@bastani/atomic-codemode"
else console.error(result.error.kind, result.error.message);
await sandbox.close();
@bastani/atomic-codemode: CodemodeSandbox for Node.js and Bun (runs QuickJS in a worker thread).@bastani/atomic-codemode/portable: RemoteCodemodeSandbox, InlineCodemodeSandbox, and runtime-neutral helpers without Node.js worker threads.@bastani/atomic-codemode/cloudflare: Durable Object sandbox bindings for Cloudflare Workers.@bastani/atomic-codemode/declarations: TypeScript declaration generation for injected tool catalogs.@bastani/atomic-codemode/source: Source-analysis helpers for inspecting model-written scripts.@bastani/atomic-codemode/node-options and @bastani/atomic-codemode/worker: Worker-thread launch options and worker entrypoint.The full guide and API reference are in Atomic's docs: @bastani/atomic-codemode.
MIT. See LICENSE.
Derived from pi by Mario Zechner and Earendil Works; see NOTICE.md.
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.