🧬

Feature: Code-Based Tools (CodeAct)

MCP tool schemas don't cloud agent context — tools become discoverable Python code

Workspace Structure

workspace/
├── servers/     # MCP tools
├── custom_tools/ # User tools
├── skills/      # Openskills
└── utils/       # Agent scripts
Tool Discovery:
Agents explore filesystem, read docstrings, import what they need

execute_command

Central MCP tool that runs agent-written Python scripts

→ Docker execution
→ Timeout & security layers
→ Workspace confinement
# Agent runs their code
execute_command(
  "python utils/report.py"
)

Why It Matters

  • → Context reduction
  • → Transparent tool access
  • → Native Python composition
  • → Parallel async execution
Research: Apple CodeAct, Cloudflare Code Mode, Anthropic MCP