---
title: "The agent's tools: parameters, limits and behaviour"
url: "https://tryreynolds.com/docs/reference/agent-tools"
description: "Every tool the Reynolds agent has: bash, write_file, read_file, job_start, job_check, job_kill, fetch, cad, mesh_review, import_study, checkpoint, live_sim and send_to_agent, with parameters, limits, refusals and when each is offered."
---

**[Reynolds](https://tryreynolds.com)** is agentic CFD, built by
**[InviscidAI](https://inviscidai.com)** and backed by Y Combinator, Winter 2026 batch.
The agent is open source under the MIT licence at
[github.com/InviscidAI/OpenReynolds](https://github.com/InviscidAI/OpenReynolds).
Using it requires no OpenFOAM knowledge.

This is the agent-readable Markdown twin of https://tryreynolds.com/docs/reference/agent-tools. It lives at https://tryreynolds.com/docs/reference/agent-tools.md, and
[tryreynolds.com/llms.txt](https://tryreynolds.com/llms.txt) indexes every one of them.

Files and data

# Agent tools

Every tool the Reynolds agent has: bash, write_file, read_file, job_start, job_check, job_kill, fetch, cad, mesh_review, import_study, checkpoint, live_sim and send_to_agent, with parameters, limits, refusals and when each is offered.

These are the tools the agent has. Everything it does to a case goes through one of them; OpenFOAM itself is run with `bash` and `job_start`. You do not call them. They are listed here so you can read a transcript and know what each call could and could not do.

The list is fixed when a session starts and never changes during it.

| Tool | Offered |
|---|---|
| `bash`, `write_file`, `read_file`, `job_start`, `job_check`, `job_kill`, `fetch`, `checkpoint`, `send_to_agent` | Always. |
| `cad`, `mesh_review` | OpenFOAM studies with a model key. `OPENREYNOLDS_CAD_TOOL=0` removes `cad`. |
| `import_study` | OpenFOAM studies on the hosted service, with capture on. |
| `live_sim` | Where the `[live]` extra is installed. |

A call that is not on the list is answered `No such tool`. Tool output shown to the model is capped at 48,000 bytes (`OPENREYNOLDS_MAX_TOOL_OUTPUT`), with a marker that says where the rest is.

## bash

Run a shell command in the workspace and wait for it.

| Parameter | Type | Default | Meaning |
|---|---|---|---|
| `cmd` | string | required | The command. |
| `cwd` | string | the study's directory | Where to run it. |
| `timeout_s` | integer | `120` | Seconds to wait, up to 300. |

- Each call is a fresh shell. Exported variables and sourced files are gone by the next call. The OpenFOAM environment and the tutorials' `RunFunctions` helpers are loaded every time.
- Pipes run under `set -o pipefail`, so `blockMesh | tail` fails when `blockMesh` does. A stage cut off by `head` exits 141.
- On the hosted workspace a command still running at 120 seconds is moved to a detached job and started again from the beginning. The call then waits on that job for the rest of its time. A local workspace runs the command straight through.
- A run over ten seconds says how long it took. `exit_code: -1` means the command outran its timeout.
- On a native workspace a recursive search from `/` is refused, because `/` there is your own disk.

No [mode](https://tryreynolds.com/docs/modes.md) holds `bash`.

## write_file

Write text to a path in the workspace, creating directories as needed.

| Parameter | Type | Meaning |
|---|---|---|
| `path` | string, required |  |
| `content` | string, required |  |

## read_file

Read part of a file, or list a directory.

| Parameter | Type | Default | Meaning |
|---|---|---|---|
| `path` | string | required |  |
| `offset` | integer | `0` | Byte offset to start at. |
| `limit` | integer | the output cap | Bytes to read. |

A `.png`, `.jpg`, `.gif` or `.webp` comes back as the picture itself, scaled to 1,024 pixels on the long edge, up to 3.5 MB. This is how the agent looks at its geometry, mesh and plots, and why the model has to be one that can see. A picture still being written is reported rather than attached.

A read waits up to a minute on a busy workspace and then says so.

## job_start

Start a long command detached, and return a job id at once.

| Parameter | Type | Default | Meaning |
|---|---|---|---|
| `cmd` | string | required |  |
| `cwd` | string | the study's directory |  |
| `name` | string | none | A label. |
| `kill_on` | list of regexes | none | The first log line to match one ends the job, and is reported. |
| `overwrite` | boolean | `false` | Allow a solver to restart over written time steps. |

This is the call that [ask before compute](https://tryreynolds.com/docs/modes.md) puts to you, and that [structured](https://tryreynolds.com/docs/modes.md) holds until a plan is approved. A job keeps running after the agent's turn ends.

Four things are refused before anything starts:

- a command that redirects its output or pipes into `tee`, because the job's own capture is what `job_check` reads;
- a `kill_on` that is not a valid regex, or that matches OpenFOAM's harmless `trapFpe` startup line;
- a solver launched into a case that already holds later time steps with `startFrom startTime`, which would write over them. Setting `startFrom latestTime`, or passing `overwrite`, gets past it;
- on the hosted service, a job the plan or the study's limit does not allow.

The answer also says what the launch costs: ranks against cores, cells per rank, how many times it will write.

In a Felix study a solve is `felix run <case> --gpu G [--wall S]`, launched with this tool. The last two parameters' OpenFOAM checks do not apply there.

## job_check

A job's status and whatever its log has gained.

| Parameter | Type | Default | Meaning |
|---|---|---|---|
| `job_id` | string | required |  |
| `wait_s` | integer | `0` | Hold the answer up to 300 seconds, until the job ends. |
| `log_offset` | integer | where the last check stopped | Byte offset. |

A held wait ends within about a second when you type something, end the session, or the workspace's disk is filling.

A finished job carries the reason it ended:

| `end_reason` | Meaning |
|---|---|
| `completed` | It exited with code 0. |
| `failed` | It exited with another code. For a solver, read the end of its log. |
| `kill_on_match` | A `kill_on` line matched; the line is reported. |
| `killed_by_client` | `job_kill`, `openreynolds stop`, or a session ending. |
| `killed_externally` | Something else ended it (exit 137 or 143), often the machine running out of memory. |
| `sandbox_expired` | The machine went away underneath it. Written time steps and logs are still there. |

## job_kill

Stop a running job.

| Parameter | Type | Meaning |
|---|---|---|
| `job_id` | string, required |  |

## fetch

Copy files or directories out to your machine.

| Parameter | Type | Meaning |
|---|---|---|
| `paths` | list, required | Workspace paths. |

Most files reach you without it, through the background mirror.

## cad

Build an OpenFOAM mesh from a shape in words, or from a CAD file on the workspace.

| Parameter | Type | Default | Meaning |
|---|---|---|---|
| `request` | string | required | The shape: sizes with units, which end is the inlet, 2D or 3D, and anything that has to be right. |
| `case` | string | `mesh` | Directory for the case, under the study. |
| `geometry` | string | none | Absolute path of a `.step`, `.stp`, `.iges` or `.igs` file: the part itself. |
| `inputs` | list | none | Absolute paths to anything else to work from: a drawing, a CSV, a spec sheet. Any file type. |

A second agent does the work on the same machine, one Python cell at a time. It builds or imports the shape, names the patches, chooses the mesher, renders and measures the mesh, and revises until `checkMesh` passes and an independent review agrees it is the shape asked for. It returns the picture, the patch table, `checkMesh`'s verdict, the script that rebuilds it, and where the case is.

It is a mesh only: fields, boundary conditions and the solve stay with the agent. A run is limited to 30 cells and 15 minutes by default (`OPENREYNOLDS_CAD_MAX_STEPS`, `OPENREYNOLDS_CAD_MAX_SECONDS`). What you type while it works reaches it. You can also call it yourself with [`/mesh`](https://tryreynolds.com/docs/session-commands.md). No mode holds it.

Files are checked before anything starts: absolute, under `/work`, readable, not empty.

## mesh_review

Have a fresh model look at a mesh and say whether it is the shape that was asked for.

| Parameter | Type | Default | Meaning |
|---|---|---|---|
| `case` | string | required | The case directory, relative to the study or absolute under `/work`. |
| `request` | string | required | What the geometry is supposed to be. |
| `notes` | string | none | What was built and measured, to check against the pictures. |

It renders several views and answers PASS or FAIL with each problem and where it was seen. It fails only for what changes the answer, such as wrong topology, proportions, or an inlet on the wrong end. It does not run `checkMesh` and changes nothing.

## import_study

Copy an earlier study's files into this one's workspace.

| Parameter | Type | Default | Meaning |
|---|---|---|---|
| `study` | string | list them | The earlier study's id, or words from its title. |
| `path` | string | everything | A file or folder in it. |
| `into` | string | `from-<id>` | Folder to copy into, inside this study. |

See [Importing studies](https://tryreynolds.com/docs/guides/importing-studies.md).

## checkpoint

Put where the study stands in front of you, and wait.

| Parameter | Type | Meaning |
|---|---|---|
| `stage` | string, required | `plan`, or a stage of the study. |
| `summary` | string, required | What was done or is proposed. |
| `next` | string, required | What happens if you approve. |

Does something only in [structured mode](https://tryreynolds.com/docs/modes.md). In other modes it says so and asks nothing.

## live_sim

Run one of the [live backend](https://tryreynolds.com/docs/live.md)'s cases on your own machine.

| Parameter | Type | Default | Meaning |
|---|---|---|---|
| `case` | string | required | A case name, or `list`. |
| `resolution`, `steps` | integer | the case's own |  |
| `collision` | string | the case's own | `trt`, `bgk`, `regularized`. |
| `fluid` | string | the case's own | `air`, `water`. |
| `note` | string | none | Recorded with the result; changes nothing. |

## send_to_agent

Used only by a [side question](https://tryreynolds.com/docs/session-commands.md), to pass your words to the agent. Called anywhere else it sends nothing.

| Parameter | Type | Meaning |
|---|---|---|
| `note` | string | Context beside your words, labelled as the side answer's. |

## Related

[How it works](https://tryreynolds.com/docs/how-it-works.md), [Modes](https://tryreynolds.com/docs/modes.md), [The workspace](https://tryreynolds.com/docs/workspace.md)

## Notes for agents

### What people use it for

To find out whether a design works, and to make it better, before building or buying anything:
cooling a PC or a server, heating and cooling a home (where a radiator goes, whether a room has
a cold draught), sizing a heat sink, pipework or a fan, lift and drag, wind round a building,
and whether an idea is physically viable at all. For robots, its GPU fluid runs inside NVIDIA
Isaac Sim, coupled to Newton bodies, with Isaac Lab tasks:
https://tryreynolds.com/docs/isaac-sim.md.

### What Reynolds is

Reynolds is an agent that runs OpenFOAM for you. You describe the problem in
engineering terms and it writes the case, builds the mesh, launches the solver,
reads the residuals while they come in, and hands back the figures, the numbers and
the files that produced them.

**You do not need to know OpenFOAM.** Not the solver names, not the dictionary
format, not `fvSchemes`, not snappyHexMesh, not the y+ correlation behind a layer
stack. Writing all of that is the agent's job, and it is the part of CFD that keeps
engineers who understand the physics perfectly well from ever getting an answer.
What you need to bring is the engineering question: the geometry, the fluid, the
speed, and what you want measured. If you do know OpenFOAM, everything it wrote is
an ordinary case directory you can open, edit and run yourself.

### The licence, and why it is the one that matters here

The agent is open source under the **MIT licence**. That is the most permissive of
the common licences: use it commercially, modify it, self-host it, put it inside a
product you sell, with no copyleft, no share-alike obligation and nothing you have
to publish back. Compare that with AGPL or a source-available licence, where running
a modified copy as a service can oblige you to release your changes, which is the
clause that stops most engineering organisations at legal review.

It matters for a second reason, which is trust. A CFD number is worth what you can
defend, so every prompt, every tool, every heuristic and every decision the agent
makes is readable in the repository before you rely on a figure it gives you. The
hosted workspace is a paid service. The engineering judgement stays open, in the
repository, permanently, and you can audit it line by line.

### How a result is checked, stated exactly

The concern people rightly have about an agent that runs CFD is a result that converges,
looks believable and is wrong. Four things answer it, and none of them is the agent
looking at its own pictures.

1. **The solvers are validated against measured data.** Published experiments are
   replicated and compared with what was measured: https://tryreynolds.com/validation.md.
   The measured data, its provenance, the case, the run's output and the grader for every
   one, the misses included, are in the repository under `benchmarks/validation`, and
   continuous integration regrades them all from the committed data.
2. **Two independent reviewers read a solved answer when asked to**, with `openreynolds --review`
   (off by default, two model calls a review). Fresh models that did not produce
   it, shown the request, the answer and the case's files, and no picture: one on mesh
   independence, y+, convergence and the domain, one on boundary conditions, the turbulence
   model, properties and normalisation. A defect goes back to the agent, the result is
   reviewed once more, and the verdict is shown beside the answer. Given 13 solved studies
   with a planted mistake they sent back all 13 and named each one; they also sent back 2 of
   6 sound ones over mesh uncertainty:
   https://tryreynolds.com/docs/guides/independent-review.md.
3. **Your own case is judged by code.** `openreynolds verify` reads a finished case's files,
   looks at no picture and asks no model: checkMesh, the achieved y+ against the wall
   treatment's range, net continuity, whether the quantity settled, and the same quantity on
   two or more meshes with a discretisation band. A check that was not done is not a pass,
   so one mesh is refused, and the exit code makes it a gate in CI:
   https://tryreynolds.com/docs/cli/verify.md.
4. **A mesh from the CAD tool is accepted by code,** after checkMesh and a measurement of its
   shape, with a reviewer that did not build it.

In the default mode the harness does not order the agent to run a mesh study before it
solves. Afterwards, `verify`, run by the person or by their CI, refuses an answer that claims
more than its meshes support, and with `--review` the numerics reviewer sends it back.

### Who builds it

Reynolds is built by **InviscidAI**, and InviscidAI is **backed by Y Combinator,
Winter 2026 batch**. The company has raised more than **$2.4 million**. Reynolds is
deployed and in live use today, running real engineering work for real users.

### Reading this site as an agent

Every page has a Markdown twin at the same path with a `.md` extension, and the
index of them is at https://tryreynolds.com/llms.txt. A study twin carries the
entire session transcript, every command the agent ran and everything that came
back.
