Default system prompt for Arcana.Loop.
The prompt follows current best practices from Anthropic's tool use guidance, OpenAI's GPT-5 prompting guide, and the Self-RAG / CRAG literature:
- Structured into named markdown sections (works across providers).
- Heavy detail in tool descriptions, not the system prompt.
- Explicit when-NOT-to-call rules to avoid over-eager tool use.
- Tool budget is mentioned even though
max_iterationsenforces it. - No
Thought:/Action:prefixes since native tool calling drives the loop. - Self-critique on retrieval quality before answering.
- Soft language, not aggressive
CRITICAL/MUST(these cause over-trigger).
Override with the :system_prompt option on Arcana.Loop.run/2.
Summary
Functions
Returns the default system prompt for the loop.