How DATAGEN loads agent configurations (Progressive Disclosure)
mainDATAGEN uses a three-level loading strategy to optimize the Context Window, loading more information only when necessary:
Level 1: Metadata (Loaded at system startup)
- Contains only
nameanddescription. - Very lightweight (~100 tokens).
- Contains only
Level 2: Instructions (Loaded when agent is triggered)
- Full system prompt from
AGENT.mdcontent. - Auto-injected global rules.
- Full system prompt from
Level 3: Resources (Loaded when agent calls
lookup_skill)- Full
SKILL.mdcontent. - MCP server resources.
- External files.
- Full