@openagents-org/agent-launcher 0.2.121 → 0.2.123
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 +1 -1
- package/src/adapters/claude.js +1 -1
- package/src/adapters/workspace-prompt.js +4 -2
- package/src/cli.js +3 -3
- package/src/daemon.js +1 -1
package/package.json
CHANGED
package/src/adapters/claude.js
CHANGED
|
@@ -32,7 +32,7 @@ class ClaudeAdapter extends BaseAdapter {
|
|
|
32
32
|
super(opts);
|
|
33
33
|
this.disabledModules = opts.disabledModules || new Set();
|
|
34
34
|
/** @type {'mcp' | 'skills'} Tool integration mode */
|
|
35
|
-
this.toolMode = opts.toolMode || '
|
|
35
|
+
this.toolMode = opts.toolMode || 'skills';
|
|
36
36
|
this._channelSessions = {}; // channel → Claude CLI session_id
|
|
37
37
|
this._channelProcesses = {}; // channel → child process
|
|
38
38
|
this._stoppingChannels = new Set();
|
|
@@ -242,7 +242,9 @@ function buildApiSkillsPrompt({ endpoint, workspaceId, token, agentName, channel
|
|
|
242
242
|
`"source":"openagents:${agentName}"}'\`\n\n` +
|
|
243
243
|
'**Get your to-do list:**\n' +
|
|
244
244
|
`\`curl -s -H "${h}" "${baseUrl}/v1/todos?network=${workspaceId}&channel=${channelName}"\`\n\n` +
|
|
245
|
-
'
|
|
245
|
+
'**IMPORTANT:** When you receive a task with multiple steps or a list of things to do, ' +
|
|
246
|
+
'ALWAYS create a to-do list first before starting work. This lets the user see your ' +
|
|
247
|
+
'progress in real time. Update statuses as you work through each item.\n' +
|
|
246
248
|
'You can assign items to other agents: `"assignee": "other-agent-name"`\n'
|
|
247
249
|
);
|
|
248
250
|
}
|
|
@@ -316,7 +318,7 @@ function buildClaudeSystemPrompt({ agentName, workspaceId, channelName, mode = '
|
|
|
316
318
|
parts.push(
|
|
317
319
|
'Use workspace_get_history to read previous messages.\n' +
|
|
318
320
|
'Use workspace_get_agents to see other agents.\n' +
|
|
319
|
-
'Use workspace_put_todos to track your progress
|
|
321
|
+
'Use workspace_put_todos to track your progress. ALWAYS create a to-do list when given multiple tasks or multi-step work.\n' +
|
|
320
322
|
'Use workspace_create_timer to set a reminder that wakes you up later.\n' +
|
|
321
323
|
'Use workspace_create_routine to set up recurring scheduled tasks (e.g. daily reviews).\n'
|
|
322
324
|
);
|
package/src/cli.js
CHANGED
|
@@ -456,7 +456,7 @@ async function cmdToolMode(connector, _flags, positional) {
|
|
|
456
456
|
if (agents.length === 0) { print('No agents configured'); return; }
|
|
457
457
|
for (const a of agents) {
|
|
458
458
|
connector.config.updateAgent(a.name, { tool_mode: targetMode });
|
|
459
|
-
print(` ${a.name}: ${a.tool_mode || '
|
|
459
|
+
print(` ${a.name}: ${a.tool_mode || 'skills'} → ${targetMode}`);
|
|
460
460
|
}
|
|
461
461
|
try { connector.sendDaemonCommand('reload'); } catch {}
|
|
462
462
|
print(`\nSet all ${agents.length} agent(s) to '${targetMode}' mode.`);
|
|
@@ -471,7 +471,7 @@ async function cmdToolMode(connector, _flags, positional) {
|
|
|
471
471
|
return;
|
|
472
472
|
}
|
|
473
473
|
for (const a of agents) {
|
|
474
|
-
print(` ${a.name}: ${a.tool_mode || '
|
|
474
|
+
print(` ${a.name}: ${a.tool_mode || 'skills'}`);
|
|
475
475
|
}
|
|
476
476
|
print('\nUsage: agn tool-mode <agent|--all> <mcp|skills>');
|
|
477
477
|
return;
|
|
@@ -481,7 +481,7 @@ async function cmdToolMode(connector, _flags, positional) {
|
|
|
481
481
|
// Show tool mode for specific agent
|
|
482
482
|
const agent = connector.config.getAgent(first);
|
|
483
483
|
if (!agent) { print(`Agent '${first}' not found`); process.exitCode = 1; return; }
|
|
484
|
-
print(`${first}: ${agent.tool_mode || '
|
|
484
|
+
print(`${first}: ${agent.tool_mode || 'skills'}`);
|
|
485
485
|
print('\nUsage: agn tool-mode <agent|--all> <mcp|skills>');
|
|
486
486
|
return;
|
|
487
487
|
}
|
package/src/daemon.js
CHANGED
|
@@ -445,7 +445,7 @@ class Daemon {
|
|
|
445
445
|
disabledModules: new Set(),
|
|
446
446
|
agentEnv: this._buildAgentEnv(agentCfg),
|
|
447
447
|
workingDir: agentCfg.path || undefined,
|
|
448
|
-
toolMode: agentCfg.tool_mode || '
|
|
448
|
+
toolMode: agentCfg.tool_mode || 'skills',
|
|
449
449
|
});
|
|
450
450
|
} catch (e) {
|
|
451
451
|
this._log(`${name} failed to create ${agentType} adapter: ${e.message}`);
|