Products & Tools

LangChain's Engine Goals Ties AI Agent Fixes to Business Outcomes

LangChain launched Engine Goals on December 3, 2026, steering LangSmith Engine's automated agent fixes toward business outcomes like merged pull requests rather than passing evaluations.

LangChain's Engine Goals Ties AI Agent Fixes to Business Outcomes
sumondesigns / pixabay
By Rebecca Stone4 min read

Why it matters

  • Engine Goals launched December 3, 2026 as an extension of LangSmith Engine.
  • Goals are defined in natural language via LangSmith or Slack and drive which fixes Engine pursues.
  • LangChain's Content Studio case found edited videos reached social channels less often despite successful revisions.
  • Engine is free for new LangSmith Plus users through the end of 2026.

LangChain launched Engine Goals on December 3, 2026, a LangSmith feature that steers automated agent-improvement work toward recorded business outcomes — merged pull requests, first-attempt ticket resolution, published content — instead of evaluation scores alone. Teams describe an objective in natural language, and LangSmith Engine uses that Goal to select which investigations it runs and which fixes it treats as progress.

The feature extends LangSmith Engine, a persistent agent that investigates production traces and recommends changes as an agent evolves. Engine already detects and clusters production issues, prioritizes them by severity, writes prompt or code fixes, validates them and can open GitHub pull requests for review. It also monitors resolved issues for recurrences and can recommend production examples for offline evaluation datasets.

What does Engine Goals change?

A team creates a Goal in LangSmith or through a Slack message, using natural language to describe the desired result. Engine helps clarify that outcome and identify a metric, then checks whether the metric is available in trace data or feedback, or could be produced by an evaluator. If the signal is missing, Engine can help instrument the agent, including opening a pull request that records the outcome as feedback on relevant traces.

Once a Goal is defined, Engine groups relevant existing recommendations under it, uses its metric to guide future investigations and tracks progress as the team makes changes. Teams can define multiple Goals for competing priorities such as performance and cost. Engine still looks for important findings outside those objectives, but conducts that broader analysis less frequently so most of its effort remains focused on stated priorities.

Engine's analysis methods include:

  • Examining tool calls, latency, turn counts and token usage for large behavioral changes.
  • Analyzing user messages for signs of dissatisfaction.
  • Grouping execution paths to find complicated or expensive approaches to similar requests.

Engine can combine those perspectives as evidence develops. When expected behavior is unclear from the system prompt or application code, it can ask whether a capability should be supported, whether a behavior is intentional or how an outcome should be interpreted.

What did the Content Studio case reveal?

LangChain tested Goals on Content Studio, its internal design agent, which creates videos, social graphics, recreated UI images and slide decks from Slack prompts. The team's primary objective was for generated content to be used in marketing campaigns, measured by the percentage posted to LangChain's social media channels.

Publication information was initially recorded elsewhere rather than on traces. Engine opened a pull request attaching it to the corresponding traces as feedback, creating a signal for comparing interactions. It then grouped similar requests and examined execution paths that produced published content against those that did not.

LangChain reported an association between revisions and publication: edited videos reached its social channels less often, including cases where every revision ran successfully. One comparison isolated the scope of the problem. A request limited to the closing slide nevertheless rebuilt the whole video. The requested edit appeared, but scenes, timing or visuals that users had already approved could change with it, setting off another correction cycle or causing the project to be abandoned. Successful execution of each edit therefore did not preserve the user's progress toward a publishable video.

The generated fix kept the current video project intact, limited edits to the scenes involved and reused assets already approved. Engine turned the revision requests that exposed the behavior into new regression examples and ran the fix against Content Studio's complete dataset before release. The checks covered the requested edit, the integrity of unrelated material and the continued passage of existing cases.

Why do production outcomes matter beyond offline evaluations?

LangChain contrasts these production signals with offline evaluations, which test whether behavior and outputs meet defined criteria before release. A coding agent may solve increasingly difficult benchmark problems while producing pull requests that users rarely merge. A sales agent may draft outreach that passes every evaluation criterion while representatives rewrite or abandon it. The signals serve complementary purposes: evaluations help teams ship changes with confidence, while production outcomes can reveal needs and opportunities that existing tests do not capture.

What does it cost and what comes next?

Engine is available in LangSmith, and LangChain is offering it free to all new LangSmith Plus users through the end of 2026. Outside that offer, Engine consumes LangChain Standard Units, a normalized unit of work covering compute, storage, memory and model usage. Consumption depends on the number of traces analyzed, the depth of analysis and the amount of work Engine performs.

For enterprises, the practical change is the unit of prioritization. A team can assess an agent change against first-attempt ticket resolution, merged pull requests or another recorded production result, rather than treating a successful run or a higher evaluation score as sufficient. That makes metric selection and instrumentation central to deployment. Engine can generate and validate fixes, but the Goal determines which improvements it treats as progress.

Source: unite.ai

Share this article:

More from Rebecca Stone

Rebecca Stone

Show full bio

Correspondent covering companies, deals and strategy in artificial intelligence and machine learning at AI In Context.

1,037 articles

Related articles

  1. LangChain Rebuilds LangSmith Around a Unified Agent Record
  2. Tool Gateway Routes MCP Calls With Per-User or Service Credentials
  3. OpenAI Ships AgentKit, Expanded Evals, and Reinforcement Fine-Tuning for Agents
  4. OpenAI's Codex agents now fix ChatGPT performance bugs end to end
  5. OpenAI says Codex runs 'daily' across its engineering teams

« Previous article