Skip to content

Search is only available in production builds. Try building and previewing the site to test it out locally.

Memory Roles

Postgram uses explicit memory roles so you can store both long-term memory and conversation continuity without mixing them.

This page explains when to use durable_memory versus session_context, how to query each role, and how to groom expired session context.

  1. Store durable operational memory with role metadata:
Terminal window
pgm store "Prefer GraphQL for search result caching." \
--type=memory \
--tags architecture \
--metadata '{"memory_role":"durable_memory"}'
  1. Store session context for thread continuity:
Terminal window
pgm memory session-context "We discussed entity graph boundaries." \
--tags session-context \
--topic postgram-memory
  1. Query a specific role:
Terminal window
pgm search "entity graph boundaries" --type=memory --memory-role session_context
  1. Clean up session context when it grows stale (normal users use --dry-run, then an explicit duration, then --yes).
  • Durable memory is intended for long-term, future-agent truth.
  • Session context is typically scoped to a client identity and used for short-term continuity.
  • The admin CLI supports broader maintenance options such as --all-clients, promotion, and archiving modes.