Skip to main content
Ground each research agent with three forms of context: rules in the prompt, shared source material in a knowledge base, and complete prior work in an archive. Each layer supports a distinct part of the review.

Layer 1: static context in the prompt

Place rules that apply to every question in the prompt. Load them once and inject them into every agent.
Mandate, risk policy, and process are markdown files. The loader places the same text in each agent’s instructions. Model instructions guide behavior; enforce position limits and other hard policy in code or tool permissions.

Layer 2: the research library in RAG

The corpus the agents reason over goes in a shared knowledge base, searched per query. Reuse one configured instance when agents share the same corpus.
search_knowledge is on by default. The agent retrieves relevant profiles and analyses for each question, which keeps the full library out of the prompt.

Layer 3: prior work on disk

Keep complete past memos as files when a reviewer needs the original reasoning trail. Give the reading agent file tools scoped to that archive.
Give the memo writer write access. This archival agent receives read and search tools. Keep sensitive files outside memos_dir because every file under the tool’s base directory may be readable.

What each layer contributes

Together, the layers cover operating rules, available research, and prior decisions.

Next steps

Developer Resources