Install and authenticate
You need Node.js and npm and a Full access key from the dashboard’s API keys page. In your project directory, install the SDK andtsx to run the example. Replace your-api-key with your key.
Run one task
Save this aseval.mts. It selects only anko-default-function-arguments from deepswe@1.1 and runs one trial with Codex and GPT-6 Luna.
eval.mts
./results/.
A completed job can contain failed trials. Read the trial’s status and reward; a missing value is not zero.
The example sets a $1 model-spend cap for this trial attempt and disables configured infrastructure retries. A model call already in progress can finish above the cap. Provider capacity waits can still occur. Closing the program does not cancel the job.
Show progress
Replace the program’swatch() call with one of these snippets, using the same evolve client and job. Use an event callback while awaiting completion:
Read a trial
Add this after the job finishes, using the sameevolve client and job. It reads the trial’s normalized trace and its stored-file listing.
jobs.trials() reads one page; for await reads every page. The stored-file listing is also one page. Follow its nextCursor when present; see trial files.
Next step
Configure a job
Models, task filters, attempts, limits, and analysis.
Inspect files
Live files, saved captures, logs, and processes.

