Commit Graph
1 Commits
Author SHA1 Message Date
1ff5949705 feat(cli): restore the pair command the pair-programming skill depends on (#3341)
* feat(cli): restore the `pair` command the pair-programming skill depends on

The bundled pair-programming skill tells Claude Code to run
`claude-flow pair --start --mode tdd`, but the v3 CLI never shipped `pair`
(it was a v2 simple-command), so `ruflo pair` fails with "Unknown command"
and none of the skill's modes can be activated or switched.

Add a minimal, non-interactive `ruflo pair` that keeps session state in
`.claude-flow/sessions/pair/current.json`: start/status/switch/mode/end/
history, driver/navigator roles, switch-mode interval with a `switchDue`
signal. The v2 spellings (`pair --start`, `--end`, `--history`) still
work. The skill docs now describe how the agent reads `pair status --json`
each turn and act on it, and point at the new syntax.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

* feat(cli): accept the pair mode as a bare word

`ruflo pair start tdd` silently started driver mode because only
--mode was read. A positional now wins over the option default.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

---------

Co-authored-by: Gilles Major <gilles@lizy.be>
Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
Co-authored-by: rUv <ruv@ruv.net>
2026-10-21 16:25:31 -04:00