@integrity-labs/agt-cli 0.27.51 → 0.27.53

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.
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  claudeModelAlias,
3
3
  isClaudeFastMode
4
- } from "./chunk-UOHGOS3O.js";
4
+ } from "./chunk-2NOH5XB5.js";
5
5
  import {
6
6
  reapOrphanChannelMcps
7
7
  } from "./chunk-XWVM4KPK.js";
@@ -1125,4 +1125,4 @@ export {
1125
1125
  stopAllSessionsAndWait,
1126
1126
  getProjectDir
1127
1127
  };
1128
- //# sourceMappingURL=chunk-5S322IC7.js.map
1128
+ //# sourceMappingURL=chunk-4ZKBMJ3Y.js.map
@@ -9,7 +9,7 @@ import {
9
9
  parseDeliveryTarget,
10
10
  registerFramework,
11
11
  wrapScheduledTaskPrompt
12
- } from "./chunk-UOHGOS3O.js";
12
+ } from "./chunk-2NOH5XB5.js";
13
13
 
14
14
  // ../../packages/core/dist/integrations/registry.js
15
15
  var INTEGRATION_REGISTRY = [
@@ -3068,33 +3068,46 @@ acknowledge before you start.
3068
3068
  - **FAST (< 60s):** handle inline. Reply via the channel tool
3069
3069
  (slack.reply / telegram.reply / directchat.reply) and end your turn.
3070
3070
 
3071
- - **SLOW (\u2265 60s):** dispatch.
3071
+ - **SLOW (\u2265 60s):** acknowledge first, then handle inline.
3072
3072
  1. Send a one-line acknowledgement via the channel tool \u2014 short, warm,
3073
3073
  and tell the user you'll come back. Example shape (don't copy verbatim,
3074
3074
  match your voice): "On it \u2014 this'll take a minute or two, I'll ping
3075
3075
  when it's done."
