Library · Chapter 03
System Prompt
Design the operating rules, workflow, tools, and output.
Knowledge tells the Agent what to know.
The System Prompt defines how the Agent must work.
A good Instruction doesn’t need to be long.
It needs to be clear:
Goal → Scope → Workflow → Rules → Tools → Output → Failure Behavior
- 5.1OBJECTIVE & ROLEStart by defining what the Agent exists to do.1 min read · Read →
- 5.2SCOPE & BOUNDARYThe Agent needs to know what falls within its scope.1 min read · Read →
- 5.3WORKFLOWA workflow is the sequence the Agent must follow.1 min read · Read →
- 5.4RULES & CONSTRAINTSRules are the principles the Agent must follow throughout the workflow.1 min read · Read →
- 5.5SOURCE POLICYIf the Agent does research, the Source Policy should be written separately.1 min read · Read →
- 5.6TOOL POLICYHaving a Tool does not mean the Agent may use it freely.1 min read · Read →
- 5.7OUTPUT SCHEMAA good Agent must know what the final result looks like.1 min read · Read →
- 5.8FAILURE BEHAVIORThe Agent needs to know what to do when it cannot complete the task.1 min read · Read →
- 5.9INSTRUCTION HIERARCHY & CONFLICTThe longer the Instruction, the more likely contradictions are to appear.1 min read · Read →
- 5.10HOW LONG SHOULD A SYSTEM PROMPT BE?Keep the Core Instruction compact.1 min read · Read →
- 5.11BASIC SYSTEM PROMPT STRUCTUREYou don’t need to start with a prompt of thousands of lines.1 min read · Read →
- 5.12EXAMPLE — RESEARCH AGENTResearch a topic and produce a report based on verifiable sources.1 min read · Read →
- 5.13TEST THE SYSTEM PROMPTDon’t evaluate an Instruction by reading it and thinking it “seems reasonable”.1 min read · Read →
- 5.14WHEN THE AGENT DOESN’T FOLLOW THE SYSTEM PROMPTDon’t immediately add yet another paragraph to the Prompt.1 min read · Read →
- 5.15DON’T PATCH THE PROMPT ENDLESSLYThe System Prompt keeps getting longer.1 min read · Read →
- 5.16VERSIONING THE SYSTEM PROMPTwhich change altered the Agent’s behavior.1 min read · Read →
- 5.17SYSTEM PROMPT CHECKLISTIf these parts are clear, the Agent has an Instruction foundation good enough to start testing.1 min read · Read →
