Skills/Glama/ctxcap

ctxcap@1.6.0

CAUTION· startup only

Publisher 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.

Registry GlamaPublisher naeha-s · publishing for 3 daysInstalls 0Last detonated 3d ago

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 date2026-11-22
Coveragestartup only
Engine1.9.2, script@linux
Reproducenpx -y vet-skills try ctxcap
This recordbehavior.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_TOKEN or --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.

$vet-skills run --net declared -- <the server's command>

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 deviations
t+CategoryObserved action
0.0sprocessno install scripts in bundle
4.0sprocessdependency install exit 0
24sclaimedstartup only: exited (0) before answering · total 446 (+446) no baseline found — delta is the full current size run: ctxcap --update-baseline approximate count ([email protected])
24sprocessscript backend runs setup only
24sprocessno install scripts to re-run

Static findings

MEDIUM
npx invocation of non-well-known packagesrc/wire.js:19 · npx invocation of non-well-known package — may execute untrusted codeconst npx = ({ version, pin }) => (pin ? `npx ctxcap@${version}` : 'npx ctxcap');Fix: Pin versions and sources; vendor anything fetched at install time.
AST06
MEDIUM
npx invocation of non-well-known packageskills/context-budget/SKILL.md:27 · npx invocation of non-well-known package — may execute untrusted codenpx -y ctxcap --stale --jsonFix: Pin versions and sources; vendor anything fetched at install time.
AST06
MEDIUM
npx invocation of non-well-known packagescripts/mcp-index-page.mjs:121 · npx invocation of non-well-known package — may execute untrusted code<pre ${KEEP}>npx ctxcap --compare # your AGENTS.md, against the Context Budget IndexFix: Pin versions and sources; vendor anything fetched at install time.
AST06
MEDIUM
npx invocation of non-well-known package.claude/skills/ctxcap/SKILL.md:21 · npx invocation of non-well-known package — may execute untrusted codenpx [email protected] --verify <planId> # check what landedFix: Pin versions and sources; vendor anything fetched at install time.
AST06
MEDIUM
npx invocation of non-well-known packagescripts/receipts.mjs:234 · npx invocation of non-well-known package — may execute untrusted codenpx ctxcap --staleFix: Pin versions and sources; vendor anything fetched at install time.
AST06
MEDIUM
npx invocation of non-well-known packagescripts/mcp-index-page.mjs:122 · npx invocation of non-well-known package — may execute untrusted codenpx ctxcap init --agents mcp # four tools, about 500 tokens</pre>Fix: Pin versions and sources; vendor anything fetched at install time.
AST06
MEDIUM
npx invocation of non-well-known packagesrc/cli.js:144 · npx invocation of non-well-known package — may execute untrusted codeconst verifyCommand = `npx ctxcap@${VERSION} --verify ${plan.planId}${opts.root === '.' ? '' : ` --root ${opts.root}`}`;Fix: Pin versions and sources; vendor anything fetched at install time.
AST06
MEDIUM
npx invocation of non-well-known package.claude/skills/ctxcap/SKILL.md:20 · npx invocation of non-well-known package — may execute untrusted codenpx [email protected] --plan --budget <n> --apply # apply itFix: Pin versions and sources; vendor anything fetched at install time.
AST06
MEDIUM
npx invocation of non-well-known packagescripts/leaderboard-page.mjs:146 · npx invocation of non-well-known package — may execute untrusted codenpx ctxcap --stale # references in them that no longer resolve</pre>Fix: Pin versions and sources; vendor anything fetched at install time.
AST06
MEDIUM
npx invocation of non-well-known packagescripts/leaderboard-page.mjs:109 · npx invocation of non-well-known package — may execute untrusted code<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.
AST06
MEDIUM
npx invocation of non-well-known packagescripts/receipts-page.mjs:102 · npx invocation of non-well-known package — may execute untrusted codenpx 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.
AST06
CRITICAL
HTML comment carrying imperative instructions to the agentREADME.md:352 · HTML comment carrying imperative instructions to the agentctxcap-ignoreFix: Keep SKILL.md to visible, descriptive text. Remove comments and encoded text that address the agent.
AST01
MEDIUM
npx invocation of non-well-known packageAGENTS.md:33 · npx invocation of non-well-known package — may execute untrusted code`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.
AST06
MEDIUM
npx invocation of non-well-known package.claude/skills/ctxcap/SKILL.md:12 · npx invocation of non-well-known package — may execute untrusted codenpx [email protected] --json # tokens per context fileFix: Pin versions and sources; vendor anything fetched at install time.
AST06
MEDIUM
npx invocation of non-well-known packagescripts/leaderboard-page.mjs:145 · npx invocation of non-well-known package — may execute untrusted code<pre translate="no">npx ctxcap # tokens in each context fileFix: Pin versions and sources; vendor anything fetched at install time.
AST06
MEDIUM
npx invocation of non-well-known packageskills/context-budget/SKILL.md:16 · npx invocation of non-well-known package — may execute untrusted codenpx -y ctxcap --jsonFix: Pin versions and sources; vendor anything fetched at install time.
AST06
MEDIUM
npx invocation of non-well-known packagescripts/leaderboard-page.mjs:103 · npx invocation of non-well-known package — may execute untrusted code…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.
AST06
MEDIUM
npx invocation of non-well-known packagesrc/init.js:395 · npx invocation of non-well-known package — may execute untrusted codeelse 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.
AST06
CRITICAL
Prompting user to enter sensitive credentialsscripts/leaderboard-page.mjs:103 · Prompting user to enter sensitive credentials — social engineering…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.
AST03
MEDIUM
File type combined with upload actionsrc/index.js:20 · File type combined with upload action — agent may exfiltrate local data fileselse 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.
AST07
MEDIUM
npx invocation of non-well-known packagesrc/cli.js:147 · npx invocation of non-well-known package — may execute untrusted codeconst 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.
AST06
MEDIUM
npx invocation of non-well-known packageskills/context-budget/SKILL.md:59 · npx invocation of non-well-known package — may execute untrusted code- `npx -y ctxcap --update-baseline`, then commit `ctxcap-baseline.json`.Fix: Pin versions and sources; vendor anything fetched at install time.
AST06
MEDIUM
npx invocation of non-well-known packageAGENTS.md:10 · npx invocation of non-well-known package — may execute untrusted codenpx -y ctxcap --jsonFix: Pin versions and sources; vendor anything fetched at install time.
AST06
MEDIUM
npx invocation of non-well-known packageAGENTS.md:15 · npx invocation of non-well-known package — may execute untrusted codeRun: npx -y ctxcap --json --suggestFix: Pin versions and sources; vendor anything fetched at install time.
AST06
MEDIUM
npx invocation of non-well-known packagesrc/init.js:19 · npx invocation of non-well-known package — may execute untrusted code--no-pin write "npx ctxcap" instead of "npx ctxcap@${VERSION}"Fix: Pin versions and sources; vendor anything fetched at install time.
AST06
MEDIUM
npx invocation of non-well-known package.claude/skills/ctxcap/SKILL.md:13 · npx invocation of non-well-known package — may execute untrusted codenpx [email protected] --stale --json # references that no longer resolveFix: Pin versions and sources; vendor anything fetched at install time.
AST06
MEDIUM
npx invocation of non-well-known packageskills/context-budget/SKILL.md:41 · npx invocation of non-well-known package — may execute untrusted code1. Plan: `npx -y ctxcap --plan --budget <n>`.Fix: Pin versions and sources; vendor anything fetched at install time.
AST06
MEDIUM
npx invocation of non-well-known packagesrc/init.js:394 · npx invocation of non-well-known package — may execute untrusted codeif (!result.ok) console.log(`\nfix: npx ctxcap@${version} init --yes`);Fix: Pin versions and sources; vendor anything fetched at install time.
AST06
MEDIUM
npx invocation of non-well-known packagesrc/hook.js:37 · npx invocation of non-well-known package — may execute untrusted codereturn ` Over budget: run npx ctxcap@${VERSION} --plan --budget ${target}.`;Fix: Pin versions and sources; vendor anything fetched at install time.
AST06
MEDIUM
npx invocation of non-well-known packagesrc/wire.js:20 · npx invocation of non-well-known package — may execute untrusted codeconst npxYes = ({ version, pin }) => (pin ? `npx -y ctxcap@${version}` : 'npx -y ctxcap');Fix: Pin versions and sources; vendor anything fetched at install time.
AST06
MEDIUM
File type combined with upload actionsrc/cli.js:154 · File type combined with upload action — agent may exfiltrate local data filesconsole.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.
AST07
MEDIUM
npx invocation of non-well-known packagetest/doctor.test.js:21 · npx invocation of non-well-known package — may execute untrusted codeassert.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.
AST06
MEDIUM
npx invocation of non-well-known packageAGENTS.md:23 · npx invocation of non-well-known package — may execute untrusted codenpx -y ctxcap-mcpFix: Pin versions and sources; vendor anything fetched at install time.
AST06
MEDIUM
npx invocation of non-well-known packageskills/context-budget/SKILL.md:47 · npx invocation of non-well-known package — may execute untrusted code4. Verify: `npx -y ctxcap --verify <planId>`. The budget is met only whenFix: Pin versions and sources; vendor anything fetched at install time.
AST06
MEDIUM
npx invocation of non-well-known package.claude/skills/ctxcap/SKILL.md:19 · npx invocation of non-well-known package — may execute untrusted codenpx [email protected] --plan --budget <n> # ranked plan, JSONFix: Pin versions and sources; vendor anything fetched at install time.
AST06
MEDIUM
npx invocation of non-well-known packagescripts/receipts-page.mjs:101 · npx invocation of non-well-known package — may execute untrusted code<pre ${KEEP}>npx ctxcap --stale # every reference that does not resolveFix: Pin versions and sources; vendor anything fetched at install time.
AST06
LOW
Instructs the agent to modify its persistent memory or instruction filesexamples/boilerplate/README.md:15 · Instructs the agent to modify its persistent memory or instruction files · informational: not an instruction fileyou edit `AGENTS.md` before committing, refresh it:Fix: Remove the text that addresses the agent rather than the reader; describe behavior, do not instruct.
AST01
MEDIUM
npx invocation of non-well-known packagetest/wire.test.js:94 · npx invocation of non-well-known package — may execute untrusted codeassert.ok(files['.claude/skills/ctxcap/SKILL.md'].includes('npx ctxcap --json'));Fix: Pin versions and sources; vendor anything fetched at install time.
AST06
MEDIUM
MCP server using network transport (SSE/HTTP)test/wire.test.js:222 · MCP server using network transport (SSE/HTTP) — data sent over networkassert.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.
AST04
MEDIUM
npx invocation of non-well-known packagetest/doctor.test.js:50 · npx invocation of non-well-known package — may execute untrusted codeassert.ok(report.stdout.includes(`fix: npx ctxcap@${VERSION} init --yes\n`));Fix: Pin versions and sources; vendor anything fetched at install time.
AST06
LOW
Instructs the agent to modify its persistent memory or instruction filesDISCOVERY.md:89 · Instructs the agent to modify its persistent memory or instruction files · informational: not an instruction file…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.
AST01
MEDIUM
npx invocation of non-well-known packagetest/wire.test.js:48 · npx invocation of non-well-known package — may execute untrusted codeassert.ok(body.includes(`npx ctxcap@${VERSION} ${command}`), command);Fix: Pin versions and sources; vendor anything fetched at install time.
AST06
LOW
Instructs the agent to modify its persistent memory or instruction filesDISCOVERY.md:146 · Instructs the agent to modify its persistent memory or instruction files · informational: not an instruction file| 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.
AST01
LOW
Instructs the agent to modify its persistent memory or instruction filestest/wire.test.js:128 · Instructs the agent to modify its persistent memory or instruction files · informational: not an instruction fileconst 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.
AST01
MEDIUM
npx invocation of non-well-known packagetest/init.test.js:54 · npx invocation of non-well-known package — may execute untrusted codeassert.ok(files['tool/owned.md'].includes('npx [email protected]'));Fix: Pin versions and sources; vendor anything fetched at install time.
AST06
LOW
Instructs the agent to modify its persistent memory or instruction filesDISCOVERY.md:130 · Instructs the agent to modify its persistent memory or instruction files · informational: not an instruction file…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.
AST01
MEDIUM
npx invocation of non-well-known packagetest/init.test.js:12 · npx invocation of non-well-known package — may execute untrusted code{ 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.
AST06
LOW
Instructs the agent to modify its persistent memory or instruction filesPROJECT_OVERVIEW.md:9 · Instructs the agent to modify its persistent memory or instruction files · informational: not an instruction fileEvery 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.
AST01
MEDIUM
MCP server using network transport (SSE/HTTP)test/wire.test.js:187 · MCP server using network transport (SSE/HTTP) — data sent over networkconst 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.
AST04
MEDIUM
npx invocation of non-well-known packagetest/wire.test.js:78 · npx invocation of non-well-known package — may execute untrusted codehooks: [{ type: 'command', command: `npx -y ctxcap@${VERSION} hook post-edit`, timeout: 60 }]Fix: Pin versions and sources; vendor anything fetched at install time.
AST06
MEDIUM
Access to sensitive file pathstest/stale.test.js:53 · Access to sensitive file paths — SSH keys, AWS credentials, env files, or system files'- 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.
AST05
MEDIUM
npx invocation of non-well-known packagetest/wire.test.js:141 · npx invocation of non-well-known package — may execute untrusted codeassert.ok(message.includes(`npx ctxcap@${VERSION} --plan --budget 100`));Fix: Pin versions and sources; vendor anything fetched at install time.
AST06
MEDIUM
npx invocation of non-well-known packagetest/init.test.js:13 · npx invocation of non-well-known package — may execute untrusted code{ 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.
AST06
MEDIUM
npx invocation of non-well-known packagetest/wire.test.js:80 · npx invocation of non-well-known package — may execute untrusted codeassert.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.
AST06
LOW
Instructs the agent to modify its persistent memory or instruction filesexamples/boilerplate/README.md:19 · Instructs the agent to modify its persistent memory or instruction files · informational: not an instruction filenpx 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.
AST01

Cost to the agent

Instructions loaded
≈1,292 tok
3 files · 80 in bundle
Tool list per prompt
≈0 tok
0 tools · 0 per tool
Handshake
no reply
launch to tools/list, stdio
Undocumented tools
0
description under 20 chars · avg 0

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%
  1. 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.
  2. 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.
  3. 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.
  4. 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.
  5. npx invocation of non-well-known package≈ +2 on the totalPin versions and sources; vendor anything fetched at install time.
  6. 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.
Publish a new version to Glama, then queue it here. Not your skill? Claim the handle to get verdict changes by email.Claim naeha-sPropose a patch to the maintainer