AI agent environment jobs: building realistic tasks as an engineer

For experts4 min read

Two engineers at a whiteboard in a Nairobi tech hub planning a system diagram, laptops open on the table, natural light from large windows

AI agent environment jobs are for engineers who can build a small, realistic world: a task, the tools an agent can use, and a checker that says whether the job was done. The agent practises inside it, so the quality of your setup shapes what it learns.

What an environment is in AI agent environment jobs

An environment has four parts.

  • A starting state: files, a database, a service, a broken config.
  • A task written the way a real person would ask for it.
  • Tools the agent may use, such as a shell, a file editor or an API.
  • A checker that inspects the final state and returns pass or fail, or a score.

Think of it as a small exam for software. The agent gets the same start each time, does its work and the checker grades the result.

A concrete example

Task: 'The nightly report job is failing. Find out why and fix it so that report.csv contains all customers.' The start state is a small project with a script, a data file and a log. The planted fault is a date format change in the data. The checker runs the script and checks the output file.

YAML
name: fix-nightly-reportstart: ./fixtures/nightly_reporttask: >  The nightly report job is failing. Find out why and fix it so  that report.csv contains all customers.tools: [shell, file_editor]time_limit_minutes: 20checker: ./check_report.pyfault: date format in customers.csv changed from DD/MM to ISO
Python
import csv, subprocess, sys def check(workdir):    run = subprocess.run([sys.executable, "report.py"], cwd=workdir,                         capture_output=True, text=True, timeout=60)    if run.returncode != 0:        return False    with open(f"{workdir}/report.csv", newline="") as f:        rows = list(csv.DictReader(f))    return len(rows) == 120   # the fixture holds 120 customers

Source: Python docs: subprocess(opens in a new tab)

The checker looks at the result, not the route. It does not care whether the agent edited the parser or fixed the data. Several valid fixes exist, and a good checker accepts all of them.

What makes a good environment

  • Realistic. The files, names and logs look like a real project, not a puzzle.
  • Deterministic. The same start gives the same result. No dependence on the network or the clock unless the task needs it.
  • Checkable. The outcome can be tested by a program.
  • Hard in a useful way. The fault takes investigation, not a lucky guess.
  • Hard to cheat. The agent cannot pass by editing the checker, deleting the test or hard coding the expected number.

Close the shortcuts

Agents find shortcuts quickly. If the checker reads report.csv and the agent can write the file by hand, it may skip the real fix. Check the thing the task cares about. Here you might run the script on a second dataset the agent never saw, and compare the output.

Keep the checker, the answer and the solution out of the agent's workspace. Run the checker from outside, with its own permissions.

Permissions and safety

OWASP's 2025 list of risks for LLM applications includes excessive agency, the risk of giving an agent more power than the job needs. The same principle applies when you design the sandbox: give the agent the tools the task requires and nothing more, and keep it away from real credentials, real networks and real data.

Source: OWASP GenAI Security Project: LLM Top 10(opens in a new tab)

Docker's build guidance advises using a non-root user when a service can run without privileges, which is a sensible default for environment images as well.

Source: Docker docs: building best practices(opens in a new tab)

Test the environment before you ship it

  1. Solve it yourself as the agent would, using only the tools given. Note how long it takes.
  2. Run the checker on the unsolved start state and confirm it fails.
  3. Run it on your solution and confirm it passes.
  4. Run it on two wrong fixes, such as a partial fix, and confirm both fail.
  5. Run it on an alternative correct fix and confirm that passes.
  6. Reset and repeat to confirm the result does not change.

Write the task text last. Once the fault, the clues and the checker are fixed, describe the problem the way a busy colleague would report it: what is failing, since when, and what the person has already tried. Do not name the file or the cause. A task that hands over the answer teaches the agent nothing, and a task that is too vague cannot be checked fairly.

Skills this work rewards

Systems thinking, incident experience and test design. A person who has traced a real outage can plant a realistic fault and know the clues it leaves. Writing skills matter as well, because the task text must be clear without giving away the answer.

What to expect

This is specialist work, so projects are fewer than for simple review tasks, and clients set the pay per job. Treat it as a way to use deeper engineering skills, not as a fixed income.

Curatrain lists realistic tasks, tools and checkers for AI agents (RL environments) among the work its experts do. Experts are matched only to jobs whose tests they have passed. Sign up free at curatrain.com/login.