Skip to content

maximvdw/copilot-credit-guard

v0.3.0MIT

Client-side monthly AI credit budget for Copilot CLI, for seats that cannot set a native per-user AI-credit budget: progress bar, configurable warnings, and blocks tool use once the budget is spent.

Changelog

Format based on Keep a Changelog; versions follow SemVer.

[0.3.0]

Added

  • Functional test suite (tests/run.sh) that stubs the usage endpoint and covers the status, warning, denial, override, fail-open and config paths; wired into CI.

Changed

  • Repositioned for professional/Business/Enterprise seats that cannot set a native per-user AI-credit budget. Clarified in the README and docs that this complements, and does not replace, GitHub's native user-level budgets, and documented what a client-side hook cannot enforce (plain-text charges, undocumented endpoint, usage lag).

[0.2.2]

Fixed

  • host is now auto-detected from the Copilot CLI login instead of always defaulting to github.com, so GHE.com users see their own usage.

[0.2.1]

Changed

  • Adopt the Agent Plugins 1.0 layout: $schema in plugin.json, hooks moved to com.github.copilot/hooks/hooks.json.

[0.2.0]

Added

  • Marketplace catalog (copilot-credit-guard@maximvdw-tools).
  • status, config, override commands and the credit-budget skill.
  • Warning levels, blocking via preToolUse, configurable host (default github.com).
  • MIT license, documentation, security policy and contribution guidelines.