Gnawky docs
Changelog
What changed in each release, newest first. Update with npm install -g gnawky; the Claude Code plugin updates from its marketplace.
0.5.0
A redesigned HTML report
- Claude's take up front. Once a triage exists, each finding starts with a highlighted block: the verdict, the urgency and Claude's reason, before any other detail.
- Suggested fix in its own box, right after Claude's take, with an upgrade or manual label on each fix and how many advisories each one covers.
- Easier to scan: the package name comes first and larger, with the severity, prod first and Claude's badges below it, and colored chips for the severity counts of a grouped package.
- A Claude triage panel at the top with fix now, fix soon, real, need a human and likely false positive counts.
- Styled like gnawky.dev, in dark and light mode, with the same tab icon.
Workspace report
- Starts with how the projects are linked and the fix order, then the advisories your own projects bring in, then the findings per project.
- Projects in the order to fix them: a shared project before the projects that use it, then the most urgent first. Each project shows a step number, its package manager and colored count chips.
- Click a project in the map (or in the fix order) to open its findings; one project is open at a time.
- The map lists unlinked projects in their own row and has a clear legend. The Projects table is gone, since the rest of the report shows the same information.
Fixes
- The bundled-React advisories in Next.js now share one fix line with the latest date, instead of one near-identical line per advisory. This applies to the reports, the menus, the CLI and the pre-push warning.
0.4.2
Safer version recommendations in the package check
When npm install <pkg> or yarn add <pkg> would add a package with high or critical advisories, the package check recommends a version to install instead. That used to come from npm audit's own suggestion, which can still be vulnerable: for [email protected] it suggested 0.21.4, which still has high advisories (they reach up to 0.31.1).
Now Gnawky picks the version itself and checks it before recommending it:
- The lowest version outside every advisory's range, never past the registry's "latest".
- Checked with a real
npm auditof that version's dependency tree. It's only recommended if no high or critical advisories are left. - When that version fails (an advisory of its own, or vulnerable dependencies), Gnawky checks the newest release of the same major and searches down for the lowest one that passes, then falls back to "latest". At most 7 audits per package, usually a few seconds.
- When lower-severity advisories have no fix yet, it still recommends a version, labelled "fixes the high/critical advisories".
- When the published versions can't be listed (offline, or a private registry that refuses it), it says so, instead of "no fixed version published".
npm install … | Before | Now |
|---|---|---|
[email protected] | 0.21.4 (still had high advisories) | 0.34.0 |
[email protected] | "no fixed version published" | 4.22.0 |
[email protected] | 4.18.1 | 4.18.0 |
[email protected] | 1.2.8 | 0.2.4 |
0.4.1
Install the Claude Code plugin straight from GitHub
No clone needed any more. In Claude Code:
/plugin marketplace add andreiciungan/gnawky /plugin install gnawky@gnawky-marketplace
The plugin brings its own copy of Gnawky. Install the npm package too for the terminal app and the git hooks. From a local clone, /plugin marketplace add /path/to/gnawky still works.
gnawky.dev
Gnawky has a home: gnawky.dev shows it in action with a terminal demo, and the presentation moved there too. The npm package and the plugin now link to it.
Other changes
- The plugin manifest now has an author and a homepage, and the marketplace has a description.
- No changes to how Gnawky scans or fixes.
0.4.0
Pre-push production warning
Before every git push, Gnawky can list the packages with critical or high advisories that ship to production, grouped by the package to upgrade. Turn it on in Settings → Pre-push production warning; setup recommends it too. See Pre-push warning.
$ git push ! my-app: 2 package(s) with critical/high advisories ship to production (2s) HIGH axios 11 advisories: upgrade axios to 1.12.0 (direct dependency) HIGH express 6 advisories: upgrade express to 4.22.3 (direct dependency) gnawky: pushing anyway; this is a reminder, not a block.
- It never blocks. The push always goes through, also when the audit fails or the project is in offline mode.
- A fresh audit on every push, so advisories published since your last scan show up too. If the audit fails, Gnawky shows the last results for the same dependencies, with their date.
- Production only: dev-only packages and ignored findings are left out.
- Every project in the repository with a lockfile tracked by git, so it works in monorepos.
- Where it goes:
.husky/pre-push, yourcore.hooksPath, or.git/hooks/pre-push, with a snippet for lefthook. Tools like git-lfs keep working. - Run it by hand with
gnawky pre-push, orgnawky pre-push --jsonfor scripts.
/gnawky:prod in Claude Code
A quick answer to "anything critical in production?": the plugin runs the same check and summarizes it in a few seconds, without a full scan. The gnawky skill uses it too when you ask about vulnerable production dependencies.
Other changes
- The hook installer handles pre-commit and pre-push, each in its own marked block that Settings removes again.
- When
npm auditfails, Gnawky now shows npm's reason instead of an empty message.
0.3.0
Workspaces
Run gnawky in a folder whose subfolders are projects (or gnawky workspace) to work on several projects at once. See Several projects.
- Pick the projects and see which ones use each other, at the versions each lockfile installs.
- Check every project's dependencies in one go, then get a report with a map of the links.
- Vulnerable packages found in more than one project are grouped per package, with the fix in each project. A guided fix order starts with the shared projects.
- Claude triage for the whole workspace, right after the scan or from the menu. Verdicts are saved in each project.
- Open a project opens it in Gnawky straight in the Findings menu, using the workspace's results without scanning again.
Production first
- Each finding records which direct dependencies bring it in, and whether it ships to production.
- Critical and high findings that ship come first in the app, the reports,
gnawky findings(--prod-only) and the triage filter. - The HTML reports have an All / Production only / Dev only filter.
Claude's triage order
- Review & fix in Claude's order is the first option in the Findings menu once a triage exists. Likely false positives go last.
- Before Review & fix, Gnawky offers a Claude triage when nothing is triaged yet, or when there are new findings that match your last triage filter. Settings turns this off.
- The HTML reports list findings in Claude's order, with a switch to sort by production and severity instead.
Browser smoke test with Claude in Chrome
After a dependency fix, Claude Code can open your app in Chrome and check the pages you set up for the project, reading console errors and failed requests, then write a PASS / FAIL / PARTIAL report. You still choose Keep or Undo. You can also run it later from the main menu while you're on the fix branch. See Browser smoke test.
Safer fixes
- The upgrade breaks the tests: Gnawky asks whether to fix it with Claude, keep it anyway, or revert, instead of reverting on its own.
- The tests already fail before the fix: Gnawky offers to fix them first with Claude.
- Uncommitted changes: Gnawky offers to stash them and continue, and to restore them afterwards.
- A failed upgrade: Gnawky shows why and offers Fix the failed upgrade with Claude, then checks again.
- An
audit fixthat changes nothing is reported as such. - "One package at a time" is now the first choice when applying fixes.
Package manager detection
With more than one lockfile, Gnawky picks the package manager from the packageManager field, then the lockfile committed to git, then the one git doesn't ignore, then the most recently changed. It shows which one it chose and why.
0.2.0
Grouped advisories
- Advisories that one upgrade fixes are one item in reviews and reports, so an old Next.js with dozens of advisories is one decision. See Grouped advisories.
- Gnawky counts only the advisories a suggested upgrade really fixes, and lists the rest with the version they need.
- Claude's verdicts show per package on grouped items.
Gnawky in Claude Code
- A
gnawkyskill: ask Claude in plain words to scan, report, triage, ignore or fix. - Headless commands behind it:
gnawky scan,findings,report,triageandignore. gnawky fixwithout the menus: it plans, applies, then keeps or undoes dependency fixes on a new branch.
Fixes
- When you keep a fix, Gnawky saves the GHSA and CVE IDs of the advisories it removed, as JSON and as a Markdown table for a PR or ticket.
- Fix branches are named after what they change.
0.1.0
The first version on npm.
Scanning
npm auditand Yarn 1yarn auditfor dependencies, gitleaks for secrets and semgrep for risky code, with live progress and semgrep skipping test files.- React Server Components advisories in the React that Next.js bundles, which
npm auditcan't see. - A self-contained HTML report and a Markdown report on every scan.
- An interactive menu, and a first-run setup that detects the stack, asks online or offline, and offers to install missing tools.
Fixing
- Fix, ignore with a reason, or skip each finding. Fixes run on a new git branch with install scripts off, optionally verified with your own scripts.
- Upgrades that
npm audit fixskips, and forced sub-dependency versions with npm overrides or Yarn resolutions, with a choice of a^rangeor an exact pin.
Claude
- Claude triage: a verdict and urgency for every finding, with a choice of severities and sources, and up to 3 runs in parallel.
- A full security audit with Cloudflare's bundled security-audit skill, with its findings imported into Gnawky.
Guards
- The package check before
npm install <pkg>andyarn add <pkg>, with a recommended safe version, working with nvm lazy loading and other shell setups. - A pre-commit check that blocks commits adding vulnerable dependencies.