natiixnt/Redcon

Optimize LLM context windows, enforce token budgets, and track cost savings across CI runs.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Activelast commit Jul 10, 2026
License
MIT

Pinned Snippet

workflow.ymlSHA-pinned
uses: natiixnt/redcon@54318657b1b3ea79d00af7335826314f7c7f3bfd # v1.8.0

tags can be moved; commit SHAs can't. why a SHA?

namedescriptionrequireddefault
taskNatural language description of the task the agent will perform. Used to rank which files are most relevant to include in context. Defaults to a generic evaluation task if omitted. no""
repoPath to the repository to analyze (default: current directory).no.
policyPath to a policy TOML file defining token budgets and quality constraints. Example: .github/redcon-policy.toml no""
max-tokensMaximum token budget for the packed context (default: 128000).no128000
top-filesMaximum number of files to include in the packed context (default: 100).no100
strictFail the step (exit 1) when the policy check fails (default: false).nofalse
upload-artifactsUpload the JSON run artifact and Markdown report as GitHub Actions artifacts.notrue
out-prefixOutput file prefix for JSON and Markdown artifacts (default: redcon-ci).noredcon-ci
modelModel name for cost-analysis pricing (default: gpt-4o). Run 'redcon cost-analysis --list-models' to see all supported models. nogpt-4o
cloud-urlRedcon Cloud URL for sending telemetry events (optional).no""
cloud-api-keyAPI key for authenticating with Redcon Cloud (optional).no""
namedescription
token-estimateEstimated input tokens for the packed context.
tokens-savedTokens saved compared to the full context baseline.
savings-ratePercentage of tokens saved (0-100).
policy-passed'true' if all policy checks passed, 'false' otherwise.
dollars-savedEstimated USD saved (based on --model pricing).
artifact-jsonPath to the run artifact JSON file.
artifact-mdPath to the Markdown report.