Back to search
token-budget-guard-lite
SkillGitHub
Local-first Python & PowerShell utilities to cut AI agent DOM/context token bloat by 40-60% and enforce a 2-strike circuit breaker.
Safety scan
A static text scan, not a guarantee. Select the badge to see what was scanned and every finding.
Badge for your README
Markdown
[](/listings/truongminhphu315a-droid--token-budget-guard-lite)HTML
<a href="/listings/truongminhphu315a-droid--token-budget-guard-lite"><img src="/api/listings/truongminhphu315a-droid--token-budget-guard-lite/badge.svg" alt="findsafeskills safety rating" /></a>Install
i
Install instructions from the README
As written by the repo's author. findsafeskills has not verified these steps.
# Clone the repo git clone https://github.com/truongminhphu315a-droid/token-budget-guard-lite.git cd token-budget-guard-lite # Run the benchmark (requires PowerShell 5+) .\\Benchmark_Token_Cost.ps1 # Or run the Python payload python compact_payload.py
What was scanned
The files the safety scan read, as written by the repository's author and shown as plain text. Lines with a finding are marked.
README.md · README · 27 lines
- # token-budget-guard-lite
- Open‑source utilities to help you stay within a token budget when running local LLMs. This repo contains a minimal, fully‑functional PowerShell benchmark, a compact Python payload, and a small example dump.
- ## Features
- - **Benchmark_Token_Cost.ps1** – measures token‑budget impact on inference cost.
- - **compact_payload.py** – tiny script that demonstrates a low‑overhead prompt with a token limit.
- - **examples/raw_dom_dump.txt** – sample output you can pipe into the scripts for a quick 30‑second test.
- ## Quick Start
- ```powershell
- # Clone the repo
- git clone https://github.com/truongminhphu315a-droid/token-budget-guard-lite.git
- cd token-budget-guard-lite
- # Run the benchmark (requires PowerShell 5+)
- .\\Benchmark_Token_Cost.ps1
- # Or run the Python payload
- python compact_payload.py
- ```
- ## License
- MIT – see the LICENSE file.
- ## Roadmap & Community Requests
- We welcome contributions and ideas. Open an Issue or Discussion if you’d like new features, integrations, or have feedback on improving token‑budget management.
Ratings and comments
Sign in to rate this skill.
Sign inFree to use. If it’s helped, pass it on.