## Global instructions
To apply to all your projects, add the same instructions to `~/.codex/AGENTS.md`.
## Enforcement with Rules (experimental)
For hard enforcement, use Codex's [Rules system](https://developers.openai.com/codex/rules) to block direct package manager commands and require brin checks instead.
Create `.codex/rules/brin.rules`:
```starlark
prefix_rule(
pattern=["npm", ["install", "i", "add"]],
decision="forbidden",
justification="Check with brin first: curl -sf -o /dev/null -w '%header{x-brin-verdict}' https://api.brin.sh/npm/<package>",
)
prefix_rule(
pattern=["pip", "install"],
decision="forbidden",
justification="Check with brin first: curl -sf -o /dev/null -w '%header{x-brin-verdict}' https://api.brin.sh/pypi/<package>",
)
prefix_rule(
pattern=["cargo", "add"],
decision="forbidden",
justification="Check with brin first: curl -sf -o /dev/null -w '%header{x-brin-verdict}' https://api.brin.sh/crate/<package>",
)