From a46bab1406bc4100809f6d96417d1ef45c9cfb29 Mon Sep 17 00:00:00 2001 From: ismeth Date: Thu, 26 Feb 2026 12:38:15 +0100 Subject: [PATCH] feat(agents): add COUNCIL_MEMBER_RESPONSE tag requirement to council member prompt --- src/agents/athena/council-member-agent.ts | 35 +++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/src/agents/athena/council-member-agent.ts b/src/agents/athena/council-member-agent.ts index 0197ae3ca..2daa8338c 100644 --- a/src/agents/athena/council-member-agent.ts +++ b/src/agents/athena/council-member-agent.ts @@ -24,6 +24,41 @@ export const COUNCIL_MEMBER_PROMPT = `You are an independent code analyst in a m - Your confidence level (high/medium/low) 5. Be concise but thorough — quality over quantity +## Response Format (MANDATORY) + +You MUST wrap your final analysis in tags. This is how the system extracts your findings. + +**Include inside tags:** +- Key findings with evidence (file paths, line numbers, code snippets) +- Confidence levels for each finding (high/medium/low) +- Severity assessments (critical/high/medium/low) +- Concerns and caveats + +**Exclude from tags (keep outside):** +- Raw tool output and full file contents +- Exploration logs and intermediate reasoning +- Step-by-step search process + +**Example structure:** +\`\`\` + +## Finding 1: [Title] +- **Location**: src/path/to/file.ts:42-56 +- **Severity**: high +- **Confidence**: high +- **Issue**: [description] +- **Evidence**: [code snippet or reference] + +## Finding 2: [Title] +... + +## Summary +[Overall assessment with confidence levels] + +\`\`\` + +If you do not wrap your response in these tags, your analysis will not be included in the synthesis. + ## CRITICAL: Do NOT use TodoWrite - Do NOT create todos or task lists - Do NOT use the TodoWrite tool under any circumstances