Skip to main content
command CX Codex

speckit.companion.after-tasks — Claude Code command

speckit.companion.after-tasks records task completion in .spec-context.json for Companion GUI. Intended to run from the repository root right after completing tasks.

MIT ★ 110 updated 2026-11-03

Install into Claude Code · Manually: put the files in place All methods and platforms ↓
.claude/commands/speckit.companion.after-tasks.md
Open on GitHub

What speckit.companion.after-tasks does

This command runs python3 .specify/extensions/companion/scripts/write-context.py --hook finish --step tasks from the repository root. Its purpose is updating the task state in .spec-context.json so Companion GUI picks up the change.

Running it requires an available python3 binary. If Python is absent, state recording will fail, but the agent simply reports the issue and proceeds with the rest of the workflow.

What it helps with

  • log finished tasks into .spec-context.json
  • sync task status with Companion GUI
  • trigger the post-task hook without breaking execution

Example prompts for the agent

  • Record task completion for speckit
  • Run the after-tasks hook
  • Update Companion GUI task status

How to install speckit.companion.after-tasks

Manually: put the files in place

.claude/commands/speckit.companion.after-tasks.md

Call it with /speckit.companion.after-tasks. For all projects use ~/.claude/commands/

Questions about speckit.companion.after-tasks

How to install speckit.companion.after-tasks in Claude Code?

Place the command file at .claude/commands/speckit.companion.after-tasks.md in your repository root.

What does speckit.companion.after-tasks do?

It executes write-context.py with --hook finish --step tasks to save completion data into .spec-context.json.

What happens if python3 is missing?

The agent reports that the step was not recorded and continues without halting.

Source text

speckit.companion.after-tasks.md · MIT
---
description: "Record the tasks finish in .spec-context.json for the Companion GUI"
---

# Capture Tasks Finish

Run this from the repository root to record that tasks finished; 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 tasks
```

© alfredoperez · MIT · alfredoperez/speckit-companion

Similar slash commands

All slash commands for Agent setup: memory, context, orchestration →

From the same set83

The whole set →
speckit.companion.after-plan speckit.companion.after-plan writes a plan finish marker to .spec-context.json for the Companion GUI to track agent workflow stages. CX Codex +1 ★ 110repo stars speckit.companion.after-converge speckit.companion.after-converge logs converge completion into .spec-context.json for Companion GUI. It tells the companion interface that the step finished. CX Codex +1 ★ 110repo stars speckit.companion.after-specify speckit.companion.after-specify — a command for Claude Code and Codex that writes the current spec-kit step to .spec-context.json for the Companion GUI. Runs from the repository root after the specify stage completes. CX Codex +1 ★ 110repo stars speckit.companion.after-implement speckit.companion.after-implement — a command that writes implement step progress from tasks.md into .spec-context.json for the Companion GUI. CX Codex +1 ★ 110repo stars speckit.companion.before-step The speckit.companion.before-step command records a spec-kit step’s start in .spec-context.json for the Companion GUI. Run it before specify, plan, tasks, or implement. CX Codex +1 ★ 110repo stars speckit.companion.living-coverage speckit.companion.living-coverage — a command that reports which living-spec requirements have mapped tests and which remain uncovered. It runs read-only and never halts your workflow. CX Codex +1 ★ 110repo stars bench-sync bench-sync — a command for Claude Code and Codex that bakes benchmark cells and measures the current spec-kit and Companion extension versions. Use it to track how performance changes as tools are updated. CX Codex +1 ★ 110repo stars speckit.companion.living-show speckit.companion.living-show is a Claude Code command that prints requirement headings, one complete requirement, or rules tied to a file. Run it to inspect a specific part of a living spec without opening the whole document. CX Codex +1 ★ 110repo stars

Project sponsors

Companies that keep this analytics open