---
schema: 1
type: video
title: 'LLM codegen fails and how to stop ''em — Danilo Campos, PostHog'
description: >-
  Danilo Campos breaks down the most common failure modes in LLM code generation
  and the practical strategies PostHog uses to prevent them. Drawing from a
  system that helps 5,000+ users each month, he shares a playbook for making
  autonomous codegen more reliable, correct, and production-ready. Speaker info:
  - https://www.linkedin.com/in/danilocampos --- Watch along with the corrected
  transcript, summary, timestamps and resources on this talk's official AIE
  page:
  https://ai.engineer/talks/juoNbJiZUi0-llm-codegen-fails-and-how-to-stop-em
  Join our upcoming AI Engineer conferences (see https://ai.engineer landing
  page): - AIEi Shanghai, November 5–6 — the first for meeting top Chinese labs
  and engineers - AIE CODE in SF, November 10–12 — the top AI Coding conference
  returns - AIEi Sydney, December 7–8 — the first AIEi run alongside NeurIPS
  2026 in Sydney ---
canonical: >-
  https://liquidgold.cc/channel/aidotengineer/explore/video/llm-codegen-fails-and-how-to-stop-em-danilo-campos-416ada51935c
markdown: >-
  https://liquidgold.cc/channel/aidotengineer/video/llm-codegen-fails-and-how-to-stop-em-danilo-campos-416ada51935c.md
llms: null
parent: 'https://liquidgold.cc/channel/aidotengineer.md'
channel: aidotengineer
updated: '2026-10-24T14:43:27.003Z'
language: null
children: []
videoId: juoNbJiZUi0
durationSeconds: 1158
publishedAt: '2026-04-30T14:00:06.000Z'
searchChunks:
  - ordinal: 0
    text: null
    startSeconds: 126
    endSeconds: 242
    watch: 'https://liquidgold.cc/watch/juoNbJiZUi0?t=126'
    heldReason: rights
  - ordinal: 1
    text: null
    startSeconds: 126
    endSeconds: 242
    watch: 'https://liquidgold.cc/watch/juoNbJiZUi0?t=126'
    heldReason: rights
  - ordinal: 2
    text: null
    startSeconds: 254
    endSeconds: 357
    watch: 'https://liquidgold.cc/watch/juoNbJiZUi0?t=254'
    heldReason: rights
  - ordinal: 3
    text: null
    startSeconds: 254
    endSeconds: 357
    watch: 'https://liquidgold.cc/watch/juoNbJiZUi0?t=254'
    heldReason: rights
  - ordinal: 4
    text: null
    startSeconds: 367
    endSeconds: 501
    watch: 'https://liquidgold.cc/watch/juoNbJiZUi0?t=367'
    heldReason: rights
  - ordinal: 5
    text: null
    startSeconds: 501
    endSeconds: 513
    watch: 'https://liquidgold.cc/watch/juoNbJiZUi0?t=501'
    heldReason: rights
  - ordinal: 6
    text: null
    startSeconds: 513
    endSeconds: 610
    watch: 'https://liquidgold.cc/watch/juoNbJiZUi0?t=513'
    heldReason: rights
  - ordinal: 7
    text: null
    startSeconds: 513
    endSeconds: 610
    watch: 'https://liquidgold.cc/watch/juoNbJiZUi0?t=513'
    heldReason: rights
  - ordinal: 8
    text: null
    startSeconds: 621
    endSeconds: 735
    watch: 'https://liquidgold.cc/watch/juoNbJiZUi0?t=621'
    heldReason: rights
  - ordinal: 9
    text: null
    startSeconds: 621
    endSeconds: 735
    watch: 'https://liquidgold.cc/watch/juoNbJiZUi0?t=621'
    heldReason: rights
  - ordinal: 10
    text: null
    startSeconds: 745
    endSeconds: 826
    watch: 'https://liquidgold.cc/watch/juoNbJiZUi0?t=745'
    heldReason: rights
  - ordinal: 11
    text: null
    startSeconds: 745
    endSeconds: 826
    watch: 'https://liquidgold.cc/watch/juoNbJiZUi0?t=745'
    heldReason: rights
  - ordinal: 12
    text: null
    startSeconds: 837
    endSeconds: 936
    watch: 'https://liquidgold.cc/watch/juoNbJiZUi0?t=837'
    heldReason: rights
  - ordinal: 13
    text: null
    startSeconds: 936
    endSeconds: 947
    watch: 'https://liquidgold.cc/watch/juoNbJiZUi0?t=936'
    heldReason: rights
  - ordinal: 14
    text: null
    startSeconds: 947
    endSeconds: 1062
    watch: 'https://liquidgold.cc/watch/juoNbJiZUi0?t=947'
    heldReason: rights
