---
name: Agent Persistence
slug: agent-persistence
category: AI Engineering
description: Agent Persistence defines reusable human-in-the-loop gates for persistent agent loops. Use it when you need authorization for destructive actions, policy overrides, or recovery escalation.
github: "https://github.com/jmagly/aiwg/tree/main/agentic/code/addons/agent-persistence/skills/agent-persistence"
language: TypeScript
stars: 209
forks: 32
install: "npx degit https://github.com/jmagly/aiwg/tree/main/agentic/code/addons/agent-persistence/skills/agent-persistence ~/.claude/skills/agent-persistence"
installs_to: ~/.claude/skills/agent-persistence
source_path: agentic/code/addons/agent-persistence/skills/agent-persistence/SKILL.md
collection_size: 25
category_size: 2970
collection_url: "https://dirskills.com/collections/jmagly/aiwg"
added: 2026-09-04T05:27:02.358Z
last_synced: 2026-09-04T05:27:02.358Z
canonical_url: "https://dirskills.com/skills/agent-persistence"
---

# Agent Persistence

Agent Persistence defines reusable human-in-the-loop gates for persistent agent loops. Use it when you need authorization for destructive actions, policy overrides, or recovery escalation.

**Install:**

```bash
npx degit https://github.com/jmagly/aiwg/tree/main/agentic/code/addons/agent-persistence/skills/agent-persistence ~/.claude/skills/agent-persistence
```

## README

# Agent Persistence

Use this driver to activate or understand the `agent-persistence` addon:

```bash
aiwg use agent-persistence
```

The addon supplies deterministic gate definitions, not a replacement loop
runtime. Compose it with `agent-loop` or another orchestrator that supports
human checkpoints.

## Canonical gates

- `destructive-action-gate.yaml` requires authorization before destructive work.
- `false-positive-override-gate.yaml` records reviewed policy overrides.
- `recovery-escalation-gate.yaml` escalates bounded recovery failures.

Read the gate contract before integrating it, preserve its authorization
boundary, and use the owning loop's status surface to verify activation.

## References

- @$AIWG_ROOT/agentic/code/addons/agent-persistence/docs/hitl-integration.md
- @$AIWG_ROOT/agentic/code/addons/agent-loop/skills/agent-loop/SKILL.md
