HOW-CLAY COURSE GUIDE

How Clay Builds GTM Agents

A chapter-by-chapter readback of the free course by Jeff Barg on Latent Space.

Length1:12:23
Chapters22
Modules5
Plain Markdown with clickable timestamps — drops into Obsidian, Notion or GitHub as-is.

Clay now sees roughly half of its agent work driven through external coding agents like Claude Code rather than its own harness — and it's deliberately fine with that, positioning itself as agentic go-to-market infrastructure instead of a walled interface.

Who it's for
Read this guide if
  • You're building or scaling production LLM agents and want real-world lessons on evals, routing, and infrastructure
  • You work in go-to-market, revops, or growth and want to understand the GTM engineer discipline
  • You're deciding whether to build your own agent harness or ride external coding agents
Skip ahead if
  • You want a hands-on Clay tutorial with step-by-step screen walkthroughs
  • You're looking for prompt engineering basics or beginner AI content
  • You only care about model training techniques rather than agent product strategy
In brief
  • Duration: 72 minutes (4343 seconds)
  • 8 themed modules covering strategy, product history, infrastructure, and open questions
  • Tools discussed: Claude Code, Cursor, Claygent, Sculptor, ClickHouse, Postgres, BullMQ, LangSmith
  • Level: intermediate to advanced — assumes familiarity with LLM agents and SaaS GTM
  • Guest: Jeff Barg, Head of AI at Clay, interviewed by Latent Space

The walkthrough

Each chapter below is our original written explanation of what happens at that moment in the video — a paraphrase, not a transcript. Click any timestamp to jump the player.

Clay, GTM Engineering, and Company Background

0:00

Introduction

Opening facts set the stage: Clay's 40-million-company dataset, the cost of running qualification across it, and user reactions to the model selector.

1:04

What Clay Does and the Creative Thesis

Jeff describes Clay as a creative tool for growth — building and enriching lists of companies and contacts — and traces its origin seven years ago as a low-code spreadsheet tool with an explicit creative-brand thesis.

4:00

The Rise of the GTM Engineer

Clay branded the 'GTM engineer' role, combining agent engineering, data engineering, and traditional software engineering, coinciding with the post-ChatGPT era where agents can qualify customers at scale.

8:27

Jeff's Path to Clay via the Avenue Acquisition

Jeff joined through the acquisition of Avenue, an observability startup he co-founded in 2020, and explains why joining a fast-growing Clay made more sense than raising a Series A.

Building Signals and Claygent

12:36

Launching the Signals Product

Jeff's team built Clay's first signals product, monitoring market events like new hires so revenue systems could react — an extension of Clay beyond static lists, technically similar to Avenue's observability work.

16:12

Taking Over AI at Clay

When Clay's only AI engineer left, Jeff shifted to leading AI strategy despite the company being AI-forward; he recounts the early 2023 agent that did web search and structured extraction into workflow columns.

18:48

Rebuilding Claygent for Scale

Inspired by Cursor and Claude Code, the roadmap aimed to let agents build GTM plays; Claygent's usage outgrew the business itself, forcing a full stack rebuild as the company 10x'd.

Agents, Sculptor, and Evals

20:10

Collegians and Sculptor's Architecture

Clay's agents work on the public web rather than data providers; Sculptor operates one level up, orchestrating agent work by building workflows while agents fill in individual cells.

22:53

What Went Wrong with Sculptor v1

The first Sculptor used a tool-loop that was too inexpressive for long-horizon goals; evals judged tool calls but missed real outcomes, and enterprise customers with millions of records broke things.

24:50

Learnings and Platform Rebuild

Three lessons — models excel inside coding agents, tools needed richer chaining, and primitives were missing — led to a rebuilt platform with an 'audiences' data context layer unifying CRM and Gong data.

28:06

Post-Training and Cost Economics

Clay found post-training recently viable, mainly for cost reduction on smaller model classes; he also breaks down the token math of qualifying 40 million companies for around $1,500.

33:24

Model Routing and Auto Mode

Simple qualification tasks have been saturated by any recent model, while frontier intelligence still matters for orchestration; Clay will launch a plain 'auto mode' router while keeping the model picker for power users.

37:45

Sculptor v2 as a Coding Agent

Sculptor was rebuilt from scratch as a proper coding agent running a public CLI in a cloud sandbox, with use-case-based evals that check whether requested workflows were actually built correctly.

