Skip to content

v0.1.7

Choose a tag to compare

@github-actions github-actions released this 07 Nov 06:25
· 21 commits to main since this release
65794ca

Changelog

features

  • a2a0eb9 feat(website): add the AgentDiet product site (#1)

other

  • 3a615df chore(deploy): script and document the Cloudflare Tunnel deployment (#2)
  • 83fd1d2 docs(readme): add a theme-aware banner, pipeline diagram and collapsible reference (#3)
  • 65794ca docs(site): replace prose em dashes with ordinary punctuation (#4)

Use it as a step

- uses: qansaid/agentdiet@v1
  with:
    max-tokens: 4000   # fail the job above this always-on budget; 0 disables the gate
    window: 200000     # context window for the share column
input default meaning
path . repository path to audit
max-tokens 4000 fail when always-on tokens exceed this; 0 disables the gate
window 200000 context window used for the share column
version latest agentdiet version to install
output meaning
always-on-tokens tokens injected into every request
grade A-F against the budget

Deterministic and offline: no API key, no network at audit time. The
estimator (prose chars/4.5 + fenced-code chars/3.4, rounded up per segment)
is calibrated against cl100k_base at a measured MAE of 8%.

Why this exists

Every agent runtime has a folder of files it loads unconditionally. They
grow by accretion — a rule per incident, a table per architecture decision —
until the agent spends 12k tokens of attention on stale instructions before
it has read the question. agentdiet turns that into a number in the CI log
and a budget that fails the pull request that would have made it worse.

MIT licensed. Source, docs, and real sample output:
https://github.com/qansaid/agentdiet