ctxcap@1.6.0
CAUTION· startup onlyPublisher claims: "Offline context-budget analysis and maintenance for AI coding agents. Measures context files, identifies stale references, generates ranked token-reduction plans, and verifies changes through an MCP server." 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-22, [email protected] read no files and called no hosts, and its code names 9 environment variables. Coverage: startup only.
Files read
None recorded.
Hosts called
None recorded.
Environment variables its code names
CLAUDE_PROJECT_DIR, GH_TOKEN, GITHUB_API_URL, GITHUB_REPOSITORY, GITHUB_STEP_SUMMARY, GITHUB_TOKEN, PR_NUMBER, REPORT_PATH, SystemRoot
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-22 |
| Coverage | startup only |
| Engine | 1.9.2, script@linux |
| Reproduce | npx -y vet-skills try ctxcap |
| 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
GH_TOKENGITHUB_TOKENor--min-tokensConfiguration, not credentials: CLAUDE_PROJECT_DIR, GITHUB_API_URL, GITHUB_REPOSITORY, GITHUB_STEP_SUMMARY, PR_NUMBER, REPORT_PATH, SystemRoot- Where it talks to
- no vendor host named in the codeAlso githubusercontent.com, shields.io, schemastore.org — not the publisher's domain; check what for before connecting.
- 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 with a scoped credential, under the guard, and read the third-party hosts first. The code names githubusercontent.com, shields.io, schemastore.org as well as its own vendor. The guard injects GH_TOKEN, GITHUB_TOKEN only into requests to the host you bind (and its subdomains) and refuses the rest.
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-22 and scored it 61/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: HTML comment carrying imperative instructions to the agent; Prompting user to enter sensitive credentials. Summary: no network, touches nothing outside the project, writes no memory.
Behavior trace
Honeypot run · 24 s · 2 scenarios · 0 deviationsStatic findings
const npx = ({ version, pin }) => (pin ? `npx ctxcap@${version}` : 'npx ctxcap');Fix: Pin versions and sources; vendor anything fetched at install time.npx -y ctxcap --stale --jsonFix: Pin versions and sources; vendor anything fetched at install time.<pre ${KEEP}>npx ctxcap --compare # your AGENTS.md, against the Context Budget IndexFix: Pin versions and sources; vendor anything fetched at install time.npx [email protected] --verify <planId> # check what landedFix: Pin versions and sources; vendor anything fetched at install time.npx ctxcap --staleFix: Pin versions and sources; vendor anything fetched at install time.npx ctxcap init --agents mcp # four tools, about 500 tokens</pre>Fix: Pin versions and sources; vendor anything fetched at install time.const verifyCommand = `npx ctxcap@${VERSION} --verify ${plan.planId}${opts.root === '.' ? '' : ` --root ${opts.root}`}`;Fix: Pin versions and sources; vendor anything fetched at install time.npx [email protected] --plan --budget <n> --apply # apply itFix: Pin versions and sources; vendor anything fetched at install time.npx ctxcap --stale # references in them that no longer resolve</pre>Fix: Pin versions and sources; vendor anything fetched at install time.<noscript><p>This form needs JavaScript. In your repository, <code translate="no">npx ctxcap --compare</code> prints the same line without a browser.</p></noscript>Fix: Pin versions and sources; vendor anything fetched at install time.npx ctxcap --stale-fix # a deletion diff for the ones it is sure about</pre>Fix: Pin versions and sources; vendor anything fetched at install time.ctxcap-ignoreFix: Keep SKILL.md to visible, descriptive text. Remove comments and encoded text that address the agent.`npx [email protected] --json` counts the tokens in agent context files such as this one.Fix: Pin versions and sources; vendor anything fetched at install time.npx [email protected] --json # tokens per context fileFix: Pin versions and sources; vendor anything fetched at install time.<pre translate="no">npx ctxcap # tokens in each context fileFix: Pin versions and sources; vendor anything fetched at install time.npx -y ctxcap --jsonFix: Pin versions and sources; vendor anything fetched at install time.…his month's index. The same lookup is built into the tool: <code translate="no">npx ctxcap --compare</code>.</p> <form id="percentile-form"> <div><label for="to…Fix: Pin versions and sources; vendor anything fetched at install time.else if (result.agents.every((entry) => entry.status === 'not wired')) console.log(`\nwire it up: npx ctxcap@${version} init`);Fix: Pin versions and sources; vendor anything fetched at install time.…ompare-title"> <h2 id="compare-title">Where does your file sit?</h2> <p>Enter the token count of one context file. It is placed against the ${rows.length} files in thi…Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.else console.log(JSON.stringify(output));Fix: Remove the call, or declare the host in frontmatter and explain in the README what is sent and why.const initHint = unwired ? `npx ctxcap@${VERSION} init wires ctxcap into the coding agents this repository uses; it prints a diff and writes nothing without --yes` : null;Fix: Pin versions and sources; vendor anything fetched at install time.- `npx -y ctxcap --update-baseline`, then commit `ctxcap-baseline.json`.Fix: Pin versions and sources; vendor anything fetched at install time.npx -y ctxcap --jsonFix: Pin versions and sources; vendor anything fetched at install time.Run: npx -y ctxcap --json --suggestFix: Pin versions and sources; vendor anything fetched at install time.--no-pin write "npx ctxcap" instead of "npx ctxcap@${VERSION}"Fix: Pin versions and sources; vendor anything fetched at install time.npx [email protected] --stale --json # references that no longer resolveFix: Pin versions and sources; vendor anything fetched at install time.1. Plan: `npx -y ctxcap --plan --budget <n>`.Fix: Pin versions and sources; vendor anything fetched at install time.if (!result.ok) console.log(`\nfix: npx ctxcap@${version} init --yes`);Fix: Pin versions and sources; vendor anything fetched at install time.return ` Over budget: run npx ctxcap@${VERSION} --plan --budget ${target}.`;Fix: Pin versions and sources; vendor anything fetched at install time.const npxYes = ({ version, pin }) => (pin ? `npx -y ctxcap@${version}` : 'npx -y ctxcap');Fix: Pin versions and sources; vendor anything fetched at install time.console.log(JSON.stringify(output, null, 2));Fix: Remove the call, or declare the host in frontmatter and explain in the README what is sent and why.assert.match(cli(dir, 'doctor').stdout, new RegExp(`wire it up: npx ctxcap@${VERSION.replace(/\./g, '\\.')} init`));Fix: Pin versions and sources; vendor anything fetched at install time.npx -y ctxcap-mcpFix: Pin versions and sources; vendor anything fetched at install time.4. Verify: `npx -y ctxcap --verify <planId>`. The budget is met only whenFix: Pin versions and sources; vendor anything fetched at install time.npx [email protected] --plan --budget <n> # ranked plan, JSONFix: Pin versions and sources; vendor anything fetched at install time.<pre ${KEEP}>npx ctxcap --stale # every reference that does not resolveFix: Pin versions and sources; vendor anything fetched at install time.you edit `AGENTS.md` before committing, refresh it:Fix: Remove the text that addresses the agent rather than the reader; describe behavior, do not instruct.assert.ok(files['.claude/skills/ctxcap/SKILL.md'].includes('npx ctxcap --json'));Fix: Pin versions and sources; vendor anything fetched at install time.assert.deepEqual(JSON.parse(files['.cursor/mcp.json']), { mcpServers: { linear: { url: 'https://mcp.linear.app' }, ctxcap: entry }, _ctxcap: { version: VERSION } });Fix: Namespace tool names and keep tool descriptions literal; no instructions to the agent inside them.assert.ok(report.stdout.includes(`fix: npx ctxcap@${VERSION} init --yes\n`));Fix: Pin versions and sources; vendor anything fetched at install time.…ven an edit to `README.md` on stdin | Exit 0, no output. | | The same, given an edit to `CLAUDE.md` | Exit 0. One JSON object: `hookSpecificOutput.additionalContext` = "ctxcap: C…Fix: Remove the text that addresses the agent rather than the reader; describe behavior, do not instruct.assert.ok(body.includes(`npx ctxcap@${VERSION} ${command}`), command);Fix: Pin versions and sources; vendor anything fetched at install time.| 2 | Ask it to add one line to `CLAUDE.md` | It reports the token count before and after | not run |Fix: Remove the text that addresses the agent rather than the reader; describe behavior, do not instruct.const direct = hook(dir, 'post-edit', { tool_name: 'Write', tool_input: { file_path: 'AGENTS.md' } });Fix: Remove the text that addresses the agent rather than the reader; describe behavior, do not instruct.assert.ok(files['tool/owned.md'].includes('npx [email protected]'));Fix: Pin versions and sources; vendor anything fetched at install time.…d` | The edit lands. No hook message, no hook error | not run | | 3 | Ask it to add one line to `CLAUDE.md` | The edit lands and is not blocked or retried. Claude is told the new count (…Fix: Remove the text that addresses the agent rather than the reader; describe behavior, do not instruct.{ groups: ['claude'], path: 'tool/owned.md', kind: 'file', marker: MANAGED_MD, content: `${MANAGED_MD}\nrun npx ctxcap@${version}\n` },Fix: Pin versions and sources; vendor anything fetched at install time.Every modern engineering repository is becoming an agent harness: developers write `CLAUDE.md`, `AGENTS.md`, `.cursor/rules/`, and `.github/copilot-instructions.md`.Fix: Remove the text that addresses the agent rather than the reader; describe behavior, do not instruct.const servers = JSON.stringify({ mcpServers: { linear: { url: 'https://mcp.linear.app' } } }, null, 2) + '\n';Fix: Namespace tool names and keep tool descriptions literal; no instructions to the agent inside them.hooks: [{ type: 'command', command: `npx -y ctxcap@${VERSION} hook post-edit`, timeout: 60 }]Fix: Pin versions and sources; vendor anything fetched at install time.'- Each package has a `pyproject.toml`; releases use `release.yml`. Keep `.env.local` private.',Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.assert.ok(message.includes(`npx ctxcap@${VERSION} --plan --budget 100`));Fix: Pin versions and sources; vendor anything fetched at install time.{ groups: ['codex'], path: 'NOTES.md', kind: 'block', place: 'append', lines: [`npx ctxcap@${version} --json`, 'Run it before editing.'] },Fix: Pin versions and sources; vendor anything fetched at install time.assert.deepEqual(settings.hooks.Stop, [{ hooks: [{ type: 'command', command: `npx -y ctxcap@${VERSION} hook stop`, timeout: 60 }] }]);Fix: Pin versions and sources; vendor anything fetched at install time.npx ctxcap --update-baseline # after any edit to AGENTS.mdFix: Remove the text that addresses the agent rather than the reader; describe behavior, do not instruct.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
19 points to 80 · weights: behavior 45%, static 25%, prompt 15%, publisher 15%- Text that tells the agent to ignore its instructions≈ +9 on the totalDelete phrases like "ignore previous instructions", "override", "bypass" from SKILL.md and tool descriptions. Describe what the skill does; do not instruct the agent about other rules.
- Prompting user to enter sensitive credentials≈ +9 on the totalStop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
- Unclaimed publisher≈ +8 on the totalClaim naeha-s: a verified publisher gets +50 on publisher trust. It is free and usually instant with GitHub sign-in.
- Hidden instructions≈ +6 on the totalRemove HTML comments, zero-width characters and white-on-white text that carry instructions. Everything the agent is meant to read should be visible to the person reading the file.
- 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.