---


# LLM codegen fails and how to stop 'em — Danilo Campos, PostHog

Danilo Campos breaks down the most common failure modes in LLM code generation and the practical strategies PostHog uses to prevent them. Drawing from a system that helps 5,000+ users each month, he shares a playbook for making autonomous codegen more reliable, correct, and production-ready. Speaker info: - https://www.linkedin.com/in/danilocampos --- Watch along with the corrected transcript, summary, timestamps and resources on this talk's official AIE page: https://ai.engineer/talks/juoNbJiZUi0-llm-codegen-fails-and-how-to-stop-em Join our upcoming AI Engineer conferences (see https://ai.engineer landing page): - AIEi Shanghai, November 5–6 — the first for meeting top Chinese labs and engineers - AIE CODE in SF, November 10–12 — the top AI Coding conference returns - AIEi Sydney, December 7–8 — the first AIEi run alongside NeurIPS 2026 in Sydney ---

Canonical: https://liquidgold.cc/channel/aidotengineer/explore/video/llm-codegen-fails-and-how-to-stop-em-danilo-campos-416ada51935c · Channel: [AI Engineer](https://liquidgold.cc/channel/aidotengineer.md)

> Search chunk text is held until public-source provenance is verified.

## Document chunks

---

#### Chunk 0: Document excerpt (0:15 to 1:56)

> Held: transcript rights do not permit this chunk's text.

---

#### Chunk 1: Document excerpt (1:56 to 2:06)

> Held: transcript rights do not permit this chunk's text.

---

#### Chunk 2: Document excerpt (2:06 to 4:02)

> Held: transcript rights do not permit this chunk's text.

---

#### Chunk 3: Document excerpt (4:02 to 5:57)

> Held: transcript rights do not permit this chunk's text.

---

#### Chunk 4: Document excerpt (5:57 to 6:07)

> Held: transcript rights do not permit this chunk's text.

---

#### Chunk 5: Document excerpt (6:07 to 8:21)

> Held: transcript rights do not permit this chunk's text.

---

#### Chunk 6: Document excerpt (8:21 to 8:33)

> Held: transcript rights do not permit this chunk's text.

---

#### Chunk 7: Document excerpt (8:33 to 10:10)

> Held: transcript rights do not permit this chunk's text.

---

#### Chunk 8: Document excerpt (10:10 to 10:21)

> Held: transcript rights do not permit this chunk's text.

---

#### Chunk 9: Document excerpt (10:21 to 12:15)

> Held: transcript rights do not permit this chunk's text.

---

#### Chunk 10: Document excerpt (12:15 to 13:46)

> Held: transcript rights do not permit this chunk's text.

---

#### Chunk 11: Document excerpt (13:46 to 15:36)

> Held: transcript rights do not permit this chunk's text.

---

#### Chunk 12: Document excerpt (15:36 to 15:47)

> Held: transcript rights do not permit this chunk's text.

---

#### Chunk 13: Document excerpt (15:47 to 17:42)

> Held: transcript rights do not permit this chunk's text.

---

#### Chunk 14: Document excerpt (17:42 to 19:18)

> Held: transcript rights do not permit this chunk's text.
