Skip to content

How do I make Claude Code and Codex follow the same rules?

Short answer. Keep shared rules in AGENTS.md and start CLAUDE.md with `@AGENTS.md`, so both tools read them. For what changes during the work, connect both to the same Contextingo project. One setup command installs the same hook in both, so saving does not depend on which model remembers to.

Updated by Contextingo.

What the hook does

  • At the start of a chat: reads the brief once.
  • At every prompt: save as you go, confirm what you checked.
  • At the end of a turn: sends work without a save back once.
  • After compaction: saves what the summary would lose.
  • After a commit: leaves a checkpoint.

Questions

Good to know.

Does the hook send my code anywhere?

No. It runs locally and only prompts your AI to save records.

Nothing learned is lost. Nothing unchecked is done.