agentgui 1.0.682 → 1.0.683
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude/settings.local.json +7 -1
- package/lib/claude-runner.js +4 -21
- package/package.json +1 -1
package/lib/claude-runner.js
CHANGED
|
@@ -130,7 +130,7 @@ class AgentRunner {
|
|
|
130
130
|
|
|
131
131
|
// Write prompt to stdin only for agents that use stdin protocol (not positional args)
|
|
132
132
|
if (this.supportsStdin && this.stdinPrompt) {
|
|
133
|
-
proc.stdin.write(prompt);
|
|
133
|
+
proc.stdin.write(typeof prompt === 'string' ? prompt : String(prompt));
|
|
134
134
|
// Don't call stdin.end() - agents need open stdin for steering
|
|
135
135
|
}
|
|
136
136
|
|
|
@@ -646,7 +646,7 @@ registry.register({
|
|
|
646
646
|
if (resumeSessionId) flags.push('--resume', resumeSessionId);
|
|
647
647
|
if (systemPrompt) flags.push('--append-system-prompt', systemPrompt);
|
|
648
648
|
flags.push('--dangerously-skip-permissions');
|
|
649
|
-
flags.push(prompt); // positional arg - stdin stays open separately for steering
|
|
649
|
+
flags.push(typeof prompt === 'string' ? prompt : String(prompt)); // positional arg - stdin stays open separately for steering
|
|
650
650
|
|
|
651
651
|
return flags;
|
|
652
652
|
},
|
|
@@ -1215,27 +1215,10 @@ export async function runClaudeWithStreaming(prompt, cwd, agentId = 'claude-code
|
|
|
1215
1215
|
|
|
1216
1216
|
// Append communication guidelines for all agents
|
|
1217
1217
|
const communicationGuidelines = `
|
|
1218
|
-
|
|
1219
|
-
- Critical errors that block work
|
|
1220
|
-
- User needs to know info (e.g., "port in use", "authentication failed", "file not found")
|
|
1221
|
-
- Action required from user
|
|
1222
|
-
- Important decisions that affect their work
|
|
1223
|
-
|
|
1224
|
-
DO NOT output:
|
|
1225
|
-
- Progress updates ("doing X now", "completed Y", "searching for...")
|
|
1226
|
-
- Verbose summaries of what was done
|
|
1227
|
-
- Status checks or verification messages
|
|
1228
|
-
- Detailed explanations unless asked
|
|
1229
|
-
- "Working on...", "Looking for...", step-by-step progress
|
|
1230
|
-
|
|
1231
|
-
INSTEAD:
|
|
1232
|
-
- Run tools silently
|
|
1233
|
-
- Show results only when relevant
|
|
1234
|
-
- Be conversational and direct
|
|
1235
|
-
- Let code/output speak for itself
|
|
1218
|
+
RESPONSE FORMAT: Respond in short, plain text sentences only. No markdown. No bullet points. No bold or italic text. No headers. No numbered lists. No code blocks in prose responses. Write as if speaking aloud. Keep responses concise and conversational. Only share what the user needs to know: errors, required actions, or direct answers. Do not narrate progress or summarize completed steps.
|
|
1236
1219
|
`;
|
|
1237
1220
|
|
|
1238
|
-
if (!enhancedConfig.systemPrompt.includes('
|
|
1221
|
+
if (!enhancedConfig.systemPrompt.includes('RESPONSE FORMAT')) {
|
|
1239
1222
|
enhancedConfig.systemPrompt = communicationGuidelines + enhancedConfig.systemPrompt;
|
|
1240
1223
|
}
|
|
1241
1224
|
|