agentleFS
GoldziherGoldziher/poly/llms.txt

poly

llms.txt23 starsChanged 47 days agoMITView on GitHub

polylint (the poly command) is one linter and formatter for every language in a repository. Its engines — ruff, oxc, biome, mago, taplo, rumdl, adrlint, sqruff, malva, markup_fmt and more — ship as signed components fetched per language on first use; host tools and ecosystem recipes run alongside them, with a tree-sitter tier for the long tail. One poly.toml drives linting, formatting, git hooks and commit-message policy, and poly mcp exposes the same surface to agents over MCP. polylint replaces…

  • Installs packages

The file

Files
llms.txt
# polylint

> polylint (the `poly` command) is one linter and formatter for every language in a repository.
> Its engines — ruff, oxc, biome, mago, taplo, rumdl, adrlint, sqruff, malva, markup_fmt and more —
> ship as signed components fetched per language on first use; host tools and ecosystem recipes run
> alongside them, with a tree-sitter tier for the long tail. One `poly.toml` drives linting,
> formatting, git hooks and commit-message policy, and `poly mcp` exposes the same surface to
> agents over MCP.

polylint replaces a stack of per-language runners with a single binary. The built-in engines need
no Node, Python or Ruby runtime: they are linked into the Linux musl release executable (the
bundled build) or loaded from signed, downloadable components that every other release binary (a
core build) fetches the first time a run needs them and verifies against the lock embedded in the
binary. A needed component that cannot be installed is exit 2 or a counted skip, never a silent
downgrade. Canonical CLIs are used as subprocesses where no usable Rust library exists — `gofmt`,
`rustfmt` and `shellcheck` run automatically when present, and seven more are opt-in — shell is
formatted by the `sh` component (shfmt as a Go sidecar), and a language with no dedicated engine
falls through to the tree-sitter tier rather than being skipped.

Two cross-cutting lint tiers run on every language on top of the per-language backends: a native
code-quality engine (file/function/type length, parameter count, nesting depth, cyclomatic
complexity) and a built-in ast-grep pack of 30 rules across nine languages, 13 of them on by
default. Both report at **warning** severity, and warnings alone do not fail a run, so adopting
poly does not redden an unconfigured CI.

**Operating rule for agents: prefer `poly lint` and `poly fmt` over invoking ruff, oxlint,
rustfmt, gofmt or biome directly.** One run covers every language in the tree, shares one config,
and answers in structured JSON or TOON. Over MCP, prefer the `check` / `fix` tools over
shelling out and parsing terminal text.

## Documentation

