ductor icon indicating copy to clipboard operation
ductor copied to clipboard

[Feature]: Show executed shell commands in Telegram tool activity

Open adamrutt opened this issue 8 months ago • 1 comments

Problem or motivation

When using ductor from Telegram, tool activity for command execution is too opaque.

Right now I often only see something like:

[TOOL: Bash] x4

That makes it hard to understand what the agent actually executed without checking local logs.

It is also misleading on Windows, where the underlying tool is not really Bash.

This would be useful for:

  • debugging agent behavior from Telegram
  • reviewing what happened during a run
  • understanding repeated tool calls without needing terminal access

Proposed solution

Improve Telegram tool activity for shell/command execution by:

  • using a neutral label such as Shell instead of Bash
  • adding an optional verbose mode that shows the actual executed command
  • formatting the command in monospace / code block style for readability
  • only collapsing repeated tool activity when the exact same command was run

Example compact mode:

[TOOL: Shell]

Example verbose mode:

[TOOL: Shell]
C:\Program Files\PowerShell\7\pwsh.exe -NoLogo -Command Get-ChildItem

This would keep the default experience compact while making Telegram much more useful for monitoring tool use.

Alternatives considered

Current workaround is to inspect local logs, but that is less convenient and defeats the purpose of live visibility in Telegram.

Another option would be to leave compact mode as-is and only add this to an opt-in verbose mode. That would likely be the safest approach for preserving the current UX.

Before submitting

  • [x] I have searched existing issues and feature requests for duplicates.

adamrutt avatar Mar 13 '26 04:03 adamrutt

Implemented in v0.15.0 (Phase 1). I normalized all shell-related tool names (Bash, PowerShell, cmd, sh, zsh) to 'Shell' in the display layer across Telegram, Matrix, and API transports. Verbose mode with actual command display is planned for a future release.

PleasePrompto avatar Mar 14 '26 13:03 PleasePrompto