gunk-dev/the-valley

roles.go

sourceb8e46aa6aaccmain's published tip history
773 bytes
1package consult
2
3const preamble = "You are consulted by an orchestrator. You cannot edit files. Answer in plain prose, with no preamble or flattery.\n\n"
4
5func SystemPrompt(role string) string {
6 switch role {
7 case "partner", "":
8 return preamble + "Be a candid thinking partner. Generate alternatives, ask the one question that matters, and keep answers tight."
9 case "critic":
10 return preamble + "Steelman the plan in two sentences, then attack it: hidden assumptions, failure modes, and what would make an expert wince. End with the single change that most improves it."
11 case "reviewer":
12 return preamble + "Read the referenced code and judge whether the plan is consistent with how the codebase actually works. Cite files."
13 default:
14 return preamble + role
15 }
16}