{"score":80,"grade":"B","scannedAt":"2026-12-05T23:09:13.658Z","scanner":"grades-0.2","signals":{"ecosystem":"npm","name":"token-pilot","version":"2.0.0","license":"MIT","repository":"https://github.com/Digital-Threads/token-pilot","firstPublished":"2026-03-01T11:10:31.991Z","lastPublished":"2026-11-06T06:33:43.817Z","versions":118,"maintainers":1,"files":265,"bytes":1544637,"hosts":["developers.openai.com"]},"capabilities":{"network":true,"files":true,"shell":true,"env":true,"dynamicCode":false},"findings":[{"rule":"install-script","severity":"medium","title":"Runs a script automatically when installed (postinstall)","file":"package.json","snippet":"node scripts/postinstall.mjs"},{"rule":"files","severity":"info","title":"Writes, moves or deletes files","file":"dist/core/architecture-fingerprint.js","line":38,"snippet":"await writeFile(filePath, JSON.stringify(fp, null, 2) + '\\n', 'utf-8');"},{"rule":"shell","severity":"info","title":"Runs shell commands or other programs","file":"dist/ast-index/binary-manager.js","line":1,"snippet":"import { execFile } from \"node:child_process\";"},{"rule":"files","severity":"info","title":"Writes, moves or deletes files","file":"dist/ast-index/binary-manager.js","line":134,"snippet":"await rm(tmpPath, { force: true });"},{"rule":"files","severity":"info","title":"Writes, moves or deletes files","file":"dist/ast-index/binary-manager.js","line":138,"snippet":"await rm(finalPath, { force: true });"},{"rule":"shell","severity":"info","title":"Runs shell commands or other programs","file":"dist/ast-index/client.js","line":1,"snippet":"import { execFile } from \"node:child_process\";"},{"rule":"env","severity":"info","title":"Reads environment variables (where API keys usually live)","file":"dist/ast-index/client.js","line":1204,"snippet":"const env = { ...process.env };"},{"rule":"env","severity":"info","title":"Reads environment variables (where API keys usually live)","file":"dist/ast-index/client.js","line":1209,"snippet":"env.PATH = `${this.astGrepBinDir}:${process.env.PATH ?? \"\"}`;"},{"rule":"env","severity":"info","title":"Reads environment variables (where API keys usually live)","file":"dist/integration/context-mode-detector.js","line":6,"snippet":"return process.env.HOME || process.env.USERPROFILE || \"\";"},{"rule":"shell","severity":"info","title":"Runs shell commands or other programs","file":"dist/handlers/explore-area.js","line":1,"snippet":"import { execFile } from \"node:child_process\";"},{"rule":"network","severity":"info","title":"Makes network requests","file":"dist/index.js","line":1594,"snippet":"const resp = await fetch(`https://registry.npmjs.org/${packageName}/latest`, {"}],"vulns":[],"installScripts":["postinstall"],"server":{"name":"io.github.Digital-Threads/token-pilot","description":"Save up to 80% tokens when AI reads code via AST-aware structural reading","repository":"https://github.com/Digital-Threads/token-pilot","version":"2.0.0"}}