quiet robot

Sandboxes

Playground quickstart

Run a ready-made flow in two minutes, then build your own loop that runs the tests, fixes what failed and tries again.

View as Markdown

Sandboxes is in early access. It is free to try, some parts are still in testing, and details may change. Sign up free

You need a Quiet Robot account. Sign up free if you don't have one; the free plan is enough for everything on this page. A run of any recipe that doesn't use AI costs well under a cent.

1. Run a recipe

  1. Open the dashboard and choose Agent Playground in the menu.
  2. Under Start from a recipe, find Fix until tests pass and choose Use this recipe. The builder opens with the flow already drawn.
  3. Choose Simulate in the toolbar. In a second or two, the Forecast shows what a run will likely cost, how long it will take, and how often a limit would stop it.
  4. Choose Run.
Fix until tests pass, the recipe you're about to run.Set up project (Run command), Write code (Run command), Run tests (Run command), Fix failures (Run command), Save result (Run command). Arrows: Set up project to Write code; Write code to Run tests; Run tests to Fix failures on Failed; Fix failures to Run tests on Passed; Run tests to Save result on Passed.FailedPassedPassed>_ RUN COMMANDSet up project>_ RUN COMMANDWrite code>_ RUN COMMANDRun tests>_ RUN COMMANDFix failures>_ RUN COMMANDSave result
Fix until tests pass, the recipe you're about to run.

Each box lights up as its step runs. The flow writes a small function, runs its tests, and fixes what failed. You'll see the arrow from Run tests go back to Fix failures a few times, then on to Save result once the tests pass.

When the run finishes, choose any step in the timeline to read its full output. That's it: you just ran an agent loop on a real computer.

Tip

Recipes that use AI are marked Needs a Claude key. To run those, save your Anthropic key first: see Add your Claude key.

2. Build your own flow

Now draw the same idea yourself, with a real AI agent doing the fixing.

Start a blank flow

Go back to Agent Playground and choose New flow. Give it a name at the top, like "Fix my tests".

Add the first step

Choose Add a command step. In the settings panel:

  • Name: Get the code
  • Command: git clone https://github.com/you/your-project proj && cd proj && pip install -r requirements.txt

Use your own project here. If it's private, start with a public one for now.

Add the test step

Open Blocks and drag a Run command block onto the canvas, to the right of the first one.

  • Name: Run tests
  • Folder: proj
  • Command: python3 -m pytest -q

Now connect them: drag from the Passed dot on Get the code to the Run tests box. An arrow appears.

Add an agent to fix failures

An Agent block uses your own Claude key, so add your Claude key first if you haven't. It takes a minute.

Drag an Agent block onto the canvas, below Run tests. Connect Failed on Run tests to the Agent box, then connect Done on the agent back up to Run tests. That arrow back up is your loop: test, fix, test again.

Now select the agent and fill in:

  • Goal: The tests in proj fail. Fix the code so they pass. Don't change the tests. Here is what they printed: and then, from Insert… above the box, choose Output of Run tests. A reference like {{steps.run2.output}} appears: when the run gets here, it's replaced with what the tests printed.
  • Check that it worked: cd proj && python3 -m pytest -q. The agent only counts as done when this passes.

Finish

Drag an Output block to the right of Run tests and connect Passed to it. Your flow now reads: get the code, run the tests, and if they fail, let the agent fix them and run them again, until they pass.

The flow you just built. The dashed arrow is the loop.Get the code (Run command), Run tests (Run command), Fix my tests (Agent), Done (Output). Arrows: Get the code to Run tests on Passed; Run tests to Fix my tests on Failed; Fix my tests to Run tests on Done; Run tests to Done on Passed.PassedFailedDonePassed>_ RUN COMMANDGet the code>_ RUN COMMANDRun testsproj · pytest -q◉ AGENTFix my testscheck: pytest -q⚑ OUTPUTDone
The flow you just built. The dashed arrow is the loop.

3. Set the limits and run it

Choose Limits in the toolbar. Set:

  • Loops: 3. The agent gets three tries.
  • Time: 600 seconds.
  • Spend: $1.00.

The run stops at whichever comes first. Then choose Simulate to see the likely cost, and Run.

If the agent fixes the tests, the run ends at your Output block. If it doesn't within three tries, the loop limit stops it and the sandbox goes back to its last good checkpoint. Either way, you can open the run afterwards and read every command the agent ran. See Runs, replay and compare.

The builder at a glance

PartWhat it's for
BlocksEvery kind of step, grouped as Do, Decide, People and rules, Sandbox, and Start and finish. Drag one onto the canvas, or tap it to add it.
Settings panelOpens when you select a box. Every block has a name, the settings it needs, and Advanced for the rest. With nothing selected, it shows whether the flow is ready to run and its forecast.
LimitsThe run's limits: loops, time and spend.
PolicyWhat the sandbox may reach on the internet, and extra commands that need a person. Your organization's rules always apply too.
HistoryEarlier versions of the flow. Restore any of them.
SimulateThe likely cost and time of a run, before you start one.
RunStarts a run. Each box lights up as it goes.
Tidy upLays the whole flow out neatly, top to bottom.

Your flow saves as you go. Undo and redo work as you'd expect.

Keyboard shortcuts

Press ? in the builder to see these. On Windows and Linux use Ctrl where this says ⌘.

KeysWhat they do
⌘ Z, ⌘ Shift ZUndo, redo
⌘ SSave now
⌘ DDuplicate the selection
⌘ EnterRun
DeleteDelete the selection
Arrow keysMove a selected step
TabMove between steps
EscapeDeselect, or close a panel

On an iPad or phone

The builder works on any screen. On a desktop, or an iPad held sideways, you get the toolbar, the Blocks panel and the settings panel side by side. On a phone, or a narrow iPad window, you get the canvas with a bar at the bottom, and settings open as sheets. Drag a box to move it, and drag from an exit dot to connect it, or tap the dot and then the box. Long-press a box for more.