Infrastructure, Team, and Integrations

40:24

Hiring and Team Structure

The evals team blends ML specialists, applied AI engineers, and software engineers all sharing the 'software engineer' title; production-agent experience is the hardest skill to hire for outside the Bay Area.

42:24

Data and Queueing Infrastructure

The agent orchestration is hand-rolled on BullMQ and Postgres with ClickHouse and Snowflake in the mix; Jeff argues the modern data stack has been subsumed into AI engineering.

46:20

Spiky Inference and Noisy Neighbors

Clay's inference workloads burst — a single user may run an agent over 50,000 companies — so throttling, provider failover, and preventing large enterprises from crowding out small users are ongoing engineering concerns.

48:24

Agent Autonomy and the CLI vs MCP Question

Clay ships a sandboxed agent with access to all platform primitives but keeps autonomy pipeline-like; it maintains both an MCP and a CLI, viewing integrations as mere form factors.

Claude Code, Platform Bets, and What's Next

50:24

Living with 50/50 Claude Code Usage

Usage splits nearly evenly between Clay's harness and Claude Code; Clay concluded it can thrive as agentic GTM infrastructure valuable across any agent surface, not just its own UI.

55:15

The ChatGPT Apps Launch Story

Clay committed 25% of engineering for a month to be a ChatGPT Apps launch partner, only for OpenAI to postpone the launch two days out; Clay kept working on the bet and OpenAI reversed days later.

1:00:46

Workflows and the Next Sculptor Launch

The workflows product, now agent-first and CLI-first, is becoming users' primary interface; the most anticipated launch is Sculptor's coding-agent re-architecture, showing higher usage and NPR anecdotally.

1:07:27

Benchmarks from Bug Reports

Jeff suggests turning categorized bug reports into vertical benchmarks to share with labs, and names his most-wanted model capability: diagnosing what went wrong in an agent trace.

1:11:13

Closing Advice

Fully automated trace-improvement pipelines don't work yet since agents misdiagnose failures, so Clay still handwrites many skills; he advises engineers to just ask Clay's agent to build a GTM use case and see what happens.

Moment by moment

TimeWhy it matters
4:00Definition of the GTM engineer — the discipline Clay branded and bet the company on
24:50Three hard-won lessons from Sculptor v1 that led to a full platform rebuild
32:18The $1,500 cost breakdown for AI-qualifying all 40 million companies worldwide
50:24The 50/50 split between Clay's harness and Claude Code — the video's central tension
1:07:27The most desired future capability: models that can diagnose their own failed agent traces

Do this next

  1. Try the Clay CLI or MCP with Claude Code on a real GTM task, such as enriching and scoring a list of target accounts, and compare it to using Clay's own interface
  2. Write down one concrete GTM play (e.g., 'research companies from contact-form submissions and route to reps') and evaluate whether your current tooling could express it
  3. Audit your own agent's failure traces: categorize 20–50 recent failures into a small internal benchmark, as Jeff recommends, to share with model providers

Common questions

What is a GTM engineer?

A role Clay branded that combines agent engineering (prompting models to qualify customers), data engineering (building, enriching, and filtering lists), and traditional software engineering (orchestrating flows like routing inbound leads). It grew out of revenue operations in the post-ChatGPT era.

Why does Clay accept users working in Claude Code instead of its own interface?

Usage is nearly 50/50 between Clay's harness and Claude Code, and Clay decided being 'agentic go-to-market infrastructure' valuable across any agent is the better goal than owning first-touch surface area. It still maintains its own harness because customers want an agent inside the Clay UI.

What went wrong with the first version of Sculptor?

Sculptor v1 was a tool-loop agent whose tools were too inexpressive, making it good at small tasks like adding a column but weak at long-horizon goals like building a full outbound campaign. Its evals judged tool calls rather than business outcomes, and enterprise-scale data broke it.

How does Clay keep agent inference costs manageable?

Through model routing (simple tasks run on cheap recent models, frontier models reserved for deep research and orchestration), a planned 'auto mode' router, throttling and provider failover for spiky workloads, and exploring post-training of smaller models for cost savings.

Spot a mistake?

Every chapter summary on this page is hand-checked against the video, but with a 72-minute technical conversation, errors can slip through. If you spot a wrong timestamp, misattributed claim, or inaccurate paraphrase, please let us know.

More course guides