# AMEM.SUMMARY.LIST

> List the agent ids that have a rolling summary.

URL: https://docs.hotkv.com/commands/amem-summary-list/

```
AMEM.SUMMARY.LIST
```

- Group: Agent memory
- Complexity: O(N) where N is the number of summaries
- HotKV Cloud: Performance and Scale plans
- On-Premise: requires the amem-summary license feature

Agent summaries keep one rolling, versioned text summary per agent, so a long-running agent can carry a compact summary in its prompt instead of its whole history. `AMEM.SUMMARY.LIST` returns the agent ids that have a summary on
the server you are connected to, in no particular order. In a cluster, each
node lists only the summaries it holds.

## Return value

| Case | RESP2 | RESP3 |
| --- | --- | --- |
| Always | Array of bulk strings (empty if there are none) | Same |

Errors:

- `ERR wrong number of arguments for 'amem.summary.list' command` if the argument count is wrong.
- `NOLICENSE amem-summary requires a HotKV license. Contact sales@hotkv.com` if your license does not include the `amem-summary` feature.

## Examples

```
127.0.0.1:6379> AMEM.SUMMARY.LIST
1) "agent-42"
```

## Compatibility

HotKV-only command. Redis and Valkey have no equivalent.

## See also

[AMEM.SUMMARY.SET](https://docs.hotkv.com/commands/amem-summary-set/index.md), [AMEM.SUMMARY.APPEND](https://docs.hotkv.com/commands/amem-summary-append/index.md), [AMEM.SUMMARY.GET](https://docs.hotkv.com/commands/amem-summary-get/index.md), [AMEM.SUMMARY.DROP](https://docs.hotkv.com/commands/amem-summary-drop/index.md), [AI features guide](https://docs.hotkv.com/ai-features/index.md)