Workers
A worker runs one defined operation for your project: the same command, with the same limits, every time. An agent role lists the workers it may run, and the agent runs them with run_worker instead of writing the command itself. Each worker is a file in .ingot/workers.
A worker
Each worker is one JSON file, named after its id:
{
"id": "test-runner",
"kind": "validation",
"command": "npm test",
"permissions": ["run"],
"timeoutMs": 120000,
"attempts": 2,
"outputKeys": [],
"successCriteria": ["all tests pass"],
"deterministic": true,
"isolation": "none"
}
| Field | What it means |
|---|---|
id | Lower-case words with dashes. The role and run_worker use this name |
kind | intelligence, development, validation or operations |
command | The command the worker runs in the project. Without it the worker cannot run |
timeoutMs, attempts | The time limit and the number of attempts. They are shown to the agent with the worker |
isolation | none (reads only), workspace or files. It says how a worker that changes code is kept apart |
A file that is not valid JSON, or has a wrong field, is left out, and Ingot does not offer it.
Which roles get which workers
A role lists its workers in the front matter of its AGENT.md:
---
name: tester
workers: test-runner, lint-check
---
Each turn with that role, the agent gets a Workers for this role block with each worker's kind, isolation, time limit and attempts. A worker the role does not list is never offered.
Running a worker
The agent calls run_worker with the worker's id. Ingot runs the worker's command the same way as a run call: it waits for your approval, and it uses the same sandbox and terminal settings. The command's output comes back to the agent as the tool result.
Today timeoutMs and attempts are shown to the agent but are not enforced for run_worker: the command runs with the terminal's own limits. outputKeys is not checked either.
Turn it off
Settings › Workers, or Features › Workers (ingot.workers.enabled). Off: no worker file is read, and no role offers a worker.