# return-line

Carry the agent's own state and dated excerpts of its own record into every live turn — appended to the message being answered at API time, never the system prompt.

- Type: Plugin
- Version: 1.1.1
- Updated: 22 Nov 2026
- Publisher: ousiaresearch
- Category: General

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

## What it does

Carry the agent's own state and dated excerpts of its own record into every live turn — appended to the message being answered at API time, never the system prompt, so per-conversation prompt caching is untouched. One raw ledger line per turn goes the other way.

Works stand-alone; pairs with the biomimetic-brain mind kit, which produces the state file it reads. Disclosure — it appends an agent-state block and retrieved record excerpts to the current user message on every turn, leaving the system prompt untouched; it indexes recent user and assistant messages from $ULPI_HOME/state.db across all sessions and platforms into a local plaintext SQLite index under the configured agent directory, and may surface those excerpts in any later conversation (relevant on multi-user gateways); it appends every turn's inbound and outbound text to \<agent_dir\>/turn-ledger.jsonl; it loads \<agent_dir\>/scripts/wander.py from the companion mind kit in-process and may run that script and \<agent_dir\>/scripts/consolidate-mind.py as background subprocesses with the Ulpi environment; no network calls of its own, no credentials, no dependencies beyond the host interpreter (numpy and scikit-learn are optional, with a keyword-search fallback).

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

- [sabbath](https://www.ulpi.io/en/marketplace/plugins/sabbath): Your agent never rests.
- [say-do-gate](https://www.ulpi.io/en/marketplace/plugins/say-do-gate): Checks agent claims against what actually ran this turn.
- [Seedguard](https://www.ulpi.io/en/marketplace/plugins/seedguard): Secret firewall: private keys, seed phrases, API keys and 2FA codes become placeholders before they reach the model; armed tools can still use them.

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