Repository navigation
Context files (CLAUDE.md, AGENTS.md, .github/copilot-instructions.md, .cursor/rules/**, prompts/**) get injected into every request. This action measures them against a committed baseline, reports the token delta on each PR, and fails only when you tell it to.
- Offline. No API key, no network calls, no LLM. Tokenizer is
gpt-tokenizer, counts are approximate (±5% vs Claude/Gemini) — compare deltas, not absolutes. - Sticky PR comment updated in place, workflow annotations, job summary.
- SARIF upload to code scanning (needs
security-events: writeand GHAS on private repos). - Opt-in gating only:
fail-ondefaults tonever. - Reads files, never executes them.
permissions:
contents: read
pull-requests: write
security-events: write
steps:
- uses: actions/checkout@v4
with: { fetch-depth: 0 }
- uses: Naeha-S/ctxcap@v1.2.0
with: { fail-on: increase }Full Changelog: v1.0.1...v1.2.0