Skip to main content
Use Evolve’s TypeScript client to run Codex on one DeepSWE task and save the results. The SDK submits the job to Evolve and follows it from your program.

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 and tsx to run the example. Replace your-api-key with your key.
See installation for account setup.

Run one task

Save this as eval.mts. It selects only anko-default-function-arguments from deepswe@1.1 and runs one trial with Codex and GPT-6 Luna.
eval.mts
Run it in the shell where you set the API key:
The program prints the job ID, final status, model cost, trial result, and saved archive path under ./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’s watch() call with one of these snippets, using the same evolve client and job. Use an event callback while awaiting completion:
Or consume events directly:
Choose one consumption style for each watch handle.

Read a trial

Add this after the job finishes, using the same evolve client and job. It reads the trial’s normalized trace and its stored-file listing.
Awaiting 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.
Last modified on November 9, 2026