Skip to content

Suppress intermediate text output before tool calls in group channels #50989

Closed

Description

@Asclepeion

Problem

In multi-agent group channels, LLMs frequently emit "thinking out loud" text before tool calls — messages like "Let me check...", "Looking into this...", "I should set up...". This text is the model's deliberate output (not a streaming artifact), so blockStreamingDefault cannot suppress it.

Each intermediate text block gets posted as a separate channel message, creating noise and burning tokens. In a 5-bot setup, a single question can generate 10+ process-narration messages before any actual result appears.

What we've tried

  1. blockStreamingDefault: "on" — only buffers streamed chunks, not complete text outputs preceding tool calls ❌
  2. thinkingDefault: "low" — provides private reasoning space, but the model still voluntarily narrates ❌
  3. AGENTS.md instructions ("no intermediate text") — competes with model training to be helpful/explanatory, doesn't stick reliably ❌

Proposed solution

Add a config option to suppress text that precedes tool calls:

{
  agents: {
    defaults: {
      suppressIntermediateText: true  // or per-channel
    }
  }
}

Behavior

When suppressIntermediateText: true:

  • If the model's response contains text followed by tool calls, the pre-tool text is dropped (not sent to the channel)
  • Only the final text after all tool calls complete is delivered as the visible response
  • If the model's response is text-only (no tool calls), it's delivered normally

This matches how humans work: form the thought → do the work → deliver the result. The intermediate narration is process, not product.

Alternative: per-channel config

{
  channels: {
    slack: {
      channels: {
        "C123": {
          suppressIntermediateText: true  // group channels
        }
      }
    }
  }
}

Environment

  • Clawdbot version: 2026.1.24-3+
  • Channel: Slack (multi-agent group channels)
  • Models: Claude (Anthropic), Gemini fallback

Activity

  1. Ryce commented on Mar 20, 2026

    @Ryce
  2. clawsweeper commented on Apr 28, 2026

    @clawsweeper
    Contributor

    Thanks for the context here. I did a careful shell check against current main, and this is already implemented.

    Current main handles this at the group/channel delivery layer. Group and channel turns now default to message_tool_only, which suppresses automatic partial/block/tool/final source delivery while still letting the agent post visible output with message(action=send). This covers the reported Slack multi-agent group-channel noise without adding the exact proposed suppressIntermediateText key.

    Best possible solution:

    Close this as implemented on current main. Keep the current messages.groupChat.visibleReplies: "message_tool" default and message-tool-visible output model; a future narrower issue can ask for an opt-in mode that preserves automatic final replies while dropping only pre-tool narration.

    What I checked:

    So I’m closing this as already implemented rather than keeping a duplicate issue open.

    Codex review notes: model gpt-5.5, reasoning high; reviewed against 14f140d6f0d3; fix evidence: commit 1e9faa2a5952, main fix timestamp 2026-04-28T20:34:55+01:00.

  3. locked as resolved and limited conversation to collaborators on May 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions