{
  "schema_version": "1.0",
  "id": "archive:https://vercel.com/changelog/enforce-consistent-code-for-agents-and-humans-with-konsistent",
  "slug": "enforce-consistent-code-for-agents-and-humans-with-konsistent-1xy6zkf",
  "url": "https://feed7.dev/p/enforce-consistent-code-for-agents-and-humans-with-konsistent-1xy6zkf",
  "title": "Enforce consistent code for agents and humans with konsistent",
  "why_included": "Vercel open-sourced konsistent, a deterministic CLI linter that enforces structural conventions in TypeScript repos — the folder/export patterns agents drift on that TypeScript and ESLint don't catch.",
  "summary": "**The gist** Vercel open-sourced **konsistent**, a CLI linter for TypeScript codebases that enforces structural conventions — whether files matching a pattern export required functions, or every folder with one file also has its counterpart — configured in a project-level **konsistent.json**. It's deterministic, covers patterns TypeScript and ESLint don't model, and Vercel's example run checks **340 files in 212ms**. It already gates **AI SDK and Chat SDK**.",
  "practical_implication": "**Why it matters** Structural drift is where agent-written code goes wrong quietly: it compiles but ignores your repo's layout. A deterministic check turns conventions into a failing exit code an agent can loop against, instead of prose in an **AGENTS.md** it may skip. A companion **skill** (npx skills add vercel-labs/konsistent) helps your agent draft the config.",
  "agent_context": "**The gist** Vercel open-sourced **konsistent**, a CLI linter for TypeScript codebases that enforces structural conventions — whether files matching a pattern export required functions, or every folder with one file also has its counterpart — configured in a project-level **konsistent.json**. It's deterministic, covers patterns TypeScript and ESLint don't model, and Vercel's example run checks **340 files in 212ms**. It already gates **AI SDK and Chat SDK**.\n\n**Why it matters** Structural drift is where agent-written code goes wrong quietly: it compiles but ignores your repo's layout. A deterministic check turns conventions into a failing exit code an agent can loop against, instead of prose in an **AGENTS.md** it may skip. A companion **skill** (npx skills add vercel-labs/konsistent) helps your agent draft the config.\n\n**Watch out** It only enforces what you encode — writing a **konsistent.json** that reflects your real conventions is the actual work — and it checks **structural** patterns (files, exports, types), not semantics, so it complements ESLint rather than replacing it.",
  "source": {
    "name": "Vercel",
    "url": "https://vercel.com/changelog/enforce-consistent-code-for-agents-and-humans-with-konsistent",
    "published_at": null
  },
  "source_class": "blog_post",
  "content_type": "Engineering Post",
  "layer": "infra",
  "domains": [
    "coding"
  ],
  "topics": [
    "harness-engineering",
    "dev-ux"
  ],
  "verification": {
    "status": "official_source",
    "label": "Official Source",
    "method": "source_feed",
    "verified_at": null
  },
  "uncertainty": [
    "It only enforces what you encode — writing a **konsistent.json** that reflects your real conventions is the actual work — and it checks **structural** patterns (files, exports, types), not semantics, so it complements ESLint rather than replacing it."
  ],
  "lifecycle": "Current",
  "published_at": null,
  "modified_at": null,
  "supersedes": [],
  "expires_at": null,
  "formats": {
    "html": "https://feed7.dev/p/enforce-consistent-code-for-agents-and-humans-with-konsistent-1xy6zkf",
    "json": "https://feed7.dev/p/enforce-consistent-code-for-agents-and-humans-with-konsistent-1xy6zkf.json",
    "markdown": "https://feed7.dev/p/enforce-consistent-code-for-agents-and-humans-with-konsistent-1xy6zkf.md"
  }
}