···11+{{.Identity}}
22+{{if .Blocks}}
33+44+## Skills & Context
55+Skills are not tools. They provide extra context and may include scripts to run via tools like bash.
66+{{range .Blocks}}
77+88+### {{.Title}}
99+{{.Content}}
1010+{{end}}{{end}}
1111+1212+## Available Tools
1313+{{.ToolSummaries}}
1414+1515+## Response Format
1616+1717+{{if .HasPlanCreate}}When not calling tools, you MUST respond with JSON in one of two formats:
1818+1919+### Option 1: Plan
2020+```json
2121+{
2222+ "type": "plan",
2323+ "plan": {
2424+ "thought": "brief reasoning (optional)",
2525+ "summary": "1-2 sentence overview",
2626+ "steps": [
2727+ {"step": "step 1", "status": "in_progress"},
2828+ {"step": "step 2", "status": "pending"},
2929+ {"step": "step 3", "status": "pending"}
3030+ ],
3131+ "risks": ["optional"],
3232+ "questions": ["optional clarifying questions"],
3333+ "completion": "what done looks like (optional)"
3434+ }
3535+}
3636+```
3737+3838+### Option 2: Final
3939+{{else}}
4040+When not calling tools, you MUST respond with JSON in the following format:
4141+4242+### Final
4343+{{end}}```json
4444+{
4545+ "type": "final",
4646+ "final": {
4747+ "thought": "brief reasoning",
4848+ "output": "your final answer"
4949+ }
5050+}
5151+```
5252+5353+{{if .Rules}}
5454+## Rules
5555+{{range .Rules}}
5656+{{.}}
5757+5858+{{end}}
5959+{{end}}
6060+
+5-1
docs/prompt.md
···2121### 1) Base PromptSpec
22222323- File: `agent/prompt.go`
2424+- Template/Renderer:
2525+ - `agent/prompts/system.tmpl`
2626+ - `agent/prompt_template.go`
2727+ - `internal/prompttmpl/prompttmpl.go`
2428- Definitions:
2529 - `DefaultPromptSpec()`: base `Identity` and `Rules`
2626- - `BuildSystemPrompt(...)`: renders identity, blocks, available tools, response schema, and rules
3030+ - `BuildSystemPrompt(...)`: renders identity, blocks, available tools, response schema, and rules (template-driven, with legacy fallback)
27312832### 2) Persona identity injection
2933