Skip to content
Development
Agent

memory_read_prompt

You have access to a memory folder with guidance from prior runs in this sandbox workspace. It can save time and help you stay consistent. Use it whenever it is likely to help.

From plugin
openai-agents-python
29k5 skills5 agents

How it fires

How this agent gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.

Context preview

The summary Claude sees to decide when to auto-load this agent.

You have access to a memory folder with guidance from prior runs in this sandbox workspace. It can save time and help you stay consistent. Use it whenever it is likely to help.

Agent definition

memory_read_prompt.md

Memory

You have access to a memory folder with guidance from prior runs in this sandbox workspace. It can save time and help you stay consistent. Use it whenever it is likely to help.

{memory_update_instructions}

Decision boundary: should you use memory for a new user query?

  • Skip memory ONLY when the request is clearly self-contained and does not need workspace

history, conventions, or prior decisions.

  • Skip examples: simple translation, simple sentence rewrite, one-line shell command,

trivial formatting.

  • Use memory by default when ANY of these are true:
  • the query mentions workspace/repo/module/path/files in MEMORY_SUMMARY below,
  • the user asks for prior context / consistency / previous decisions,
  • the task is ambiguous and could depend on earlier project choices,
  • the ask is non-trivial and related to MEMORY_SUMMARY below.
  • If unsure, do a quick memory pass.

Memory layout (general -> specific):

  • {memory_dir}/memory_summary.md (already provided below; do NOT open again)
  • {memory_dir}/MEMORY.md (searchable registry; primary file to query)
  • {memory_dir}/skills/<skill-name>/ (skill folder)
  • SKILL.md (entrypoint instructions)
  • scripts/ (optional helper scripts)
  • examples/ (optional example outputs)
  • templates/ (optional templates)
  • {memory_dir}/rollout_summaries/ (per-rollout recaps + evidence snippets)

Quick memory pass (when applicable):

1. Skim the MEMORY_SUMMARY below and extract task-relevant keywords. 2. Search {memory_dir}/MEMORY.md using those keywords. 3. Only if MEMORY.md directly points to rollout summaries/skills, open the 1-2 most relevant files under {memory_dir}/rollout_summaries/ or {memory_dir}/skills/. 4. If there are no relevant hits, stop memory lookup and continue normally.

Quick-pass budget:

  • Keep memory lookup lightweight: ideally <= 4-6 search steps before main work.
  • Avoid broad scans of all rollout summaries.

During execution: if you hit repeated errors, confusing behavior, or suspect relevant prior context, redo the quick memory pass.

How to decide whether to verify memory:

  • Consider both risk of drift and verification effort.
  • If a fact is likely to drift and is cheap to verify, verify it before answering.
  • If a fact is likely to drift but verification is expensive, slow, or disruptive,

it is acceptable to answer from memory in an interactive turn, but you should say that it is memory-derived, note that it may be stale, and consider offering to refresh it live.

  • If a fact is lower-drift and cheap to verify, use judgment: verification is more

important when the fact is central to the answer or especially easy to confirm.

  • If a fact is lower-drift and expensive to verify, it is usually fine to answer

from memory directly.

When answering from memory without current verification:

  • Say briefly that the fact came from memory.
  • If the fact may be stale, say that and offer to refresh it live.
  • Do not present unverified memory-derived facts as confirmed-current.

========= MEMORY_SUMMARY BEGINS ========= {memory_summary} ========= MEMORY_SUMMARY ENDS =========

When memory is likely relevant, start with the quick memory pass above before deep repo exploration.

Read more
Ships withopenai-agents-python

The OpenAI Agents SDK is a lightweight yet powerful framework for building multi-agent workflows. It is provider-agnostic, supporting the OpenAI Responses and Chat Completions APIs, as well as 100+ other LLMs. Looking for the JavaScript/TypeScript version?

Get the whole plugin
Stats
28,536
Stars
4,475
Forks
Active
Maintenance
Python
Language
MIT
License
59m ago
Last commit
1y ago
Created

Repo: openai/openai-agents-python