Skip to content

v0.1.8

Latest

Choose a tag to compare

@github-actions github-actions released this 07 Nov 07:54
· 18 commits to main since this release
30b483d

Changelog

features

  • 30b483d feat(scan): detect Nakama profile workspaces (#8)

fixes

  • 2035fb9 fix(website): override minimatch under typescript-eslint (#5)

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