Ultracite
AI-ready code formatter that helps write and generate code faster.
3. Used by agents' projects
Dependency in 72 public GitHub projects set up for AI coding agents that we scanned (1.2%).
4. Agent access
Agent skills for this library in the skills catalog; community skills are written by others, read them before you install.
ultracite.ai/llms.txtFrom the package registry and GitHub, checked daily. Tap a verdict to see its source.How we checkedReport an error
What Ultracite does
Ultracite is a strict, zero-config preset that runs on Oxlint, Biome or ESLint, and it is built around the coding agent's loop: rules go into <code>AGENTS.md</code>, hooks re-check each file the agent edits, and <code>fix --claude</code> or <code>--codex</code> hands leftovers to an agent CLI.
Ultracite popularity
Gid Score measures public popularity and activity, not quality. How the Gid Score is calculated
How Ultracite is used
- Ultracite is a dependency in 72 of the 6,258 public GitHub projects set up for AI coding agents that we scanned (1.5% of the 4,867 JavaScript/TypeScript ones), #1 of 78 in prompts, structured output and evals.
- Projects that use it most often also use Biome (61.1%), Turborepo (59.7%), TypeScript (94.4%).
- It is more common in projects set up for OpenCode (4.4%) than for GitHub Copilot (0.9%).
By coding agent
Often used with
Ultracite in practice
Strengths
Since 8.0.0, <code>init</code> writes the rules only to <code>AGENTS.md</code>. Four agents get one extra step. Claude Code gets an <code>@AGENTS.md</code> import in an existing <code>CLAUDE.md</code>, and Gemini CLI gets an entry in <code>context.fileName</code> in <code>.gemini/settings.json</code>. Aider gets <code>.aider.conf.yml</code> pointed at <code>AGENTS.md</code>, and Replit Agent keeps a copy in <code>replit.md</code>.
A hook fixes each file the agent edits in Cursor, Devin Desktop, CodeBuddy, Claude Code, Codex, Deep Agents, GitHub Copilot and Grok Build. Only some agents get the remaining problems handed back to them: Claude Code, CodeBuddy, Codex, Devin Desktop, Deep Agents, Grok Build and VS Code's Local agent.
In 8.0.0, <code>init</code> sets Aider's <code>lint-cmd</code> to the project's <code>ultracite fix</code>. Aider runs that command on every file it edits and asks the model to fix what is left.
<code>ultracite fix --claude</code> or <code>--codex</code> sends the leftover problems to that agent. The site says the agent repairs the code file by file with edit-only permissions.
Watch out for
The FAQ warns that people who like tweaking every ESLint rule may find it "restrictive." Rules can be turned off. But the maintainers write that if you turn off most of them, Ultracite may be the wrong preset for your team.
An ESLint config that doesn't yet use Ultracite's presets is replaced, with a warning, and you carry your rules over by hand. Some Prettier and Stylelint configs are replaced the same way. Biome configs are edited in place. For Oxlint, a <code>.oxlintrc.json</code> or <code>.oxfmtrc.json</code> is moved into TypeScript configs and deleted.
With the recommended Oxlint + Oxfmt setup, CSS is formatted but not linted. The migrate docs say to pick Biome or ESLint if you rely on Stylelint.
Claude Code hook that fixes each edited file (.claude/settings.json)
{ "hooks" : { "PostToolUse" : [ { "hooks" : [{ "command" : "bunx ultracite fix --hook" , "type" : "command" }], "matcher" : "Write|Edit" } ] } }More about Ultracite
Funding
- GitHub Sponsors: https://github.com/haydenbleasel
- 6 GitHub sponsors
Packages around it
- @biomejs: Biome engine
- turbo: Turborepo
- zod: Zod
- typescript: TypeScript
- husky: Pre-commit hooks
- dotenv: dotenv
More in Prompts, structured output and evals
Alternatives
Ultracite This page
Get started
Install it.
npm install ultraciteRules for your agent
## Ultracite
- Use `npx ultracite check` to report problems and `npx ultracite fix` to apply safe fixes.
- Use `ultracite fix --unsafe` only when a behavior change is acceptable. Those fixes require the flag because they may change behavior.
- Put project-specific overrides after Ultracite's presets so they win. Add the reason as a comment for any rule turned off on purpose.
- Leave formatting rules out of the linter config. The formatter owns formatting.
- Framework presets (React, Next.js, etc.) don't include the core rules. Add them alongside `core`.
- When migrating, format everything with `npx ultracite fix` in its own commit, then add that commit's hash to `.git-blame-ignore-revs`.
- Update with `npx ultracite upgrade`, and run `npx ultracite doctor` to check whether Ultracite and the linter have drifted apart.