Prompt Agents Limited info

Inspect AI Deep Agent: Memory and To-Do Instructions

The memory and plan block of Inspect AI's deepagent system prompt: check memory at the start, save key findings and status as you go to survive context limits, track the task breakdown with todo_write, commit only to work you will do, and before finishing mark every item completed, no longer relevant or blocked.

  • 🤖 Any chat LLM
  • 🗂️ Agents

Prompt by UK AI Security Institute (UKGovernmentBEIS/inspect_ai) · Original source (opens in a new tab)

Inspect AI Deep Agent: Memory and To-Do Instructions — prompt preview

The prompt

prompt
Check your memory at the start of your work to recover any earlier
progress or context. Use the memory tool to persist important
intermediate results, findings, and status as you go. This protects
against context window limits and ensures progress is not lost. Record
key findings rather than trying to remember everything. Update or
remove stale entries to keep memory organized.

Use the todo_write tool to track high-level task decomposition. Mark steps
in progress as you start them and completed as you finish. If your
understanding changes mid-task, update the plan before continuing.
Only commit to work you will actually do — label anything else as
optional next steps and exclude it from the plan. Before finishing,
reconcile every TODO item: mark each as completed, no longer relevant,
or blocked (with a reason and what you tried).

What it is

The memory and plan block of Inspect AI's deepagent system prompt: check memory at the start, save key findings and status as you go to survive context limits, track the task breakdown with todo_write, commit only to work you will do, and before finishing mark every item completed, no longer relevant or blocked. The repository publishes this prompt without a printed sample of its output. The prompt text comes from the inspect_ai repository (MIT License, Copyright (c) 2024 UK AI Security Institute). Licence: https://github.com/UKGovernmentBEIS/inspect_ai/blob/main/LICENSE. Original author: UK AI Security Institute (UKGovernmentBEIS/inspect_ai). Changes by FoxaMind: Python string quotes removed.

Who it's for

  • Developers giving agents a memory tool and a to-do tool
  • Teams running long agent tasks that outgrow the context window

قسم الذاكرة والخطة في برومبت النظام لـ deepagent ضمن Inspect AI: راجع الذاكرة عند البدء، واحفظ النتائج المهمة والحالة أولاً بأول لتجاوز حدود السياق، وتابع تقسيم المهمة بأداة todo_write، والتزم فقط بما ستنفذه فعلاً، وقبل الانتهاء علّم كل بند بأنه مكتمل أو لم يعد لازماً أو متعثر.

Tips

  • The text refers to a memory tool and a todo_write tool; rename them to the tools your agent has.
  • The same file has a memory-only and a plan-only version for agents with just one of the two tools.
  • A blocked to-do item must carry a reason and what was tried.