LangSmith Fine-Tuning is a new public-beta workflow that converts recorded AI-agent trajectories into supervised fine-tuning datasets, runs training through Baseten or Fireworks, and compares the resulting model against a base model on held-out tasks. The accompanying open-source command-line tool is called smithtune.

How LangSmith Fine-Tuning closes the loop

Long-running agents leave more useful evidence than a final answer. Their traces contain tool calls, retries, intermediate decisions and handoffs. LangSmith already records that material; the launch adds a path to filter successful runs, turn them into persistent training and evaluation splits, start a managed supervised fine-tuning job and inspect the result in the same evaluation environment.

Baseten’s implementation note confirms that smithtune can transform LangSmith traces into a dataset, train through Baseten Loops and deploy the finished checkpoint. Fireworks is the other supported provider. Those partner records verify the mechanics but are not independent editorial corroboration; Boostora’s separately authored report supplies the routine launch’s independent check.

LangSmith Fine-Tuning workflowA three-step flow from selected agent trajectories through managed training to held-out evaluation.Agent trajectoriesCurated successful runsManaged SFTBaseten or FireworksEvaluationCompare held-out tasks

Data selection is the real bottleneck

LangSmith Fine-Tuning makes the training pipeline shorter, but it cannot decide which agent behavior deserves to be copied. Supervised fine-tuning teaches a model to imitate examples. If a trajectory completed the task through brittle reasoning, unnecessary calls or accidental success, treating it as a gold example can make the tuned model cheaper yet less dependable.

The fine-tuning loop
Stage Decision Main failure
Select Which trajectories represent good behavior? Rewarding accidental success
Train Which base model and split? Overfitting a narrow pattern
Evaluate Does the tuned model generalise? Comparing only training-like tasks

LangChain reports gains on internal issue-detection and code-review tests, but those remain company-run evaluations. Buyers should reproduce the comparison with their own held-out tasks, including failure cases and adversarial inputs. They should measure completion rate, tool correctness, latency, cost and the frequency with which a human must intervene.

Why the harness still comes first

A better prompt, clearer tool description, stricter state transition or deterministic validator may fix an agent without changing model weights. That is why LangChain explicitly recommends harness engineering first. The principle echoes Google PageBreak’s validation design and UiPath Cartographer’s work mapping: structure and evidence often matter as much as a stronger model.

Fine-tuning becomes attractive when an agent repeatedly performs the same bounded task, the organisation has enough reviewed examples, and the expected savings justify maintaining another model version. Teams also need deletion and access controls because production trajectories may contain customer data, secrets or licensed content.

A rollout checklist for agent teams

Start with a narrow, repeated workflow and freeze an evaluation set before selecting training examples. Keep a clean base-model result, record every prompt and tool version, and separate training examples from acceptance tasks. A gain that disappears when wording changes is probably memorisation rather than useful specialisation.

Reviewers should label why each trajectory is good, not merely whether it reached the answer. The path should use the right tools, respect permissions, stop at the correct boundary and produce evidence another operator can inspect. After deployment, compare the tuned model with the base model on new traffic and keep a rollback path. The product reduces pipeline assembly; it does not remove model governance.

FAQs

What is LangSmith Fine-Tuning?

It turns selected agent trajectories into supervised fine-tuning data, managed training jobs and comparative evaluations.

Does smithtune train models itself?

It orchestrates training through Baseten or Fireworks and returns evaluation results to LangSmith.

Should every agent be fine-tuned?

No. Improve the harness first, then tune when repeated mistakes remain and trustworthy examples exist.

Get the day’s top stories in your inbox

One concise email. No spam, unsubscribe anytime.