Skip to content
Built for AI assistants

Your AI writes a bug. The framework catches it.

Your assistant has read more React than anything else, so its first Pyreon draft comes back React-shaped and compiles fine. Pyreon ships the tools it checks its work against: an MCP server with 24 tools, the compiler's live/static verdict in your editor, pyreon check and generated llms.txt.

npm create @pyreon/zero@latest

Counted, not claimed.

  • 24 MCP tools: get_api, validate, diagnose, explain_reactivity and moretool list checked against the docs page by a CI step
  • 144 lint rules in 26 categories in @pyreon/lintcount from AGENTS.md on main
  • 0 network calls from the MCP server: no model inside, deterministic answersas documented

synthetic · author-run · Apple M3 Max · record refreshed 2026-11-24

Every result, including where we lose →
code

A plausible draft, caught before you see it.

Two bugs that are not syntax errors: a signal "written" by calling it, and a React key on a list. The button never counts, and the list never gets the by it needs. The assistant passes the draft to the MCP validate tool first.

The draft
import { signal } from '@pyreon/reactivity'
import { For } from '@pyreon/core'

export function App() {
  const count = signal(0)
  const items = signal([{ id: 1, t: 'a' }])
  return (
    <div>
      <button onClick={() => count(count() + 1)}>{count()}</button>
      <For each={items()} key={(i) => i.id}>{(i) => <li>{i.t}</li>}</For>
    </div>
  )
}
validate (real output, trimmed)
Found 2 issues:

1. **signal-write-as-call** (line 9)
   `count(value)` does NOT write the signal — `signal()` is the read-only callable
   surface and ignores its arguments. Use `count.set(value)` to assign or
   `count.update((prev) => …)` to derive from the previous value. …
   Current: `count(count() + 1)`
   Fix: `count.set(count() + 1)`
   Auto-fixable: yes

2. **for-with-key** (line 10)
   `key` on <For> is reserved by JSX for VNode reconciliation and is extracted
   before the prop reaches the runtime. In Pyreon, use `by` for list identity.
   Current: `key={(i) => i.id}`
   Fix: `by={(i) => i.id}`
   Auto-fixable: yes

Each finding carries its code, line, the offending text, the fix and an auto-fixable flag, so the assistant applies the fix instead of guessing.

The AI loop: draft, validate, fix, check A loop of four steps. 1, the assistant writes a draft with two bugs that type-check: count(count() + 1) on line 9 and key={(i) => i.id} on a <For> on line 10. 2, the MCP validate tool returns two findings: signal-write-as-call on line 9 and for-with-key on line 10, both auto-fixable. 3, the fixes are applied: count.set(count() + 1) and by={(i) => i.id}. 4, pyreon check prints: no Pyreon anti-patterns in 1 file. Then the loop starts again with the next draft. WRITE · VALIDATE · FIX · CHECK 1 your assistant writes a draft 8<div> 9<button onClick={() => count(count() + 1)}> 10<For each={items()} key={(i) => i.id}> renders once, then never updates 2 MCP validate … Found 2 issues: signal-write-as-call (line 9) for-with-key (line 10) each: current, fix, auto-fixable: yes no network calls 3 the fix is applied … 9count.set(count() + 1) 10by={(i) => i.id} the same Fix: line the finding printed 4 pyreon check $ pyreon check … ✓ no Pyreon anti-patterns in 1 file exits non-zero on any finding 24 MCP tools · Claude Code, Cursor, Windsurf · llms.txt
in detail

Five tools, one source of truth.

The API answers come from the same per-package manifests that generate the docs and llms.txt, and CI fails when they drift.

MCP server

@pyreon/mcp speaks JSON-RPC over stdio and never modifies your files. validate runs three detector families (React habits, Pyreon misuse, native-build hazards), including props-destructured, signal-write-as-call, for-missing-by and array-map-jsx. Configs are documented for Claude Code, Cursor and Windsurf.

Reactivity Lens

pyreon-lint --lsp draws live, live·prop, live·attr, static and hoisted next to each JSX expression. Watch for static where you expected live: it reviews whatever your assistant just pasted.

pyreon check

The terminal twin of validate. It scans git-changed files (or a folder), prints each finding with its fix, applies the auto-fixable ones with --fix, and exits non-zero, so it fits a pre-commit hook or a CI step.

@pyreon/lint

144 rules in 26 categories, with an LSP server, watch mode and an AST cache. Silence one line with // pyreon-lint-ignore <rule>.

llms.txt

llms.txt and llms-full.txt sit at the root of the repository, generated from the manifests. An assistant that cannot speak MCP reads them directly.

code

Register it once.

.mcp.json
{
  "mcpServers": {
    "pyreon": { "command": "bunx", "args": ["@pyreon/mcp"] }
  }
}
Your terminal
pyreon check            # git-changed .ts/.tsx files
pyreon check src/       # a directory
pyreon check --fix      # apply the auto-fixable rewrites
steps

Or let the scaffold wire it.

  1. Pick your assistants

    --ai takes mcp, claude, cursor, copilot and agents. The default, mcp,claude, writes .mcp.json and a CLAUDE.md; copilot writes .github/copilot-instructions.md.

    npm create @pyreon/zero@latest my-app -- --ai mcp,claude,cursor
  2. Approve the server

    Open the app in your editor, approve the Pyreon MCP server, and ask for a feature. Watch what your assistant checks.

The server makes no network calls and runs no long scans at startup.
Pyreon docs
questions

Where these tools stop.

Do the detectors know my types?

No. They read syntax, not types, so a signal used in arithmetic without being called (count + 1) slips past them. TypeScript flags that one, so keep tsc in the loop.

Does this make the model smarter?

No. It gives the model something to check its work against. Whether it calls the tools depends on the client and the prompt, which is why the scaffolds write the instructions for you.

Is the Lens on the VS Code Marketplace?

Not yet. VS Code uses an extension from the repo; other editors register pyreon-lint --lsp by hand.

We cannot change what a model was trained on. We can change what it checks its work against.

npm create @pyreon/zero@latest