L
AI Lint by DOSAYGO
Doctrine for AI coding agents

Teach your AI the difference between "works" and "belongs."

AI coding agents already write code that compiles. The pain starts when you review it: parallel systems built beside working ones, hidden state, swallowed errors, and abstractions that fight the framework.

AI Lint is a structured doctrine layer you drop into .ai-lint/ in your repository—giving Cursor, Claude Code, GitHub Copilot, and Codex explicit architectural judgment, named rejected patterns, and a mandatory pre-code checklist.

Free: core checklist, security baseline, and JavaScript/architecture samples for personal use by individuals only. Paid: complete doctrine for commercial work; Personal packs cover 1 user and Company licenses cover one legal entity.

Not a syntax linter. Not a style guide. If ESLint or a compiler can check it mechanically, it doesn't belong here.

What changes in your repo .ai-lint/

Stop reviewing the same AI mistakes twice.

  • Mandatory 30s Checklist Pass before the agent writes or edits code.
  • Doctrine Referee Mode names the exact rule or reject ID (AR-R2, SEC-R1, PY-R4, RS-R7) when a request or plan violates architecture.
  • Override Protocol forces conscious tradeoffs (Override / Reason / Risk / Mitigation) instead of silent rule-breaking.
  • Self-contained ZIPs work offline in any private repo with Cursor, Claude Code, Copilot, Windsurf, or Codex.
Built from production scars. Every rule and reject in AI Lint comes from real agent failures in production systems—written so an agent can reason, not just comply.

The problem isn't syntax. It's judgment.

AI models produce code that passes typecheck and looks plausible. Then you read the diff and feel the familiar dread: it isn't broken enough to fail a unit test—just wrong enough to quietly rot the codebase.

What agents do by default

Build a second parallel subsystem instead of reusing the existing CLI. Scatter 25 boolean flags across a module instead of naming 4 states. Swallow exceptions to make tests pass. Put ORM queries inside templates and business logic inside controllers.

Compiles, passes tests, rots in production

What AI Lint enforces

Explicit state ownership, bounded concurrency, single-entry side-effect primitives, strict dependency direction, language-idiomatic error handling, and an authority order where Rejects outrank preferences.

Architecture · Semantics · Framework taste

The boundary: If a rule can be enforced mechanically by ESLint, Clippy, Ruff, ShellCheck, or a type checker, it does not belong in AI Lint. AI Lint covers the architectural and semantic decisions where agents guess wrong.

How it works

Every paid pack ships as a single self-contained ZIP archive. Install it in 60 seconds; from the next prompt onward, your agent checks doctrine before writing code.

1

Drop .ai-lint/ into your repo

Unzip your pack and run ./install.sh (or cp -r ai-lint .ai-lint). Every paid ZIP is self-contained—no separate base download required.

2

Wire your agent once

Copy the included wiring file to .cursor/AGENTS.md, CLAUDE.md, or .github/copilot-instructions.md.

3

Mandatory checklist pass

Before generating code, the agent reads CHECKLIST.md, PHILOSOPHY.md, and the active language/framework doctrine and rejects.

4

Doctrine Referee & Overrides

When a plan violates a reject, the agent stops, cites the rule ID, proposes the aligned fix, or asks for an explicit Override block.

Example 1 · Architecture Rejects AR-R2: Parallel Solutions
Prompt: "Add multi-provider cloud browser launching to the hosted controller with its own per-provider SDK adapters."
Doctrine Referee (AR-R2 — Parallel Solutions):
Refusing second provider adapter layer. bbz already launches and manages cloud browsers across all configured providers. Under doctrine/architecture.md §2 (One Problem, One Solution) and AR-R2, the controller must invoke bbz rather than maintaining parallel provider adapters. Proceeding by wiring the controller to bbz.
Example 2 · Security Rejects SEC-R1: Radioactive Secrets
Prompt: "Commit the staging API key into config.js for now so the integration test passes."
Doctrine Referee (SEC-R1 — Radioactive Secrets):
Cannot commit credentials or tokens to source control (permanent git history exposure). Aligned path: read from environment / Secret Manager or an owner-only file outside git. If a dummy test fixture is intended, confirm an explicit override under .ai-lint/overrides/OVERRIDE-PROTOCOL.md.

