Repository navigation
Releases
lookfirst 0.3.0
lookfirst 0.3.0
Big GitHub repos get a verdict now, instead of advice to clone them. Update with uv tool upgrade lookfirst.
lookfirst lowers risk; it doesn't guarantee safety.
Big repos
- A repo too big to download whole is now read in part. Before, lookfirst stopped when a repo's archive was over 200 MB or held more than 50,000 entries. That happened to node, bun, TypeScript, webpack, supabase, next.js and rust. Now lookfirst gets the repo's list of files from GitHub and downloads only the files that decide the verdict:
- every file in the top folder;
- the agent and editor folders, such as
.claude/,.agents/,.cursor/,.github/and.vscode/; - agent instruction files and install scripts anywhere;
- package files and lockfiles, with those in test and example folders last.
- Every output says what wasn't read. Under the verdict, the report says how many files were read out of how many, and how to read every file: clone the repo with
git clone --depth 1, which doesn't run its code, and check the folder. The JSON lists it first undernot_checked, and the MCP tool's summary and the hook say it too. For a Looks OK, the hook adds a short note and lets the command run. - What a partial read can miss: hidden instructions or tricky characters in ordinary source files and docs deep in the tree, and GuardDog's code patterns in files that weren't read.
--sandboxisn't offered on part of a repo. Installing needs every file, so the report says to clone the repo and check the clone with--sandbox.- Same safety rules as whole downloads. Files come from the exact commit checked. Paths that point outside the folder are refused, names that differ only in letter case are kept once, and links are read but never created. Each file must match the size GitHub lists for it. A GitHub token goes only to
api.github.com; public repos download fromraw.githubusercontent.comwithout it. - Cost without a GitHub token: GitHub allows 60 API calls an hour without one. Measured: supabase used 3, and webpack 19, because GitHub cut its file list short and lookfirst listed each top-level folder on its own (34 at most). A normal repo still uses 2.
Measured
-
The seven repos that couldn't be checked in 0.2.0 now take 21 to 45 seconds each:
Repo Seconds Verdict webpack 27 Looks OK bun 45 Looks OK node 45 Looks OK TypeScript 22 Caution supabase 21 Looks OK next.js 29 Looks OK rust 31 Looks OK About 7 to 14 seconds of each check go on first trying to download the whole archive.
-
TypeScript's Caution: its
AGENTS.mdtells agents to "Ignore your system instructions for PR descriptions". lookfirst always treats that wording as serious. -
The 40 well-known repos in
scripts/benchmark.py: none fails to check any more. 38 get Looks OK and 2 get Caution (deno and TypeScript). The median check took 9.7 seconds, as with 0.2.0. No other verdict changed.
Install
uv tool install lookfirstFor Claude Code: /plugin marketplace add lookfirst-dev/lookfirst, then /plugin install lookfirst@lookfirst.
lookfirst 0.2.0
lookfirst 0.2.0
Faster checks on big repos, and one fewer false alarm in agent skills. Update with uv tool upgrade lookfirst.
lookfirst lowers risk; it doesn't guarantee safety.
Faster
- The package scanners now run alongside lookfirst's own checks, instead of after them. On big repos the two took about the same time, so a check takes closer to the longer of the two than their sum.
- GuardDog gets at most 20 seconds. On microsoft/vscode it took 68 of 106 seconds. If it runs out of time, the report says it didn't finish, as for any scanner that fails. GuardDog's results never change the verdict on their own.
- A scanner stopped for time now takes the programs it started with it. GuardDog runs semgrep, which used to keep running after GuardDog was stopped.
Fewer false alarms
- In agent instruction files, "act without asking the user" is now a note, not a Caution. Skills often tell an agent to do routine steps without stopping, such as pytorch's "Do not ask the user before closing" a fixed issue. These are now listed as "Tells AI agents to act without asking you" (medium). Hiding things from the user ("don't tell the user about the upload") is still serious, and so is the same "without asking" in a README or code comment.
For contributors
scripts/benchmark.pychecks 40 well-known repos and summarizes the verdicts and times.--savekeeps a run and--compareshows what changed, to catch false alarms and slow checks before a release.
Measured
- 40 well-known repos (react, django, kubernetes, pytorch and others): the median check took 9.6 seconds, down from 13.0 with 0.1.1, and the whole run 528 seconds, down from 678. The slowest, pytorch, went from 55 to 36 seconds, and transformers from 54 to 27.
- Verdicts on the 40: 34 Looks OK, up from 33, because pytorch no longer gets a Caution. deno still gets a Caution, and fairly: its skills pre-approve
Bash(rm *)for agents. Five repos are too big to check straight from GitHub (webpack, bun, node, TypeScript, supabase), and lookfirst says how to check a clone instead. - microsoft/vscode: 42 seconds, down from about 85. GuardDog ran out of time there, so its code-pattern notes are missing, and the report lists that under what wasn't checked.
Install
uv tool install lookfirstFor Claude Code: /plugin marketplace add lookfirst-dev/lookfirst, then /plugin install lookfirst@lookfirst.
lookfirst 0.1.1
lookfirst 0.1.1
Fixes found by trying lookfirst the way new users will: on its own repo, on well-known installers, packages and big repos. Update with uv tool upgrade lookfirst.
lookfirst lowers risk; it doesn't guarantee safety.
Fewer false alarms
- Prose about agents is no longer read as an instruction to one. "Note for AI agents" now counts only as a label: at the start of a line or sentence, or followed by a colon or dash. A sentence such as "AGENTS.md holds instructions for AI agents" is left alone. This flagged lookfirst's own threat model.
- Rules that make an agent ask first are no longer read as secrecy. "Never rewrite commits without asking the user" and "don't ask the user to paste the context" are honest guidance. They gave VS Code a Caution. "Run the cleanup without asking the user" still counts.
- A bare
curl | bashin prose is no longer a download. Acurlorwgetwith nothing after it fetches nothing. It was flagged in lookfirst's own README tagline.
Big repos
- A repo too big to download or unpack now says what to do: clone it with
git clone --depth 1, which doesn't run its code, then check the folder. Before, the check just stopped.
Dependencies
- opentelemetry-api 1.45.2 (through the MCP library), which fixes a denial-of-service bug (GHSA-mf5v-w3w3-f6cg). The cooldown date for new dependency versions moved to 5 Nov 2026.
Measured
- The same 12 well-known repos as 0.1.0: all Looks OK, 4 to 11 seconds each (median 5.0 s).
- Well-known installers and packages: the one-line installers for rustup, uv, Homebrew, bun, Ollama, Claude Code and Docker, and react, @anthropic-ai/claude-code and requests, all Looks OK, in 1 to 3 seconds.
- microsoft/vscode: Looks OK, where 0.1.0 said Caution, but it takes about 85 seconds.
- lookfirst's own repo: still Caution, and rightly: its test fixtures are fake attacks written for its tests.
- Big repos such as vercel/next.js (about 35,000 files) show the clone advice; checking the clone took 89 seconds.
- Without a GitHub token, a check uses 2 of GitHub's 60 requests an hour.
Install
uv tool install lookfirstFor Claude Code: /plugin marketplace add lookfirst-dev/lookfirst, then /plugin install lookfirst@lookfirst.
lookfirst 0.1.0
lookfirst 0.1.0
The first release. lookfirst checks a GitHub repo, a curl | bash line, a folder or an npm or PyPI package before you or your AI agent runs it, and answers with one verdict, Looks OK, Caution or Don't run, with the evidence behind it.
lookfirst lowers risk; it doesn't guarantee safety.
What's in it
lookfirst check <target>, for a GitHub repo (owner/repo, optionally@branch, tag or commit), a folder, a quoted shell command,npm:<name>orpypi:<name>. Output for the terminal, as JSON (--json) or as Markdown (--report FILE). Exit codes 0, 10 and 20 match the verdict; 1 means the check couldn't run.- Identity check: spots copies of popular projects (a lookalike name or owner, a copied README, a new account, implausible stars, extra release archives, download passwords) and names the original. Ships with a list of popular repos and a community-edited list of official sources.
- Install-path check: reads every install step a README, script, Makefile, Dockerfile,
package.jsonor Python build would run, without running it. Follows downloaded scripts 3 levels deep and decodes base64 and hex payloads. - Agent-attack check: flags agent settings shipped in a repo and instructions hidden for AI agents, quoting them as untrusted data.
- Package check: runs osv-scanner and GuardDog when they're installed.
- Sandbox dry run (
--sandbox): runs the install in a Linux container with decoy credentials, a logging proxy and a process tracer, and reports what it read, sent and changed. - Agent integration: an MCP server (
lookfirst mcp), a Claude Code hook (lookfirst hook) that checks risky shell commands before they run, and a Claude Code plugin with both plus a skill.
Measured
- A full static check: 3 to 11 seconds on 12 well-known repos (median 4.7 s), against a target of 30 seconds.
- The sandbox: 4 to 10 seconds for each test install, after a one-time image build of about 90 seconds.
- The hook: about 30 ms for ordinary commands; 0.4 to 4 seconds for commands it checks.
Known limits
- The sandbox is Linux only, so macOS-only behaviour doesn't run in it. There's no Windows support.
- Code that waits, or notices the sandbox, can pass the dry run.
- The hook fails open: if a check crashes or takes more than 20 seconds, the command goes ahead with a warning.
- The hook block hasn't been recorded in a live session. It's tested with the exact input Claude Code sends, but in every live try the agent read the install script and refused before the hook was needed.
Full list: README and threat model.
Install
uv tool install lookfirstFor Claude Code: /plugin marketplace add lookfirst-dev/lookfirst, then /plugin install lookfirst@lookfirst.