LLM-powered semantic lint tool for CI pipelines (v0.2.2). Catches design violations that static analysis can't — naming inconsistencies, misplaced responsibilities, implicit fallbacks, and more. Requires Node.js >= 22. Ships 9 built-in rules with configurable thresholds and supports multiple LLM providers (OpenAI, Anthropic, GitHub Copilot). Filter mode supports diff-only or full-codebase analysis. Written in TypeScript with shipped type definitions. Release cadence: early stage, frequent minor updates.
npm install codepolicyNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Installation, configuration file creation, CLI run, and programmatic usage example.
Upgrade Node to >= 22 or use nvm to switch.
Use import syntax or dynamic import(). Set type: 'module' in package.json.
Explicitly set provider via config or environment variable. Ensure correct API key is set.
Reduce concurrency value in config or CLI argument --concurrency 2.
Use 'diff' filter mode for CI; it processes only changed files.
Switch to ESM: use import syntax or dynamic import(). Set "type": "module" in package.json.
Upgrade Node.js to >= 22. Use nvm or download from nodejs.org.
Use full model name with provider prefix, e.g., 'openai/gpt-4' or 'github-copilot/gpt-4.1'. Check docs for supported patterns.
No dependency data recorded yet.