How Clay Builds GTM Agents for Claude Code and Codex

Clay's GTM agents working with outside coding agents like Claude Code

Clay wants customers to get similar results from its GTM agents whether they use Clay’s built-in agent or connect Claude Code. Jeff Barg, Clay’s head of AI, says usage is already split close to 50/50 between Clay’s agent and outside coding agents, a ratio closer than he expected.

Clay is building go-to-market infrastructure that any agent can use.

From a five-person startup to a $7.1 billion company

Barg arrived through Clay’s acquisition of Avenue, an ops alerting startup he cofounded. Clay had about 50 staff then, Avenue five. AI mattered to the product, yet nobody on staff worked on it. The business has since grown roughly tenfold to around 600 employees. In September, Clay raised $115 million at a $7.1 billion valuation.

GTM agents image 1
Image: Latent Space

Why Clay rebuilt its first agent

One engineer was doing all of Clay’s agent work when Barg became head of AI, and that engineer soon left to found a company. Claude Code changed what Barg wanted to build.

His first product was Sculptor, released in September 2025 on Sonnet 3.5-era models. It cycled through a fixed toolset under a heavily tuned system prompt. Adding a column was easy for it; booking ten qualified meetings wasn’t. Clay’s evals barely noticed, because an LLM only graded which tools were called and ignored real usage such as table analysis or enterprise tables with millions of rows.

Three conclusions followed: coding agents excel at Bash and Python, Sculptor’s narrow tools couldn’t be combined into much, and the agent had no view of CRM data or campaign results. So Clay rebuilt it as a coding agent on the Pi framework that runs the Clay CLI inside a cloud sandbox. A data layer named Audiences links records from the CRM and Gong into one view.

Scoring 40 million companies for $1,500

Barg did the math on checking all 40 million companies in Clay’s database against a customer’s ideal profile using a classifier like TypeSafe’s Jev. Each LinkedIn page runs about 1,000 tokens, plus roughly 500 for the profile. The bill: around $1,500. Today most customers screen a list of maybe 10,000.

Jev isn’t in production at Clay yet. Barg sees $1 to $10 per qualified lead, and $10 to $100 per booked call, as a healthy enrichment budget. In his view lead qualification is nearly a solved problem: models have topped out on Clay’s evals for about a year. Where frontier models still pay off is deep prospecting research and orchestration, where a great play can beat an average one by 10 to 100 times.

When to train your own model

Clay spent its first eighteen months of AI work discussing custom models, and only recently did the idea look workable. Costs can fall in two steps: first switch to an open-weight model, which is already much cheaper than Opus, then post-train a smaller model on your own tools and queries until it matches Opus on your tasks.

Companies tend to stumble in two ways, he says. Some try to outdo frontier models, a tall order even within one domain. Others begin before their inference bill is big enough for savings to count, which he places somewhere between $10 million and $100 million.

A hand-built stack and an auto model router

Users complain when they see the model selector, since they can’t recheck evals every time a model ships. Clay will soon launch an automatic router that chooses a model for each task. Finding Apple’s CEO is a different job from finding the head of an obscure local company. The selector stays for agency owners and power users.

Most of the agent stack is homegrown: BullMQ keeps agent jobs running, Postgres and ClickHouse hold product data, Snowflake handles analytics, and there’s no Temporal or LangGraph. Barg isn’t sure BullMQ will survive another tenfold growth in usage, but it has held so far.

Growth in usage caused the real trouble. Customers run one agent per row, so starting a 50,000-company table sends inference demand shooting up. Clay brought in LangSmith to see what was going on and built request throttling along with pause and resume for provider outages or rate limiting. Fair sharing is the tougher part, since a small team’s ten-person workflow must still run while an enterprise enriches a million rows.

Plans that fall apart

As a launch partner for ChatGPT apps, Clay assigned roughly a quarter of its engineers to the integration for a month. OpenAI then postponed the launch indefinitely with two days to go. Clay carried on, betting OpenAI would change its mind, and it did three or four days later.

Workflows met a similar reaction. Customers first wanted their spreadsheet back. Now agency owners like Workflows, and most are built through the CLI or the agent.

What Clay still can’t automate

Barg most wants a model that can read a lengthy agent trace and pinpoint the failure. Current models point at the slowest step even when the error sits elsewhere, so Clay still hand-crafts many of its agent skills. They also keep rerunning an identical CLI command with identical inputs. Yet the agent answered his question about how many YC companies use Clay in roughly sixty seconds.

Next, Clay plans to ship a sandboxed agent free to use any of its tools, so GTM agents built anywhere can plug in.

Source: Latent Space

Written by

Saksham Bhargava

Saksham Bhargava runs Alteroid and has been writing about consumer technology for over five years, covering iPhone, Android, Windows, AI tools and gaming. With an MCA and six years of hands-on web development experience, he tests the features he writes about on his own devices and focuses on clear, practical guides that solve real problems. Away from the screen, he enjoys travelling to places most tourists skip.