Data Saver
PLUGINA mobile-data budget for Ulpi.
by ahmardchain · v0.1.1
What it does
A mobile-data budget for Ulpi. A pre_tool_call hook forecasts how many megabytes a terminal command will download before it runs (pip/uv with dependencies, git clone, docker pull, Hugging Face, ollama, curl/wget) and sends anything over the daily or monthly budget to Ulpi's own approval prompt, or blocks it in enforce mode.
Execution middleware meters the real bytes each tool call and model request used from the OS network counters into a local ledger; a lean mode trims web results when the budget runs low. Tools: data_usage, data_forecast.
Command: /datasaver. Ulpi Plugin Hackathon entry.
The ledger (<ULPI_HOME>/plugin-data/data-saver/data.db) stores time, tool name, bytes and the first 300 characters of the command or URL (including any token written into it), locally. In lean mode it shortens web_extract and web_search results.
Network counters are system-wide, so other apps' traffic during a tool call is counted. No telemetry, no shell commands, no background process.
Tools it adds
The tools an agent gets once this plugin is installed.
- data_usage
- data_forecast
Review notes
What an owner reads and accepts before the install is approved.
- Ulpi has not reviewed this version: it is listed in the public plugin catalog, and the install still fetches it at its pinned commit, checks its shape and scans it before you approve