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 →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.
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>
)
}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: yesEach finding carries its code, line, the offending text, the fix and an auto-fixable flag, so the assistant applies the fix instead of guessing.
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.
Register it once.
{
"mcpServers": {
"pyreon": { "command": "bunx", "args": ["@pyreon/mcp"] }
}
}pyreon check # git-changed .ts/.tsx files
pyreon check src/ # a directory
pyreon check --fix # apply the auto-fixable rewritesOr let the scaffold wire it.
Pick your assistants
--aitakesmcp,claude,cursor,copilotandagents. The default,mcp,claude, writes.mcp.jsonand aCLAUDE.md;copilotwrites.github/copilot-instructions.md.npm create @pyreon/zero@latest my-app -- --ai mcp,claude,cursorApprove 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.
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