AGENTIC SYSTEMS GUIDE

Agent memory and state

Choose what to remember, where to store it, and how to recall it for the right user.

Choose a task to build

SEE HOW THE SYSTEM FITS TOGETHERSELECT A COMPONENT
goalcontextrecallcandidatesvalidatedresumeUser requestVerified identity + goalAgent loopCurrent task controllerContext builderBudget and rank evidenceMemory storesFacts, vectors and graphWrite policyExtract, verify, expireCheckpointsResume this run
  1. Resolve the authenticated tenant, user and current task before reading any state.

  2. Use the bounded context to decide a next step. Save progress separately from proposed long-term memories.

  3. Combine trusted instructions, the active request, scoped recall and the relevant checkpoint within a token budget.

  4. Retain source facts with provenance and expiry; use derived indexes for recall under the same access scope.

  5. Accept only permitted memory types, verify their source and resolve corrections before writing.

  6. Store execution progress by authenticated thread/run. A checkpoint is not a permanent user preference.

Agent loop

Use the bounded context to decide a next step. Save progress separately from proposed long-term memories.

Follow the arrows, then select a component to inspect its responsibility. On mobile, downward arrows connect the next step; bent arrows identify branches and return paths. Select a destination to jump to that component.

Start with a working example

Explore memory and state tools