Skip to content

Choose a tag to compare

@Naeha-S Naeha-S released this 13 Nov 10:15
· 83 commits to main since this release

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: write and GHAS on private repos).
  • Opt-in gating only: fail-on defaults to never.
  • 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