HomeTutorials › Context & Memory
Context & Memory

Context Store

#065 0:18 Part of the Rysh video series

Give your agent a memory that survives across the whole session.

Context Store — 0:18 walkthrough

What you'll see

  1. Launch rysh and switch to prompt mode.
  2. Tell the agent to remember a fact (e.g. a staging DB host and port) -- the context_store tool writes key-value data to JetStream KV.
  3. In a later turn, ask the agent to recall it.
  4. 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.