One copy of every cross-repository rule for AI-agent sessions, mounted as a git submodule in five repos and enforced by CI pin checks.
// readme
dew_flow_conventions β shared Claude Code and Codex rules
One canonical body per rule, with applicability in that fileβs YAML frontmatter.
AGENTS.md directs both agents to the shared entry and project rules; CLAUDE.md
contains only @AGENTS.md. The resolver selects the same sources for both agents.
This is advisory instruction delivery, not enforcement of model behavior.
The source repository uses this setup now. Consumer migration from .claude/rules/shared
to .agents/conventions is in progress; see the plan.
Existing consumers keep their current pins until migration is verified. Do not mount this
new checkout wholesale under Claudeβs automatic rules tree.
Run npm ci --ignore-scripts, npm test, npm run check. For selected sources:
node tools/rules.mjs explain --repo . --task policy --file ENTRY.md.
See ENTRY.md for complete reads and module_rules.md
for schema, limits,β¦