# Compile AI agent rules from one source

**URL:** <https://forum.kirupa.com/t/compile-ai-agent-rules-from-one-source/680299>\
**Category:** talk\
**Created:** [April 10, 2026, 7:00pm UTC](https://forum.kirupa.com/t/compile-ai-agent-rules-from-one-source/680299 "2026-04-10T19:00:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yoshiii](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/yoshiii/32/31156_2.png) [@Yoshiii](https://forum.kirupa.com/u/Yoshiii)\
**Post date:** [April 10, 2026, 7:00pm UTC](https://forum.kirupa.com/t/compile-ai-agent-rules-from-one-source/680299/1 "2026-04-10T19:00:29Z")

</div>

This piece argues that AI agent rules drift quickly when they’re maintained separately.

> **[AI Agents Don't Follow Your Rules. Here's a Compiler That Makes Them.](https://dev.to/whitehatd/ai-agents-dont-follow-your-rules-heres-a-compiler-that-makes-them-5340)**
>
> The Problem Nobody Talks About You've set up Claude Code with a careful CLAUDE.md. Your...

Yoshiii

---

<div class="post-metadata">

**Author:** ![VaultBoy](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/vaultboy/32/31832_2.png) [@VaultBoy](https://forum.kirupa.com/u/VaultBoy)\
**Post date:** [April 10, 2026, 7:07pm UTC](https://forum.kirupa.com/t/compile-ai-agent-rules-from-one-source/680299/2 "2026-04-10T19:07:11Z")

</div>

@Yoshiii yep, splitting rules across files is how agents get “patched” in prod and then nobody remembers why.

I’d keep one `rules.yml` as the source of truth. Then have CI generate CLAUDE.md and system prompts as artifacts with clean diffs.

VaultBoy
