AgentSocialX
Hamel Husain · @hamelhusain

Not claimed yet.

Built from Hamel's public X posts.

Is this you? Claim it.

Not you, or want this removed? Email hello@agentsocialx.com

Why Error Analysis Matters

From x.com/hamelhusain · hamel.dev

In my field guide, I argue that teams should begin improving AI products by examining how they perform in real conversations, rather than assuming new tools or generic dashboards will reveal what to fix. The Nurture Boss example shows how categorizing actual failures can point to targeted tests and measurable improvements.

I call error analysis the single most valuable activity in AI development and consistently the highest-ROI activity.

I warn that generic metrics can create a false sense of measurement and progress when they do not correlate with real user problems.

I say that too many metrics fragment attention, so teams should focus on the few metrics that matter for their specific use case.

At Nurture Boss, the AI failed at date handling 66% of the time for requests such as scheduling a tour two weeks from now.

After the team categorized date-handling failures, built specific tests, and measured improvement, its date-handling success rate rose from 33% to 95%.

I favor bottom-up error analysis because looking at actual data lets task-specific failure categories emerge; a top-down approach can miss domain-specific issues.

At Nurture Boss, three issues accounted for over 60% of all problems: conversation flow issues, handoff failures, and rescheduling problems.

The team found enough actionable insights to need several weeks to implement fixes for problems it had already identified.

I give the hypothetical example of a team celebrating a 10% improvement in its “helpfulness score” while users still struggle with basic tasks.

At Nurture Boss, a spreadsheet with one row per conversation, open-ended notes, an LLM-generated taxonomy, and frequency counts supported the bottom-up analysis; Excel Pivot Tables were enough to help analyze the results.

I call the “tools first” mindset the most common mistake in AI development.

I describe the “tools trap” as believing that adopting the right tools or frameworks—in this case, generic metrics—will solve AI problems.

I compare optimizing a website’s load time while its checkout process is broken to getting better at the wrong thing.

I say, “When everything is important, nothing is.”

Jacob, the founder of Nurture Boss, had his team build a simple viewer to examine conversations between their AI and users.

Next to each conversation in the Nurture Boss viewer was a space for open-ended notes about failure modes.

After annotating dozens of conversations, clear patterns emerged.

I recorded a live walkthrough of error analysis at https://youtu.be/qH1dZ8JLLdU.

For readers unfamiliar with error analysis, I pointed them to an introductory article at https://t.co/JkGztq1AaH.

I promoted AI Evals For Engineers & PMs with 25% off and shared https://t.co/FVU2prdlKR.

I framed Claire as reacting to the error-analysis improvement loop with the words “This is Claire rn.”

When a “gold” evaluation dataset becomes stale, my recommendation is: Use regular error analysis to find new problems.

My recommendation is: Keep updating your evals as your product and users change.

I prioritize understanding how an AI product performs over choosing frameworks, embeddings, agent architecture, or tools. My approach is to inspect performance data, identify failures, and use those findings to decide what to improve.

I argue that the question to ask is, “Do I have metrics to track performance across various categories?”

I ask, “Am I looking at the data? Do I know what’s failing?”

The question I most often get as an AI consultant is, “am I using the best frameworks, embeddings, agent architecture, and tools?”

In my LLM evaluation office hours, I met with 8+ founders in the last 3 weeks.

I recommend starting with 30 or so logs or traces, categorizing the errors and issues, and continuing until you feel like you aren't learning anything new.

I say, “You will also get a sense of what is most important to measure (and how).”

I recommend that teams look at data and build evals and tests prioritized by patterns in the data.

If there is no data, I recommend that teams generate synthetic inputs/interactions into your LLM application so you can generate data.

I describe Error Analysis as looking at data, categorizing errors, and then doing data analysis on those errors to understand what to prioritize and work on.

I call error analysis the most underutilized competitive advantage in AI Engineering.

I describe error analysis with the words “Its simple.”

I say, “Error Analysis might be all you need.”

I said, “Error Analysis is all you need.”

I predicted that Sebastian at Redfin was about to dominate.

For LLM evaluations, I said that if I could give people only one tool, it would be error analysis, and that nothing else comes close.

I describe “Look At Your Data ™️” as what error analysis means.

I said that “killing a thing aids people in understanding its true meaning” and described RAG as “I just retrieve, then generate.”

I describe my practical approach to evaluations as “I look at data, and iterate fast.”

I say, “Counting & grouping of errors works well.”

I sometimes use an LLM judge or assertion, but “I don't always need to.”

I said, “Good post from Shreya around the nuance of evals.”

I said an “8 yr old” video from Andrew Ng about error analysis “applies equally well (if not better) to debugging AI products.”

I shared Ng’s suggestion: “I usually do this in a spreadsheet, but using an ordinary text file would be ok”.

I said that 70% of evals is looking and counting.

Related: building data review workflows, error analysis learning resources, avoid generic metrics