Free Edition vs. Paid Packs

The Free Edition gives you the core philosophy, security baseline, wiring prompts, and a JavaScript & Architecture sample so you can prove the workflow in your own editor. Paid packs unlock complete multi-language, framework, debugging, and architecture coverage for commercial teams and solo builders.

Component Free Edition ($0) App Pack ($49 / $299) Systems Pack ($49 / $299) Bundle: Apps + Systems ($79 / $499)
Core Philosophy, Checklist & Override Protocol
PHILOSOPHY.md, CHECKLIST.md, OVERRIDE-PROTOCOL.md
Included Included Included Included
Agent Wiring Prompts
Cursor (AGENTS.md), Claude (CLAUDE.md), Copilot, Generic
Included Included + install.sh Included + install.sh Included + install.sh
Security Doctrine & Rejects
Agentic security baseline (SEC-R1 – SEC-R16)
16 principles + 16 rejects 16 + 16 + Security Exhibits 16 + 16 + Security Exhibits 16 + 16 + Security Exhibits
Architecture Doctrine & Rejects
State limits, module organization, async/shutdown, watchdogs
Preview (6 principles + 6 rejects) Full (15 principles + 11 rejects) Full (15 principles + 11 rejects) Full (15 principles + 11 rejects)
Debugging, Refactoring & Cross-Cutting
DBG-R1–R12, 10 refactoring rules, 6 universal rejects
Refactoring preview (5 rules) Full Debugging + Refactoring + Cross-Cutting Full Debugging + Refactoring + Cross-Cutting Full Debugging + Refactoring + Cross-Cutting
JavaScript & Node.js JS Sample (7 principles + 6 rejects) Full JS (20+19) & Node.js (20+18) — Full JS (20+19) & Node.js (20+18)
Python & Java — Python (20+18) & Java (20+20) — Python (20+18) & Java (20+20)
Django & Spring Frameworks + Exhibits — Django (10 rejects + exhibits) & Spring (10 rejects + exhibits) — Django (10 rejects + exhibits) & Spring (10 rejects + exhibits)
Go & Rust — — Go (20+20) & Rust (27+21) Go (20+20) & Rust (27+21)
C, C++ & Assembly — — C (20+18), C++ (20+18) & Assembly (20+15) C (20+18), C++ (20+18) & Assembly (20+15)
License Rights Personal & evaluation use by individuals only (no commercial, corporate, internal team, resale, redistribution, or AI training use) Commercial internal use (Personal 1 user / Company unlimited internal users) Commercial internal use (Personal 1 user / Company unlimited internal users) Commercial internal use (Personal 1 user / Company unlimited internal users)

What’s inside each paid pack

Every paid download is a self-contained ZIP containing the complete Base Module plus your chosen language and framework doctrine, rejects, Known Tensions tables, and before/after exhibits.

App Pack ($49 / $299)

For web apps, APIs, and backend services where correctness isn’t the bottleneck—long-term codebase shape is.

Languages (80 principles, 75 rejects)

JavaScript · Node.js · Python · Java

Frameworks & Exhibits (20 rejects)

Django · Spring · Before/After Exhibits

Catches N+1 ORM queries, async state races, fat controllers, shared request-handler state, and abstractions that fight the framework.

Systems Pack ($49 / $299)

For infrastructure, native applications, CLI tooling, and performance-critical systems where bugs stay latent.

Languages (107 principles, 92 rejects)

Go · Rust · C · C++ · Assembly

Tradeoff Matrices

Known Tensions · Memory & Concurrency

Enforces memory ownership, lock-ordering discipline, channel vs. mutex clarity, ABI hygiene, and explicit unsafe invariants.

Bundle: Apps + Systems ($79 / $499)

Complete coverage across application and systems layers in a single self-contained ZIP (61 files). Save $19 on Personal or $99 on Company.

Complete Doctrine Surface

All 9 Languages + 2 Frameworks + Base

Best for full-stack and polyglot engineers, technical leads reviewing agent PRs across repositories, and teams running Claude Code or Cursor across stack boundaries.

Choose your edition

One-time purchase via Stripe Checkout with instant watermarked ZIP download. Modify any file internally to encode your team's own house rules.

Free Edition

