The memory planes¶
Pion is one process that holds the memory an inference stack otherwise spreads over four services: the prompt's K/V tensors, recurrent (SSM) state, MoE expert weights, vectors and embeddings, and the agent's own memory — behind one wire protocol, with one durability story.
The planes¶
| Plane | Commands | Status | Reference |
|---|---|---|---|
| Prefix K/V cache | KV.PREFIX.*, V.* |
supported | KV.PREFIX.* · V-store |
| Attention over cached K/V | ATTEND.*, ATTEND.PREFIX.* |
supported | ATTEND.* |
| Recurrent state | SSM.PREFIX.* |
supported | SSM.PREFIX.* |
| Vectors and retrieval | FT.*, VADD/VSIM and the rest of VSET, BM25, hybrid |
supported | FT.* and VSET |
| Semantic cache | AI.SEMANTIC_CACHE, AI.EMBED |
supported | AI.* |
| Key-value | the Redis command surface | supported | Redis-compatible commands |
| Gateway commands | AI.COMPLETE, AI.CHAT |
experimental | AI.* |
An experimental plane is in the tree and tested as far as its page says, with no published measurement of what it buys and no user outside this project; it may change or be removed.
Every plane speaks RESP2/RESP3, so any Redis client can reach it. The K/V planes also have a binary lane on port+1 for large tensor transfers.
What Pion is not¶
- Not an inference engine. Pion does not run forward passes. mlx-lm, MLX, vLLM and similar runtimes run the model and use Pion as their memory.
- Not a general vector database. The vector engine exists so that recall does not need a second database. It is one HNSW index per server (vector engine).
- Not an AI gateway. The experimental
AI.COMPLETEandAI.CHATcommands are conveniences; nothing above needs them.
The one integration package is pion-vllm-mlx (the prompt cache and
pion-vllm-mlx serve), which talks to the server over the wire.