Training data
From production traces to a fine-tuned open-weight model: train on what went well, fix what failed, export, and hand the file to Fireworks, Together or OpenAI.
Supervised fine-tuning teaches a model to produce the outputs you want. Your evals already say which of your agent's outputs those are. So the order is:
See what you have
trodo evals list --table
trodo traces count --kind spans --since 30d --eval any:passed --eval any:not-failed
trodo traces count --kind spans --since 30d --eval "Refund policy:failed"Keep what went well
Rows whose evals all passed are training data as they are: their own Output is the target, nothing to label.
trodo datasets create "Refunds that went well" --kind spans --since 30d \
--agent support --eval any:passed --eval any:not-failed --live--live keeps adding new good traffic. For a multi-step agent, use --kind runs --include-trace to keep the whole run.
Fix what failed
Rows an eval failed need a better answer, Expected, before they teach anything. Choose who writes it:
Export
trodo datasets export "Refunds that went well" --rows passed --format openai --target output -o good.jsonl
trodo datasets export "Refund failures" --rows expected --format openai --target expected -o fixed.jsonl
cat good.jsonl fixed.jsonl > train.jsonlPin --version N when the run has to be reproducible. --format dpo writes preference pairs (Expected preferred over Output) for a DPO run.
Train
Fireworks takes the file as it is:
firectl dataset create refunds train.jsonl
firectl sftj create --base-model accounts/fireworks/models/qwen3-8b --dataset refunds --output-model refunds-v1Together and OpenAI take the same JSONL. Send the new model's traffic to Trodo, and the same evals tell you whether it is better.
Issues and agents
Read, replay and close issues, and run agents and read their executions, from the terminal: the loop a coding agent runs to fix an issue, and how a script starts a labeling agent.
Coding agents
Let Claude Code, Cursor or Codex debug agents, fix issues and build training files with the trodo CLI and its skills.