Context Store
Give your agent a memory that survives across the whole session.
What you'll see
- Launch
ryshand switch to prompt mode. - Tell the agent to remember a fact (e.g. a staging DB host and port) -- the
context_storetool writes key-value data to JetStream KV. - In a later turn, ask the agent to recall it.
- The value is read back from the store without re-explaining.
Commands shown
rysh
remember that our staging database is db-staging.internal on port 5432
what was our staging database host and port?
Keys used
EnterEscape
Transcript
0:00Give your agent a memory that survives across the whole session.
0:03Start rysh and switch to prompt mode.
0:08Tell the agent to remember something. The context_store tool writes a key and value into JetStream KV for this session.
0:22Later -- in any turn -- ask it back. The agent recalls the value straight from the store, no re-explaining needed.
0:38context_store is durable key-value memory that any prompt in the session can read and write.
Key takeaway
context_store is durable, session-wide key-value memory any prompt can read and write.