Skip to content

feat: add /flight-review, /flight-compare, /flight-annotate slash commands#7

Merged
lewisnsmith merged 2 commits intomainfrom
feat/slash-commands
Apr 19, 2026
Merged

feat: add /flight-review, /flight-compare, /flight-annotate slash commands#7
lewisnsmith merged 2 commits intomainfrom
feat/slash-commands

Conversation

@lewisnsmith
Copy link
Copy Markdown
Owner

Summary

  • Adds three new Claude Code slash commands to src/setup.ts SLASH_COMMANDS array
  • /flight-review: structured session critique — retries, errors, tool overuse, good decisions
  • /flight-compare: diffs two experiments with a 3-bullet summary (winner, biggest delta, suggested next test)
  • /flight-annotate: labels each turn and emits flight annotate shell commands to persist labels (strict one-command-per-turn prompt to mitigate R6 deviation risk)
  • Also updates the two existing slash command bodies (flight.md, flight-log.md) to reference flight logs (not flight log) ahead of the PR 1 rename
  • Makes the remove status line generic: "Removed Flight slash commands"

Dependencies

Depends on feat/cli-logs-rename (PR 1) and feat/experiment-registry (PR 2). Land this last.

The slash command bodies reference flight logs verbose, flight show, and flight experiment diff — all of which land in PR 1 and PR 2 respectively.

Test plan

  • npm run typecheck passes
  • npm run lint passes
  • test/setup.test.ts — 7 tests pass (3 original + 4 new)
    • After runSetup with slashCommands: true, all 5 .md files exist
    • No body references flight log (singular with space)
    • Bodies reference correct CLI verbs (flight logs audit, flight logs verbose, flight show, flight experiment diff, flight annotate)
    • After runRemove, all 5 files are deleted
  • After flight claude setup, all 5 slash command files exist in ~/.claude/commands/
  • After flight claude hooks remove, all 5 are deleted

…mands

Extends SLASH_COMMANDS in setup.ts with three new Claude Code slash commands
that let Claude read and annotate Flight sessions directly. Also updates the
two existing command bodies to reference `flight logs` (not `flight log`)
ahead of the PR 1 rename, and makes the remove status line generic.

- /flight-review: structured critique (retries, errors, tool overuse, good decisions)
- /flight-compare: 3-bullet experiment diff via `flight experiment diff`
- /flight-annotate: per-turn labelling with strict one-command-per-turn output
@lewisnsmith
Copy link
Copy Markdown
Owner Author

@copilot resolve the merge conflicts in this pull request

@lewisnsmith
Copy link
Copy Markdown
Owner Author

@copilot resolve the merge conflicts in this pull request

Co-authored-by: lewisnsmith <247513455+lewisnsmith@users.noreply.github.com>
Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 18, 2026

@copilot resolve the merge conflicts in this pull request

Resolved and pushed in 3ab0d9c. I merged origin/main into this branch, fixed the conflicts in CHANGELOG.md and CLAUDE.md, and verified everything passes with npm run check.

@lewisnsmith lewisnsmith merged commit 75332b2 into main Apr 19, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants