implement
Implement code or apply refactors by delegating file edits to a CLI agent. Returns a diff of all changes made by the agent.
Instructions
Delegate implementation to a CLI agent that can edit files in base_path.
Use cases:
'Claude designs → Codex implements → Claude+Gemini review' workflow
Apply a refactor proposal across files without manual edits
Hand off boilerplate work to a different model
Activates the agent's mutation flags (e.g. --permission-mode acceptEdits for
Claude). The tool returns a diff of files the agent created/modified/deleted.
base_path MUST be an absolute path. A relative path is resolved against the
MCP server process's cwd (NOT the calling user's terminal cwd), which is rarely
what the caller intends and may land in an unexpected directory.
If base_path is a git repo: full unified diff is returned.
If not: only the list of changed files (mtime-detected, no diff text).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent | Yes | ||
| plan | Yes | ||
| base_path | Yes | ||
| constraints | No | ||
| timeout_seconds | No |