-
Notifications
You must be signed in to change notification settings - Fork 0
Getting Started
Canonical installation and supported workflow:
README.md. This page expands the first-run walkthrough.
- Node.js 22 or newer
- npm 10 or newer
- Git
- Wrangler authentication for Cloudflare work
- OpenAI and GitHub credentials only when testing live reasoning/execution
Darwin and ProjectFlow are independent repositories. Place them beside each other:
mkdir C:\codex
cd C:\codex
git clone https://github.com/sjohnston1972/darwin.git
git clone https://github.com/sjohnston1972/projectflow.gitcd C:\codex\darwin
npm install
Copy-Item .env.example .envThe minimum local .env is:
DARWIN_AI_MODE=live
OPENAI_API_KEY=
OPENAI_MODEL=gpt-5.6
OPENAI_LAB_AGENT_MODEL=gpt-5.6-luna
OPENAI_TIMEOUT_MS=60000
VITE_API_BASE_URL=http://localhost:8787
VITE_PROJECTFLOW_BASE_URL=http://localhost:5174Collection and evidence generation work without an OpenAI key. Live mutation reasoning fails closed until the key is present.
npm run devThis starts:
- control room at
http://localhost:5173; - Worker API at
http://localhost:8787.
In a second shell:
cd C:\codex\projectflow
npm install
npm run devUse the URL printed by ProjectFlow, normally http://localhost:5174.
cd C:\codex\darwin
npm run lint
npm run typecheck
npm run test
npm run build- Open Darwin and select Target application.
- Verify the configured ProjectFlow repository and local/remote study URL.
- Open the measured study.
- Interact with semantic targets and complete or abandon a task attempt.
- Return to Observations and wait for the event count to update.
- Generate evidence.
- Open Mutations and invoke GPT when configured.
Local in-memory persistence is used when no D1 binding is supplied. Restarting the Worker clears that state.
- Start Darwin and ProjectFlow locally.
- Open Darwin Lab and create the fixed Project Apollo experiment.
- Queue the population.
- From the Darwin repository, run
npm run lab:runner. - Watch the synthetic population, action replay, and deterministic
L-EV-*evidence populate in the Lab section. - When live reasoning is configured, run the single population analysis and approve an implementation brief.
The runner uses gpt-5.6-luna by default for inexpensive per-action decisions.
The population-level analysis continues to use gpt-5.6. Both integrations
fail closed without OPENAI_API_KEY. Only targets in
DARWIN_LAB_ALLOWED_ORIGINS are accepted; the default is local ProjectFlow.
npm run simulate -- --seed=1859 --variant=baselineThe simulator always produces 10,000 events for the configured variant. It does not populate the real measured study.