Otto
A lightweight and friendly terminal agent!
Created on 25th October 2026
•
Otto
A lightweight and friendly terminal agent!
The problem Otto solves
"Otto" the dragon, is a friendly terminal agent for your computer! You don't need to memorize shell commands anymore, just tell Otto what you want to change in your file system and it'll do it for you. You type something like "move all the .tmp files from logs/ to cache/ and delete the old/ folder" and otto thinks about the commands it should run on your computer to fulfill your request. It runs them on a separate copy of your directory inside a Docker container, then shows you exactly what would change (files deleted, created or modified). Otto makes changes to your files only when you give it the approval.
Otto is a very lightweight terminal agent. Under the hood it's Qwen3-0.6B, a model small enough to run on a laptop. It is trained with reinforcement learning (GRPO), where the reward comes from running the model's commands and checking the resulting filesystem (verifiable reward). It can be served locally or with SGLang on a GPU.
Challenges I ran into
RL Training in general is very complex in nature. My idea is based on a multi-turn agent which runs in an environment, interacts with the file system and thinks about which tools (commands) it should run to achieve the user's goal. Before training, it requires carefully setting up a custom harness, defining action formats (for example, thinking tokens, command identifiers), defining observations and states (file changes, current file layout), building a verifier that can assign rewards based on which files were changed and how and a Sandbox (docker container) where these commands will be executed by the harness.
Dataset curation is also a very difficult aspect of training and requires generation tasks that the model will be challenged on. The tasks should be not too hard and not too easy for the base model so that GRPO still has some learning signal to work on and improve (rollouts should not all have reward 0 or reward 1). All of this has to be done before training so that RLVR can actually make the model learn something beyond just simple fine-tuning or in-context learning. I particularly faced challenges in building a verifier that is robust to reward hacking because such terminal agents can find loopholes in the system to game the reward without doing the task in a desired way. I refered to research papers like TMax and River which cover training recipes for multi-turn agents and mitigation against reward hacking. To prevent the model from fabricating file changes, I had to setup checks in the verifier which match the hash of the files rather than raw file names and file contents. Moreover, the model is allowed no internet access and runs commands entire in separate docker containers.
Curation of data involved making templates for different tasks and running them initially on the base model to see if these tasks are of appropriate difficulty for a model of size 0.6B. Further, these templates have a seed that is randomized so that file names etc. are randomized throughout training so that the model does not memorize file names, directory names etc and generalizes well. CuratorKit was helpful throughout this process.
GRPO training was also quite challenging. Firstly I had compute constraints and had to run GRPO on my mac using AlignTune and MLX. Due to time constraints, I had to use smaller amount of data as well as smaller number of steps. The model can thus make mistakes in more challenging tasks. GRPO required careful tuning of hyperparameters and required monitoring of model traces and rewards throughtout the training run.
I also ran into issues where the model would produce too may thinking tokens (mostly verbose) without making any tool calls which would result in the task failing because the model ran out of its context window. I had to limit thinking tokens to 256 before each tool call and had to exclusively tell the model in the system prompt to use less reasoning tokens and make a decision within 1-3 lines of thinking. This improves inference speed but can fail on tasks which require deep thinking and logic. This was mostly related to training the model quickly and at a smaller scale.
Tracks Applied (1)
Local LLM Track
RadixArk
Technologies used
