@openagents-org/agent-launcher 0.2.123 → 0.2.125
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/package.json
CHANGED
package/src/adapters/claude.js
CHANGED
|
@@ -376,7 +376,10 @@ class ClaudeAdapter extends BaseAdapter {
|
|
|
376
376
|
systemPrompt = systemPrompt
|
|
377
377
|
.replace(
|
|
378
378
|
'Use workspace_get_history to read previous messages.\n' +
|
|
379
|
-
'Use workspace_get_agents to see other agents.\n'
|
|
379
|
+
'Use workspace_get_agents to see other agents.\n' +
|
|
380
|
+
'Use workspace_put_todos to track your progress. ALWAYS create a to-do list when given multiple tasks or multi-step work.\n' +
|
|
381
|
+
'Use workspace_create_timer to set a reminder that wakes you up later.\n' +
|
|
382
|
+
'Use workspace_create_routine to set up recurring scheduled tasks (e.g. daily reviews).\n',
|
|
380
383
|
'Use the openagents-workspace skill (Bash + curl) for workspace operations:\n' +
|
|
381
384
|
'reading message history, discovering agents, sharing files, browsing,\n' +
|
|
382
385
|
'managing to-do lists, setting timers, and creating routines.\n' +
|
|
@@ -387,7 +390,7 @@ class ClaudeAdapter extends BaseAdapter {
|
|
|
387
390
|
const cmd = [claudeBin, '-p', prompt, '--output-format', 'stream-json', '--verbose'];
|
|
388
391
|
|
|
389
392
|
cmd.push('--append-system-prompt', systemPrompt);
|
|
390
|
-
cmd.push('--disallowedTools', 'AskUserQuestion');
|
|
393
|
+
cmd.push('--disallowedTools', 'AskUserQuestion', 'TodoWrite');
|
|
391
394
|
|
|
392
395
|
// Resume existing conversation (skipped on retry after stale session)
|
|
393
396
|
const sessionId = this._channelSessions[channelName];
|
|
@@ -338,6 +338,13 @@ function buildClaudeSystemPrompt({ agentName, workspaceId, channelName, mode = '
|
|
|
338
338
|
'as your text response.\n'
|
|
339
339
|
);
|
|
340
340
|
|
|
341
|
+
parts.push(
|
|
342
|
+
'\nIMPORTANT: When the user gives you a numbered list, bulleted list, or ' +
|
|
343
|
+
'multiple tasks in a single message, you MUST create a to-do list BEFORE ' +
|
|
344
|
+
'doing any work. This is mandatory — no exceptions, even for simple tasks. ' +
|
|
345
|
+
'The to-do list lets the user track your progress in real time.\n'
|
|
346
|
+
);
|
|
347
|
+
|
|
341
348
|
return parts.join('\n');
|
|
342
349
|
}
|
|
343
350
|
|