@integrity-labs/agt-cli 0.28.41 → 0.28.43

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/dist/bin/agt.js CHANGED
@@ -37,7 +37,7 @@ import {
37
37
  success,
38
38
  table,
39
39
  warn
40
- } from "../chunk-GBST6UWT.js";
40
+ } from "../chunk-Q7ZS6P56.js";
41
41
  import {
42
42
  CHANNEL_REGISTRY,
43
43
  DEPLOYMENT_TEMPLATES,
@@ -4777,7 +4777,7 @@ import { execFileSync, execSync } from "child_process";
4777
4777
  import { existsSync as existsSync10, realpathSync as realpathSync2 } from "fs";
4778
4778
  import chalk18 from "chalk";
4779
4779
  import ora16 from "ora";
4780
- var cliVersion = true ? "0.28.41" : "dev";
4780
+ var cliVersion = true ? "0.28.43" : "dev";
4781
4781
  async function fetchLatestVersion() {
4782
4782
  const host2 = getHost();
4783
4783
  if (!host2) return null;
@@ -5787,7 +5787,7 @@ function handleError(err) {
5787
5787
  }
5788
5788
 
5789
5789
  // src/bin/agt.ts
5790
- var cliVersion2 = true ? "0.28.41" : "dev";
5790
+ var cliVersion2 = true ? "0.28.43" : "dev";
5791
5791
  var program = new Command();
5792
5792
  program.name("agt").description("Augmented CLI \u2014 agent provisioning and management").version(cliVersion2).option("--json", "Emit machine-readable JSON output (suppress spinners and colors)").option("--skip-update-check", "Skip the automatic update check on startup");
5793
5793
  program.hook("preAction", async (thisCommand, actionCommand) => {
@@ -3398,43 +3398,32 @@ acknowledge before you start.
3398
3398
  - **FAST (< 60s):** handle inline. Reply via the channel tool
3399
3399
  (slack.reply / telegram.reply / directchat.reply) and end your turn.
3400
3400
 
3401
- - **SLOW (\u2265 60s):** acknowledge, dispatch to background, stay responsive.
3401
+ - **SLOW (\u2265 60s):** acknowledge first, then handle inline.
3402
3402
  1. Send a one-line acknowledgement via the channel tool \u2014 short, warm,
3403
3403
  and tell the user you'll come back. Example shape (don't copy verbatim,
3404
3404
  match your voice): "On it \u2014 this'll take a minute or two, I'll ping
3405
3405
  when it's done."
3406
- 2. Dispatch the work to a background sub-agent: the Agent tool with
3407
- \`subagent_type: general-purpose\` AND \`run_in_background: true\`.
3408
- Put EVERYTHING the worker needs in the dispatch prompt \u2014 the user's
3409
- full request, relevant thread context, which integrations/tools to
3410
- use, and the exact shape of result you want back. The worker inherits
3411
- your full MCP tool surface but NOT your conversation context.
3412
- 3. End your turn after dispatching. This is the point: you stay free to
3413
- answer other messages while the worker grinds. Do NOT wait, poll, or
3414
- dispatch the same work synchronously \u2014 a synchronous dispatch blocks
3415
- your turn and defeats the purpose.
3416
- 4. When the worker's completion notification arrives (it lands
3417
- automatically as a system message), read its result and reply via the
3418
- channel tool (\`slack.reply\` / \`telegram.reply\` / \`directchat.reply\`)
3419
- to the same thread / chat / conversation you acknowledged in step 1.
3420
- **You post the substantive reply \u2014 the worker has no channel tools.**
3421
- 5. If the completion notification reports a failure or an unusable
3422
- result, tell the user what happened and either re-dispatch with a
3423
- better prompt or handle it inline \u2014 never go silent.
3424
-
3425
- > **Why background dispatch (and why \`general-purpose\`):** validated
3426
- > 2026-06-10 on Claude Code 2.1.170 (ENG-6274 spike,
3427
- > \`docs/spikes/ENG-6274-run-in-background-dispatch.md\`): background
3428
- > dispatch returns immediately, your turn ends, inbound messages get
3429
- > answered in seconds while the worker runs, and the completion arrives
3430
- > as a notification you handle like any other turn. Use
3431
- > \`subagent_type: general-purpose\` (inherit-all tools) \u2014 NOT
3432
- > \`channel-message-handler\` or \`augmented-worker\` \u2014 until ENG-6273
3433
- > re-verifies on this host that the upstream allowlist bug
3434
- > ([anthropics/claude-code#64909](https://github.com/anthropics/claude-code/issues/64909),
3435
- > empirically 0/6 MCP tools in named sub-agents on 2026-06-03) is fixed
3436
- > at the fleet's pinned Claude Code version. \`general-purpose\` escapes
3437
- > that bug by construction either way.
3406
+ 2. Do the work yourself in this same session. Use whatever tools you
3407
+ need (MCP, skills, file reads, etc.) \u2014 your parent session has the
3408
+ full MCP surface bound.
3409
+ 3. Reply with the result via the channel tool (\`slack.reply\` /
3410
+ \`telegram.reply\` / \`directchat.reply\`), addressing the same thread
3411
+ / chat / conversation you acknowledged in step 1.
3412
+
3413
+ > **Why inline and not sub-agent dispatch right now:** there is an
3414
+ > upstream Claude Code bug
3415
+ > ([anthropics/claude-code#64909](https://github.com/anthropics/claude-code/issues/64909))
3416
+ > where sub-agents dispatched via the Task tool with an explicit
3417
+ > \`tools:\` allowlist (which is the shape \`channel-message-handler\`
3418
+ > uses) get an **empty MCP tool registry** \u2014 every \`mcp__*\` call
3419
+ > returns "No such tool available", including the channel reply tools.
3420
+ > Dispatching a slow channel reply to \`channel-message-handler\` will
3421
+ > therefore silently fail to land: you'd post the one-line ack, the
3422
+ > sub-agent would do the analysis fine, but its \`slack.reply\` call
3423
+ > would error and the user would never see the substantive reply.
3424
+ > Empirically confirmed 2026-06-03 with a 6-tool probe: 0/6 MCP tools
3425
+ > bound inside \`channel-message-handler\`. Until Anthropic ships the
3426
+ > fix, handling slow channel replies inline is the only working path.
3438
3427
 
3439
3428
  **Why this triage decision still matters more than any other instruction
3440
3429
  below:** if you skip the acknowledgement and just dive into slow work
@@ -3456,29 +3445,25 @@ For background tool work that **isn't** a channel reply \u2014 multi-step data
3456
3445
  pulls, CRM enrichments, research workflows, cross-MCP orchestration \u2014 use
3457
3446
  \`subagent_type: general-purpose\` (Anthropic's built-in). It inherits the
3458
3447
  full MCP tool surface from this session and reliably binds every
3459
- \`mcp__*\` server you have available. For anything expected to take more
3460
- than a minute, add \`run_in_background: true\` so your turn ends and you
3461
- stay responsive; the completion notification brings you the result.
3462
- Don't background-dispatch trivial work \u2014 each dispatch is a fresh
3463
- context and costs real tokens.
3448
+ \`mcp__*\` server you have available.
3464
3449
 
3465
3450
  **Why not \`augmented-worker\` for now:** there is an upstream Claude Code
3466
3451
  bug ([anthropics/claude-code#64909](https://github.com/anthropics/claude-code/issues/64909))
3467
3452
  where sub-agents with an explicit \`tools:\` allowlist get an empty MCP
3468
3453
  tool registry \u2014 every \`mcp__*\` call returns "No such tool available."
3469
3454
  \`general-purpose\` uses \`tools: *\` (inherit-all) and escapes the bug.
3470
- The fix appears to have shipped upstream (verified locally on Claude Code
3471
- 2.1.170, 2026-06-10 \u2014 ENG-6269 spike); once ENG-6273 re-verifies it on
3472
- this host's pinned version, \`augmented-worker\` becomes preferred again
3473
- (restricted tool surface for safety + working MCP binding) and
3474
- \`channel-message-handler\` returns as a dispatch target. Until then,
3475
- \`general-purpose\` only.
3455
+ Once Anthropic ships the fix, \`augmented-worker\` becomes preferred again
3456
+ (restricted tool surface for safety + working MCP binding); the dispatch
3457
+ recommendation here will flip back automatically.
3476
3458
 
3477
3459
  For slow **channel** replies, see \xA7 FIRST ACTION above \u2014 those are
3478
- dispatched as background \`general-purpose\` workers and **you** post the
3479
- result back to the channel when the completion notification arrives
3480
- (\`channel-message-handler\` is not yet the dispatch target for the same
3481
- ENG-6273-pending reason).
3460
+ currently handled inline (not dispatched) because \`channel-message-handler\`
3461
+ shares the explicit-allowlist shape and so suffers the same upstream
3462
+ bug. Empirically confirmed 2026-06-03 on agt-aws-1 with a 6-tool probe:
3463
+ 0/6 MCP tools bound inside \`channel-message-handler\` (matching the
3464
+ \`augmented-worker\` result). When Anthropic ships the upstream fix, both
3465
+ named sub-agents will work again and the FIRST ACTION triage will switch
3466
+ back to dispatch.
3482
3467
 
3483
3468
  ${activeTasksSection}${personalitySection}## Identity
3484
3469
 
@@ -7274,7 +7259,7 @@ function requireHost() {
7274
7259
  }
7275
7260
 
7276
7261
  // src/lib/api-client.ts
7277
- var agtCliVersion = true ? "0.28.41" : "dev";
7262
+ var agtCliVersion = true ? "0.28.43" : "dev";
7278
7263
  var lastConfigHash = null;
7279
7264
  function setConfigHash(hash) {
7280
7265
  lastConfigHash = hash && hash.length > 0 ? hash : null;
@@ -8555,4 +8540,4 @@ export {
8555
8540
  managerInstallSystemUnitCommand,
8556
8541
  managerUninstallSystemUnitCommand
8557
8542
  };
8558
- //# sourceMappingURL=chunk-GBST6UWT.js.map
8543
+ //# sourceMappingURL=chunk-Q7ZS6P56.js.map