Skip to content

feat: Allow background command execution via optional parameter #9022

@fede-ciliberti

Description

@fede-ciliberti

Is your feature request related to a problem? Please describe.
Currently, the execute_command tool is interactive by default. It waits for the first line of output and then prompts the user for action. This blocks the agent from performing other tasks while long-running commands (like a development server) are active.

Describe the solution you'd like
I propose adding an optional background boolean parameter to the execute_command tool.

When background is set to true:

  • The command will run without requiring user interaction.
  • The agent will be immediately unblocked to continue with other tasks.
  • The command's output will still be streamed to the terminal UI.

This provides a simple and direct way for the agent to manage long-running processes without disrupting its workflow.

Example Usage

<execute_command>
  <command>npm run dev</command>
  <background>true</background>
</execute_command>

Describe alternatives you've considered
We considered collaborating on PR #6587, but our proposed solution is simpler and more direct for the agent to control. It adds a clear, explicit parameter for the desired behavior.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue - In ProgressSomeone is actively working on this. Should link to a PR soon.enhancementNew feature or request

    Type

    No type

    Projects

    Status

    Issue [In Progress]

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions