How Clay Builds GTM Agents — Jeff Barg, Head of AI
Latent Space
Summary
Jeff Barg, Head of AI at Clay, joins Swyx and Basil to trace how Clay grew from a 50-person product-led spreadsheet tool when it acquired his startup Avenue in late 2024 to a 600-person platform serving Go-To-Market engineers. After rebuilding Clay's web-crawling Claygent stack on hand-rolled BullMQ queues, Postgres, and ClickHouse, Barg's team discovered that initial tool-calling loops for their workflow orchestrator, Sculptor, broke down on complex multi-step tasks and million-row enterprise tables. In response, Clay rebuilt its agent around a coding harness running Bash, Python, and a public CLI inside a cloud sandbox, backed by a single-tenant data layer called Audiences.
Rather than locking users inside a proprietary interface, Clay embraces an open infrastructure strategy where roughly half of all agent usage occurs through external harnesses like Claude Code and Cursor. Barg shares concrete economics on modern AI engineering, calculating that scoring all 40 million companies in Clay's database for customer fit costs roughly $1,500 and estimating that post-training only pays off at $10 million to $100 million in inference spend. As Clay prepares to roll out an automatic model router and its rearchitected Sculptor agent, Barg identifies trace self-debugging as the major unsolved model bottleneck.
How time-sensitive the topic is: Developing story
By the numbers
50 employees at Clay when Avenue was acquired: Jeff Barg says his five-person startup Avenue joined Clay when Clay had 50 employees. (Mentioned at 10:41)
15 to 20 million USD in revenue: Jeff Barg estimates Clay's revenue was around $15 million to $20 million when his team joined in late 2024. (Mentioned at 11:21)
10 to 100 million USD in inference spend: Jeff Barg estimates post-training models for cost savings only becomes material at $10 million to $100 million in inference spend. (Mentioned at 30:29)
40 million companies: Jeff Barg states that Clay maintains a company dataset of 40 million companies. (Mentioned at 31:30)
1,500 USD: Jeff Barg calculates that scoring all 40 million companies in Clay's dataset across 1,500 tokens each at $42 per billion tokens costs about $1,500. (Mentioned at 31:57)
1 to 10 USD per qualified lead: Jeff Barg gives $1 to $10 per qualified lead as a typical enrichment budget range in Clay, or $10 to $100 for booking a call. (Mentioned at 32:20)
50/50 usage split: Jeff Barg says agent usage is close to a 50/50 split between Clay's internal harness and external harnesses like Claude Code. (Mentioned at 50:27)
600 employees: Jeff Barg notes that Clay has grown from 50 people when he joined to roughly 600 people. (Mentioned at 54:51)
25% of the engineering team: Jeff Barg says Clay reprioritized roughly 25% of its engineering team for a month to integrate with ChatGPT Apps before OpenAI postponed the launch. (Mentioned at 55:29)
60 seconds: Jeff Barg says Clay's rearchitected coding agent determined how many Y Combinator companies use Clay in about 60 seconds. (Mentioned at 1:02:05)
Questions this video answers
Why does Clay let users run workflows from Claude Code instead of forcing them into Clay's own agent?
Jeff Barg explains that roughly half of Clay's agent volume already comes from external harnesses like Claude Code and Cursor via the Clay CLI. Clay explicitly designs its platform so its internal agent is not markedly better than external coding agents, positioning Clay as underlying go-to-market infrastructure that meets users in their preferred tools.
Jeff Barg, 48:26 to 54:26
From this keypoint: Why Clay Embraces a 50/50 Split with Claude Code
How much would it cost to score every company in Clay's 40-million-company database for customer fit?
Jeff Barg calculates that combining a 1,000-token company LinkedIn profile with a 500-token ideal customer profile across 40 million companies equals 60 billion tokens. At roughly $42 per billion tokens using modern classifiers, a business could score every company in the dataset for approximately $1,500.
Jeff Barg, 27:58 to 32:40
From this keypoint: Post-Training Thresholds and $1,500 Global Scoring
At what inference spend does post-training or fine-tuning open-weight models actually make sense?
According to Jeff Barg, companies frequently jump into post-training too early before their inference base can justify the engineering effort. He estimates that post-training smaller open-weight models to match frontier performance only delivers material business savings once annual inference spend reaches $10 million to $100 million.
Jeff Barg, 27:58 to 32:40
From this keypoint: Post-Training Thresholds and $1,500 Global Scoring
Why did Clay rebuild its Sculptor workflow agent around a coding agent and CLI?
The first version of Sculptor used a standard tool-calling loop that struggled with multi-step chaining and broke down on enterprise tables containing millions of records. Rebuilding the agent around a coding harness that executes Bash, Python, and the Clay CLI inside a cloud sandbox made it far more expressive for complex tasks.
Jeff Barg, 21:44 to 26:44
From this keypoint: Why Clay Rebuilt Sculptor Around a Coding Agent
What happened with Clay's launch partnership for OpenAI's ChatGPT Apps?
Clay reprioritized roughly 25% of its engineering team for a month mid-quarter to build an integration as a first-wave launch partner for ChatGPT business apps. Two days before the scheduled release, OpenAI postponed the launch indefinitely, only to change its mind again three or four days later while Clay kept building.
Jeff Barg, 54:26 to 1:00:11
From this keypoint: OpenAI Postponed ChatGPT Apps Two Days Before Launch
What backend orchestration stack does Clay use instead of Temporal or LangGraph?
Clay does not use Temporal or LangGraph, relying instead on a hand-rolled JavaScript stack built on top of BullMQ, Postgres, ClickHouse, and Snowflake. To handle spiky workloads when users run agents across 50,000-row tables, the team built custom rate-limit throttling, pause-and-resume execution, and noisy-neighbor fairness controls.
Jeff Barg, 42:15 to 48:26
From this keypoint: Hand-Rolled BullMQ Infrastructure and Scaling Pains
Why are Clay users upset by the model selector dropdown?
Apart from agency power users, most Clay customers do not want to evaluate new LLMs on their own and actively complain when presented with a model selector. To solve this, Clay is launching an auto-routing mode that selects models at the task level while leaving the manual selector available for agencies.
Jeff Barg, 32:40 to 37:09
From this keypoint: Saturated Task Evals and Model Selector Backlash
Where do frontier AI models still matter in go-to-market automation?
Jeff Barg notes that Clay's evaluations for basic lead-qualification tasks have been saturated for roughly a year, meaning any recent model can extract standard company facts. Frontier models still provide a 10x to 100x quality advantage higher up the stack in workflow orchestration and deep, creative account research.
Jeff Barg, 32:40 to 37:09
From this keypoint: Saturated Task Evals and Model Selector Backlash
Why can't AI agents automatically improve themselves from their own execution traces yet?
Jeff Barg observes that current models have poor intuition when inspecting long, failed agent traces, often misidentifying slow steps as errors while missing where the agent actually got confused. Because automated trace diagnosis fails in practice, Clay engineers still manually review traces and handwrite agent skills.
Jeff Barg, 1:06:48 to 1:12:10
From this keypoint: Why Agents Still Cannot Debug Their Own Traces
What is a Go-To-Market (GTM) engineer and what background do they typically have?
A Go-To-Market engineer builds automated systems to find, enrich, and qualify prospective customers rather than scaling sales pipeline through manual headcount. The role sits adjacent to revenue operations and attracts both traditional software engineers and technical RevOps specialists who combine prompt engineering, data transformation, and workflow orchestration.
Jeff Barg, 3:24 to 7:28
From this keypoint: Defining the Go-To-Market Engineer Persona
How did Jeff Barg join Clay and what did his team build first?
Jeff Barg joined Clay in late 2024 when Clay acquired his five-person Y Combinator startup, Avenue, which built operational observability software. His team initially applied their monitoring architecture to build Clay's Signals product for tracking job changes and market events before Barg took over AI after Clay's sole AI engineer departed.
Jeff Barg, 8:21 to 13:49
From this keypoint: Jeff Barg on Selling Avenue to Clay at 50 People
Credible AI™ signals
Confidence: Candid Engineering Account. Jeff Barg provides direct, first-hand operational details about Clay's architecture, evaluation limitations, and business history. Because the figures and revenue estimates are self-reported by an executive without external audit, the discussion sits solidly in the reliable single-perspective tier.
Bias: Builder-Centric Product Pitch. The conversation naturally favors Clay's product thesis and the Go-To-Market engineer persona it coined. However, Jeff Barg candidly discusses technical failures, basic model stupidity, and why users disliked certain UI choices, avoiding pure promotional spin.
Originality (84%): Novel Agent Architecture Take. Rather than defending a walled-garden SaaS interface, Jeff Barg details why Clay intentionally lets external coding harnesses like Claude Code drive half its agent volume and shares concrete cost math on qualifying 40 million companies.
Depth (81%): Deep Systems Breakdown. The hosts and guest examine specific architectural trade-offs, including single-tenant data isolation, BullMQ scaling limits, post-training spend thresholds, and why agents still fail at self-debugging execution traces.
Key points (12)
Short (20 min): key points 1, 4, 5 and 9
Medium (35 min): key points 1, 4, 5, 6, 9, 10 and 12
Relaxed (1h 4min): all 12 key points
1. Defining the Go-To-Market Engineer Persona
Timestamp: 00:03:24 to 00:07:28 (4 min)
Speaker: Jeff Barg
Clay narrowed its horizontal spreadsheet product three years ago to focus on go-to-market teams and branded the Go-To-Market engineer persona. Jeff Barg explains that this role blends prompt engineering, data list transformation, and software orchestration within revenue operations. Focusing on this single persona allowed Clay to build a dedicated community around automated prospecting.
Impact: Medium. Why it matters: Branding a distinct technical persona turns traditional revenue operations users into power builders who anchor their workflows around Clay.
“we were seeing more people basically engineering go to market systems and tried to, you know, brand that term around it.”
In the video: Jeff Barg, at 4:57
For: Swyx
2. Jeff Barg on Selling Avenue to Clay at 50 People
Timestamp: 00:08:21 to 00:13:49 (5 min)
Speaker: Jeff Barg
Jeff Barg co-founded operations observability startup Avenue in early 2020, went through Y Combinator, and sold to customers like Ramp and DoorDash before being acquired by Clay in late 2024. At the time, Avenue's five-person team joined a 50-person Clay that had roughly $15 million to $20 million in product-led revenue. The Avenue team applied its observability background to build Clay's event-monitoring Signals product.
Impact: Medium. Why it matters: Acquiring an enterprise-tested startup team gave Clay the engineering maturity to expand beyond small self-serve contracts into event-driven systems.
3. Rebuilding Claygent and Launching Sculptor
Timestamp: 00:16:10 to 00:21:31 (5 min)
Speaker: Jeff Barg
When Clay's sole 24-year-old AI engineer left to start a company, Clay briefly had zero engineers dedicated to AI despite its reputation. Jeff Barg stepped in to rebuild the web-crawling Claygent stack as the business grew tenfold, and later launched Sculptor to orchestrate table structures. While Claygent fills individual spreadsheet cells, Sculptor operates a level higher by configuring the workflows themselves.
Impact: High. Why it matters: Separating cell-level task execution from table-level workflow orchestration laid the foundation for autonomous campaign building.
“you know, we were this, you know, really AI forward company that had zero people working on AI. So, it was kind of scary.”
In the video: Jeff Barg, at 16:47
4. Why Clay Rebuilt Sculptor Around a Coding Agent
Timestamp: 00:21:44 to 00:26:44 (5 min)
Speaker: Jeff Barg
The initial version of Sculptor relied on a standard tool-calling loop, which lacked the expressivity to chain complex actions or analyze enterprise tables with millions of rows. Jeff Barg explains that Clay rebuilt its agent architecture around a coding agent capable of writing Bash and Python scripts and querying a single-tenant data context layer called Audiences. This shift enabled the agent to chain operations and integrate CRM and Gong data.
Impact: High. Why it matters: Moving from constrained tool loops to script-writing coding agents unlocks multi-step actions and large-scale table analysis.
“one it turns out coding agents are really good like the models are really good at you know operating in coding agents. the coding agents are really good at using things like bash or using things like Python to actually write scripts and do things.”
In the video: Jeff Barg, at 24:56
5. Post-Training Thresholds and $1,500 Global Scoring
Timestamp: 00:27:58 to 00:32:40 (5 min)
Speaker: Jeff Barg
After avoiding custom model training for 18 months, Clay is now exploring open-weight models and post-training to cut cost and latency while keeping capabilities constant. However, Barg estimates post-training only makes financial sense when inference spend reaches $10 million to $100 million. He also calculates that scoring all 40 million companies in Clay's dataset across 1,500 tokens each would cost roughly $1,500.
Impact: High. Why it matters: Plummeting token costs make global dataset classification affordable, while high inference thresholds warn startups against premature fine-tuning.
“You can imagine just asking a question like, is this customer a good fit for my product or service? And you could run that across every company in the world and it comes out to I think around 1,500 bucks, right?”
In the video: Jeff Barg, at 31:48
For: Swyx
6. Saturated Task Evals and Model Selector Backlash
Timestamp: 00:32:40 to 00:37:09 (4 min)
Speaker: Jeff Barg
Barg notes that Clay's evaluations for basic lead qualification tasks have been saturated for about a year, meaning frontier intelligence now only matters higher up the stack for orchestration and deep research. Because most users get upset when forced to choose models manually, Clay plans to launch an auto-routing mode while keeping the selector for agency power users. Task-level routing lets Clay match cheap or frontier models to query difficulty.
Impact: High. Why it matters: Saturated task benchmarks shift competitive advantage from raw model selection to automated task-level routing and high-level orchestration.
“I would say like our our users hate our model selector like they hate it like”
In the video: Jeff Barg, at 34:46
For: Swyx
7. Evaluating CLI Coding Agents and Hiring in NYC
Timestamp: 00:37:09 to 00:42:15 (5 min)
Speaker: Jeff Barg
Clay's rebuilt agent runs its public CLI inside a cloud sandbox, and the team evaluates both the execution trajectory and the properties of the resulting workflow. Barg would love to measure second-order effects like outbound campaign reply rates, though Swyx points out Clay cannot own customer copywriting skill. Barg also notes that hiring engineers with production agent experience is difficult in New York given the field's four-year history.
Impact: Medium. Why it matters: Evaluating sandboxed CLI agents requires checking both tool trajectories and final state, while customer skill variance prevents pure outcome pricing.
“we launched our CLI um publicly and the new version of our agent uh just uses a CLI. It uses it in a cloud sandbox and it's just way more expressive.”
In the video: Jeff Barg, at 37:35
For: Swyx
8. Hand-Rolled BullMQ Infrastructure and Scaling Pains
Timestamp: 00:42:15 to 00:48:26 (6 min)
Speaker: Jeff Barg
Rather than adopting Temporal or LangGraph, Clay runs its agent durability and data pipelines on a hand-rolled stack using BullMQ, Postgres, ClickHouse, and Snowflake. As Claygent scaled, spiky 50,000-row table workloads caused inference bottlenecks and lack of visibility. The team onboarded LangSmith for tracing and built throttling, pause-and-resume capabilities, and fairness controls so enterprise jobs do not crowd out small users.
Impact: Medium. Why it matters: Demonstrates that simple queue primitives like BullMQ can power massive agent scale if paired with custom throttling and noisy-neighbor fairness controls.
“we have still gotten away to the large for the most part building on top of Bull MQ”
In the video: Jeff Barg, at 42:51
Neutral: Swyx
9. Why Clay Embraces a 50/50 Split with Claude Code
Timestamp: 00:48:26 to 00:54:26 (6 min)
Speaker: Jeff Barg
Jeff Barg states that Clay explicitly does not want its internal Pi-based agent to be markedly better than using Clay through external harnesses like Claude Code or Cursor via the Clay CLI. Roughly half of Clay's agent usage already comes from external harnesses rather than Clay's own UI. Internally, Clay's own sales and GTM ops teams demanded the CLI because they refused to leave Cursor and Codex.
Impact: High. Why it matters: Treating a SaaS platform as headless infrastructure for third-party coding agents captures users who refuse to leave their primary AI workspace.
“we explicitly don't want our agent to be marketkedly better than just using clay and cloud code like if you use clay and cloud code that's great”
In the video: Jeff Barg, at 49:24
Neutral: Swyx
10. OpenAI Postponed ChatGPT Apps Two Days Before Launch
Timestamp: 00:54:26 to 01:00:11 (6 min)
Speaker: Jeff Barg
As Clay scaled from 50 to roughly 600 employees, Barg emphasizes the need for institutional courage during volatile partner shifts. Clay committed 25% of its engineering team for a month to become a launch partner for OpenAI's ChatGPT business apps, only for OpenAI to postpone the launch indefinitely two days before release. Clay kept building anyway, and OpenAI reversed course three or four days later.
Impact: Medium. Why it matters: Building on top of frontier AI labs exposes application companies to sudden roadmap whiplash that requires rapid engineering resilience.
“so we rep prioritized like a quarter of the company basically to work on this. I think 2 days before we were supposed to launch they were like we're going to cancel it.”
In the video: Jeff Barg, at 55:51
For: Swyx
11. From Workflows Backlash to 60-Second YC Queries
Timestamp: 01:00:11 to 01:06:48 (7 min)
Speaker: Jeff Barg
When Clay first previewed its Workflows feature during a 12-launches-in-12-weeks summer sprint, users were confused and upset that it moved away from spreadsheets. Since launching as an agent-first and CLI-first feature, agency owners have rapidly shifted from tables to workflows. Barg notes that Clay's rearchitected agent recently answered how many Y Combinator companies use Clay in 60 seconds, a task that previously required manual scraping and Snowflake queries.
Impact: Medium. Why it matters: Pairing new workflow abstractions with a coding agent turns hours of cross-system CSV and database reconciliation into a one-minute prompt.
12. Why Agents Still Cannot Debug Their Own Traces
Timestamp: 01:06:48 to 01:12:10 (5 min)
Speaker: Jeff Barg
Looking ahead to next-generation models, Barg points out that current models still make basic mistakes like repeating failed CLI commands with identical inputs. More importantly, agents cannot reliably inspect a long, confused execution trace and diagnose where they went wrong, which blocks automated self-improvement loops. Because agents have poor intuition for trace debugging, Clay engineers still handwrite skills and prompts ahead of their upcoming Sculpt conference.
Impact: High. Why it matters: Until models can accurately pinpoint failure points inside long execution traces, automated prompt optimization cannot replace human-written agent skills.
“like, hey, here's a trace. It was really long. The agent probably got confused. Can you tell me where it got confused? And I think agents are still not good at this.”
In the video: Jeff Barg, at 1:10:26
For: Swyx
Conflicts of interest (1)
Jeff Barg's Executive Role at Clay
Professional conflict, Medium severity
Jeff Barg is the Head of AI at Clay and joined the company when it acquired his startup Avenue.
Sources: Jeff Barg, Clay
Significance: His executive position incentivizes framing Clay's growth figures, product stability, and engineering culture favorably to prospective customers and engineering hires.
Key sources
Jeff Barg: Head of AI at Clay, Co-founder of Avenue
Swyx: Co-host, Latent Space and AIE
YouTube: Latent Space: Podcast Channel
Who's in this
Clay
Avenue
Claude Code
OpenAI
Sculptor
Claygent
BullMQ
Y Combinator
Also mentioned
ChatGPT (First mentioned at 0:44)
Cursor (First mentioned at 18:14)
New York (First mentioned at 41:11)
Latent Space (First mentioned at 3:48)
ZoomInfo (First mentioned at 7:21)
iPad (First mentioned at 8:55)
Ramp (First mentioned at 9:38)
AngelList (First mentioned at 9:39)
DoorDash (First mentioned at 9:40)
Kareem (First mentioned at 9:53)
Varun (First mentioned at 9:54)
Gong (First mentioned at 14:43)
Zapier (First mentioned at 15:39)
Sonnet 3.5 (First mentioned at 22:03)
Bash (First mentioned at 25:04)
Python (First mentioned at 25:06)
Google (First mentioned at 26:21)
Opus (First mentioned at 29:35)
LinkedIn (First mentioned at 31:34)
Cognition (First mentioned at 35:36)
Sierra (First mentioned at 39:47)
Temporal (First mentioned at 42:29)
LangGraph (First mentioned at 42:39)
ClickHouse (First mentioned at 44:25)
Snowflake (First mentioned at 44:29)
Postgres (First mentioned at 44:37)
LangSmith (First mentioned at 46:08)
Codex (First mentioned at 48:47)
Salesforce (First mentioned at 50:58)
RocketReach (First mentioned at 7:22)
Uber (First mentioned at 9:03)
Amazon (First mentioned at 9:04)
Accel (First mentioned at 9:35)
Valon (First mentioned at 9:39)
Tesla (First mentioned at 35:05)
Apple (First mentioned at 36:22)
Dagster (First mentioned at 44:49)
Vercel AI SDK (First mentioned at 54:22)
Perplexity (First mentioned at 1:05:15)
This analysis was generated by skim (skim.plus), an AI-powered content analysis platform by Credible AI. Scores and classifications represent the platform's AI-generated assessment and should be considered alongside other sources.