# Enforce consistent code for agents and humans with konsistent

> Source: <https://vercel.com/changelog/enforce-consistent-code-for-agents-and-humans-with-konsistent>
> Published: 2026-07-01 00:00:00+00:00

[konsistent](https://www.npmjs.com/package/konsistent) is now open source.

`konsistent`

is a CLI linter for TypeScript codebases that enforces structural conventions, giving agents and humans the consistent context they need to implement features correctly. Deterministic, fast, and covers structural patterns that TypeScript and ESLint don't model.

Configure conventions in a project-level `konsistent.json`

file for concerns like:

Do all files matching pattern X export functions Y and Z?

Does every folder that has file X also have file Y?

Does every class exported from files matching pattern X implement type Y?

`konsistent`

is used in [AI SDK](https://ai-sdk.dev/) and [Chat SDK](https://chat-sdk.dev/) to enforce structural code conventions.

Use the konsistent skill to help your agent create a `konsistent.json`

:
