---
type: "post"
id: "an-agent-that-fixes-its-own-mistakes-saloni-f3c568"
slug: "an-agent-that-fixes-its-own-mistakes-saloni-f3c568"
title: "An Agent That Fixes Its Own Mistakes - Saloni Gandhi & Ziwei Guo, LinkedIn"
description: "LinkedIn’s Saloni Gandhi and Ziwei Guo describe a recursive-improvement loop for an agent that turns production traces and development findings into evaluated changes."
retrieval_nugget: "LinkedIn’s Saloni Gandhi and Ziwei Guo describe a recursive-improvement loop for an agent that turns production traces and development findings into evaluated changes. The practical point is that improvement depends not just on generating edits, but on diagnosing failures and checking candidates against a holdout before changing the baseline."
published_at: "2026-11-26"
updated_at: "2026-11-26"
record_date: "2026-11-26"
date_kind: "published_at"
topics: ["loop-engineering","evals","agent-observability"]
entities: ["LinkedIn","Saloni Gandhi","Ziwei Guo","LinkedIn user understanding agent"]
related_patterns: ["harness-architecture-outlives-model-choice"]
novelty_label: "new_angle"
what_changed: "The story applies self-correction to LinkedIn’s user-understanding agent, distinct from coding and support-agent improvement examples."
prior_refs: ["https://newruntime.com/posts/building-an-automated-improvement-harness-for-an-ai-74a2f3/"]
source_url: "https://www.youtube.com/watch?v=yH7_SIIgI-Y"
source_urls: ["https://www.youtube.com/watch?v=yH7_SIIgI-Y"]
schema_version: "newruntime-agent-readable-v0.2"
stable_id: "post:an-agent-that-fixes-its-own-mistakes-saloni-f3c568"
status: "published"
visuals: []
editor: {"role":"editor","name":"Andrey Reshetnikov","profile":"https://newruntime.com/owner-profile.md","profile_json":"https://newruntime.com/owner-profile.json","same_as":["https://www.linkedin.com/in/reshetnikov1/","https://t.me/lapetuse"]}
routes: {"html":"https://newruntime.com/posts/an-agent-that-fixes-its-own-mistakes-saloni-f3c568/","markdown":"https://newruntime.com/posts/an-agent-that-fixes-its-own-mistakes-saloni-f3c568.md","json":"https://newruntime.com/posts/an-agent-that-fixes-its-own-mistakes-saloni-f3c568.json"}
markdown_url: "https://newruntime.com/posts/an-agent-that-fixes-its-own-mistakes-saloni-f3c568.md"
---

# An Agent That Fixes Its Own Mistakes - Saloni Gandhi & Ziwei Guo, LinkedIn

## Retrieval answer

LinkedIn’s Saloni Gandhi and Ziwei Guo describe a recursive-improvement loop for an agent that turns production traces and development findings into evaluated changes. The practical point is that improvement depends not just on generating edits, but on diagnosing failures and checking candidates against a holdout before changing the baseline.

## Summary
LinkedIn’s Saloni Gandhi and Ziwei Guo describe a recursive-improvement loop for an agent that turns production traces and development findings into evaluated changes. The practical point is that improvement depends not just on generating edits, but on diagnosing failures and checking candidates against a holdout before changing the baseline.

## What happened
In their presentation, Gandhi and Guo frame recursive self-improvement (RSI) as a way for an AI system to learn from issues found in production traces and development work. LinkedIn’s example is a user-understanding agent associated with a career agent: given a member ID, it can use information such as search history, profile data, location and preferences to generate structured understanding of that member. One example field is preferred job titles. The output can include confidence, citations or supporting evidence, and reasoning.

The team describes an evaluation engine that assesses traces and identifies quality problems. For the user-understanding agent, an LLM judge applies product-defined rubrics across dimensions. The presentation shows a score on a 1-to-3 scale: 1 means poor quality, 2 fair quality and 3 very good quality. Dimension scores are accompanied by notes explaining the judge’s verdict. The presenters stress that evaluation must be objective and aligned with user feedback, because it identifies bottlenecks and guides subsequent changes.

Their improvement process has seven high-level steps. The agent first generates outputs and traces. The evaluation engine scores them; an internal reflection process then seeks root causes, distinguishing among possible agent, model, prompt, tool, harness, judge or rubric issues. The presenters describe clustering failures by dimension, diagnosing individual cases, and merging near-duplicate issues. The system uses those diagnoses to propose edits. In the current project, the edits are prompt changes.

