codemap
codemap copied to clipboard
[codex] Add transition-based codemap hook guidance
Summary
This changes codemap’s hook guidance from generic protocol nudges to concrete transition-time commands.
- add
Next codemap:command suggestions during prompt-submit based on intent and mentioned files - make pre-edit and post-edit guidance phase-aware with
Run now:/Re-check with:commands for risky files - update tests and docs so the new hook output is covered and documented
Why
Claude was treating codemap as orientation help instead of part of the execution loop. The existing hook output described risk, but it did not consistently turn that into an explicit next action at the moment a risky edit was about to happen.
Validation
go test ./cmdgo test ./...