> ## Documentation Index
> Fetch the complete documentation index at: https://labs.prompthon.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Patterns

<div className="not-prose my-4 rounded-md border border-gray-200 bg-gray-50 p-2 text-sm dark:border-gray-800 dark:bg-gray-900/40">
  <div className="mb-2 px-1 text-xs font-semibold uppercase tracking-wide text-gray-500 dark:text-gray-400">Need help?</div>

  <div className="flex flex-wrap gap-2">
    <a className="inline-flex items-center gap-2 rounded-md border border-gray-200 bg-white px-3 py-1.5 font-medium text-gray-700 no-underline shadow-sm hover:border-gray-300 hover:bg-gray-50 dark:border-gray-800 dark:bg-gray-950/60 dark:text-gray-200 dark:hover:bg-gray-900" href="https://discord.gg/sDE2HhGTg4" target="_blank" rel="noreferrer">
      <Icon icon="discord" iconType="brands" size={14} />

      <span>Ask in Discord</span>
    </a>

    <a className="inline-flex items-center gap-2 rounded-md border border-gray-200 bg-white px-3 py-1.5 font-medium text-gray-700 no-underline shadow-sm hover:border-gray-300 hover:bg-gray-50 dark:border-gray-800 dark:bg-gray-950/60 dark:text-gray-200 dark:hover:bg-gray-900" href="https://github.com/Prompthon-IO/agent-systems-handbook/issues/new/choose" target="_blank" rel="noreferrer">
      <Icon icon="github" iconType="brands" size={14} />

      <span>Open a GitHub issue</span>
    </a>

    <a className="inline-flex items-center gap-2 rounded-md border border-gray-200 bg-white px-3 py-1.5 font-medium text-gray-700 no-underline shadow-sm hover:border-gray-300 hover:bg-gray-50 dark:border-gray-800 dark:bg-gray-950/60 dark:text-gray-200 dark:hover:bg-gray-900" href="https://github.com/Prompthon-IO/agent-systems-handbook/blob/main/SUPPORT.md" target="_blank" rel="noreferrer">
      <Icon icon="life-ring" size={14} />

      <span>Support guide</span>
    </a>
  </div>
</div>

This lane captures reusable design patterns that show up across agent
implementations, independent of framework choice.

## What belongs here

* Tool use
* Planning and task decomposition
* Reflection and repair loops
* Short-term and long-term memory patterns
* Subagents and delegation
* Browser and computer-use patterns
* Human-in-the-loop workflows
* Long-running task design
* Deep research patterns

## Editorial intent

Pages in this lane should explain mechanism, tradeoffs, and failure modes.
They should stay useful even as individual frameworks rise or fall.

## Current pages

* [Agent Memory And Retrieval](/patterns/agent-memory-and-retrieval): how agents
  separate active state, durable memory, retrieval, and explicit artifacts.
* [Reasoning And Control Patterns](/patterns/reasoning-and-control-patterns): how
  think-act-observe loops shape control, explainability, and tool use.
* [Planning And Reflection](/patterns/planning-and-reflection): how plan-first and
  critique-and-refine patterns improve quality on longer tasks.
* [Agent Runtime Building Blocks](/patterns/agent-runtime-building-blocks): how
  modern runtimes combine sandboxes, tool and protocol boundaries, control
  planes, memory, and adaptive endpoint surfaces.

## Example starters

* [Agent Memory Retrieval Starter](/patterns/examples/agent-memory-retrieval-starter):
  a small code sketch for separating active notes, verifiable RAG retrieval
  inputs, citations, and durable artifacts.
* [Prompt Cache Agent Starter](/patterns/examples/prompt-cache-agent-starter):
  a small code sketch for keeping stable prompt prefixes separate from dynamic
  memory and current-turn inputs so agent runtime cost controls stay
  inspectable.
