Skip to content

Conversation

@larryzhuo
Copy link

Description

add one sandbox implement, provider by daytona
sandbox is needed in Roadmap

More Information

  1. add trae_config.json config setting:
"enable_sandbox": false,
"sandbox_providers": {
   "daytona": {
   "api_key": "",
   "api_url": "https://app.daytona.io/api"
   }
},
  1. add tools:
  • trae_agent/tools/sandbox_base.py: sandbox tool base class
  • trae_agent/tools/sandbox/sb_bash_tool.py: sandbox bash tool, same as bash_tool, but adapt to sandbox
  • trae_agent/tools/sandbox/sb_edit_tool.py: sandbox edit tool, same as edit_tool, but adapt to sandbox
  • trae_agent/tools/sandbox/sb_json_edit_tool.py: sandbox json edit tool, same as json_edit_tool, but adapt to sandbox
  1. modify trae_agent
    if enable_sandbox == True, it will use
TraeAgentSandBoxToolNames = [
    "sandbox_str_replace_based_edit_tool",
    "sequentialthinking",
    "sandbox_json_edit_tool",
    "task_done",
    "sandbox_bash",
]

not

TraeAgentToolNames = [
    "str_replace_based_edit_tool",
    "sequentialthinking",
    "json_edit_tool",
    "task_done",
    "bash",
]

Validation

python -m trae_agent.cli run "create a hello world python script"

python -m trae_agent.cli run "create a simple python http server"

Linked Issues

a new feature, has no issues linked

@CLAassistant
Copy link

CLAassistant commented Jul 26, 2025

CLA assistant check
All committers have signed the CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants