Dev.to AI 🤖 Ai 👁 0 📖 1 min read

One config, twelve AI coding tools: keeping your AI setup from drifting apart

If you use more than one AI coding tool, you know the drill. Claude Code wants CLAUDE.md. Cursor wants .cursor/rules. Gemini CLI wants GEMINI.md. Each tool has its own format for commands, agents, and project instruction

If you use more than one AI coding tool, you know the drill. Claude Code wants CLAUDE.md. Cursor wants .cursor/rules. Gemini CLI wants GEMINI.md. Each tool has its own format for commands, agents, and project instructions, so you copy your setup from one to the next - and the copies quietly drift. Fix a command in one place, forget the other two, and three weeks later each tool behaves a little differently.

Refract takes a different approach: keep one source of truth for your setup, and compile it into the native format of each tool you use. Change it once, recompile, and every tool is back in sync.

What that looks like today:

  • 12 target tools, including Claude Code, Cursor, and Gemini CLI
  • 184 commands (16 global, 168 across packs)
  • 99 agents and 234 skills
  • 24 packs you can mix per project
  • About 425k lines of compiled output, all generated from the single source
  • MIT licensed

Those numbers are checked by the project itself: a CI gate runs on every push to the main branch and on every pull request and fails the build if the README's figures stop matching the actual source - the same anti-drift philosophy applied to itself.

Who is this for? Anyone who runs more than one AI coding tool and is tired of hand-syncing configs, or who wants a large, ready-made library of commands and agents instead of writing their own from scratch.

If that sounds like your problem too, the code and docs are here: https://github.com/adnanmokhtar/refract - issues and PRs welcome. What would you want compiled next?

📰 Read the original article on Dev.to AI

Originally published by Dev.to AI. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.