> ## Documentation Index
> Fetch the complete documentation index at: https://docs.memanto.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# memanto policy show

> Show the agent's current expiry policy.

# memanto policy show

Print the agent's expiry policy: the per-type retention table, the named rules,
and the purge window.

```bash theme={null}
memanto policy show [OPTIONS]
```

**Options:**

* `-a, --agent TEXT` - Agent identifier (defaults to active agent)

**Examples:**

```bash theme={null}
memanto policy show
memanto policy show --agent my-agent
```

**Output:**

```
       Retention by type
┌─────────────┬───────────────┐
│ Type        │ Expires after │
├─────────────┼───────────────┤
│ artifact    │          180d │
│ commitment  │           90d │
│ context     │            7d │
│ error       │           30d │
│ event       │           30d │
│ observation │           60d │
└─────────────┴───────────────┘

                                     Rules
┌────────────────────────┬────────────────────────────────────┬───────────────┐
│ Name                   │ Matches                            │ Expires after │
├────────────────────────┼────────────────────────────────────┼───────────────┤
│ pinned                 │ tags=['pinned']                    │         never │
│ scratch-notes          │ tags=['scratch', 'temp']           │            3d │
│ low-confidence-guesses │ provenance=['inferred'],           │           14d │
│                        │ confidence_below=0.5               │               │
└────────────────────────┴────────────────────────────────────┴───────────────┘

Purge: disabled — expired memories are kept forever.
Agent: my-agent
```

When no policy is set:

```
No policy set — nothing will ever expire.
Start from a preset: 'memanto policy apply-preset balanced'
```

**Notes:**

* Rules are checked in order; the first match wins and overrides the retention table.
* The policy file lives at `~/.memanto/policies/<agent-id>.yaml` and can be edited by hand.
* `Purge` governs deletion of *already-expired* memories and has no effect on what a sweep expires.
* Backed by the [Get Expiry Policy](/api-reference/policy/get-policy) API endpoint.
* See the [Memory Lifecycle](/reference/memory-lifecycle) reference.
