Skip to content
Greenware
Esc
↑↓navigate↵open⌘Jpreview
On this page

Research landscape

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.
  • 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).
    • 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).

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 · 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 · 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
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
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 · Vacca
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
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

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).

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 (Willison) 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 The autonomy ladder, used in §8 of the concept doc.
Anthropic: effective harnesses and harness design 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 and 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 A validation contract written before any features; independent validators; milestones that loop until they pass. Validation took 37% of the time.
Vercel software factory and the AI SDK factory 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 and Mastra 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 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) 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)

  • 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.

Was this page helpful?