speckit.companion.after-implement — Claude Code command: what it does
speckit.companion.after-implement — a command that writes implement step progress from tasks.md into .spec-context.json for the Companion GUI.
MIT ★ 110 updated 2026-11-03
.claude/commands/speckit.companion.after-implement.mdWhat speckit.companion.after-implement does
The command runs a Python script, write-context.py, which syncs task completion status from tasks.md into .spec-context.json. This lets Speckit Companion GUI display progress.
The script lives in .specify/extensions/companion/scripts/. If python3 is not in PATH, the command reports the step was not recorded and continues without error.
Run the command from the repository root after finishing the implement step — the agent logs that tasks are complete and updates context for the GUI.
What it helps with
- sync task progress from
tasks.mdinto a context file - update implement step status for the Companion interface
- record completion state without halting if Python is missing
Example prompts for the agent
- Record that implement is finished
- Update
.spec-context.jsonafter implement - Log task progress to context
How to install speckit.companion.after-implement
Manually: put the files in place
.claude/commands/speckit.companion.after-implement.mdCall it with /speckit.companion.after-implement. For all projects use ~/.claude/commands/
Manually: put the files in place
~/.codex/prompts/speckit.companion.after-implement.mdCall it with /prompts:speckit.companion.after-implement. Codex marks this format deprecated in favour of skills
Manually: put the files in place
.github/prompts/speckit.companion.after-implement.prompt.mdManually: put the files in place
.gemini/commands/speckit.companion.after-implement.tomlGemini stores commands as TOML: the prompt text goes into the prompt field
Questions about speckit.companion.after-implement
How to install speckit.companion.after-implement in Claude Code?
Place the command file at .claude/commands/speckit.companion.after-implement.md in the repository root.
What does speckit.companion.after-implement do?
The command runs a script that writes implement step status from tasks.md into .spec-context.json for display in Speckit Companion GUI.
What happens if python3 is not installed?
The command reports the step was not recorded and continues without error — the script does not stop the agent.
Source text
speckit.companion.after-implement.md · MIT
--- description: "Record implement progress from tasks.md in .spec-context.json for the Companion GUI" --- # Capture Implement Finish Run this from the repository root to sync implement progress from tasks.md; if `python3` is missing, say the step was not recorded and carry on. ```bash python3 .specify/extensions/companion/scripts/write-context.py --hook finish --step implement ```
© alfredoperez · MIT · alfredoperez/speckit-companion