Enforce consistent code for agents and humans with konsistent
By Steven Van ·
The open source CLI linter checks structural rules like required exports and file pairings that TypeScript and ESLint don't catch.
Vercel has open sourced konsistent, a CLI linter for TypeScript codebases that checks structural conventions rather than syntax. Vercel built it so agents and humans get the same consistent context when implementing features, and it already runs in AI SDK and Chat SDK.
Conventions are set in a project-level konsistent.json file, which can check things like:
- whether all files matching a pattern export specific functions
- whether every folder that contains one file also contains another
- whether every class exported from matching files implements a given type
konsistent is described as deterministic and fast. Vercel also published a skill that helps an agent draft a konsistent.json file, installed by running npx skills add vercel-labs/konsistent --skill konsistent-config.
