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
Important: Only include your final analysis in your response. Do not include phrases like "Let me explore", "Let me check", "Now let me examine", etc. The user only wants to see the final answer.`;
102
102
103
-
metadata.set("status","Generating response...");
104
-
metadata.set("progress",70);
105
-
106
103
// Use Claude Agent SDK to analyze the repository
107
104
constresult=query({
108
105
prompt: systemPrompt,
109
106
options: {
110
107
model: "claude-sonnet-4-20250514",
111
108
cwd: join(tempDir,"repo"),
112
-
maxTurns: 10,
109
+
maxTurns: 30,
113
110
permissionMode: "acceptEdits",
114
111
abortController,
115
112
includePartialMessages: true,// Enable incremental text streaming
116
113
allowedTools: [
117
-
"Bash",
118
-
"Glob",
114
+
// "Bash",
115
+
// "Glob",
119
116
"Grep",
120
117
"Read",
121
118
// Not allowing Edit/Write since we're just analyzing
122
119
],
123
120
},
124
121
});
125
122
126
-
metadata.set("status","Streaming response...");
127
-
metadata.set("progress",90);
123
+
metadata.set("status","Generating response...");
124
+
metadata.set("progress",80);
128
125
129
126
// Stream text using writer API
130
127
const{ waitUntilComplete }=agentStream.writer({
131
128
execute: async({ write })=>{
132
129
forawait(constmessageofresult){
130
+
// During tool use phase - update metadata with tool names
0 commit comments