---
title: "Research landscape"
description: "The research behind Greenware: Clay's developer surface, software-factory playbooks and practitioner patterns, with sources."
---

Compiled 2026-11-26 from web research, Clay's official repos and docs, and the ingested corpus in `knowledge/`. Items marked **[unverified]** came from snippets or vendor claims I could not confirm.

## 1. Clay's official developer surface (verified)

- **CLI.** `@clay-run/cli` v1.23.0 on npm (2026-11-23), or the native binary. Install it inside Claude Code with `/plugin marketplace add clay-run/agent-plugins` and `/plugin install clay@clay-plugins`. Launched 2026-07-09, generally available with the agent plugin on 2026-09-15.
  - Sources: [repo](https://github.com/clay-run/agent-plugins), [launch](https://community.clay.com/x/announcements/msg_AOMXLxnE9dgA/introducing-clays-api-and-cli-build-and-run-workfl), [University](https://university.clay.com/docs/clay-api-cli).
- **Output is built for agents.** Results go to stdout as JSON and errors to stderr as an envelope. Exit codes: 2 validation, 3 auth, 4 rate limit (with `retryAfter`), 5 network, 6 not found. There is no interactive output.
- **What it can build: Workflows.**
  - Build commands: `create/update/publish`, `nodes create/insert/update/test`, `triggers`, `graph`, `groups`, `test-data` (up to 50 real rows, run against the draft), `runs` (test/get/steps/rerun/bulk/export), `analysis`, `snapshots list/get/restore`, `versions`, `estimate-credits`, `diagram` (Mermaid), `alerts`, `code test` (a Python sandbox).
  - The full `--help` tree covers 287 commands: `knowledge/clay-official/cli-reference.md`.
- **What it reads and runs.** Tables (read-only), Functions and Routines (run only), Audiences (read and write), Signals, Searches, Sequences, Claygents, Schedules, Webhooks, Credits, Budgets, Approvals and Knowledge Hub (business context and skills).
- **What it cannot do.** It cannot create tables, columns or custom Functions; Clay says there are "no current plans". Workflows can't use a search as a source; go through Audiences instead. Workflows can't add rows to a table.
- **Gates built into Clay.**
  - Server-side `approval_required` holds, decided with `clay approvals approve/deny`, plus standing rules.
  - Credit budgets.
  - The official skill rules:
    - Test about 10 records before any run of more than 100.
    - Confirm before spending 10% or more of the balance.
    - A null estimate means the cost is unknown, not zero.
    - Verify on a real record before hand-off.
    - Get consent before writes outside Clay.
- **Public API.** `api.clay.com/public/v0` with the `clay-api-key` header. It runs routines on 1–100 items or in batches, runs searches and queries tables. Limit: 300 requests per minute per workspace. Webhooks fire when a routine finishes, but delivery is not guaranteed, so poll as a fallback.
- **MCP.** The hosted connector at `api.clay.com/v3/mcp` has 7 tools built for reps. Admins turn Functions on for MCP and set credit caps per rep. The plugin does **not** ship an MCP server.
- **Pricing** (since 2026-03-11): two meters, Actions and Data Credits.
  - Launch: $185/mo, 15k actions, 2.5k data credits.
  - Growth: $495/mo, 40k actions, 6k data credits.
  - Enterprise: custom.
  - 50k rows per table on Launch and Growth.
- **Clay's own direction.** Workflows is "deterministic by default". Clay abandoned an agent-only product codenamed "Terracotta" because it was uncontrollable and costly ([story of Workflows](https://www.clay.com/blog/the-story-of-clay-workflows)).
  - Sculpt 2026 (Oct 8) launched a global Clay Agent, Knowledge Hub, Account Agents and an Inbound SDR Agent.
  - Jeff Barg, Clay's head of AI, says almost half of agent work on Clay now happens in tools like Claude Code rather than in Clay's own agent ([Latent Space](https://www.youtube.com/watch?v=qjPcaZf_plo)).

## 2. GTM engineering: who to learn from

| Person | Why they matter | Where |
|---|---|---|
| **Alex Lindahl** | One of Clay's first GTM engineers, now Creator in Residence. Writes *The GTM Engineering Newsletter* (~9k subscribers). His "loop engineering" has 5 stages: trigger, context, action, evaluation, feedback. He has also written on harnesses. | [newsletter](https://newsletter.gtmengineering.ai) · LinkedIn `alexlindahl` |
| **Patrick Spychalski (The Kiln)** | Clay's first marketing contractor. Positions: offer beats personalization; CRM cleaning is Clay's most underrated use; Claude Code is fine for list enrichment but not for CRM writes or inbound; strip 30–50% of the complexity out of any workflow you see on LinkedIn. | [podcast](https://blog.thormeier.co/p/the-state-of-gtm-engineering-w-the) · [thekiln.com/learn](https://thekiln.com/learn) |
| **The Kiln** | Clay Elite Studio, $10k+/month, acquired by 2X in January 2026. Its AdRoll signal engine uses **5 shared Functions** with 10+ signals plugged in. | [case study](https://thekiln.com/case-studies/how-adroll-eliminated-a-3-day-signal-lag-with-a-scalable-signal-engine) |
| **Eric Nowoslawski** (Growth Engine X) | Runs about 250 live Clay tables across 52 clients. Uses Claude Code for TAM building and email finding, and Clay for the final mile. Released a 28-skill cold-email system for Claude Code. | [The Signal profile](https://thesignal.club/p/inside-eric-nowoslawskis-ai-powered-cold-outbound-machine) |
| **Michel Lieben / Alex Vacca** (ColdIQ) | Run a $7M ARR agency on Claude Code. About 15 outbound skills take a brief to a live campaign in under 30 minutes. Keep CLAUDE.md under 200 lines, plus a brain.md, ranked sources and 7 checkpointed steps. | [Lieben](https://x.com/MichLieben/article/2059990512103465438) · [Vacca](https://x.com/itsalexvacca/article/2105304149877563584) |
| **Jordan Crawford** (Blueprint) | Pain-Qualified Segments and Permissionless Value Props. Works 100% in Claude Code and Codex, with a dossier per deal in a shared repository. | [PQS](https://blueprintgtm.com/faq/what-is-a-pain-qualified-segment) |
| **Varun Anand / Kareem Amin** | Clay's co-founders. Their posts set the product direction. | LinkedIn `vaanand`, `kareemamin` |
| **Yash Tekriwal, Everett Berry** | Clay's first GTM engineer (now heads the GTME ecosystem), and Clay's former head of GTM engineering (now at Anthropic). | LinkedIn |
| **Josh Whitfield** | The most prolific LinkedIn poster on Clay Workflows in the corpus (18 posts on workflows). | LinkedIn `joshwhitfieldai` |
| **Cargo** | The closest published match to this idea, "a software factory for GTM": revenue logic in files, diffs, plan/apply/rollback and evals. | [post](https://getcargo.ai/blog/software-factory-for-go-to-market) |

**Newsletters ingested:** Alex Lindahl's GTM Engineering, *The GTM Engineer by Clay* (thegtme), GTME Download, *The Signal* (Brendan Short), *the gtm engineer* (Noah Adelstein), GTM Engineer School, Blueprint Edge and GTM Strategist.

**State of GTME 2026** (n=228) reports this adoption: Clay 83.8% (96.6% among agencies), Cursor 69.7%, Claude Code 62.7%, n8n 59.6% ([stateofgtme.com](https://stateofgtme.com/tools)).

**Agency pain points that the factory addresses** (from r/gtmengineering and practitioner posts):
- Copy-paste drift across dozens of near-duplicate client tables.
- 2–3 weeks of onboarding per client.
- Credit spend nobody can attribute to a client.
- Paying to enrich duplicates and leads that are already suppressed.
- "Nobody can tell what got billed or why a client list changed."
- People end up acting as the runtime.

## 3. Software factories: what to borrow

| Source | The idea we take |
|---|---|
| [StrongDM Software Factory](https://factory.strongdm.ai) ([Willison](https://simonwillison.net/2026/Feb/7/software-factory/)) | Specs plus **holdout scenarios stored where agents can't game them**; "satisfaction" scoring in place of pass/fail; a digital twin of external systems; the filesystem as memory. |
| [Dan Shapiro, five levels](https://www.danshapiro.com/blog/2026/01/the-five-levels-from-spicy-autocomplete-to-the-software-factory/) | The autonomy ladder, used in §8 of the concept doc. |
| [Anthropic: effective harnesses](https://anthropic.com/engineering/effective-harnesses-for-long-running-agents) and [harness design](https://www.anthropic.com/engineering/harness-design-long-running-apps) | An initializer plus a JSON feature list in which agents may only flip `passes`; a progress file; separate planner, generator and evaluator; a "sprint contract" agreed before building; re-test each harness assumption when a new model ships. |
| [OpenAI harness engineering](https://openai.com/index/harness-engineering/) and [Symphony](https://openai.com/index/open-source-codex-orchestration-symphony/) | Keep AGENTS.md as a map of about 100 lines; enforce rules mechanically; agents that "garbage-collect" drift; **Linear as the control plane** with one workspace per issue; a proof-of-work packet; tickets end in Human Review. |
| [Factory.ai Missions](https://factory.com/news/missions-architecture) | A **validation contract** written before any features; independent validators; milestones that loop until they pass. Validation took 37% of the time. |
| [Vercel software factory](https://vercel.com/docs/agent-resources/software-factory) and the [AI SDK factory](https://vercel.com/blog/building-a-software-factory-for-ai-sdk) | Four run outcomes: **success, flawed, blocked, manual**. `dryRun` shadow mode. Approval tied to the exact revision reviewed. "Needs clarification" counts as a valid outcome. |
| [Mastra software factory](https://mastra.ai/blog/software-factory) and [Mastra Factory](https://mastra.ai/factory) | Schema-validated handoffs; human approval of the *instructions* rather than each output; scorers, datasets and experiments for evals. Mastra's Custom Factory program now targets GTM. |
| [spec-kit](https://github.github.com/spec-kit/) and Kiro | Constitution → specify → plan → tasks → implement, with an `/analyze` step that checks the documents agree with each other. |
| Ralph loop, Amp handoff | A fresh context per stage, with state kept on disk. |
| [Gas City (Every)](https://every.to/context-window/inside-the-100-agent-software-factory) | Dark versus light factory: planning and review stay visible, and well-defined work moves into the background as trust builds. Different models catch different bugs. |

**Runtime verdict.** Start with Claude Code, files and Linear. Add **Mastra** when evals become the product, meaning holdout datasets and prompt experiments for each client. Add a durable runtime such as **Vercel Workflow** when plays have to run all the time: durable sleeps, Slack approvals that wait for days, hosted multi-client runs. Clay already runs the enrichment itself.

## 4. Claude Code primitives (from [code.claude.com docs](https://code.claude.com/docs/en/skills.md))

- **Skills** (`SKILL.md`, progressive disclosure, under 500 lines). Use `disable-model-invocation: true` for any skill with side effects, and `context: fork` to run it in a subagent.
- **Plugins** bundle skills, agents, hooks and `.mcp.json`. They are distributed through a marketplace. Clay's own plugin can be installed alongside.
- **Subagents** (`.claude/agents/*.md`). Give QA its own agent with read-only tools, and pick a model per role.
- **Hooks.** A `PreToolUse` hook on Bash can block a command with exit code 2. Hooks see tool calls but not Clay's HTTP cost, so cost guards go through a wrapper or through Clay's own budgets and approvals.
- **Headless.**
  - `claude -p --output-format json --json-schema …` and `--permission-prompts none`.
  - Avoid `--bare` when the guard runs as a hook, because `--bare` skips hooks.
  - The Agent SDK (`@anthropic-ai/claude-agent-sdk`) runs the factory as a service.
- **Multi-client.** One `clients/<slug>/` folder per client, `permissions.blockReadsOutsideWorkingDirectories`, and per-client Clay config through `CLAY_CONFIG_HOME` or `clay workspaces switch`.
- **Evals.** `claude plugin eval` with deterministic graders on workflow JSON.
