agent-orchestrator-mcp-server 0.7.3 → 0.7.6

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agent-orchestrator-mcp-server",
3
- "version": "0.7.3",
3
+ "version": "0.7.6",
4
4
  "description": "Local implementation of agent-orchestrator MCP server",
5
5
  "main": "build/index.js",
6
6
  "type": "module",
@@ -500,7 +500,12 @@ const SELF_SESSION_TOOL_DESCRIPTION = `Perform a self-management action on a ses
500
500
  **Use cases:**
501
501
  - Update session notes to record progress or context
502
502
  - Set a meaningful session title
503
- - Archive the session when work is complete`;
503
+ - Archive the session when work is complete
504
+
505
+ **Archive guidelines:**
506
+ - Only self-archive when explicitly instructed to (e.g., a stop condition says "archive yourself")
507
+ - Subagents that report results back to a parent agent via a tool call may self-archive, since no human needs to read the session output directly
508
+ - Do NOT self-archive if a human user needs to read your output. Sessions in \`needs_input\` appear on the user's homepage — archiving removes them before the user can see your work. If your work product is a message the user should read, let the session stay in \`needs_input\``;
504
509
  export function selfSessionActionSessionTool(_server, clientFactory) {
505
510
  return {
506
511
  name: 'action_session',
@@ -11,6 +11,13 @@ function buildToolDescription() {
11
11
  const utcNow = now.toISOString().replace(/\.\d{3}Z$/, 'Z');
12
12
  return `Schedule this session to be woken up at a specific time. The session will be put to sleep (waiting status) and a one-time trigger will fire at the specified time to resume it with the given prompt. If the session is manually resumed before the scheduled time, the trigger will be silently dropped.
13
13
 
14
+ **IMPORTANT — Use this tool instead of workarounds.** When this tool is available, it is the correct way to schedule a delayed wake-up in an Agent Orchestrator context. Do NOT use these alternatives:
15
+ - **Bash \`sleep\`**: Blocks the process and wastes compute resources for the entire sleep duration. The session remains "running" and cannot be reclaimed.
16
+ - **Claude Code \`ScheduleWakeup\` tool**: Does not integrate with AO's session lifecycle — it won't transition the session to sleeping/waiting state or create an AO trigger, so AO cannot track or manage the wake-up.
17
+ - **Claude Code \`Monitor\` tool**: Same problem — it operates outside AO's session state management.
18
+
19
+ This tool does both: it properly transitions the session to sleeping (waiting) state so AO can reclaim resources, AND creates a one-time AO trigger to resume the session at the specified time.
20
+
14
21
  **Current server time:** ${utcNow} (UTC). Use this as your reference point when calculating wake-up times.
15
22
 
16
23
  **Timezone handling:**
@@ -120,7 +127,7 @@ export function wakeMeUpLaterTool(_server, clientFactory) {
120
127
  },
121
128
  });
122
129
  const lines = [
123
- '## Session Scheduled for Wake-Up',
130
+ '## Wake-Up Scheduled Successfully',
124
131
  '',
125
132
  `- **Session ID:** ${sleepingSession.id}`,
126
133
  `- **Session Status:** ${sleepingSession.status}`,
@@ -128,7 +135,9 @@ export function wakeMeUpLaterTool(_server, clientFactory) {
128
135
  `- **Trigger ID:** ${trigger.id}`,
129
136
  `- **Trigger Name:** ${trigger.name}`,
130
137
  '',
131
- 'The session is now sleeping. It will be automatically resumed at the scheduled time with the provided prompt.',
138
+ '**You must end your conversation turn now.** The session is sleeping and will be automatically resumed at the scheduled time with the provided prompt.',
139
+ '',
140
+ '⚠️ **Warning:** If you do not end your conversation turn, the session may still be running when the scheduled wake-up fires. A wake-up cannot be delivered to a session that is not in a wakeable (sleeping/waiting) state — it will be silently dropped, and you will never receive it.',
132
141
  ];
133
142
  return { content: [{ type: 'text', text: lines.join('\n') }] };
134
143
  }