UGC keeps AI coding tool rules in one place

is an open-source CLI for managing rules for several from one place. OpenAI Codex, Cursor, Claude Code, and Antigravity each expect different rule and setup files, so the same instructions can become scattered and inconsistent. UGC uses a `.universal-governance/` folder inside the repository as the main source, then turns it into the files each tool expects.

It can generate Codex files such as AGENTS.md and `.codex/config.toml`, Cursor files such as `` and hooks, Claude Code files such as CLAUDE.md and hooks, and Antigravity AGENTS.md plus procedure-style files. `ugc init` creates a starter set of practical rules, not just empty templates. That starter set covers approval steps, protected parts of the project, work logs, release habits, repository cleanup, and session wrap-up.

The intended workflow is to run `ugc init`, adjust the rules, then run `ugc build` to create the tool-specific files.

Key points

  • UGC is an open-source CLI for one shared rule source across .
  • The main source lives in `.universal-governance/` inside the repository.
  • It can generate files for OpenAI Codex, Cursor, Claude Code, and Antigravity.
  • The starter rules cover approvals, protected project areas, work logs, release habits, cleanup, and session wrap-up.
  • The basic flow is `ugc init` to create rules and `ugc build` to generate files for each tool.
Read original