ConsultingAI

An SFT dataset from agent traces for a small model, measured instead of estimated

Short answer

To teach Qwen3-0.6B to operate the Pi coding agent, I built the data side first: a pipeline that converts public agent traces into Pi's exact wire format, a harness contract with a fixed tool vocabulary, probes and an evaluation suite. Context limits were set from exact tokenizer counts, not character estimates, and traces that don't fit the tool contract are rejected by deterministic gates with a ledger of why.

Most small-model agent fine-tunes fail before training starts: the traces don't match the harness's tool format, or the context cap silently cuts off the part worth learning. This project built the data side carefully first.

What's in it

Measured, not estimated

Facts

ItemDetail
Base modelQwen3-0.6B-Base
Target harnessPi (TypeScript coding agent), OpenAI-style function-calling format
Training planLoRA SFT on Modal, then RL
StatusData, harness, probes and evaluation built; no results claimed here

What you can buy

Agent data and environment work built to your spec: trace conversion into your harness's exact format, structural gates with reject ledgers, measured context budgets, and evaluation suites that check tool use rather than final text.

FAQ

Why measure context with the real tokenizer?

Because character-based estimates are wrong in both directions for code and tool calls. A cap set from estimates can silently drop most of what you meant to train on.

Why reject traces instead of repairing them?

A trace that uses a tool your harness doesn't have teaches the model to call something that doesn't exist. Rejecting it with a logged reason keeps the training set honest, and the ledger shows what a repair would have to fix.

Has the model been trained?

This page covers the data and harness work. Training results are not claimed here.

Want this, or something like it?

License it, or have me build an environment in the same style.

Email me →
nextRunning the DeepSWE benchmark on MiniMax M3 across agent harnesseskeep scrolling