Skip to content

100x is a skill by a former Cursor engineer that turns prompts into formally verified, production-ready code

Pin what 100x downloads, and take approval-skipping flags out of the docs

Dead Internet80f0d9474650
diff --git a/README.md b/README.md
index ba33d23..eb0d442 100644
--- a/README.md
+++ b/README.md
@@ -10,7 +10,7 @@
### No more "almost works" agentic coding
[![ci](https://github.com/DeadInternetStudios/100x-engineer-skill/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/DeadInternetStudios/100x-engineer-skill/actions/workflows/ci.yml)
-[![release: 0.1.0](docs/img/badges/release.svg)](https://github.com/DeadInternetStudios/100x-engineer-skill/releases)
+[![release: 0.1.1](docs/img/badges/release.svg)](https://github.com/DeadInternetStudios/100x-engineer-skill/releases)
[![node: ≥ 22](docs/img/badges/node.svg)](https://nodejs.org/)
[![license: MIT](docs/img/badges/license.svg)](LICENSE)
![status: beta](docs/img/badges/status.svg)
@@ -313,24 +313,31 @@ You need Claude Code, Cursor or Codex, and Node.js 22 or newer.
**1. Install the tool and the skills**
+The tool comes from a release pinned to one version, and you check its checksum before anything runs. The checksum, and the commands for Windows, are in [docs/install.md](docs/install.md#install-a-pinned-release).
+
Choose one:
**npm**
```bash
-npm install -g github:DeadInternetStudios/100x-engineer-skill
+curl -fsSLO https://github.com/DeadInternetStudios/100x-engineer-skill/releases/download/v0.1.1/100x-engineer-skill-0.1.1.tgz
+shasum -a 256 100x-engineer-skill-0.1.1.tgz
+npm install -g ./100x-engineer-skill-0.1.1.tgz
100x install
```
+The `shasum` line must print the checksum in [docs/install.md](docs/install.md#install-a-pinned-release). If it prints another, stop.
+
**skills.sh**
+Run the first three lines above, check the checksum the same way, then:
+
```bash
-npm install -g github:DeadInternetStudios/100x-engineer-skill
npx skills add DeadInternetStudios/100x-engineer-skill --skill '*' -g
100x install
```
-The `skills` tool copies the skills only, so the `100x` tool still comes from npm. `100x install` then sees the copies and leaves them alone. Update them with `npx skills update -g`.
+The `skills` tool copies the skills only, so the `100x` tool still comes from the release. `100x install` then sees the copies and leaves them alone. Update them with `npx skills update -g`.
**2. Set up, in your agent**
diff --git a/docs/img/badges/release.svg b/docs/img/badges/release.svg
index 5462197..982c66b 100644
--- a/docs/img/badges/release.svg
+++ b/docs/img/badges/release.svg
@@ -1 +1 @@
-<svg xmlns="http://www.w3.org/2000/svg" width="88" height="20" role="img" aria-label="release: 0.1.0"><title>release: 0.1.0</title><g shape-rendering="crispEdges"><rect width="49" height="20" fill="#555"/><rect x="49" width="39" height="20" fill="#ffb000"/></g><g fill="#fff" text-anchor="middle" font-family="Verdana,Geneva,DejaVu Sans,sans-serif" text-rendering="geometricPrecision" font-size="110"><text x="255" y="140" textLength="390" transform="scale(.1)">release</text><text x="675" y="140" textLength="290" transform="scale(.1)" fill="#333">0.1.0</text></g></svg>
\ No newline at end of file
+<svg xmlns="http://www.w3.org/2000/svg" width="88" height="20" role="img" aria-label="release: 0.1.1"><title>release: 0.1.1</title><g shape-rendering="crispEdges"><rect width="49" height="20" fill="#555"/><rect x="49" width="39" height="20" fill="#ffb000"/></g><g fill="#fff" text-anchor="middle" font-family="Verdana,Geneva,DejaVu Sans,sans-serif" text-rendering="geometricPrecision" font-size="110"><text x="255" y="140" textLength="390" transform="scale(.1)">release</text><text x="675" y="140" textLength="290" transform="scale(.1)" fill="#333">0.1.1</text></g></svg>
\ No newline at end of file
diff --git a/lib/commands/browsers.mjs b/lib/commands/browsers.mjs
index c8afd2f..5c0e344 100644
--- a/lib/commands/browsers.mjs
+++ b/lib/commands/browsers.mjs
@@ -5,11 +5,13 @@ import { CliError } from '../errors.mjs';
import { globalDir } from '../paths.mjs';
import { runProgram } from '../proc.mjs';
import { chromiumBuilds, resolvePlaywright } from '../playwright.mjs';
+import { PINS, pinned, verifyPinned } from '../pins.mjs';
const usage = `
100x browsers [--check]
-Installs Playwright and Chromium into ~/.100x when nothing on this machine provides them.
+Installs Playwright and Chromium into ~/.100x when nothing on this machine provides them. Playwright is pinned to one version and the SHA-512 hash of its package,
+and Chromium is the build that version names. A package whose hash differs is removed and nothing runs.
Does nothing when 100x shots can already find a browser. --check only reports, exit code 1 when missing.
Run it in the foreground and let it finish. A download left in the background dies when its shell call returns.
The installers' progress lines are kept and shown only when one of them fails.
@@ -40,9 +42,10 @@ export default {
return undefined;
}
fs.mkdirSync(globalDir(), { recursive: true });
- console.log(`Installing Playwright into ${globalDir()}. This takes a minute or two, and the output is kept unless it fails.`);
- install('Installing Playwright', 'npm', ['install', '--prefix', globalDir(), '--no-audit', '--no-fund', 'playwright']);
- console.log('Installing Chromium. The download is large.');
+ console.log(`Installing Playwright ${PINS.playwright.version} into ${globalDir()}. This takes a minute or two, and the output is kept unless it fails.`);
+ install('Installing Playwright', 'npm', ['install', '--prefix', globalDir(), '--no-audit', '--no-fund', '--save-exact', pinned('playwright'), pinned('playwright-core')]);
+ verifyPinned(globalDir(), ['playwright', 'playwright-core']);
+ console.log(`Installing the Chromium build that Playwright ${PINS.playwright.version} names. The download is large.`);
install('Installing Chromium', path.join(globalDir(), 'node_modules', '.bin', process.platform === 'win32' ? 'playwright.cmd' : 'playwright'), ['install', 'chromium']);
console.log('installed Playwright and Chromium into', globalDir());
return undefined;
diff --git a/lib/commands/helper.mjs b/lib/commands/helper.mjs
index 1313f89..d232f95 100644
--- a/lib/commands/helper.mjs
+++ b/lib/commands/helper.mjs
@@ -6,6 +6,7 @@ import * as cfg from '../config.mjs';
import { chooseModel, describeModel, modelWords, refuseOutsideLock, requireSdk, resolveSdk, runHelper, SDK_PACKAGE, SDK_VERSION, sdkFailure } from '../cursor-sdk.mjs';
import { globalDir } from '../paths.mjs';
import { findProjectRoot } from '../paths.mjs';
+import { pinned, verifyPinned } from '../pins.mjs';
import { writeReceipt } from '../receipt.mjs';
import { refuseWhenSolo } from '../solo.mjs';
import { recordHelper, refuseWhenSpent, spendLine } from '../spend.mjs';
@@ -165,8 +166,9 @@ export default {
if (there) return console.log(`already available, ${SDK_PACKAGE} ${there.version}${there.version === SDK_VERSION ? '' : `, not the ${SDK_VERSION} this was tested with`}.`);
fs.mkdirSync(globalDir(), { recursive: true });
console.log(`Installing ${SDK_PACKAGE}@${SDK_VERSION} into ${globalDir()}.`);
- install(`Installing ${SDK_PACKAGE}`, 'npm', ['install', '--prefix', globalDir(), '--no-audit', '--no-fund', '--save-exact', `${SDK_PACKAGE}@${SDK_VERSION}`]);
- console.log(`installed ${SDK_PACKAGE}@${SDK_VERSION} into ${globalDir()}. Run \`100x helper login\` next.`);
+ install(`Installing ${SDK_PACKAGE}`, 'npm', ['install', '--prefix', globalDir(), '--no-audit', '--no-fund', '--save-exact', pinned(SDK_PACKAGE)]);
+ verifyPinned(globalDir(), [SDK_PACKAGE]);
+ console.log(`installed ${SDK_PACKAGE}@${SDK_VERSION} into ${globalDir()}, and its hash matches the one pinned in 100x. Run \`100x helper login\` next.`);
return undefined;
}
if (action === 'login') return login(values);
diff --git a/lib/cursor-sdk.mjs b/lib/cursor-sdk.mjs
index b28f7bc..2d38c98 100644
--- a/lib/cursor-sdk.mjs
+++ b/lib/cursor-sdk.mjs
@@ -4,10 +4,11 @@ import { createRequire } from 'node:module';
import { CliError } from './errors.mjs';
import { parseOnly, selectionKey } from './helper-lock.mjs';
import { globalDir } from './paths.mjs';
+import { PINS } from './pins.mjs';
export const SDK_PACKAGE = '@cursor/sdk';
-// The version this code was tested against, and the one `100x helper setup` installs. A run prints the version it used.
-export const SDK_VERSION = '1.4.2';
+// The version this code was tested against, and the one `100x helper setup` installs, checked against its pinned hash. A run prints the version it used.
+export const SDK_VERSION = PINS[SDK_PACKAGE].version;
export const SDK_HINT = `Run \`100x helper setup\` once. It installs @cursor/sdk@${SDK_VERSION} into ~/.100x.`;
export const LOGIN_HINT = 'Run `100x helper login` once to approve this machine in the browser, or set CURSOR_API_KEY.';
diff --git a/lib/pins.mjs b/lib/pins.mjs
new file mode 100644
index 0000000..43bdb48
--- /dev/null
+++ b/lib/pins.mjs
@@ -0,0 +1,43 @@
+import fs from 'node:fs';
+import path from 'node:path';
+import { CliError } from './errors.mjs';
+
+// Everything 100x downloads and runs on a machine other than its own code: an exact version, and the SHA-512 integrity hash of that version's tarball as npm
+// publishes it. The hashes were checked against the downloaded tarballs, not only against the registry's own record. A new version is a change to this file.
+// Playwright pins playwright-core to its own version, and playwright-core names the Chromium build, so the browser follows the pin. Neither package has an install
+// script. @cursor/sdk has none either, and its own dependencies are the ranges it publishes, checked by npm against the registry.
+export const PINS = Object.freeze({
+ '@cursor/sdk': { version: '1.4.2', integrity: 'sha512-IMeIZtLvVX5w6rOS34bfBQt2b/WsMm+6lLU6vdlia0E6RuuXup+aVXyJrzvVAfnI7pK8bPPc7Gx1dvxy7ci+1Q==' },
+ playwright: { version: '1.65.1', integrity: 'sha512-vJ1FuoOrNwOKHUIVEvSt3jT1L+wjjDpwhwIstKtfvTh8XIG4FG4bIFuvNdMxi81LGfAhUgUZleVFaOLY4RIUUw==' },
+ 'playwright-core': { version: '1.65.1', integrity: 'sha512-hqPpz7blSMPxWVdoeE1yiBSzXsKiVOd2k+kjCvmUywD2GPO2Dd9HfcWnq9NN0GHbNZDFgZ9JfBFr+X5/BLo0qw==' },
+});
+
+// The argument for `npm install`: the package at its pinned version.
+export const pinned = (name) => `${name}@${PINS[name].version}`;
+
+const folderOf = (prefix, name) => path.join(prefix, 'node_modules', ...name.split('/'));
+
+const readJson = (file) => {
+ try {
+ return JSON.parse(fs.readFileSync(file, 'utf8'));
+ } catch {
+ return null;
+ }
+};
+
+// After `npm install --prefix <prefix>`, npm's own record of what it put in node_modules names each package's version and integrity hash. Every name given must be
+// there with the pinned version and hash, in every record npm kept for it (a home folder behind a symbolic link makes npm write the same package under a longer key),
+// and the folder on disk must say the pinned version. When one does not, nothing the install wrote for these names stays, so a package that does not match is never
+// loaded, and the error says which one. A missing record fails too: the check does not pass on silence.
+export function verifyPinned(prefix, names) {
+ const packages = readJson(path.join(prefix, 'node_modules', '.package-lock.json'))?.packages ?? {};
+ for (const name of names) {
+ const pin = PINS[name];
+ const records = Object.entries(packages).filter(([key]) => key === `node_modules/${name}` || key.endsWith(`/node_modules/${name}`)).map(([, record]) => record);
+ const onDisk = readJson(path.join(folderOf(prefix, name), 'package.json'));
+ if (records.length && records.every((r) => r.version === pin.version && r.integrity === pin.integrity) && onDisk?.version === pin.version) continue;
+ for (const gone of names) fs.rmSync(folderOf(prefix, gone), { recursive: true, force: true });
+ const saw = records.length ? records.map((r) => `version ${r.version} with hash ${r.integrity ?? 'none'}`).join(' and ') : 'no record of it';
+ throw new CliError(`${name} does not match what 100x pins (${pin.version}, ${pin.integrity}). npm wrote ${saw}${onDisk?.version === pin.version ? '' : `, and the folder says ${onDisk?.version ?? 'nothing'}`}. It was removed, and nothing was run.`);
+ }
+}
diff --git a/lib/playwright.mjs b/lib/playwright.mjs
index 2922821..a2c3d37 100644
--- a/lib/playwright.mjs
+++ b/lib/playwright.mjs
@@ -3,6 +3,7 @@ import os from 'node:os';
import path from 'node:path';
import { createRequire } from 'node:module';
import { globalDir } from './paths.mjs';
+import { PINS } from './pins.mjs';
function candidateBases(cwd) {
const bases = [];
@@ -42,4 +43,4 @@ export function chromiumBuilds() {
}
}
-export const INSTALL_HINT = 'Run `100x browsers` once. It installs Playwright and Chromium into ~/.100x.';
+export const INSTALL_HINT = `Run \`100x browsers\` once. It installs Playwright ${PINS.playwright.version}, checked against its pinned hash, and the Chromium build that version names into ~/.100x.`;
diff --git a/package.json b/package.json
index 90d43a5..f4f2b35 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "100x-engineer-skill",
- "version": "0.1.0",
+ "version": "0.1.1",
"description": "100x is a skill by a former Cursor engineer that turns prompts into formally verified, production-ready code",
"private": true,
"type": "module",
diff --git a/plugins/100x/.claude-plugin/plugin.json b/plugins/100x/.claude-plugin/plugin.json
index b4419b4..c55aab6 100644
--- a/plugins/100x/.claude-plugin/plugin.json
+++ b/plugins/100x/.claude-plugin/plugin.json
@@ -2,7 +2,7 @@
"name": "100x-engineer",
"displayName": "100x Engineer",
"icon": "./assets/icon.png",
- "version": "0.1.0",
+ "version": "0.1.1",
"description": "Runs one brief from plan to a reviewed, screenshot-proven prototype with a report: build, polish, a check on the one thing that must not break, and rounds of review by a second model. Needs the separate 100x command line tool.",
"author": {
"name": "Dead Internet Studios",
diff --git a/plugins/100x/README.md b/plugins/100x/README.md
index c804684..afabe77 100644
--- a/plugins/100x/README.md
+++ b/plugins/100x/README.md
@@ -59,7 +59,7 @@ Only these reach the network, and only when you ask for them:
- A run deploys a **preview** when your project already has a deploy setup (Vercel, Netlify, Cloudflare Pages, Firebase or Fly). It uses the login that is already on your machine and never the production flag, unless your brief says "deploy to production" in words. It does not create accounts or paste tokens.
- On Cursor only, `100x helper setup`, `login` and `run` install `@cursor/sdk` from npm and start helpers on your own Cursor account. You sign in once in the browser, or set `CURSOR_API_KEY` yourself. 100x never prints the key. The helper's task and what it reads go to Cursor. Claude Code users never need these.
-One setting is off until you turn it on. `review.command` lets you start the judge as a shell command, set only in your global config, and only when you ask for it. The example for Claude in `skills/100x/references/apps.md` runs `claude -p` with `--permission-mode bypassPermissions`, so the judge can work unattended. The plugin never writes that setting itself, and it never changes Claude's permission settings.
+One setting is off until you turn it on. `review.command` lets you start the judge as a shell command, set only in your global config, and only when you ask for it. The example for Claude in `skills/100x/references/apps.md` runs `claude -p` with an allow rule (`--allowedTools`) that names what the judge may do: read the project, edit files under `.100x/`, run `100x`, run a few read-only `git` commands, and run `npm run` and `npm test`. Claude refuses everything else. No example starts an app with its approvals off. The plugin never writes that setting itself, and it never changes Claude's permission settings.
The `100x` tool has no analytics and no server of its own.
diff --git a/plugins/100x/skills/100x-adhd/SKILL.md b/plugins/100x/skills/100x-adhd/SKILL.md
index 178da39..e5a343c 100644
--- a/plugins/100x/skills/100x-adhd/SKILL.md
+++ b/plugins/100x/skills/100x-adhd/SKILL.md
@@ -5,7 +5,7 @@ license: MIT
compatibility: "Needs the 100x command line tool on PATH (Node 22 or newer, and git) and the other skills of the 100x suite that this one names. Install the tool as the repository README says. Browser checks use Playwright, which `100x browsers` installs."
metadata:
author: "DeadInternetStudios"
- version: "0.1.0"
+ version: "0.1.1"
repository: "https://github.com/DeadInternetStudios/100x-engineer-skill"
---
diff --git a/plugins/100x/skills/100x-bakeoff/SKILL.md b/plugins/100x/skills/100x-bakeoff/SKILL.md
index 702a69c..7833b45 100644
--- a/plugins/100x/skills/100x-bakeoff/SKILL.md
+++ b/plugins/100x/skills/100x-bakeoff/SKILL.md
@@ -5,7 +5,7 @@ license: MIT
compatibility: "Needs the 100x command line tool on PATH (Node 22 or newer, and git) and the other skills of the 100x suite that this one names. Install the tool as the repository README says. Browser checks use Playwright, which `100x browsers` installs."
metadata:
author: "DeadInternetStudios"
- version: "0.1.0"
+ version: "0.1.1"
repository: "https://github.com/DeadInternetStudios/100x-engineer-skill"
---
diff --git a/plugins/100x/skills/100x-continue/SKILL.md b/plugins/100x/skills/100x-continue/SKILL.md
index c80b963..c0675b8 100644
--- a/plugins/100x/skills/100x-continue/SKILL.md
+++ b/plugins/100x/skills/100x-continue/SKILL.md
@@ -5,7 +5,7 @@ license: MIT
compatibility: "Needs the 100x command line tool on PATH (Node 22 or newer, and git) and the other skills of the 100x suite that this one names. Install the tool as the repository README says. Browser checks use Playwright, which `100x browsers` installs."
metadata:
author: "DeadInternetStudios"
- version: "0.1.0"
+ version: "0.1.1"
repository: "https://github.com/DeadInternetStudios/100x-engineer-skill"
---
diff --git a/plugins/100x/skills/100x-grind/SKILL.md b/plugins/100x/skills/100x-grind/SKILL.md
index f6166e9..8b68e15 100644
--- a/plugins/100x/skills/100x-grind/SKILL.md
+++ b/plugins/100x/skills/100x-grind/SKILL.md
@@ -5,7 +5,7 @@ license: MIT
compatibility: "Needs the 100x command line tool on PATH (Node 22 or newer, and git) and the other skills of the 100x suite that this one names. Install the tool as the repository README says. Browser checks use Playwright, which `100x browsers` installs."
metadata:
author: "DeadInternetStudios"
- version: "0.1.0"
+ version: "0.1.1"
repository: "https://github.com/DeadInternetStudios/100x-engineer-skill"
---
diff --git a/plugins/100x/skills/100x-judge/SKILL.md b/plugins/100x/skills/100x-judge/SKILL.md
index 0f2bfd1..ab244e9 100644
--- a/plugins/100x/skills/100x-judge/SKILL.md
+++ b/plugins/100x/skills/100x-judge/SKILL.md
@@ -5,7 +5,7 @@ license: MIT
compatibility: "Needs the 100x command line tool on PATH (Node 22 or newer, and git) and the other skills of the 100x suite that this one names. Install the tool as the repository README says. Browser checks use Playwright, which `100x browsers` installs."
metadata:
author: "DeadInternetStudios"
- version: "0.1.0"
+ version: "0.1.1"
repository: "https://github.com/DeadInternetStudios/100x-engineer-skill"
---
diff --git a/plugins/100x/skills/100x-mockup/SKILL.md b/plugins/100x/skills/100x-mockup/SKILL.md
index 0eccbb8..55fd331 100644
--- a/plugins/100x/skills/100x-mockup/SKILL.md
+++ b/plugins/100x/skills/100x-mockup/SKILL.md
@@ -5,7 +5,7 @@ license: MIT
compatibility: "Needs the 100x command line tool on PATH (Node 22 or newer, and git) and the other skills of the 100x suite that this one names. Install the tool as the repository README says. Browser checks use Playwright, which `100x browsers` installs."
metadata:
author: "DeadInternetStudios"
- version: "0.1.0"
+ version: "0.1.1"
repository: "https://github.com/DeadInternetStudios/100x-engineer-skill"
---
diff --git a/plugins/100x/skills/100x-overnight/SKILL.md b/plugins/100x/skills/100x-overnight/SKILL.md
index f93c39e..c095342 100644
--- a/plugins/100x/skills/100x-overnight/SKILL.md
+++ b/plugins/100x/skills/100x-overnight/SKILL.md
@@ -5,7 +5,7 @@ license: MIT
compatibility: "Needs the 100x command line tool on PATH (Node 22 or newer, and git) and the other skills of the 100x suite that this one names. Install the tool as the repository README says. Browser checks use Playwright, which `100x browsers` installs."
metadata:
author: "DeadInternetStudios"
- version: "0.1.0"
+ version: "0.1.1"
repository: "https://github.com/DeadInternetStudios/100x-engineer-skill"
---
diff --git a/plugins/100x/skills/100x-report/SKILL.md b/plugins/100x/skills/100x-report/SKILL.md
index 9bb5e07..20d7ad5 100644
--- a/plugins/100x/skills/100x-report/SKILL.md
+++ b/plugins/100x/skills/100x-report/SKILL.md
@@ -5,7 +5,7 @@ license: MIT
compatibility: "Needs the 100x command line tool on PATH (Node 22 or newer, and git) and the other skills of the 100x suite that this one names. Install the tool as the repository README says. Browser checks use Playwright, which `100x browsers` installs."
metadata:
author: "DeadInternetStudios"
- version: "0.1.0"
+ version: "0.1.1"
repository: "https://github.com/DeadInternetStudios/100x-engineer-skill"
---
diff --git a/plugins/100x/skills/100x-setup/SKILL.md b/plugins/100x/skills/100x-setup/SKILL.md
index dd4bc91..40745b3 100644
--- a/plugins/100x/skills/100x-setup/SKILL.md
+++ b/plugins/100x/skills/100x-setup/SKILL.md
@@ -5,7 +5,7 @@ license: MIT
compatibility: "Needs the 100x command line tool on PATH (Node 22 or newer, and git) and the other skills of the 100x suite that this one names. Install the tool as the repository README says. Browser checks use Playwright, which `100x browsers` installs."
metadata:
author: "DeadInternetStudios"
- version: "0.1.0"
+ version: "0.1.1"
repository: "https://github.com/DeadInternetStudios/100x-engineer-skill"
---
@@ -88,7 +88,7 @@ Shortest possible. One idea per line, no paragraphs, no preamble. Use the phrase
## Where the answers are used
-`100x review-call` says how the judge starts and `100x review-run` starts a command judge. The backup runs when the first cannot start. A command judge runs unattended with the approval prompts off, so set one only when the owner asks for it, and say so in one line when you do. Quick jobs (`100x-mockup` and `100x-wrapup`) run in the thread and only compare it with the quick model, in one line. Overnight children start with the app's subagent tool (in Cursor `100x helper run`), and you pass `target` from `100x config target overnight`. An empty target means the child follows the thread, except where `helper.only` is set: then the target is the locked selection. The builder line is never sent anywhere. Stage 0 compares it with the thread and tells the owner in one line when they differ.
+`100x review-call` says how the judge starts and `100x review-run` starts a command judge. The backup runs when the first cannot start. A command judge runs unattended under an allow rule that names the commands it may run, so set one only when the owner asks for it, and say so in one line when you do. Quick jobs (`100x-mockup` and `100x-wrapup`) run in the thread and only compare it with the quick model, in one line. Overnight children start with the app's subagent tool (in Cursor `100x helper run`), and you pass `target` from `100x config target overnight`. An empty target means the child follows the thread, except where `helper.only` is set: then the target is the locked selection. The builder line is never sent anywhere. Stage 0 compares it with the thread and tells the owner in one line when they differ.
## Examples
diff --git a/plugins/100x/skills/100x-solo/SKILL.md b/plugins/100x/skills/100x-solo/SKILL.md
index 9ddfa8f..af2213b 100644
--- a/plugins/100x/skills/100x-solo/SKILL.md
+++ b/plugins/100x/skills/100x-solo/SKILL.md
@@ -5,7 +5,7 @@ license: MIT
compatibility: "Needs the 100x command line tool on PATH (Node 22 or newer, and git) and the other skills of the 100x suite that this one names. Install the tool as the repository README says. Browser checks use Playwright, which `100x browsers` installs."
metadata:
author: "DeadInternetStudios"
- version: "0.1.0"
+ version: "0.1.1"
repository: "https://github.com/DeadInternetStudios/100x-engineer-skill"
---
diff --git a/plugins/100x/skills/100x-status/SKILL.md b/plugins/100x/skills/100x-status/SKILL.md
index f00675f..03353b4 100644
--- a/plugins/100x/skills/100x-status/SKILL.md
+++ b/plugins/100x/skills/100x-status/SKILL.md
@@ -5,7 +5,7 @@ license: MIT
compatibility: "Needs the 100x command line tool on PATH (Node 22 or newer, and git) and the other skills of the 100x suite that this one names. Install the tool as the repository README says. Browser checks use Playwright, which `100x browsers` installs."
metadata:
author: "DeadInternetStudios"
- version: "0.1.0"
+ version: "0.1.1"
repository: "https://github.com/DeadInternetStudios/100x-engineer-skill"
---
diff --git a/plugins/100x/skills/100x-wrapup/SKILL.md b/plugins/100x/skills/100x-wrapup/SKILL.md
index 060e1bb..b78b69d 100644
--- a/plugins/100x/skills/100x-wrapup/SKILL.md
+++ b/plugins/100x/skills/100x-wrapup/SKILL.md
@@ -5,7 +5,7 @@ license: MIT
compatibility: "Needs the 100x command line tool on PATH (Node 22 or newer, and git) and the other skills of the 100x suite that this one names. Install the tool as the repository README says. Browser checks use Playwright, which `100x browsers` installs."
metadata:
author: "DeadInternetStudios"
- version: "0.1.0"
+ version: "0.1.1"
repository: "https://github.com/DeadInternetStudios/100x-engineer-skill"
---
diff --git a/plugins/100x/skills/100x/SKILL.md b/plugins/100x/skills/100x/SKILL.md
index c764402..0c783e9 100644
--- a/plugins/100x/skills/100x/SKILL.md
+++ b/plugins/100x/skills/100x/SKILL.md
@@ -5,7 +5,7 @@ license: MIT
compatibility: "Needs the 100x command line tool on PATH (Node 22 or newer, and git) and the other skills of the 100x suite that this one names. Install the tool as the repository README says. Browser checks use Playwright, which `100x browsers` installs."
metadata:
author: "DeadInternetStudios"
- version: "0.1.0"
+ version: "0.1.1"
repository: "https://github.com/DeadInternetStudios/100x-engineer-skill"
---
diff --git a/plugins/100x/skills/100x/references/apps.md b/plugins/100x/skills/100x/references/apps.md
index a4f201a..e0c37c1 100644
--- a/plugins/100x/skills/100x/references/apps.md
+++ b/plugins/100x/skills/100x/references/apps.md
@@ -42,16 +42,16 @@ Either way the log holds the start and the task id, so a resumed thread knows on
## The judge as a command
-When `review.command` is set, `100x review-run` starts it in the background. It is set only in the global config, because a shell command in a project file would run for anyone who opens that project. The command reads its settings from environment variables. `X100_MODEL`, `X100_EFFORT`, `X100_TASK`, plus `X100_OPT_<ID>` for every other option. Empty ones are left out by the `${VAR:+...}` form below. The judge runs unattended and must write files and run the project, so every template turns the approval prompts off. That is the same trust as a subagent with full access, and it runs with the owner's permissions on the owner's machine. Use it on projects the owner wrote. For a project the owner cloned or was sent, judge through the app's own subagent tool instead, because that project's files are part of what the judge reads.
+When `review.command` is set, `100x review-run` starts it in the background. It is set only in the global config, because a shell command in a project file would run for anyone who opens that project. The command reads its settings from environment variables. `X100_MODEL`, `X100_EFFORT`, `X100_TASK`, plus `X100_OPT_<ID>` for every other option. Empty ones are left out by the `${VAR:+...}` form below. The judge runs unattended, so nothing can answer an approval prompt. No template starts an app with its approvals off. Each one names the commands the judge may run in an allow rule, and the app refuses everything else. The judge reads the project, writes its findings and screenshots under `.100x/`, runs `100x`, and starts the project with its own run command. Add that run command to the allow rule when it is not `npm run` or `npm test`. The judge still runs the owner's project code with the owner's permissions on the owner's machine. Use it on projects the owner wrote. For a project the owner cloned or was sent, judge through the app's own subagent tool instead, because that project's files are part of what the judge reads.
Write the command and the model together. `100x config set review.command '<command>' --global` and `100x config role review --model <id> [--option effort=<level>] --global`. A command wins over the app's own subagent tool, so a person who uses two apps clears it in one of them with `100x config unset review.command --global`.
### claude
-Flags read from `claude --help`. Run once against `claude` 2.1.319, which accepted them and stopped at sign in because the login had expired. No review has come back yet.
+Flags read from `claude --help`, and run against `claude` 2.1.332. It answered a one-word task, wrote a file under `.100x/` and refused one outside it. No review has come back yet. The task goes before `--allowedTools`, which takes every word after it as a tool. Only `Edit(path)` rules limit where it writes, and they cover every tool that writes a file.
```sh
-claude -p ${X100_MODEL:+--model "$X100_MODEL"} ${X100_EFFORT:+--effort "$X100_EFFORT"} --permission-mode bypassPermissions "$X100_TASK"
+claude -p "$X100_TASK" ${X100_MODEL:+--model "$X100_MODEL"} ${X100_EFFORT:+--effort "$X100_EFFORT"} --allowedTools "Read,Glob,Grep,Edit(.100x/**),Bash(100x *),Bash(git status *),Bash(git diff *),Bash(git log *),Bash(npm run *),Bash(npm test *)"
```
### cursor
@@ -71,17 +71,21 @@ The Task tool is not a way to start a helper in Cursor, and neither is `cursor-a
From memory of its docs. Check `codex exec --help` first.
```sh
-codex exec ${X100_MODEL:+-m "$X100_MODEL"} ${X100_EFFORT:+-c model_reasoning_effort="$X100_EFFORT"} --dangerously-bypass-approvals-and-sandbox "$X100_TASK"
+codex exec ${X100_MODEL:+-m "$X100_MODEL"} ${X100_EFFORT:+-c model_reasoning_effort="$X100_EFFORT"} --sandbox workspace-write "$X100_TASK"
```
+The sandbox lets it write in the project and keeps it out of the rest of the machine. If the project's run command needs more, widen it from the app's own docs, one rule at a time, and never to full access.
+
### gemini
From memory of its docs. Check `gemini --help` first.
```sh
-gemini ${X100_MODEL:+-m "$X100_MODEL"} --yolo -p "$X100_TASK"
+gemini ${X100_MODEL:+-m "$X100_MODEL"} -p "$X100_TASK"
```
+Run this way it reads and answers, and stops at any tool that needs approval. Add the commands the judge needs to the app's own allow list, which `gemini --help` names, and never a mode that turns approvals off.
+
### opencode
From memory of its docs. Check `opencode run --help` first. The model is `provider/model`.
diff --git a/skills/100x-adhd/SKILL.md b/skills/100x-adhd/SKILL.md
index 178da39..e5a343c 100644
--- a/skills/100x-adhd/SKILL.md
+++ b/skills/100x-adhd/SKILL.md
@@ -5,7 +5,7 @@ license: MIT
compatibility: "Needs the 100x command line tool on PATH (Node 22 or newer, and git) and the other skills of the 100x suite that this one names. Install the tool as the repository README says. Browser checks use Playwright, which `100x browsers` installs."
metadata:
author: "DeadInternetStudios"
- version: "0.1.0"
+ version: "0.1.1"
repository: "https://github.com/DeadInternetStudios/100x-engineer-skill"
---
diff --git a/skills/100x-bakeoff/SKILL.md b/skills/100x-bakeoff/SKILL.md
index 702a69c..7833b45 100644
--- a/skills/100x-bakeoff/SKILL.md
+++ b/skills/100x-bakeoff/SKILL.md
@@ -5,7 +5,7 @@ license: MIT
compatibility: "Needs the 100x command line tool on PATH (Node 22 or newer, and git) and the other skills of the 100x suite that this one names. Install the tool as the repository README says. Browser checks use Playwright, which `100x browsers` installs."
metadata:
author: "DeadInternetStudios"
- version: "0.1.0"
+ version: "0.1.1"
repository: "https://github.com/DeadInternetStudios/100x-engineer-skill"
---
diff --git a/skills/100x-continue/SKILL.md b/skills/100x-continue/SKILL.md
index c80b963..c0675b8 100644
--- a/skills/100x-continue/SKILL.md
+++ b/skills/100x-continue/SKILL.md
@@ -5,7 +5,7 @@ license: MIT
compatibility: "Needs the 100x command line tool on PATH (Node 22 or newer, and git) and the other skills of the 100x suite that this one names. Install the tool as the repository README says. Browser checks use Playwright, which `100x browsers` installs."
metadata:
author: "DeadInternetStudios"
- version: "0.1.0"
+ version: "0.1.1"
repository: "https://github.com/DeadInternetStudios/100x-engineer-skill"
---
diff --git a/skills/100x-grind/SKILL.md b/skills/100x-grind/SKILL.md
index f6166e9..8b68e15 100644
--- a/skills/100x-grind/SKILL.md
+++ b/skills/100x-grind/SKILL.md
@@ -5,7 +5,7 @@ license: MIT
compatibility: "Needs the 100x command line tool on PATH (Node 22 or newer, and git) and the other skills of the 100x suite that this one names. Install the tool as the repository README says. Browser checks use Playwright, which `100x browsers` installs."
metadata:
author: "DeadInternetStudios"
- version: "0.1.0"
+ version: "0.1.1"
repository: "https://github.com/DeadInternetStudios/100x-engineer-skill"
---
diff --git a/skills/100x-judge/SKILL.md b/skills/100x-judge/SKILL.md
index 0f2bfd1..ab244e9 100644
--- a/skills/100x-judge/SKILL.md
+++ b/skills/100x-judge/SKILL.md
@@ -5,7 +5,7 @@ license: MIT
compatibility: "Needs the 100x command line tool on PATH (Node 22 or newer, and git) and the other skills of the 100x suite that this one names. Install the tool as the repository README says. Browser checks use Playwright, which `100x browsers` installs."
metadata:
author: "DeadInternetStudios"
- version: "0.1.0"
+ version: "0.1.1"
repository: "https://github.com/DeadInternetStudios/100x-engineer-skill"
---
diff --git a/skills/100x-mockup/SKILL.md b/skills/100x-mockup/SKILL.md
index 0eccbb8..55fd331 100644
--- a/skills/100x-mockup/SKILL.md
+++ b/skills/100x-mockup/SKILL.md
@@ -5,7 +5,7 @@ license: MIT
compatibility: "Needs the 100x command line tool on PATH (Node 22 or newer, and git) and the other skills of the 100x suite that this one names. Install the tool as the repository README says. Browser checks use Playwright, which `100x browsers` installs."
metadata:
author: "DeadInternetStudios"
- version: "0.1.0"
+ version: "0.1.1"
repository: "https://github.com/DeadInternetStudios/100x-engineer-skill"
---
diff --git a/skills/100x-overnight/SKILL.md b/skills/100x-overnight/SKILL.md
index f93c39e..c095342 100644
--- a/skills/100x-overnight/SKILL.md
+++ b/skills/100x-overnight/SKILL.md
@@ -5,7 +5,7 @@ license: MIT
compatibility: "Needs the 100x command line tool on PATH (Node 22 or newer, and git) and the other skills of the 100x suite that this one names. Install the tool as the repository README says. Browser checks use Playwright, which `100x browsers` installs."
metadata:
author: "DeadInternetStudios"
- version: "0.1.0"
+ version: "0.1.1"
repository: "https://github.com/DeadInternetStudios/100x-engineer-skill"
---
diff --git a/skills/100x-report/SKILL.md b/skills/100x-report/SKILL.md
index 9bb5e07..20d7ad5 100644
--- a/skills/100x-report/SKILL.md
+++ b/skills/100x-report/SKILL.md
@@ -5,7 +5,7 @@ license: MIT
compatibility: "Needs the 100x command line tool on PATH (Node 22 or newer, and git) and the other skills of the 100x suite that this one names. Install the tool as the repository README says. Browser checks use Playwright, which `100x browsers` installs."
metadata:
author: "DeadInternetStudios"
- version: "0.1.0"
+ version: "0.1.1"
repository: "https://github.com/DeadInternetStudios/100x-engineer-skill"
---
diff --git a/skills/100x-setup/SKILL.md b/skills/100x-setup/SKILL.md
index dd4bc91..40745b3 100644
--- a/skills/100x-setup/SKILL.md
+++ b/skills/100x-setup/SKILL.md
@@ -5,7 +5,7 @@ license: MIT
compatibility: "Needs the 100x command line tool on PATH (Node 22 or newer, and git) and the other skills of the 100x suite that this one names. Install the tool as the repository README says. Browser checks use Playwright, which `100x browsers` installs."
metadata:
author: "DeadInternetStudios"
- version: "0.1.0"
+ version: "0.1.1"
repository: "https://github.com/DeadInternetStudios/100x-engineer-skill"
---
@@ -88,7 +88,7 @@ Shortest possible. One idea per line, no paragraphs, no preamble. Use the phrase
## Where the answers are used
-`100x review-call` says how the judge starts and `100x review-run` starts a command judge. The backup runs when the first cannot start. A command judge runs unattended with the approval prompts off, so set one only when the owner asks for it, and say so in one line when you do. Quick jobs (`100x-mockup` and `100x-wrapup`) run in the thread and only compare it with the quick model, in one line. Overnight children start with the app's subagent tool (in Cursor `100x helper run`), and you pass `target` from `100x config target overnight`. An empty target means the child follows the thread, except where `helper.only` is set: then the target is the locked selection. The builder line is never sent anywhere. Stage 0 compares it with the thread and tells the owner in one line when they differ.
+`100x review-call` says how the judge starts and `100x review-run` starts a command judge. The backup runs when the first cannot start. A command judge runs unattended under an allow rule that names the commands it may run, so set one only when the owner asks for it, and say so in one line when you do. Quick jobs (`100x-mockup` and `100x-wrapup`) run in the thread and only compare it with the quick model, in one line. Overnight children start with the app's subagent tool (in Cursor `100x helper run`), and you pass `target` from `100x config target overnight`. An empty target means the child follows the thread, except where `helper.only` is set: then the target is the locked selection. The builder line is never sent anywhere. Stage 0 compares it with the thread and tells the owner in one line when they differ.
## Examples
diff --git a/skills/100x-solo/SKILL.md b/skills/100x-solo/SKILL.md
index 9ddfa8f..af2213b 100644
--- a/skills/100x-solo/SKILL.md
+++ b/skills/100x-solo/SKILL.md
@@ -5,7 +5,7 @@ license: MIT
compatibility: "Needs the 100x command line tool on PATH (Node 22 or newer, and git) and the other skills of the 100x suite that this one names. Install the tool as the repository README says. Browser checks use Playwright, which `100x browsers` installs."
metadata:
author: "DeadInternetStudios"
- version: "0.1.0"
+ version: "0.1.1"
repository: "https://github.com/DeadInternetStudios/100x-engineer-skill"
---
diff --git a/skills/100x-status/SKILL.md b/skills/100x-status/SKILL.md
index f00675f..03353b4 100644
--- a/skills/100x-status/SKILL.md
+++ b/skills/100x-status/SKILL.md
@@ -5,7 +5,7 @@ license: MIT
compatibility: "Needs the 100x command line tool on PATH (Node 22 or newer, and git) and the other skills of the 100x suite that this one names. Install the tool as the repository README says. Browser checks use Playwright, which `100x browsers` installs."
metadata:
author: "DeadInternetStudios"
- version: "0.1.0"
+ version: "0.1.1"
repository: "https://github.com/DeadInternetStudios/100x-engineer-skill"
---
diff --git a/skills/100x-wrapup/SKILL.md b/skills/100x-wrapup/SKILL.md
index 060e1bb..b78b69d 100644
--- a/skills/100x-wrapup/SKILL.md
+++ b/skills/100x-wrapup/SKILL.md
@@ -5,7 +5,7 @@ license: MIT
compatibility: "Needs the 100x command line tool on PATH (Node 22 or newer, and git) and the other skills of the 100x suite that this one names. Install the tool as the repository README says. Browser checks use Playwright, which `100x browsers` installs."
metadata:
author: "DeadInternetStudios"
- version: "0.1.0"
+ version: "0.1.1"
repository: "https://github.com/DeadInternetStudios/100x-engineer-skill"
---
diff --git a/skills/100x/SKILL.md b/skills/100x/SKILL.md
index c9bd42f..beb8949 100644
--- a/skills/100x/SKILL.md
+++ b/skills/100x/SKILL.md
@@ -5,7 +5,7 @@ license: MIT
compatibility: "Needs the 100x command line tool on PATH (Node 22 or newer, and git) and the other skills of the 100x suite that this one names. Install the tool as the repository README says. Browser checks use Playwright, which `100x browsers` installs."
metadata:
author: "DeadInternetStudios"
- version: "0.1.0"
+ version: "0.1.1"
repository: "https://github.com/DeadInternetStudios/100x-engineer-skill"
---
diff --git a/skills/100x/references/apps.md b/skills/100x/references/apps.md
index a4f201a..e0c37c1 100644
--- a/skills/100x/references/apps.md
+++ b/skills/100x/references/apps.md
@@ -42,16 +42,16 @@ Either way the log holds the start and the task id, so a resumed thread knows on
## The judge as a command
-When `review.command` is set, `100x review-run` starts it in the background. It is set only in the global config, because a shell command in a project file would run for anyone who opens that project. The command reads its settings from environment variables. `X100_MODEL`, `X100_EFFORT`, `X100_TASK`, plus `X100_OPT_<ID>` for every other option. Empty ones are left out by the `${VAR:+...}` form below. The judge runs unattended and must write files and run the project, so every template turns the approval prompts off. That is the same trust as a subagent with full access, and it runs with the owner's permissions on the owner's machine. Use it on projects the owner wrote. For a project the owner cloned or was sent, judge through the app's own subagent tool instead, because that project's files are part of what the judge reads.
+When `review.command` is set, `100x review-run` starts it in the background. It is set only in the global config, because a shell command in a project file would run for anyone who opens that project. The command reads its settings from environment variables. `X100_MODEL`, `X100_EFFORT`, `X100_TASK`, plus `X100_OPT_<ID>` for every other option. Empty ones are left out by the `${VAR:+...}` form below. The judge runs unattended, so nothing can answer an approval prompt. No template starts an app with its approvals off. Each one names the commands the judge may run in an allow rule, and the app refuses everything else. The judge reads the project, writes its findings and screenshots under `.100x/`, runs `100x`, and starts the project with its own run command. Add that run command to the allow rule when it is not `npm run` or `npm test`. The judge still runs the owner's project code with the owner's permissions on the owner's machine. Use it on projects the owner wrote. For a project the owner cloned or was sent, judge through the app's own subagent tool instead, because that project's files are part of what the judge reads.
Write the command and the model together. `100x config set review.command '<command>' --global` and `100x config role review --model <id> [--option effort=<level>] --global`. A command wins over the app's own subagent tool, so a person who uses two apps clears it in one of them with `100x config unset review.command --global`.
### claude
-Flags read from `claude --help`. Run once against `claude` 2.1.319, which accepted them and stopped at sign in because the login had expired. No review has come back yet.
+Flags read from `claude --help`, and run against `claude` 2.1.332. It answered a one-word task, wrote a file under `.100x/` and refused one outside it. No review has come back yet. The task goes before `--allowedTools`, which takes every word after it as a tool. Only `Edit(path)` rules limit where it writes, and they cover every tool that writes a file.
```sh
-claude -p ${X100_MODEL:+--model "$X100_MODEL"} ${X100_EFFORT:+--effort "$X100_EFFORT"} --permission-mode bypassPermissions "$X100_TASK"
+claude -p "$X100_TASK" ${X100_MODEL:+--model "$X100_MODEL"} ${X100_EFFORT:+--effort "$X100_EFFORT"} --allowedTools "Read,Glob,Grep,Edit(.100x/**),Bash(100x *),Bash(git status *),Bash(git diff *),Bash(git log *),Bash(npm run *),Bash(npm test *)"
```
### cursor
@@ -71,17 +71,21 @@ The Task tool is not a way to start a helper in Cursor, and neither is `cursor-a
From memory of its docs. Check `codex exec --help` first.
```sh
-codex exec ${X100_MODEL:+-m "$X100_MODEL"} ${X100_EFFORT:+-c model_reasoning_effort="$X100_EFFORT"} --dangerously-bypass-approvals-and-sandbox "$X100_TASK"
+codex exec ${X100_MODEL:+-m "$X100_MODEL"} ${X100_EFFORT:+-c model_reasoning_effort="$X100_EFFORT"} --sandbox workspace-write "$X100_TASK"
```
+The sandbox lets it write in the project and keeps it out of the rest of the machine. If the project's run command needs more, widen it from the app's own docs, one rule at a time, and never to full access.
+
### gemini
From memory of its docs. Check `gemini --help` first.
```sh
-gemini ${X100_MODEL:+-m "$X100_MODEL"} --yolo -p "$X100_TASK"
+gemini ${X100_MODEL:+-m "$X100_MODEL"} -p "$X100_TASK"
```
+Run this way it reads and answers, and stops at any tool that needs approval. Add the commands the judge needs to the app's own allow list, which `gemini --help` names, and never a mode that turns approvals off.
+
### opencode
From memory of its docs. Check `opencode run --help` first. The model is `provider/model`.
diff --git a/test/browsers.test.mjs b/test/browsers.test.mjs
index db1f858..f3a2790 100644
--- a/test/browsers.test.mjs
+++ b/test/browsers.test.mjs
@@ -3,6 +3,7 @@ import fs from 'node:fs';
import path from 'node:path';
import test from 'node:test';
import { chromiumBuilds, resolvePlaywright } from '../lib/playwright.mjs';
+import { PINS } from '../lib/pins.mjs';
import { cli, sandbox } from './helpers.mjs';
import { fakeBin } from './helpers.mjs';
@@ -23,7 +24,7 @@ test('browsers --check reports available when Playwright resolves', { skip: reso
});
// A stand-in npm that writes a stand-in playwright, which prints a progress line for each 5 percent like the real one does.
-function fakeInstallers(box, { exit = 0 } = {}) {
+function fakeInstallers(box, { exit = 0, hash = {} } = {}) {
const bin = path.join(box.dir, 'fake-bin');
// The stand-in npm writes the stand-in playwright, with a launcher for each shell, as the real one writes .bin entries.
const playwright = `let i = 0;
@@ -35,6 +36,20 @@ process.exit(${exit});
import path from 'node:path';
const args = process.argv.slice(2);
const prefix = args[args.indexOf('--prefix') + 1];
+fs.writeFileSync(${JSON.stringify(path.join(box.dir, 'npm-args.json'))}, JSON.stringify(args));
+// Like npm, write each package named name@version into node_modules, and the hidden record of its version and integrity hash.
+const pins = ${JSON.stringify(PINS)};
+const hash = ${JSON.stringify(hash)};
+const packages = {};
+for (const arg of args.filter((a) => /^@?[a-z][a-z0-9/-]*@\\d/.test(a))) {
+ const name = arg.slice(0, arg.lastIndexOf('@'));
+ const folder = path.join(prefix, 'node_modules', ...name.split('/'));
+ fs.mkdirSync(folder, { recursive: true });
+ fs.writeFileSync(path.join(folder, 'package.json'), JSON.stringify({ name, version: arg.slice(arg.lastIndexOf('@') + 1) }));
+ packages['node_modules/' + name] = { version: arg.slice(arg.lastIndexOf('@') + 1), integrity: hash[name] ?? pins[name]?.integrity };
+}
+fs.mkdirSync(path.join(prefix, 'node_modules'), { recursive: true });
+fs.writeFileSync(path.join(prefix, 'node_modules', '.package-lock.json'), JSON.stringify({ lockfileVersion: 3, packages }));
const dir = path.join(prefix, 'node_modules', '.bin');
fs.mkdirSync(dir, { recursive: true });
fs.writeFileSync(path.join(dir, 'playwright.mjs'), ${JSON.stringify(playwright)});
@@ -49,13 +64,54 @@ test('browsers installs without printing a progress line for every ten percent',
const result = cli(['browsers'], { cwd: box.project, env: fakeInstallers(box) });
assert.equal(result.code, 0, result.err);
assert.doesNotMatch(result.out, /progress/);
- assert.match(result.out, /Installing Playwright into .*\.100x\./);
- assert.match(result.out, /Installing Chromium\./);
+ assert.match(result.out, new RegExp(`Installing Playwright ${PINS.playwright.version} into .*\\.100x\\.`));
+ assert.match(result.out, new RegExp(`Installing the Chromium build that Playwright ${PINS.playwright.version} names\\.`));
assert.match(result.out, /installed Playwright and Chromium into/);
assert.ok(fs.existsSync(path.join(box.home, '.100x', 'node_modules', '.bin', 'playwright')));
box.cleanup();
});
+test('browsers asks npm for the pinned version of Playwright and its core, never for latest', () => {
+ const box = sandbox();
+ const result = cli(['browsers'], { cwd: box.project, env: fakeInstallers(box) });
+ assert.equal(result.code, 0, result.err);
+ const args = JSON.parse(fs.readFileSync(path.join(box.dir, 'npm-args.json'), 'utf8'));
+ assert.ok(args.includes(`playwright@${PINS.playwright.version}`) && args.includes(`playwright-core@${PINS['playwright-core'].version}`), args.join(' '));
+ assert.ok(args.includes('--save-exact'));
+ assert.ok(!args.includes('playwright'), 'a bare package name would take whatever is newest');
+ box.cleanup();
+});
+
+test('a Playwright whose hash is not the pinned one is removed, and Chromium is never downloaded', () => {
+ const box = sandbox();
+ const result = cli(['browsers'], { cwd: box.project, env: fakeInstallers(box, { hash: { playwright: `sha512-${'A'.repeat(86)}==` } }) });
+ assert.equal(result.code, 1);
+ assert.match(result.err, /playwright does not match what 100x pins/);
+ assert.doesNotMatch(result.out, /Installing the Chromium build/, 'no download after a mismatch');
+ assert.ok(!fs.existsSync(path.join(box.home, '.100x', 'node_modules', 'playwright')), 'the package that did not match is gone');
+ box.cleanup();
+});
+
+test('helper setup asks npm for the pinned SDK version, checks its hash, and says so', () => {
+ const box = sandbox();
+ const result = cli(['helper', 'setup'], { cwd: box.project, env: { ...fakeInstallers(box), X100_CURSOR_SDK_FROM: '' } });
+ assert.equal(result.code, 0, result.err);
+ const args = JSON.parse(fs.readFileSync(path.join(box.dir, 'npm-args.json'), 'utf8'));
+ assert.ok(args.includes(`@cursor/sdk@${PINS['@cursor/sdk'].version}`) && args.includes('--save-exact'), args.join(' '));
+ assert.match(result.out, /its hash matches the one pinned in 100x/);
+ box.cleanup();
+});
+
+test('an SDK whose hash is not the pinned one is removed, and setup does not call it installed', () => {
+ const box = sandbox();
+ const result = cli(['helper', 'setup'], { cwd: box.project, env: { ...fakeInstallers(box, { hash: { '@cursor/sdk': `sha512-${'C'.repeat(86)}==` } }), X100_CURSOR_SDK_FROM: '' } });
+ assert.equal(result.code, 1);
+ assert.match(result.err, /@cursor\/sdk does not match what 100x pins/);
+ assert.doesNotMatch(result.out, /installed @cursor\/sdk/);
+ assert.ok(!fs.existsSync(path.join(box.home, '.100x', 'node_modules', '@cursor', 'sdk')));
+ box.cleanup();
+});
+
test('a failed install shows the end of what the installer said', () => {
const box = sandbox();
const result = cli(['browsers'], { cwd: box.project, env: fakeInstallers(box, { exit: 3 }) });
diff --git a/test/claude-plugin.test.mjs b/test/claude-plugin.test.mjs
index bd59093..e617379 100644
--- a/test/claude-plugin.test.mjs
+++ b/test/claude-plugin.test.mjs
@@ -100,7 +100,7 @@ test('the README has at least 40 words outside code blocks, and the license is t
test('the README names every way the skills leave the machine or change a permission', () => {
const skills = files.filter((rel) => rel.startsWith('skills/') && rel.endsWith('.md')).map((rel) => fs.readFileSync(path.join(dir, rel), 'utf8')).join('\n');
const mustSay = [
- [/bypassPermissions/, 'bypassPermissions'],
+ [/--allowedTools/, '--allowedTools'],
[/@cursor\/sdk/, '@cursor/sdk'],
[/100x browsers/, '100x browsers'],
[/deploy\.preview|preview URL/, 'preview'],
@@ -114,6 +114,15 @@ test('the README names every way the skills leave the machine or change a permis
}
});
+// The directory's policy review failed the plugin with DP_TAG_BAN for a documented command that starts an agent with its approvals off.
+test('no file in the plugin starts an agent with a flag that skips permission prompts or turns approvals off', () => {
+ const flags = /bypassPermissions|--dangerously-[a-z-]+|--yolo\b|--full-auto\b|--permission-mode\s+(?:bypass|dontAsk|auto|acceptEdits)|--approval-mode\s+(?:yolo|auto)|--ask-for-approval\s+never|danger-full-access|--no-approvals?\b/i;
+ for (const rel of files.filter((f) => !IMAGES.has(path.extname(f).toLowerCase()))) {
+ const hit = flags.exec(fs.readFileSync(path.join(dir, rel), 'utf8'));
+ assert.equal(hit, null, `${rel} shows ${hit?.[0]}: name the commands the agent may run in an allow rule instead`);
+ }
+});
+
test('each script under skills/ ships as a Markdown file with the same code, and its skill says how to use it', () => {
const sources = listFiles(path.join(ROOT, 'skills')).filter((rel) => SCRIPT.test(rel));
assert.ok(sources.length >= 6, 'the 100x skill carries its six templates');
diff --git a/test/pins.test.mjs b/test/pins.test.mjs
new file mode 100644
index 0000000..4b2fd73
--- /dev/null
+++ b/test/pins.test.mjs
@@ -0,0 +1,85 @@
+import assert from 'node:assert/strict';
+import fs from 'node:fs';
+import os from 'node:os';
+import path from 'node:path';
+import test from 'node:test';
+import { PINS, pinned, verifyPinned } from '../lib/pins.mjs';
+
+// What `npm install --prefix <dir>` leaves: each package's folder with its package.json, and the hidden record that names its version and integrity hash.
+export function fakeInstall(prefix, names, { hash = {}, version = {}, keyPrefix = '', skipRecord = [], skipFolder = [] } = {}) {
+ const packages = {};
+ for (const name of names) {
+ const folder = path.join(prefix, 'node_modules', ...name.split('/'));
+ if (!skipFolder.includes(name)) {
+ fs.mkdirSync(folder, { recursive: true });
+ fs.writeFileSync(path.join(folder, 'package.json'), JSON.stringify({ name, version: version[name] ?? PINS[name].version }));
+ }
+ if (!skipRecord.includes(name)) packages[`${keyPrefix}node_modules/${name}`] = { version: version[name] ?? PINS[name].version, integrity: hash[name] ?? PINS[name].integrity };
+ }
+ fs.mkdirSync(path.join(prefix, 'node_modules'), { recursive: true });
+ fs.writeFileSync(path.join(prefix, 'node_modules', '.package-lock.json'), JSON.stringify({ name: 'x', lockfileVersion: 3, packages }));
+}
+
+const NAMES = Object.keys(PINS);
+const tmp = () => fs.mkdtempSync(path.join(os.tmpdir(), 'x100-pins-'));
+
+test('every pin is an exact version and a SHA-512 integrity hash, and Playwright and its core are the same version', () => {
+ for (const [name, pin] of Object.entries(PINS)) {
+ assert.match(pin.version, /^\d+\.\d+\.\d+$/, `${name} is an exact version`);
+ assert.match(pin.integrity, /^sha512-[A-Za-z0-9+/]{86}==$/, `${name} has a SHA-512 hash`);
+ assert.equal(pinned(name), `${name}@${pin.version}`);
+ }
+ assert.equal(PINS.playwright.version, PINS['playwright-core'].version);
+});
+
+test('an install that wrote the pinned version and hash is accepted, and left in place', () => {
+ const dir = tmp();
+ fakeInstall(dir, NAMES);
+ verifyPinned(dir, NAMES);
+ for (const name of NAMES) assert.ok(fs.existsSync(path.join(dir, 'node_modules', ...name.split('/'), 'package.json')), `${name} stays`);
+ fs.rmSync(dir, { recursive: true });
+});
+
+test('a package with another hash is refused, named, and removed together with the others from the same install, and one from another install stays', () => {
+ const dir = tmp();
+ fakeInstall(dir, NAMES, { hash: { playwright: `sha512-${'A'.repeat(86)}==` } });
+ assert.throws(() => verifyPinned(dir, ['playwright', 'playwright-core']), (error) => /^playwright does not match what 100x pins/.test(error.message) && /nothing was run/.test(error.message));
+ assert.ok(!fs.existsSync(path.join(dir, 'node_modules', 'playwright')));
+ assert.ok(!fs.existsSync(path.join(dir, 'node_modules', 'playwright-core')));
+ assert.ok(fs.existsSync(path.join(dir, 'node_modules', '@cursor', 'sdk')), 'the SDK was not part of this install');
+ fs.rmSync(dir, { recursive: true });
+});
+
+test('another version, a folder that says another version, a missing record and a missing folder are each refused', () => {
+ const cases = {
+ 'record names another version': { version: { '@cursor/sdk': '9.9.9' } },
+ 'no record of the package': { skipRecord: ['@cursor/sdk'] },
+ 'no folder for the package': { skipFolder: ['@cursor/sdk'] },
+ };
+ for (const [label, options] of Object.entries(cases)) {
+ const dir = tmp();
+ fakeInstall(dir, ['@cursor/sdk'], options);
+ assert.throws(() => verifyPinned(dir, ['@cursor/sdk']), /does not match what 100x pins/, label);
+ fs.rmSync(dir, { recursive: true });
+ }
+ const dir = tmp();
+ fakeInstall(dir, ['@cursor/sdk']);
+ fs.writeFileSync(path.join(dir, 'node_modules', '@cursor', 'sdk', 'package.json'), JSON.stringify({ name: '@cursor/sdk', version: '9.9.9' }));
+ assert.throws(() => verifyPinned(dir, ['@cursor/sdk']), /the folder says 9\.9\.9/, 'the folder disagrees with the record');
+ fs.rmSync(dir, { recursive: true });
+ const none = tmp();
+ assert.throws(() => verifyPinned(none, ['@cursor/sdk']), /no record of it/, 'no npm record at all fails and does not pass on silence');
+ fs.rmSync(none, { recursive: true });
+});
+
+test('npm writes a longer key when the home folder is behind a symbolic link, and a wrong hash under that key is still refused', () => {
+ const key = '../../../private/var/x/';
+ const ok = tmp();
+ fakeInstall(ok, ['playwright'], { keyPrefix: key });
+ verifyPinned(ok, ['playwright']);
+ fs.rmSync(ok, { recursive: true });
+ const bad = tmp();
+ fakeInstall(bad, ['playwright'], { keyPrefix: key, hash: { playwright: `sha512-${'B'.repeat(86)}==` } });
+ assert.throws(() => verifyPinned(bad, ['playwright']), /does not match what 100x pins/);
+ fs.rmSync(bad, { recursive: true });
+});