3076
- 2. Invoke the \`channel-message-handler\` subagent (Task tool, with
3077
- \`subagent_type: channel-message-handler\`) with the full original
3078
- message text plus the **channel-specific routing keys** the reply
3079
- tool needs: Slack threads \u2192 \`{ channel_id, thread_ts }\`; Slack
3080
- non-thread DMs \u2192 \`{ channel_id }\`; Telegram \u2192 \`{ chat_id, message_id }\`;
3081
- Direct Chat \u2192 \`{ conversation_id }\`. Pass these verbatim from the
3082
- inbound \`<channel>\` tag \u2014 don't substitute a generic \`message_ts\`,
3083
- since only Slack threads use it. The subagent will do the actual
3084
- work and post the real reply itself.
3085
- 3. End your turn. **Do NOT call slack.reply / telegram.reply with the
3086
- full result yourself** \u2014 that's the subagent's job.
3087
-
3088
- **Why this matters more than any other instruction below:** if you handle
3089
- slow requests inline, you go silent for 60+ seconds while operators send
3090
- follow-up messages that queue behind you. Dispatching keeps you free to
3091
- acknowledge new pings. The kanban-tracking-link convention, work-management
3092
- "create a task" guidance, and Slack reply patterns ALL apply to fast
3093
- inline replies \u2014 they do NOT replace this dispatch decision.
3094
-
3095
- If the work turns out to be unexpectedly slow after you started inline,
3096
- finish the current sub-step, then dispatch the rest. Don't apologise for
3097
- mid-task switching \u2014 operators care about responsiveness, not consistency.
3076
+ 2. Do the work yourself in this same session. Use whatever tools you
3077
+ need (MCP, skills, file reads, etc.) \u2014 your parent session has the
3078
+ full MCP surface bound.
3079
+ 3. Reply with the result via the channel tool (\`slack.reply\` /
3080
+ \`telegram.reply\` / \`directchat.reply\`), addressing the same thread
3081
+ / chat / conversation you acknowledged in step 1.
3082
+
3083
+ > **Why inline and not sub-agent dispatch right now:** there is an
3084
+ > upstream Claude Code bug
3085
+ > ([anthropics/claude-code#64909](https://github.com/anthropics/claude-code/issues/64909))
3086
+ > where sub-agents dispatched via the Task tool with an explicit
3087
+ > \`tools:\` allowlist (which is the shape \`channel-message-handler\`
3088
+ > uses) get an **empty MCP tool registry** \u2014 every \`mcp__*\` call
3089
+ > returns "No such tool available", including the channel reply tools.
3090
+ > Dispatching a slow channel reply to \`channel-message-handler\` will
3091
+ > therefore silently fail to land: you'd post the one-line ack, the
3092
+ > sub-agent would do the analysis fine, but its \`slack.reply\` call
3093
+ > would error and the user would never see the substantive reply.
3094
+ > Empirically confirmed 2026-06-03 with a 6-tool probe: 0/6 MCP tools
3095
+ > bound inside \`channel-message-handler\`. Until Anthropic ships the
3096
+ > fix, handling slow channel replies inline is the only working path.
3097
+
3098
+ **Why this triage decision still matters more than any other instruction
3099
+ below:** if you skip the acknowledgement and just dive into slow work
3100
+ silently, operators send follow-up messages that queue behind you
3101
+ wondering whether you got the original. The ack-first-then-work pattern
3102
+ keeps users oriented. The kanban-tracking-link convention,
3103
+ work-management "create a task" guidance, and Slack reply patterns ALL
3104
+ apply to whatever you post \u2014 the ack and the eventual full reply alike.
3105
+
3106
+ If the work turns out to be unexpectedly slow after you started inline
3107
+ without acknowledging (because you thought it was a FAST request), post
3108
+ a quick "this is taking longer than I expected, still working" line
3109
+ rather than going silent. Operators care about responsiveness, not
3110
+ consistency.
3098
3111
 
3099
3112
  ## Background dispatch for non-channel work
3100
3113
 
@@ -3113,13 +3126,14 @@ Once Anthropic ships the fix, \`augmented-worker\` becomes preferred again
3113
3126
  (restricted tool surface for safety + working MCP binding); the dispatch
3114
3127
  recommendation here will flip back automatically.
3115
3128
 
3116
- The channel-message triage above is **not** changed by this note \u2014 slow
3117
- channel replies still dispatch via \`channel-message-handler\` per
3118
- \xA7 FIRST ACTION. Be aware that \`channel-message-handler\` shares the
3119
- explicit-allowlist shape and so is subject to the same upstream bug; if
3120
- you observe a dispatched channel reply silently failing to land,
3121
- acknowledge the original message inline yourself and surface the gap
3122
- rather than attempting another sub-agent dispatch.
3129
+ For slow **channel** replies, see \xA7 FIRST ACTION above \u2014 those are
3130
+ currently handled inline (not dispatched) because \`channel-message-handler\`
3131
+ shares the explicit-allowlist shape and so suffers the same upstream
3132
+ bug. Empirically confirmed 2026-06-03 on agt-aws-1 with a 6-tool probe:
3133
+ 0/6 MCP tools bound inside \`channel-message-handler\` (matching the
3134
+ \`augmented-worker\` result). When Anthropic ships the upstream fix, both
3135
+ named sub-agents will work again and the FIRST ACTION triage will switch
3136
+ back to dispatch.
3123
3137
 
3124
3138
  ${activeTasksSection}${personalitySection}## Identity
3125
3139
 
@@ -3149,8 +3163,10 @@ ${resolvedChannels?.includes("slack") ? `
3149
3163
 
3150
3164
  You have a Slack MCP server connected. **First, see \xA7 FIRST ACTION on
3151
3165
  every channel message: triage** at the top of this document \u2014 decide
3152
- fast vs slow before anything else, and dispatch slow work via
3153
- \`channel-message-handler\` rather than handling it inline.
3166
+ fast vs slow before anything else, then acknowledge inline before
3167
+ diving into slow work (sub-agent dispatch for channel replies is
3168
+ currently disabled due to an upstream Claude Code bug; see the FIRST
3169
+ ACTION section for the full rationale).
3154
3170
 
3155
3171
  For fast requests, respond directly in the conversation. You can also
3156
3172
  proactively use:
@@ -7147,4 +7163,4 @@ export {
7147
7163
  managerInstallSystemUnitCommand,
7148
7164
  managerUninstallSystemUnitCommand
7149
7165
  };
7150
- //# sourceMappingURL=chunk-Y4KVZGPE.js.map
7166
+ //# sourceMappingURL=chunk-GPBGRRCV.js.map