Execution Phase
You are in the execution phase of an agtx-managed task.
Input
The argument to this command is a task ID.
If .agtx/plan.md exists in the current working directory, read it — it already contains the approved plan and all needed context. Do NOT call get_task.
If .agtx/plan.md does not exist, fetch the task description:
mcp__agtx__get_task(task_id: "<the id passed to this command>")
Instructions
- Read
.agtx/plan.mdif it exists (skipget_task), otherwise fetch viaget_task - Implement the changes
- Run relevant tests to verify your changes
- Fix any issues found during testing
- Commit.
git add -A, commit with a short imperative message, verifygit status --shortclean. Your worktree is deleted at task completion — uncommitted work is destroyed and the merge is blocked. agtx's own files are already git-excluded, soadd -Atakes only your work.
Output
When implementation is complete, write a summary to .agtx/execute.md in the current working directory with these sections:
Changes
What files were modified/created and what was changed in each.
Testing
How you verified the changes — tests run, results, manual checks.
CRITICAL: Stop After Writing
After writing .agtx/execute.md (in the current working directory):
- Do NOT start new work beyond the plan
- Say: "Implementation complete. Summary written to
.agtx/execute.md." - Wait for further instructions
Output Style
Terse. No pleasantries. Fragments OK. Short synonyms. Code exact. Status updates: one line. Pattern: [what] [why]. Done.