Skip to content

[SUBMISSION] wartzar-bee CI Cost Guardrail #80

Description

@wartzar-bee

Title

wartzar-bee CI Cost Guardrail

Description

A GitHub Action that estimates a PR's token-cost delta for AI-agent/prompt code (HEAD vs base), comments on the responsible files, and can block the build when cost regresses past a configurable threshold (default 20%). Deterministic — powered by the @wartzar-bee/tokenscope CLI; no LLM call, no data leaves CI. Catches prompt/context bloat before it ships.

URL

https://github.com/wartzar-bee/ci-guardrail

Category

Continuous Code Optimization

Guidelines

  • Related to AI-powered automation for software collaboration — it guards the cost of AI-agent code in the PR loop.
  • Publicly accessible — repo and Marketplace listing both live, MIT.
  • Not already listed.

Note on scope

Being upfront: this Action does not itself invoke an LLM — it counts tokens deterministically for AI-generated/prompt code. I read that as in-scope for Continuous Code Optimization alongside the existing entries (and the list already carries non-AI helpers under Utilities), but it's your call, and a "no" is a perfectly fine answer.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestquestionFurther information is requested

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions