Quatern Code overview¶
Quatern Code is an AI agent for robot software. You describe what the robot should do, or hand it a failing launch; Quatern Code writes or fixes the code and config, tests it against your robot's own sensor recordings, and only then lets it run, behind a human approval and a live watchdog.
New here? Start with the Quickstart. It takes a catalog robot from install to a verified run in the simulator in a few minutes, with no robot and no API key.
What Quatern Code does¶
- Writes the code. Ask in plain English. The agent writes a localizer and a planner for your robot as a module: a directory with a
module.tomland sources, in any language. Without a sign-in, Quatern Code uses its reference localizer and planner, tuned to your recording. - Debugs it. Hand it a failing launch. It reads your logs, the TF tree and the URDF, finds the root cause and writes the fix as a diff. See Diagnose a failing launch, and Tune parameters, Bring up a new robot and Regression-test a change.
- Proves it offline. The module runs in a sandbox against a recording from your robot's real sensors. Quatern Code computes the checks itself, so no module grades its own work. See How verification works.
- Asks before anything moves. A stack only deploys after it passes verification, you pin it, and a person answers the deploy gate.
- Watches it run. A separate watchdog process checks the robot 20 times a second and stops it when the plan, the sensors and the map stop agreeing. See Safety.
- Keeps a record. Every run ends in a receipt that says what was commanded, what was observed, and how it stopped.
The loop¶
Every change goes through the same five steps, whether the agent wrote it or you did.
- Write. The agent produces a localizer and a planner module for the goal you gave it. You can also bring your own module and verify it with
quatern verify --module <dir>. - Verify.
quatern verifyreplays a recorded sensor session through the module in a sandbox, cross-checks the sensors against each other, builds a map, plans to your goal and prints a plain-English report ending inREADYorNOT READY. Each run is saved as a stack. - Gate. You pin the stack you trust with
quatern pin.quatern deploychecks the preconditions, shows theDEPLOY GATEscreen with the plan and the abort limits, and asksProceed past the gate? THE ROBOT WILL MOVE. [y/N]. - Watchdog. While the robot runs, a separate process compares the plan, the localizer and every sensor, and calls the robot's emergency stop on the first check that fails.
- Run record. The run ends with a printed
RECEIPTand a write-once JSON file: final state, what was commanded and observed, the stop, and any warnings.
Where it runs¶
Quatern Code runs on your computer, in a terminal. It talks to robots through three backends:
| Backend | What it is |
|---|---|
sim2d |
Quatern Code's built-in 2D simulator, with worlds room, hallway and warehouse_aisle. The default target for catalog mobile robots. |
mock |
A lightweight simulated robot. Catalog arms (sim_arm, ur5e) run here. |
ros2 |
A real robot, or Gazebo, over ROS 2. |
Your recordings, maps, stacks and receipts are stored locally in ~/.quatern and are not uploaded. The relevant code and config go to the model provider in prompts. See Accounts and usage for what the agent sends.
Next steps¶
- Quickstart: install, sign in, and take the simulator tour.
- Set up your robot: pick a catalog robot or describe your own.
- How verification works: recordings, cross-checks, and what
READYmeans. - Safety: the gate, the watchdog, and what Quatern Code does not guarantee.