codex-pairlisted
Install: claude install-skill Lykhoyda/ask-llm
# /codex-pair — setup and status dashboard
`/codex-pair` is a user-invocable command that orchestrates setup-and-status for the codex-pair PostToolUse hook. The HOOK runs automatically on every Edit/Write/MultiEdit when a project opts in via `.codex-pair/context.md`; this COMMAND is what you invoke to set up that opt-in (first time) or check the hook's current state (any time).
The hook empirically catches bugs earlier across any codebase and any task type — the improvement is task-agnostic per the [ADR-077](../../../../docs/DECISIONS.md) 4-task benchmark and the [ADR-095](../../../../docs/DECISIONS.md) lived-experience replication. Reference documentation on what the hook does, its cost characteristics, and its configuration knobs is in the second half of this file (below the Instructions section).
> **Note on what the hook is for:** the bug classes and example domains in the reference section below describe what codex-pair *catches in other projects* — they're benchmark fixtures, not properties of `ask-llm` itself. ask-llm is a CLI bridge between MCP clients and LLM CLIs with no money handling, no auth paths, no user-facing security surface. codex-pair runs against this repo for dogfooding (and continues to catch real bugs — see ADR-095).
## Instructions
### Phase 1: Detect current state
1. Locate the marker by walking up from `process.cwd()` looking for `.codex-pair/context.md`. Stop at `$HOME` or filesystem root.
```bash
dir=$(pwd); while [ "$dir" != "/" ] &&