Skip to main content

Run your first task

Status: Ready

Article ID: 003

Truth label: Limited

Audience: New builder

Reader outcome: Start a local stack and complete one safe task in a trusted test repository.

Related articles: 001, 005, 008

Target week: 01

Last verified: 2026-09-13

Technical reviewer: Codex source audit

Editorial reviewer: Codex editorial audit

Before you start​

Use a trusted test repository. Safe permission limits the coding CLI, but it is not an operating-system sandbox. Repository scripts and verification commands can still execute code with the worker environment.

You need Python 3.11 or newer and at least one supported coding CLI installed and authenticated. Copy .env.example to .env, then configure only the services and providers you intend to use. Never commit .env.

1. Install the project​

On macOS or Linux:

python3 -m venv .venv-linux
.venv-linux/bin/python -m pip install -e ".[dev]"

On Windows PowerShell:

py -3.11 -m venv .venv
.venv\Scripts\python.exe -m pip install -e ".[dev]"

2. Start the local services​

From the repository root:

./run-all.sh

This starts Forge Central on port 8080, Brain on 8081, and Cortex on 3000. It does not start a worker.

Confirm the two APIs:

curl http://127.0.0.1:8080/health
curl http://127.0.0.1:8081/health

Both should report ok.

3. Start a worker​

In another terminal:

./run-worker.sh

The worker discovers installed engines, registers with Central, and begins polling. Open http://127.0.0.1:3000 and confirm the worker appears online.

4. Register a test project​

In Cortex, add a project that points to the absolute path of your test repository. Central stores the path literally. The worker must be running on a machine where that exact path is reachable.

Choose checkpoint supervision if you want to review the final result before completion. Choose autonomous only for this first low-risk exercise if you do not need a hold.

5. Create the task​

Use a narrow goal such as:

Add a short HEALTHCHECK.txt that explains how to run the existing test command.
Only add that file. Verify the documented command exists. Do not change code.

Select:

  • a worker engine that the online worker advertises
  • write permission, because the task creates a file
  • the specific worker if your fleet has different project paths
  • a verification command that exists in the test repository

Do not select yolo for a first run.

6. Read the evidence​

Watch the task move through pending, assigned, and in progress. When it ends, inspect:

  • final state
  • worker and engine
  • run id and attempt
  • files changed
  • verification result
  • captured diff, when present
  • cost, tokens, and duration, when the adapter reports them

The held result appears under Waiting on you at the top of Overview, and opening it puts the run in the inspector column beside the list. If you selected checkpoint, approve, request changes, or fail the result. A grade records outcome evidence but does not replace your review.

If the task does not run​

Check these in order:

  1. The worker is online and polling.
  2. The worker advertises the selected engine and capabilities.
  3. The project path exists on that worker.
  4. A parent task is not blocking the task.
  5. The task is pinned with assigned_worker_id, not a similar field name.
  6. The verification command exists on the worker platform.
  7. The project is active. A paused or archived project rejects new tasks and its pending tasks are left out of polling.
  8. The pinned worker is online. A task pinned to a worker that has gone away waits with every counter reading healthy; Central reports it under tasks_stranded in the alert bar and GET /alerts.

Current limits​

This exercise assumes a trusted test repository, a correctly configured local stack, and an installed execution CLI. Write permission lets the selected CLI change repository files. It does not create an operating-system sandbox, so do not use a hostile repository or sensitive credentials for the first task.

Next lesson​

Continue with Human checkpoints.

Derivative map​

  • Weekly package: WEEK-01
  • Long video: VIDEO-W01-LONG
  • Shorts: SHORT-W01-PROBLEM, SHORT-W01-MECHANISM, SHORT-W01-WARNING
  • Email: EMAIL-W01
  • LinkedIn: LI-W01-A, LI-W01-B
  • X: X-W01-A, X-W01-B
  • Visual: VISUAL-W01

Review record​

  • Technical claims checked against the current canonical sources.
  • Truth label and nearby limitations reviewed.
  • Examples checked for secrets, client material, and private paths.
  • Editorial structure, internal links, and repository voice reviewed.

Review completed: 2026-08-27

Re-audited against the running product: 2026-09-13