Node 25 runs the TypeScript server directly; the frontend is vanilla ES modules. There is no build step. Port 8300, loopback only.
npm start– server on http://localhost:8300 (PORT,HOST,DB_FILEoverride)npm test– 50 tests (node --test), fake LLM and fake provider servers, no networknpm run calibrate [-- --model provider:model]– real judge against weak and strong reference ideas. It costs money. Re-run it whenever the judge's prompt, schema or model changes.
server/providers.ts–provider:modelrouting.- Ollama uses the native
/api/chatwiththink:falseandformat:schema. - Anthropic uses the official SDK with
output_config.format. - Everything else is OpenAI-compatible.
- Ollama uses the native
server/llm.ts– every prompt, including the judge (JUDGE_SYSTEM). Each function takesmodel.server/engine.ts– every operation, the background judge queue (max 3) and the per-board event bus.server/autopilot.ts– the scheduler and the purerateCheck().server/leads.ts– the X and research scouts.server/project.ts– Claude Code folders.server/db.ts– SQLite (node:sqlite), plusreport()anddashboard()queries.server/app.ts– HTTP, SSE (/api/boards/:id/events) and Markdown exports.public/js/score.jsandpublic/js/evolve.js– pure modules shared by the server, browser and tests.public/js/graph.js– the canvas.public/js/app.js– the main app.public/js/dashboard.jsandpublic/js/report.js– the trends and report views.
- The medal comes from code, not the model: a sum of three 1–5 scores, bronze from 9, silver from 11, gold from 13 (
score.js). Left uncalibrated, an LLM jury gave 3/3 to the bare word "fire"; the calibration test keeps that from happening here. - Never put integer
minimum/maximumin a JSON schema. Anthropic rejects them. Put the range in the description and clamp in code. - Anthropic native: send no
temperature. API version 2026-10-21 rejects it. Use effortlow. The SDK sends the key as a Bearer token. - OpenRouter: send
reasoning:{enabled:false}and retry without it on a 400 that mentions reasoning (some models insist on reasoning). - X scout: a lead is kept only if its URL is in the search engine's
url_citationannotations. Never trust a URL the model wrote. Only OpenRouter (Grok) can search X. - App settings live in the browser's localStorage. The server holds them in memory, and the SSE
hellotells the browser to push them again after a restart. Board configuration lives in the DB. - Dollar limits only see providers that report cost (OpenRouter
usage.cost, Anthropic via the price table). A limit of 0 means free models only. - Text goes into the DOM as text nodes, never
innerHTML(dom.js). Ideas are written by models and by visitors. - Project folders never overwrite. They are created with a non-recursive
mkdir, and a taken name gets-2.
-
Sonnet 5.5 judge (2026-11-02):
- weak ideas: mean 4.7, max 5
- strong ideas: mean 9.8
- run-to-run spread 0
- about $0.003 per judgement
-
ollama:qwen3:8bas judge FAILS calibration:- gave bronze to "Solpaneler på taken"
- gave gold to 5 of 10 strong runs
- spread 4 between runs
- long reasons and Swedish errors
Use local models to generate ideas, not to judge them.
-
X scout: about 48 s and $0.04 per refresh; 5 of 6 leads were cited.
-
Providers tested live: OpenRouter, OpenAI and Ollama (generation and model listing). Not yet tested against the live services: Azure / Microsoft Foundry, MLX, LM Studio, and Anthropic direct (only against a fake server). GitHub Models was removed: GitHub retired it on 30 July 2026 (every endpoint now answers a bare
200 OK). Use the Test button in Settings.