Coders In Hoods
  • Courses
  • Roles
  • Blog
  • Setup

Coders In Hoods AI Academy

Every course is free. Sign in to start, and your progress, quiz scores and bookmarks follow you.

AI Academy

  • Courses
  • Paths
  • Setup guides
  • How we teach

Role roadmaps

  • AI Engineer
  • Forward Deployed Engineer
  • Machine Learning Engineer
  • All roles

Coders In Hoods

  • The agency
  • Coaching for teams
  • Blog
  • LinkedIn
  • X (Twitter)

Contact

codersinhoods@gmail.com

© Coders In Hoods · since 2019

Course overview

Think Like a PhD Student

Free · sign in to start and track progress

1 · Asking the question

  • 1The cycle and the question
  • 2Reading and searching the literature
  • 3Measuring what matters

2 · Designing and running the study

  • 4Designing the experiment
  • 5Pre-registration and trials
  • 6Open coding of failures

    Exercise answers

    • Answer: Build a failure taxonomy from the pilot traces
    • Answer: Test whether the taxonomy saturates
  • 7Running an annotation study

3 · Trusting and telling

  • 8Reproducibility and research hygiene
  • 9Analysis and honest reporting
  • 10Writing it up and peer review
CapstoneA small study on the triage agentReference implementation

Module 2 · Designing and running the study · Lesson 6

Open coding of failures

Read agent traces the way qualitative researchers read interviews, with open coding, axial coding and memos, until new readings stop producing new codes; build a failure taxonomy from what you find, write a case study of a failure no metric caught, and keep this exploratory work from contaminating the confirmatory study.

80 min 1 video 3 exercises 7-question quiz Answers
Setup for the exercises:Install Claude CodePython with uvThe Quillmoor triage kit

By the end of this lesson you can

  • Open-code agent traces into short free-text notes that stay close to what happened, then axial-code them into a taxonomy with definitions, examples and counts
  • Separate the mechanism of a failure from its symptom, and explain why a taxonomy organised by mechanism is more useful to a study
  • Judge saturation from a coding log, and compute how likely a sample is to contain a failure kind of a given rate at least once
  • Write a one-page case study of a single failure that the study's metrics would have passed
  • Explain how exploratory coding feeds a confirmatory annotation study without the same traces being used to build and to test the codes

On this page

  • Reading traces like interview transcripts
  • Three traces, coded step by step
  • tr-002: T-59008, retrieval
  • tr-026: T-59007, baseline
  • tr-018: T-59001, baseline
  • The axial step
  • From codes to a taxonomy
  • Saturation: when to stop reading
  • A case study: the credit that passed every metric
  • Exploratory feeds confirmatory, and never the other way
  • What a model can do here
  • Connections
  • Summary
  • Sources & further reading
  • Quiz

In this lesson

  1. 01Reading traces like interview transcripts
  2. 02Three traces, coded step by step
  3. 03From codes to a taxonomy
  4. 04Saturation: when to stop reading
  5. 05A case study: the credit that passed every metric
  6. 06Exploratory feeds confirmatory, and never the other way
  7. 07Connections
  8. 08Summary

Sources & further reading

  • Using thematic analysis in psychologyPaper · Braun, Clarke · 2006The most cited account of thematic analysis and its six phases, from familiarisation and initial codes to reviewing, naming and reporting themes. Published in Qualitative Research in Psychology 3(2), which is paywalled; this is the author's institutional repository copy, and the site may ask a browser to prove it is not a bot.
  • Why Do Multi-Agent LLM Systems Fail?Paper · Cemri et al. · 2025A failure taxonomy for agent systems built the way this lesson builds one, by expert annotators reading traces (150 to start), with inter-annotator agreement reported (kappa 0.88) before it was used at scale. Its 14 failure modes in three categories are a model of what a finished taxonomy looks like. Section 3 is the method.
  • Can Large Language Models emulate an inductive Thematic Analysis of semi-structured interviews?Paper · De Paoli · 2023A careful test of a model doing inductive coding. It partly reproduced the phases and some of the themes human analysts found, which is the honest summary of what a model can do as a second coder and why it is not the first.
  • Who Validates the Validators? Aligning LLM-Assisted Evaluation of LLM Outputs with Human PreferencesPaper · Shankar, Zamfirescu-Pereira, Hartmann, Parameswaran, Arawjo · 2024Names criteria drift, the finding that people need criteria to grade outputs but form their criteria by grading them. It is why open coding comes before a codebook and why the codebook is revised. Sections 1 and 6.
  • Preregistering NLP ResearchPaper · van Miltenburg, van der Lee, Krahmer · 2021Table 3 lists the questions to answer before an error analysis (what errors you expect, how you sample, who judges, whether the categories are fixed), which is the bridge from exploratory coding to a study you can pre-register.
  • AI Evals FAQ: Why is error analysis so important in LLM evals, and how is it performed?Article · Husain, Shankar · 2025The practitioners' version of open and axial coding for LLM traces, with the stopping rule stated as theoretical saturation. Read this entry, then the one on how many traces to review.
Free · sign in to start

Sign in to keep reading.

Free, no card. We use your account to save progress, quiz scores, bookmarks and occasionally send updates from our team.

  • 8 more sections
  • 3 hands-on exercises
  • A 7-question quiz
  • Progress, quiz scores and bookmarks