# Ultracite — card for AI agents

AI-ready code formatter that helps write and generate code faster.

Category: Prompts, structured output and evals · npm package `ultracite` · latest version 8.1.0 (checked 2026-11-01)
Install: `npm install ultracite`
License: MIT (permissive)

In your own product (generator, app, hosted service): **yes**. Permissive license: ship it inside your own product, closed or open source, and keep its license and copyright notice.

## Rules for AI agents (paste into AGENTS.md or CLAUDE.md)

## 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.

## Docs written for agents
- [llms.txt (index of the docs)](https://www.ultracite.ai/llms.txt)

## What it is
- Ultracite is an MIT-licensed preset for JavaScript and TypeScript linting and formatting. It does not lint code itself. The FAQ says Oxlint, Biome or ESLint is "the engine" and Ultracite is "the configuration." The introduction lists three supported toolchains and marks Oxlint + Oxfmt as recommended. The other two are Biome, and ESLint + Prettier + Stylelint.
- Setup is one command: `npx ultracite@latest init`. It installs the toolchain and writes four things: the linter config, editor settings, the agent rules in `AGENTS.md`, and optional post-edit hooks. After that, `npx ultracite check` reports problems and `npx ultracite fix` applies safe fixes. `ultracite fix --claude` or `--codex` passes what autofix can't settle to that agent's CLI.
- The docs index says to reach for it when a JS or TS project "needs strict, consistent linting and formatting without writing config, especially when coding agents write much of the code." Framework presets cover React, Next.js, Vue, Svelte, Astro and more.

## Caveats
- Opinionated on purpose: 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.
- init replaces some existing configs: 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 `.oxlintrc.json` or `.oxfmtrc.json` is moved into TypeScript configs and deleted.
- Default engine doesn't lint CSS: 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.
- Some fixes are held back: Fixes that may change behavior run only with `ultracite fix --unsafe`. Issues that need developer intent, such as naming conventions or missing error handling, only produce a warning.
- Upgrades can add warnings: `init` records a `^x.y.z` range, and releases sometimes enable new rules. The FAQ says to read the release notes. It also points to `npx ultracite upgrade` to update Ultracite and the linter together, and to `npx ultracite doctor` to spot drift between them.

## Numbers (AgentGid data)
- Gid Score: 58.2 (#1157 of all tools, 13 of 78 in its category)
- Used in 72 public projects set up for AI coding agents (1.2%)
- Downloads last week: 2,480,267 (as of 2026-11-24), +62.5% over 4 weeks
- GitHub stars: 3,381 (as of 2026-11-24)
- Last push: 2026-11-23

## Often used with
Biome 61.1%, Turborepo 59.7%, TypeScript 94.4%, oxfmt 33.3%, oxlint 33.3%, Zod 56.9%

## Links
- AgentGid page: https://agentgid.com/tools/ultracite/
- Homepage: https://www.ultracite.ai/
- Repository: https://github.com/haydenbleasel/ultracite
- Source: https://github.com/haydenbleasel/ultracite
- Source: https://github.com/haydenbleasel/ultracite/releases
- Source: https://www.ultracite.ai/
- Source: https://www.ultracite.ai/llms.txt
- Source: https://www.ultracite.ai/docs
- Source: https://www.ultracite.ai/docs/migrate
- Source: https://www.ultracite.ai/docs/faq

---
AgentGid's catalog is curated: every entry was checked against the maker's official pages (registry, repository, license and pricing pages) on the date shown; a license value shows the quote it stands on wherever AgentGid has one. Usage numbers come from AgentGid's own scan of public repositories set up for AI coding agents. Claims by makers are reported, not tested by AgentGid.
