{"slug": "enforce-consistent-code-for-agents-and-humans-with-konsistent", "title": "Enforce consistent code for agents and humans with konsistent", "summary": "Konsistent, a CLI linter for TypeScript codebases that enforces structural conventions for both human and AI developers, has been open-sourced. The tool, used in AI SDK and Chat SDK, ensures consistent code patterns that TypeScript and ESLint do not model.", "body_md": "[konsistent](https://www.npmjs.com/package/konsistent) is now open source.\n\n`konsistent`\n\nis 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.\n\nConfigure conventions in a project-level `konsistent.json`\n\nfile for concerns like:\n\nDo all files matching pattern X export functions Y and Z?\n\nDoes every folder that has file X also have file Y?\n\nDoes every class exported from files matching pattern X implement type Y?\n\n`konsistent`\n\nis used in [AI SDK](https://ai-sdk.dev/) and [Chat SDK](https://chat-sdk.dev/) to enforce structural code conventions.\n\nUse the konsistent skill to help your agent create a `konsistent.json`\n\n:", "url": "https://wpnews.pro/news/enforce-consistent-code-for-agents-and-humans-with-konsistent", "canonical_source": "https://vercel.com/changelog/enforce-consistent-code-for-agents-and-humans-with-konsistent", "published_at": "2026-07-01 00:00:00+00:00", "updated_at": "2026-07-03 20:51:04.707029+00:00", "lang": "en", "topics": ["developer-tools", "ai-agents", "large-language-models"], "entities": ["konsistent", "TypeScript", "ESLint", "AI SDK", "Chat SDK"], "alternates": {"html": "https://wpnews.pro/news/enforce-consistent-code-for-agents-and-humans-with-konsistent", "markdown": "https://wpnews.pro/news/enforce-consistent-code-for-agents-and-humans-with-konsistent.md", "text": "https://wpnews.pro/news/enforce-consistent-code-for-agents-and-humans-with-konsistent.txt", "jsonld": "https://wpnews.pro/news/enforce-consistent-code-for-agents-and-humans-with-konsistent.jsonld"}}