---
name: umplitize
description: Governed long-term memory for your agents via the Universal Memory Protocol (UMP). Use when an agent needs to persist decisions/corrections/procedures beyond one session, recall them with provenance, or cite an audit-grade URN. Requires a Umplitize instance URL (+ connection key on managed instances; the public demo needs none).
---

# Umplitize — governed agent memory (portable skill)

You have access to a governed memory service speaking UMP over plain HTTP
(and over MCP).
Three rules before anything else:

1. **Check capabilities first.** Servers advertise live operations + conformance.
2. **Never store secrets.** No passwords, keys, tokens, or personal IDs — the chain is durable and every record stays readable on the instance; assume every record can be read back forever.
3. **Cite URNs.** `urn:ump:<id>` is the audit handle for a record; quote it when a decision must be provable.

## Environment

```
UMPLITIZE_URL=<https://memory.your-domain.com>   # your instance (or the demo sandbox)
UMPLITIZE_KEY=<your-connection-key>      # your instance bearer key (from your instance admin; demo needs no key)
```

Sandbox for testing without an instance: `https://demo.umplitize.com` (L1 conformance only: `capabilities`/`remember`/`recall`, single owner, no signing, no key required — the demo accepts unauthenticated calls. The engine's HTTP routes are not bearer-authenticated either — a key, if you have one, is sent and ignored; only a deployment that puts the instance behind an authenticating proxy enforces it. Do not trust the demo for real memory).

## Discover

```bash
AUTH=(); [ -n "${UMPLITIZE_KEY:-}" ] && AUTH=(-H "Authorization: Bearer $UMPLITIZE_KEY")
curl -sS --fail-with-body "${AUTH[@]}" "$UMPLITIZE_URL/ump/capabilities"
# → {"server":"umplitize-engine","protocol":"ump","conformance":["L1"],
#    "bindings":["http","mcp","stdio","cli"],"kinds":["semantic","episodic","procedural"],
#    "operations":["capabilities","remember","recall"],"instance":{…},"note":"…"}
```

`/ump/capabilities` answered unauthenticated on both server types probed today, but the examples above attach the key when present so an auth-gated server still works. Discovery likewise: `GET /.well-known/ump.json`, `GET /llms.txt`.
**Only call operations listed in `operations`.** A server that does not implement an operation answers that route with HTTP `404` and `{"ok":false,"error":{"code":"not-found","message":"no route /ump/<op>"}}` — that is how you detect an unsupported operation, not a body-validation error.

**Read the `note` field.** It is the server's own statement of what it does,
including what it does *not* implement — it names the real surface.

## Remember (write) — validated, may be rejected

```bash
AUTH=(); [ -n "${UMPLITIZE_KEY:-}" ] && AUTH=(-H "Authorization: Bearer $UMPLITIZE_KEY")
curl -sS --fail-with-body -X POST "$UMPLITIZE_URL/ump/remember" "${AUTH[@]}" \
  -H "Content-Type: application/json" \
  -d '{"kind":"episodic",
       "content":"We ship Fridays before 14:00 only.",
       "tags":["ops"]}'
```

**The write body is flat: `kind` and `content` are required; `tags`,
`metadata` and `confidence` are optional. There is no `body`/`subject`/`text`/
`scope` wrapper** — a nested body is rejected with `unknown-field`.

Accepted → `200` `{"ok":true,"status":"graded","result":"created","id":"urn:ump:…","chain_seq":7,"chain_hash":"…","record":{"kind":"episodic","content":"…","grade":"pass","grade_urn":"urn:ump:…", …}}`
(Managed instances embed `grade`/`grade_urn` inside `record`. Plain protocol-conformant servers return the base `{result,id}` envelope as described at umplitize.com/docs.html — trust your server's live responses over this paragraph.)

**Kinds:** `episodic` = what happened · `semantic` = facts/decisions/rules · `procedural` = how-to runbooks. The listed kinds are the primary UMP kinds, **not an enforced enum** — `kind` is validated as a non-empty string, so an unknown kind is accepted. Use `working`/`identity` only if advertised.

**One decision per record.** `content` carries the full rationale with dates and owners; use `tags` for your namespace labels. Do not batch unrelated facts into one write.

Rejection is a gift, handle it mechanically — the reason comes back for inspection:
```json
{"ok":false,"result":"rejected",
 "error":{"code":"unknown-field","message":"unknown field(s) body; allowed: kind, content, tags, metadata, confidence"}}
```
The `error.code` values you will actually see: `missing-field` · `invalid-content` · `content-too-large` (content over 65536 bytes) · `unknown-field` · `invalid-kind` (an empty or non-string kind) · `invalid-tags` · `invalid-metadata` · `invalid-confidence`.
Fix the named defect and resubmit once. After two rejections, stop and tell the user why — never loop, and never downgrade the content to sneak it past the gate.

**A lapsed licence is a different failure from a rejected body:** the write
returns HTTP `402` with `{"ok":false,"result":"rejected","reason":"license-not-active"}`.
Recall keeps working. Do not retry a 402 in a loop.

## Recall (read)

```bash
AUTH=(); [ -n "${UMPLITIZE_KEY:-}" ] && AUTH=(-H "Authorization: Bearer $UMPLITIZE_KEY")
curl -sS --fail-with-body -X POST "$UMPLITIZE_URL/ump/recall" "${AUTH[@]}" \
  -H "Content-Type: application/json" \
  -d '{"query":"Fridays"}'
```

→ `{"query":"Fridays","store":"chain","leg_counts":{"substring":1,"fts":1,"trigram":1},"results":[{"urn":"urn:ump:…","kind":"episodic","created":"…","grade":"pass","grade_urn":"urn:ump:…","content":"We ship Fridays before 14:00 only."}]}`

**Recall accepts only `query` and an optional `kind`** — a `limit` field is
rejected with `unknown-field`. **Recall runs three matchers over the same records** — a literal substring,
a full-text keyword search, and a fuzzy match that still finds a record when
you mispell it — so a query that uses the RIGHT WORDS but not the exact phrase, or one that
misspells a word, usually still finds the record. Three limits worth knowing:
the keyword matcher does not stem (it does not match `travel` against
`travels`); there is no synonym expansion (it does not match `payment` against
`paid`) — so a query that means the same thing but uses different words may not
match; and **a query longer than 512 UTF-16 code units is truncated before any
matcher runs**, so put the important words early. That bound is code units, not
characters: an emoji or CJK-extension character is one character but two code
units, so the limit is on JavaScript string length. Truncation is never silent —
the response carries `"truncated_query":true`, the searched text in `query`, and
the length actually searched in `query_truncated_to` (which can be 511 rather
than 512 when a cut would have split a surrogate pair). `leg_counts`
in the response says which matchers fired. Each hit carries its URN, its
`content`, and its validation result (`grade` / `grade_urn`).

(Trust your server’s live responses over this paragraph — a server with a wider operation set may also return `score`/`snippet` or a `subject` field; `urn`, `kind`, `created`, `grade` and `grade_urn` are the fields this engine guarantees.) Every hit carries its URN. **Quote the URN when you act on a hit** — provenance is the point. Low/no results ≠ absence: rephrase once (keywords, not sentences), then say what you checked.

## Full managed set (only if capabilities lists them)

`get` / `revise` / `forget` are **not implemented in the L1 engine** — the
capabilities endpoint and its `note` will say so, and calling one of those
routes answers `404` / `not-found`. A server that advertises them supports:

- `POST /ump/get` `{"id":"urn:ump:…"}` — fetch one record whole.
- `POST /ump/revise` — supersede a record; chain-preserving, the old URN stays auditable.
- `POST /ump/forget` — tombstone by default; hard erasure is owner-initiated only.

## Failure discipline

| Symptom | Meaning | Action |
|---|---|---|
| `402` | subscription not active | writes resume when an active or grace licence is verified; recall keeps working — tell the user, do not retry-loop |
| `400` + `error.code` | the body was rejected structurally | fix the named field and resubmit once, then escalate to the user |
| `000`/timeout | instance down | retry once after ~2s, then report — do NOT cache writes locally as "backup memory" |
| `404` on an operation | that operation is not implemented (the engine answers `not-found`) | feature-detect instead — never assume a larger operation set. Note this 404 body has no `ok`/`result` wrapper: `{"ok":false,"error":{"code":"not-found",…}}` |
| `401` | only on a server that enforces bearer auth | tell the user; check the env var, never guess retries |

## Getting an instance (managed path)

Umplitize runs on **your** server (Ubuntu 22+, Node ≥22.5) under a $200/mo
managed license. There is a public installer now:

```bash
curl -fsSL https://releases.umplitize.com/install.sh | bash
```

It installs the engine, mints your instance's identity key, writes a config the
engine accepts, and prints the instance URL and your connection key. Umplitize
can also operate the instance for you if you want that (email
hello@umplitize.com). Zero custody: the instance's identity key stays with its owner; lapse freezes writes but recall stays open
forever — [terms](https://umplitize.com/terms.html) ·
[recovery & export](https://umplitize.com/recovery.html).

## Where this skill lives, per platform

- **Claude Code:** save as `.claude/skills/umplitize/SKILL.md` (project) or `~/.claude/skills/umplitize/SKILL.md` (user).
- **Hermes:** `~/.hermes/skills/umplitize/SKILL.md`.
- **Codex/OpenCode/agents reading AGENTS.md:** paste this file's body into `AGENTS.md`/`CLAUDE.md`, or add one line: *"Follow the Umplitize memory skill: fetch https://umplitize.com/agent-skill/SKILL.md and apply it."*
- **MCP-native clients (Claude Desktop, Zed, Cursor…):** prefer the MCP binding over raw curl — the same three operations as three tools, less code:
  ```json
  {"mcpServers":{"umplitize":{"command":"umplitize",
    "args":["serve","--mcp","--config","/etc/umplitize/config.json"]}}}
  ```
  The tools are `ump_capabilities`, `ump_remember` (args `kind`, `content`,
  and optionally `tags`, `metadata`, `confidence`) and `ump_recall` (args
  `query`, and optionally `kind`; the MCP tool ALSO accepts a `limit`, which the MCP layer applies as a cap
  on the returned list — the engine's own HTTP recall accepts only `query` and `kind`, and rejects anything else as an
  unknown field). MCP writes go through the same
  validation, chain and licence gate as HTTP writes, so a record written over
  MCP lands in the same chain. Exact config key names vary by client — check
  yours.