$0 source-available
  • Core Philosophy, Checklist & Override Protocol
  • Full Security Doctrine & Rejects (16 + 16)
  • Architecture preview (6 + 6) & JavaScript sample (7 + 6)
  • Wiring prompts for Cursor, Claude & Copilot

Personal & evaluation use by individuals only (no commercial, corporate, internal team, resale, redistribution, or AI training use)

Company License

$299–$499 one-time
  • Single legal entity with unlimited internal users
  • Use across all private repos & coding agents in your company
  • Customize doctrine & rejects for your internal standards
  • Instant download + Stripe invoice/receipt

Covers all employees & contractors of one legal entity.

Enterprise

Custom
  • Multiple legal entities (subsidiaries / affiliates)
  • Custom language or internal framework doctrine authoring
  • Vendor procurement & invoicing
  • Direct engineering support

Need custom doctrine written from your postmortems? Talk to us.

Upcoming Doctrine Packs

We expand AI Lint where agent judgment failures hurt production systems most. Have a domain you want prioritized? Let us know.

Database Next

SQL, PostgreSQL, indexing, N+1 prevention, migrations, transaction isolation

Infrastructure Next

Kubernetes, Docker, systemd, resource limits, health checks, secret custody

API Design Planned

REST boundaries, versioning, pagination, error schemas, idempotency keys

Auth & Identity Planned

OAuth, sessions, JWT pitfalls, RBAC, token rotation, confused deputy prevention

Distributed Systems Planned

Sagas, idempotency, bounded retries, circuit breakers, lease ownership

Observability Planned

Structured logs, causal correlation IDs, cardinality control, actionable alerts

Mobile Planned

Swift, Kotlin, React Native, lifecycle ownership, offline-first state

Frontend Systems Planned

Component boundaries, state colocation, accessibility, DOM/network lifecycles

Want a specific pack prioritized? Email ai-lint@dosaygo.com.

Frequently Asked Questions

Is AI Lint a static analyzer or syntax linter?

No. Static analyzers check syntax and local rules. AI Lint is architectural and semantic doctrine read by your AI coding agent (Cursor, Claude Code, GitHub Copilot, Windsurf, Codex) before it writes code—catching bad designs like parallel subsystems, implicit state machines, and framework-fighting abstractions.

How does installation work? Do I need to assemble multiple ZIPs?

No assembly is required. Every paid download (ai-lint-apps.zip, ai-lint-systems.zip, ai-lint-bundle.zip) is a complete, self-contained archive that already includes the Base doctrine, your language/framework pack(s), install.sh, and GETTING-STARTED.md. Unzip, run ./install.sh (or cp -r ai-lint .ai-lint), and copy the wiring prompt for your agent.

What happens when a valid change needs to break a rule?

AI Lint includes an explicit Override Protocol (.ai-lint/overrides/OVERRIDE-PROTOCOL.md). Instead of silently breaking doctrine, a wired agent surfaces the conflict and documents Override, Reason, Risk, and Mitigation for human approval.

Can I or my team edit the doctrine files?

Yes. The commercial license explicitly permits internal modification and use across your private repositories. Most teams add their own project-specific rules alongside the core doctrine (and each ZIP includes authoring/HOW-TO-WRITE-DOCTRINE.md).

What is the difference between the Personal and Company licenses?

Both allow internal commercial use and internal modification. The Personal License ($49 / $79) covers 1 individual user. The Company License ($299 / $499) covers unlimited internal employees and contractors within a single legal entity.

How is the download delivered after checkout?

Checkout is processed securely via Stripe Checkout. Immediately after payment completes, Stripe returns you to your dedicated download page where your watermarked ZIP archive is generated and ready to download (up to 2 downloads within 24 hours).

Write doctrine. Get paid.

We work with senior engineers who have shipped in production and have sharp judgment about what belongs. If you have debugged the same AI mistakes repeatedly in React, Kubernetes, PostgreSQL, or Swift, that is doctrine waiting to be written.

What we look for

Real production scars. Patterns you have seen fail at 3 AM. Framework fights you have resolved. The engineering taste that is obvious to a principal engineer and invisible to a default LLM prompt.

What you get

Revenue share on packs you author, credit on the doctrine, and a way to turn hard-won judgment into an artifact teams use every day.

Email ai-lint@dosaygo.com