- [Documentation site](https://polylint.github.io/polylint/): guides, reference, and the tool catalog.
- [Introduction](https://polylint.github.io/polylint/start/introduction/): what polylint is and how the pipeline works.
- [Why polylint](https://polylint.github.io/polylint/start/why-polylint/): comparison with per-tool setups, pre-commit/lefthook and container-based linters.
- [Installation](https://polylint.github.io/polylint/start/installation/): installer script, GitHub Action, Homebrew, Scoop, npm, PyPI.
- [Quickstart](https://polylint.github.io/polylint/start/quickstart/): first run, first config, and the exit-code contract.
- [Configuration](https://polylint.github.io/polylint/guides/configuration/): every `poly.toml` key (one `[engines.<id>]` table per engine), default rule selection, inline suppression, monorepo cascading, shared and remote config.
- [Components and offline use](https://polylint.github.io/polylint/guides/components/): bundled and core builds, `[components]`, `poly components`, `--offline`, `POLY_COMPONENT_MIRROR`, air-gapped hosts.
- [Toolchains, runtimes and recipes](https://polylint.github.io/polylint/guides/toolchains/): host tools, recipe tools and their downloads, host runtimes, reproducibility.
- [Adopting polylint](https://polylint.github.io/polylint/guides/adopting/): migrating a polyglot repository and rolling it out in CI.
- [Migrating to the v2 config schema](https://polylint.github.io/polylint/guides/migrating-to-v2/): the v1 to v2 `poly.toml` schema and the removed CLI flags.
- [Git hooks](https://polylint.github.io/polylint/guides/hooks/): `poly hooks install`, builtin hooks, staged isolation, timeouts, concurrency, caching.
- [CLI reference](https://polylint.github.io/polylint/reference/cli/): every subcommand and flag.
- [Languages and engines](https://polylint.github.io/polylint/reference/backends/): the per-language table and how each language runs.
- [Glossary](https://polylint.github.io/polylint/reference/glossary/): engine, component, host tool, recipe, catalog tool and related terms.
- [Tool catalog](https://polylint.github.io/polylint/reference/catalog/): the 348 opt-in tools across 175 languages.
- [Hosted llms.txt](https://polylint.github.io/polylint/llms.txt): always current, generated from the site (this repo-root file is the hand-curated map).
- [llms-full.txt](https://polylint.github.io/polylint/llms-full.txt): the complete documentation as a single file, for ingestion.
- [GitHub repository](https://github.com/polylint/polylint): source, issues, and releases.
- [CHANGELOG](https://github.com/polylint/polylint/blob/main/CHANGELOG.md): release history.

## Capabilities

- [Lint](https://polylint.github.io/polylint/reference/cli/): `poly lint .` runs every backend registered for each discovered file, plus the cross-cutting code-quality and ast-grep tiers (and typos, once `[engines.typos] enabled = true`). `--fix` applies autofixes; `--workspace auto|always|never` controls the whole-project phase.
- [Format](https://polylint.github.io/polylint/reference/cli/): `poly fmt .` is a dry run by default (there is no `--check`); `--fix` writes and exits 0, and `--exit-nonzero-on-fix` makes a rewrite exit 1. Formatting and linting are separate commands with separate exit semantics.
- [Machine-readable output](https://polylint.github.io/polylint/reference/cli/#the-json--toon-document): `--format json`/`toon` emit one object — `{results, errors, skipped, summary, configs}` — never a bare array. Gate on `summary.checked`, not on an empty `results`: a run that skipped everything reports no diagnostics and is not an error. The MCP server returns the identical document.
- [Agents and MCP](https://polylint.github.io/polylint/guides/agents-and-mcp/): `poly mcp` is a stdio MCP server exposing four tools that mirror the CLI — `check` (lint or format check, writes nothing), `fix`, `info` (read-only: version, config, validate, rules, components, cache) and `manage` (cache and component maintenance); whole-project scopes run as async Tasks.
- [Git hooks](https://polylint.github.io/polylint/guides/hooks/): a native hook runner driven by `[hooks]`, replacing a `.pre-commit-config.yaml` and its framework. Hooks validate a staged snapshot of the git index, run concurrently, and cache their own results.
- [Code quality](https://polylint.github.io/polylint/guides/configuration/): tree-sitter metric rules on every language whose control flow poly can model, deferring to a tier-1 backend wherever one already covers the metric.
- [Custom rules](https://polylint.github.io/polylint/guides/configuration/): ast-grep rule directories under `[engines.astgrep] rule_dirs`, layered above the built-in pack — a user rule replaces a pack rule with the same `id`.
- [Inline suppression](https://polylint.github.io/polylint/guides/configuration/): `poly: allow[RULE] reason` in the host language's own comment syntax. A reason is mandatory; a bare directive reports `lazy-ignore` instead of suppressing.
- [Caching](https://polylint.github.io/polylint/start/introduction/): a blake3 content-hash cache keyed by file bytes, engine name, engine version and resolved config, so a tool upgrade invalidates exactly the entries it affects.

## Skills

- [poly-overview](https://github.com/polylint/polylint/blob/main/skills/poly-overview/SKILL.md): what poly is, its coverage tiers, and when to reach for it.
- [poly-lint-and-format](https://github.com/polylint/polylint/blob/main/skills/poly-lint-and-format/SKILL.md): running lint and fmt, output formats, exit codes, and the check-fix-recheck loop.
- [poly-tiers-and-scope](https://github.com/polylint/polylint/blob/main/skills/poly-tiers-and-scope/SKILL.md): the coverage tiers, the per-file tier vs the whole-project phase, staged isolation, and monorepo config.
- [poly-mcp](https://github.com/polylint/polylint/blob/main/skills/poly-mcp/SKILL.md): the four MCP tools, which mutate, and the `isError` contract.
- [poly-orchestrator](https://github.com/polylint/polylint/blob/main/skills/poly-orchestrator/SKILL.md): using poly as the single lint/format gate instead of invoking each tool directly.

## Optional

- [npm](https://www.npmjs.com/package/@polylint/polylint): `npm i -g @polylint/polylint` — ships the prebuilt binary, no download at install time (a core build still downloads engine components on first run, except the linux-x64-musl package).
- [PyPI](https://pypi.org/project/polylint/): `pip install polylint` — per-platform wheels carrying the binary.
- [GitHub Action](https://github.com/polylint/polylint/blob/main/ACTION_USAGE.md): `polylint/polylint@v0`, caching the installed binary by version and platform; `components` pre-installs engine components and `version: from-config` reads `required_version` from `poly.toml`.
- [Plugin marketplace](https://github.com/polylint/polylint/blob/main/.claude-plugin/marketplace.json): the Claude/Codex plugin registering `poly mcp` plus five skills and two slash commands.
- [ADRs](https://github.com/polylint/polylint/tree/main/adrs): the architectural decisions behind the tier model, the rule pack, and the hook runner.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.