agents() returns the registered-agents client. A registered agent’s name works in a job’s agents[].name like a built-in.
create
- TypeScript
- Python
run_command runs with sh -c at the task’s working directory; what it can rely on, and the registration limit, are on agents.list, get, upsert, delete
- TypeScript
- Python
upsert creates when the name is free and replaces when it is not, consuming no new slot; it is a full replacement, so an omitted env becomes empty.
