phase-4

A postmortem command for the fourth phase of a project workflow. A postmortem is a review of what happened during an iteration and what should improve next time.

In plain words
What is it for?
Use it after Phase 3 is complete to record what went well and identify improvements for the next iteration.
Why use it?
It creates a place to capture lessons after implementation instead of losing useful process feedback.

Command

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/arsxxi/iterative-dev-workflow/phase-4
Clone the repo
git clone --depth 1 https://github.com/Arsxxi/iterative-dev-workflow
Per session 7 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 409 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00007 $0.00409
Opus 5 $0.00003 $0.00204
Sonnet 5 $0.00001 $0.00082
Haiku 4.5 $0.00001 $0.00041

Measured 2d ago against content hash cdd1a3f66447, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

phase-4 scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.kilo/commands/phase-4.md · 53 lines

What it actually says

Arguments

Kilo Code does not substitute $ARGUMENTS. Wherever this command refers to $ARGUMENTS, read it as the text I typed after the slash command in this message.

Expected: project name

If I typed nothing after the command, do not guess and do not invent a value: ask me for it with the question tool, then continue from there.


Step 0 — find which project this is for

Before anything else, figure out which project this command applies to:

  1. If you were given a project name after the slash (e.g. /phase-4 my-project), use it.
  2. Otherwise, look at the subfolders under .workflow/:
    • Exactly one folder → use it. Tell the user which project you picked (e.g. "Working on my-project"), so it's never a silent guess.
    • Two or more folders → ask the user once which project this is for. To make the question useful, show the first line of each project's 00-context.md, not just the folder name.
    • No folders → stop and tell the user to run /kickoff first. Don't proceed.

Phase 4: Postmortem

Purpose

Reflect on the iteration to improve the next one.

Prerequisites

  • Phase 3 (Implement) is complete

Steps

  1. What went well? — capture successful patterns
  2. What could be better? — identify friction and slowdowns
  3. What will we do differently? — concrete improvements for next iteration
  4. Update workflow — if a process change is needed, update the relevant command files

Output

  • Postmortem document
  • Action items for next iteration
  • Updated workflow documentation (if needed)

Trigger

$ARGUMENTS = "project name"
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 53 lines · 7 tokens per session scan A cdd1a3f66447

Subscribe to this mod's changes

phase-4 is a command published in the GitHub repository Arsxxi/iterative-dev-workflow (2 stars, last pushed 1mo ago), licensed MIT. It adds 7 tokens to every session and 409 once invoked, about $0.0000 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.