one rules file, one skills folder, every agent
Every coding agent wants its own rules file. Claude Code reads CLAUDE.md. Codex reads AGENTS.md. Cursor and Antigravity have their own spots too. Run more than one and you end up writing the same instructions three or four times, and then forgetting which copy you fixed last week.
@akacronos posted the cleanest answer to this I've seen in a while. It had 483 bookmarks when I read it this morning, which tells you how many people have the same mess. The setup details below are theirs. The take at the end is mine.
What they actually did
They keep one AGENTS.md in a git repo. A small script, safe to run again and again, symlinks that one file into wherever each agent looks: CLAUDE.md for Claude Code, AGENTS.md for Codex and Antigravity. Edit it once and every agent sees the change.
Skills get the same treatment. One folder holds all of them. Codex and Cursor read it as is. Claude and Antigravity get a symlink pointing at it. Add a skill once, run the script on the Mac or the Linux box, done.
MCP servers were the third piece. Instead of registering the same servers inside four different agent configs, they pulled them all out and registered them once in T3 Code, either for a whole machine or for one project. Secrets go through environment variables or T3 Code's secret store, not plaintext in a config. And for remote MCPs that need a browser login, they wrap them in npx -y mcp-remote <url> so you sign in once per machine and every agent shares it.
One gotcha they called out: T3 Code launches Antigravity with its own isolated home folder, which links the skills but not AGENTS.md, so the script links that file in too. That's the kind of thing you only find by running it for real.
Why this hit home for me
My M1 Max has the claude, cursor, codex, grok and opencode CLIs all signed in. My skills live in both ~/.claude/skills and ~/.cursor/skills. That's two copies of the same folder, and two copies is how drift starts. You tweak a skill in one place while you're in Claude, and a week later Cursor is still running the old version and you can't figure out why it keeps doing the thing you already told it not to.
The part I like most is that none of this is clever. It's symlinks and a git repo. No new tool to learn for the first two pieces. The value is just picking one place to be the truth and pointing everything else at it.
If you only steal one piece, steal the rules file. It's the one you edit most, and the one that hurts most when copies disagree.
Full write-up from @akacronos on X.
Tags: Agents Claude Code Agent workflow