Skip to main content
Ungrounded research is confident and wrong. A research agent needs to know the rules it operates under, the body of knowledge it can draw on, and what was decided before. Agno layers these so each agent carries the right context without carrying everything.

Layer 1: static context in the prompt

Rules that apply to every question belong in the prompt, not in retrieval. 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 pulls the relevant profiles and analyses per question instead of carrying the whole library in context.

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.
The agent that writes new memos gets write access; this one only receives read and search tools. Keep sensitive files outside memos_dir because every file under the tool’s base directory may be readable.

Why three layers, not one

Each layer answers a different question: what are the rules, what do we know, what did we decide.

Next steps

Developer Resources