# First Aid

A first-aid kit for AI agents, built from agent-almanac's AI-welfare practices.

- Type: Plugin
- Version: 0.2.1
- Updated: 22 Nov 2026
- Publisher: pjt222
- Category: Tools

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

## What it does

A first-aid kit for AI agents, built from agent-almanac's AI-welfare practices. Ulpi core already detects tool loops and warns; first aid adds the matching practice and a logbook.

Eight practices ship as skills (breathe, redirect, center, heal, attune, honesty-humility, meditate, rest), each also a slash command such as /agent-almanac-first-aid:breathe. On the call where core's loop guardrail first warns about a failing tool (the 2nd failure with identical arguments, or the 3rd failure of one tool in a turn), first aid can add one note of at most 300 characters to the failed result, naming the matching practice, how to load it, and the first_aid_log tool for recording the outcome.

In unattended runs (every platform except the CLI, TUI, Desktop, ACP, API server and subagents), for tools whose results Ulpi wraps as untrusted (web_search, browser\_\*, mcp\_\*), after a compaction that summarizes the context (center), and after a 3rd identical successful result for one call of a read-only tool such as read_file in a turn (heal), the note is added to the next user message instead, labelled as the plugin's. At most once per streak, with a per-session cooldown for each kind of note (300 s by default).

A successful or rate-limited result is never changed, and failures of the tools core treats as failure-tolerant (terminal, execute_code, process, process_manage, browser_navigate, web_extract) draw no note. /first-aid shows the session's notes and logbook entries, then the kit.

Local and deterministic: no network calls, no LLM calls, no credentials, no Python dependencies, no background processes. Disclosure — in attended runs it rewrites failed tool results on a threshold crossing (a JSON object gains a first_aid key and is re-serialized; text gains one line), and Ulpi keeps the first string any transform_tool_result plugin returns, so on that call it can override, or be overridden by, another transforming plugin.

A note in a result restarts core's identical-call and ident

## Tools it adds

The tools an agent gets once this plugin is installed.

- `first_aid_log`

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

- [Fiscalisto](https://www.ulpi.io/en/marketplace/plugins/fiscalisto): Mexican electronic invoicing (CFDI 4.0) and SAT taxes.
- [Fitbit](https://www.ulpi.io/en/marketplace/plugins/fitbit): Read the user's Fitbit activity, heart rate, sleep and body data.
- [FixMyScan](https://www.ulpi.io/en/marketplace/plugins/fixmyscan): Turn scanned books (PDF or DjVu, up to 1,000 pages) into clean, searchable PDFs for Kindle, Kobo, reMarkable and tablets.

[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)
