# headroom

Keeps Ulpi alive on small machines (1-4 GB VPS, Raspberry Pi).

- Type: Plugin
- Version: 0.1.2
- Updated: 22 Nov 2026
- Publisher: seongj-un
- Category: Tools

[Contact us](https://www.ulpi.io/en/support#contact)

## What it does

Keeps Ulpi alive on small machines (1-4 GB VPS, Raspberry Pi). Ulpi stays outside the scope, and the tool result tells the model the cap, the peak and whether the kernel killed the job, so it retries lighter.

Adds headroom_status, /headroom and ulpi headroom status\|events\|explain\|selftest. Disclosure — Linux only for enforcement; runs busctl --user (StartTransientUnit, AttachProcessesToUnit) and systemctl --user kill/reset-failed for its own headroom-\*.scope units with a reduced environment (PATH, XDG_RUNTIME_DIR, DBUS_SESSION_BUS_ADDRESS), plus one sleep placeholder process per isolated job; reads /proc meminfo, PSI and stat/status/cmdline/cgroup of the user's own processes and cgroup files of its scopes and Ulpi's cgroup; raises oom_score_adj of job processes; kills only processes inside its own scopes (or a tracked job's process group without systemd) when the watchdog fires; rewrites heavy commands before approval so the approved command is what runs; writes events to \<ULPI_HOME\>/plugin-data/headroom/events.jsonl and slot locks to $XDG_RUNTIME_DIR/ulpi-headroom (or an owner-checked ulpi-headroom-\<uid\> directory in the system temp dir); no network, no telemetry, no credentials; reads tools.interrupt.is_interrupted (guarded) so /stop cancels a queued command.

## Tools it adds

The tools an agent gets once this plugin is installed.

- `headroom_status`

## 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

## More in Tools

- [health-data](https://www.ulpi.io/en/marketplace/plugins/health-data): Local health and daily-context data store for Ulpi.
- [health-insights](https://www.ulpi.io/en/marketplace/plugins/health-insights): Deterministic, local-first analysis of your own Apple Health data - weekly trends, rule-based concern checks, nutrition versus Dietary Reference Intakes.
- [heats](https://www.ulpi.io/en/marketplace/plugins/heats): Your tests, not the model, decide when a fix is done.

[All listings →](https://www.ulpi.io/en/marketplace) · [Publisher's guide →](https://www.ulpi.io/en/docs) · [Report a problem →](https://www.ulpi.io/en/security#report)