Candidate edits are evaluated with the same engine and rubrics used to assess the original system. After selecting promising candidates, the team updates the prompt and runs an evaluation on a holdout set to check whether the new system performs better than the old one. If it does, the revised prompt becomes the new baseline for future iterations. The talk presents this as a continuing process rather than a one-time optimization.

The presenters also describe a ladder of possible targets. Prompt updates are the initial focus; later stages could optimize structural context, design the workflow, change harness code, and eventually modify the optimizer itself. They say base-model optimization is outside the current scope. The talk thus distinguishes improving the system around a model from training or replacing the model.

## What the archive adds
New Runtime’s earlier coverage includes [AgentPilot’s recursive self-improvement benchmark results](https://newruntime.com/posts/hkuds-agentpilot-posts-rsi-results-9b-strategist-lifts-4be5f7/) (November 6, 2026) and [DoorDash’s automated improvement harness for a support agent](https://newruntime.com/posts/building-an-automated-improvement-harness-for-an-ai-74a2f3/) (November 11, 2026). LinkedIn’s presentation is a new implementation account within the broader RSI story: it focuses on failure diagnosis and holdout validation for prompts, rather than AgentPilot’s reported model benchmark gains or DoorDash’s support-agent evaluation.

## Trend signal
This supports [verification bandwidth as the scarce engineering resource](https://newruntime.com/patterns/verification-bandwidth-is-the-scarce-resource/): the loop treats evaluation, failure analysis and holdout testing as necessary work between generated changes and an improved baseline. How much human review or evaluation capacity the process consumes remains unmeasured here, so the account illustrates the verification problem without quantifying its cost.

## Why it matters
For teams building agents, the consequential idea is to make improvement a controlled pipeline rather than an open-ended cycle of prompt tweaking. Production traces can expose recurring failures, but a failure label is only useful if the diagnosis points to an actionable layer: prompt, tool, harness, model, or even the evaluator itself. Reusing the same rubric for candidate checks makes the comparison more consistent, while a holdout check offers a guard against promoting a change that only fits the cases used to develop it.

The approach also keeps the optimization boundary explicit. LinkedIn says it is working on prompts first, while broader workflow and harness changes remain later steps. Teams can use that sequencing to constrain risk: establish whether the evaluation is credible and whether a prompt-level fix generalizes before allowing an automated process to alter more consequential system components. The account does not independently demonstrate that every team can automate this safely, but it gives a concrete architecture for asking what should be changed and how to validate it.

## Limits and uncertainty
The presentation is an account by the project team, not an independent evaluation of the system. The agent’s production impact, the representativeness of the trace set, the details of the holdout methodology and measured gains after prompt changes have not been independently verified here. The presenters themselves identify judge and rubric quality as possible sources of failure. It is therefore uncertain how reliably the loop distinguishes genuine user-facing improvements from changes that score better under its evaluator.

## Reader takeaway
LinkedIn’s RSI example is less about an agent rewriting itself than about a disciplined improvement loop: use traces to find failures, diagnose their likely cause, evaluate proposed edits, and require a holdout result before changing the baseline. The strongest safeguard described is not autonomous editing; it is validation before promotion.

Editor: [Andrey Reshetnikov](https://newruntime.com/owner-profile.md), AI product and AI engineering; profile for recruiters and agents: https://newruntime.com/owner-profile.json

## Continue in the graph

Next records for an agent, linked to their Markdown twins. Replace `.md` with `.json` for structured fields, including `next_reads`.

- topic hub: [Loop Engineering](https://newruntime.com/topics/loop-engineering.md): Explore the loop-engineering topic hub.
- topic hub: [Evals](https://newruntime.com/topics/evals.md): Explore the evals topic hub.
- topic hub: [Agent Observability](https://newruntime.com/topics/agent-observability.md): Explore the agent-observability topic hub.
- collection: [Field Notes](https://newruntime.com/posts.json): Open the latest editorial analysis.
- collection: [Sources](https://newruntime.com/sources/): See the original sources this archive cites.
- whole graph: [discovery graph](https://newruntime.com/discovery-graph.json) (typed nodes and edges) and [site index](https://newruntime.com/site-index.md)
