You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
evalbuff: rewrite docs-optimizer to use Claude CLI instead of CodebuffClient
Removes the CodebuffClient/SDK dependency from analyzeFailure. Uses Claude
CLI with a temp file for the prompt (avoids CLI arg length limits). Adds
JSON extraction with markdown fence stripping and validation.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Based on the gap between what the agent did and what it should have done, write a doc file that would help the agent get it right next time. Focus on the specific weakness identified by the judge.`
90
+
Based on the gap between what the agent did and what it should have done, write a doc file that would help the agent get it right next time. Focus on the specific weakness identified by the judge.
91
+
92
+
Respond with ONLY the JSON object.`
111
93
112
94
try{
113
-
constresult=awaitwithTimeout(
114
-
client.run({
115
-
agent: docWriterAgent.id,
116
-
prompt,
117
-
agentDefinitions: [docWriterAgent],
118
-
handleEvent: ()=>{},
119
-
}),
120
-
10*60*1000,
121
-
'Doc writer agent timed out after 10 minutes',
122
-
)
123
-
124
-
if(result.output.type!=='structuredOutput'){
125
-
console.error('Doc writer did not return structured output')
95
+
// Write prompt to temp file to avoid CLI arg length limits
`claude --dangerously-skip-permissions -p "Read the file ${promptFile} and follow all instructions in it. Respond with ONLY the JSON object as specified."`,
0 commit comments