Skip to content

feat(tools): add command executor tool#113

Open
qinxuye wants to merge 1 commit intoxorbitsai:mainfrom
qinxuye:feat/cmdline-tool
Open

feat(tools): add command executor tool#113
qinxuye wants to merge 1 commit intoxorbitsai:mainfrom
qinxuye:feat/cmdline-tool

Conversation

@qinxuye
Copy link
Contributor

@qinxuye qinxuye commented Mar 8, 2026

Add a new command executor tool that enables agents to execute shell commands and scripts with proper safety controls and error handling.

Features:

  • Execute any shell command including pipes and redirects
  • Script execution support (bash, python, node, etc.)
  • Timeout control (default 300 seconds)
  • Working directory management
  • Detailed execution results (output, error, return code)
  • Full test coverage (38 tests)

Implementation:

  • Core executor: src/xagent/core/tools/core/command_executor.py
  • Vibe adapter: src/xagent/core/tools/adapters/vibe/command_executor.py
  • Comprehensive tests: tests/core/tools/test_command_executor.py

Add a new command executor tool that enables agents to execute shell commands
and scripts with proper safety controls and error handling.

Features:
- Execute any shell command including pipes and redirects
- Script execution support (bash, python, node, etc.)
- Timeout control (default 300 seconds)
- Working directory management
- Detailed execution results (output, error, return code)
- Full test coverage (38 tests)

Implementation:
- Core executor: src/xagent/core/tools/core/command_executor.py
- Vibe adapter: src/xagent/core/tools/adapters/vibe/command_executor.py
- Comprehensive tests: tests/core/tools/test_command_executor.py
@qinxuye qinxuye force-pushed the feat/cmdline-tool branch from f33c53e to 79923b1 Compare March 10, 2026 10:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants