Zhidaily AI · Intelligence · Daily
Zhidaily
Issue 28 · November 27, 2026 · Fri
Today's stories
7 stories · 2 companies
Home / November 27, 2026 / How Clay Rebuilt Its GTM Agent as a Coding Agent
← Back
Guide Agents · Clay Score62

How Clay Rebuilt Its GTM Agent as a Coding Agent

In brief
Clay's Jeff Barg explains why the company scrapped its tool-loop agent for a coding agent on the Pi harness, and why most teams post-train far too early.
Latent Space Basil Chatha · RSS · latent.space
Nov 27 · 07:02 Read the original ↗
01Summary

Clay sells go-to-market infrastructure — data and agents for finding and qualifying sales prospects — and its AI head, Jeff Barg, inherited an agent built as a fixed loop of tools with a heavily tuned system prompt. That agent was good at adding columns to a table but bad at the actual job customers wanted, like booking ten qualified meetings, and the team's evals missed the gap because they only judged which tools were called, not what people really did with the product.

02Background

Clay sells go-to-market infrastructure — data and agents for finding and qualifying sales prospects — and its AI head, Jeff Barg, inherited an agent built as a fixed loop of tools with a heavily tuned system prompt. That agent was good at adding columns to a table but bad at the actual job customers wanted, like booking ten qualified meetings, and the team's evals missed the gap because they only judged which tools were called, not what people really did with the product.

03Solution

Barg's insight was that coding agents are already excellent at Bash and Python, so instead of hand-building narrow tools, Clay rewrote Sculptor as a coding agent on the Pi harness, running the Clay CLI inside a cloud sandbox. The other half was data: a new layer called Audiences resolves records across the CRM and Gong into one canonical view, so the agent can see customer and campaign context together. On cost, Barg argues most companies post-train too early — you need roughly $10M–$100M in inference spend before the savings matter, and you should aim to match frontier quality on your own tasks with a smaller model, not beat the frontier. He estimates scoring all 40 million companies in Clay's database against an ideal customer profile would cost about $1,500 with a classifier, versus the 10,000-company lists most customers qualify today, and puts a sane enrichment budget at $1–$10 per qualified lead. Lead qualification itself he considers close to solved; frontier models still earn their price for deep research and orchestration. Clay is also shipping an automatic model router because customers dislike choosing models, while keeping the manual selector for power users. The stack is deliberately plain — BullMQ, Postgres, ClickHouse, Snowflake, no Temporal or LangGraph — and the hard operational problem is fairness when one customer launches an agent per row across 50,000 companies.

04Takeaway

Barg's experience suggests builders should lean on general coding agents and fix the data layer before investing in custom tooling or post-training, and should wait for real inference volume before training their own models. One capability he still wants: agents that can read a long trace and correctly diagnose where another agent went wrong — today they don't, so much of the improvement work stays manual.