Skip to content

[FEATURE] make bash tool command timeouts configurable #2357

Description

@Hapshanko

📋 Prerequisites

📝 Feature Summary

Agents on kagent can execute shell commands via the built-in bash tool command, the timeout is currently hardcoded

❓ Problem Statement / Motivation

Agents deployed on kagent can execute shell commands via the built-in bash skill tool, the timeout is currently hardcoded:

30 seconds for general commands
60 seconds for commands containing python

If an agent runs a longer task, the command is killed with a timeout error.
There is currently no way to configure this timeout without modifying the kagent source code.

💡 Proposed Solution

Support an environment variable:

KAGENT_COMMAND_TIMEOUT=<seconds>

When unset or invalid, keep existing defaults (30s / 60s for python)

🔄 Alternatives Considered

No response

🎯 Affected Service(s)

Not Sure

📚 Additional Context

No response

🙋 Are you willing to contribute?

  • I am willing to submit a PR for this feature

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    Status
    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions