context-trim@1.3.1
CAUTION· startup onlyPublisher claims: "Enables AI coding assistants to retrieve a lean, optimized codebase context without lockfile and build bloat, and to analyze which files consume the most tokens." Observed in sandbox: no network, touches nothing outside the project, writes no memory.
Coverage
Startup only; authenticated tool behavior not tested.- Tested
- server startup over stdio (initialize sent) · every file read, file written and host contacted by what ran
- Not tested
- the tool list (the server exited before answering) · what the tools do when called with real credentials
What this means for the label: Caution here covers what ran. The server's tools were not exercised with a real credential, so nothing about their behavior is asserted; the credential summary below says what to do with that.
Behavior
In our sandbox run on 2026-11-13, [email protected] read no files and called no hosts, and its code names 3 environment variables. Coverage: startup only.
Files read
None recorded.
Hosts called
None recorded.
Environment variables its code names
CONTEXT_TRIM_MAX_CONCURRENCY, CONTEXT_TRIM_ROOT, OPENAI_APPS_CHALLENGE
Names only, read from the code. We never hold a value.
Tools offered
No tool list recorded.
Changes since the prior version
No prior version with a result to compare.
What we did not test
- the tool list (the server exited before answering)
- what the tools do when called with real credentials
| Run date | 2026-11-13 |
| Coverage | startup only |
| Engine | 1.9.2, script@linux |
| Reproduce | npx -y vet-skills try context-trim |
| This record | behavior.json, behavior.md, signed attestation |
This is a record of what one version did in the runs we made. It is evidence, not a certificate.
Before you give it your token
- It will ask for
- no credential variables read in the code
- Where it talks to
- no vendor host named in the code
- What we saw when it ran
- no credential files read · no network
- What we could not test
- the tool list (the server exited before answering) · what the tools do when called with real credentials
Connect it under the guard. Startup only; authenticated tool behavior not tested. The code names no credential variable; the guard pins the network to what the honeypot saw and logs every call.
Never paste a credential into a chat, a ticket or a report, including ours. How the guard holds it.
Is [email protected] safe to install?
KillerSkills ran it in the KillerSkills honeypot sandbox (2 scenarios; startup only; authenticated tool behavior not tested) on 2026-11-13 and scored it 77/100 (Caution). It is not known to be malicious, but it has behaviour or code a security policy should decide on before install. Notable findings: Access to sensitive file paths; Access to sensitive file paths; Access to sensitive file paths. Summary: no network, touches nothing outside the project, writes no memory.
Behavior trace
Honeypot run · 20 s · 2 scenarios · 0 deviationsStatic findings
console.log(` Credential Files : \x1b[32m🔒 ${scan.secretFilesSkipped} left out (.env, keys)\x1b[0m`);Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.…les, build output, caches and binaries, never includes credential files such as .env or private keys, and masks API keys and passwords found in code. It is read-onl…Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.npx context-trim # Packs current directory and saves ai-context.mdFix: Pin versions and sources; vendor anything fetched at install time.fs.writeFileSync(path.join(project, '.env.example'), 'SECRET=\n');Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.- They never read credential files such as `.env` or private keys, and they mask API keys found in code. If the user asks about a secret value, tell them it was masked on purpose.Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.npx context-trim -o prompt.md # Exports clean markdownFix: Pin versions and sources; vendor anything fetched at install time.npx context-trim [options] [path]Fix: Pin versions and sources; vendor anything fetched at install time.assert.ok(!isSecretFile('.env.example'), 'Templates stay in');Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose./^\.env(\..+)?$/i, // .env, .env.local, .env.production ...Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.console.log(`\n\x1b[32m✔ Context saved to:\x1b[0m \x1b[1m${defaultOutput}\x1b[0m`);Fix: Remove the call, or declare the host in frontmatter and explain in the README what is sent and why.fs.writeFileSync(path.join(project, '.env'), 'SECRET=hunter2hunter2\n');Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.assert.ok(isSecretFile('.env.production'));Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.RUN chmod +x ./bin/cli.jsFix: Request the narrowest permission that works; replace wildcards with the exact paths or hosts.- Credential files such as `.env` are left out and API keys in code are masked on purpose.Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.assert.ok(isSecretFile('.env'));Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.// Templates such as .env.example carry no real values and help the modelFix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.npx context-trim --stats # Analyzes token bloat and estimated cost savingsFix: Pin versions and sources; vendor anything fetched at install time.'leaving out lockfiles, build output, caches, binaries and credential files (.env, keys), and masking API keys found in code. ' +Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.npx context-trim -c # Packs and copies directly to clipboardFix: Pin versions and sources; vendor anything fetched at install time.Cost to the agent
Tokens estimated at four characters each. The tool list is re-read by the agent on every turn, so it is the number to compare between servers that do the same job: ranked across the index.
Known vulnerabilities
Vulnerability advisories (OSV) cover npm and PyPI packages; this registry has no advisory database.
What would make this Verified
3 points to 80 · weights: behavior 45%, static 25%, prompt 15%, publisher 15%- Unclaimed publisher≈ +8 on the totalClaim kaanefebusiness-ai: a verified publisher gets +50 on publisher trust. It is free and usually instant with GitHub sign-in.
- Access to sensitive file paths≈ +4 on the totalStop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
- New publisher≈ +3 on the totalTime clears this on its own after 14 and 30 days. Claiming the handle (+50) is the fastest way past it.
- npx invocation of non-well-known package≈ +2 on the totalPin versions and sources; vendor anything fetched at install time.
- File type combined with upload action≈ +2 on the totalRemove the call, or declare the host in frontmatter and explain in the README what is sent and why.
- File permission modification command≈ +2 on the totalRequest the narrowest permission that works; replace wildcards with the exact paths or hosts.