Skip to content

Update your cold email playbook from results, with an evidence bar

An open-source loop reads your cold email results without touching campaigns, works out which kinds of emails earn positive replies, and proposes playbook changes for a person to accept or reject.

Curated by Andrew Donato, Editor. Reviewed .

Get one setup like this every Thursday, by email.

Written for sales leaders running leaner teams.

Free. One email a week. Unsubscribe anytime.

Paste this into ChatGPT, Claude or your agent tool. See the prompt

  • Prospecting / Outbound
  • advanced
  • SDR manager
  • RevOps
  • Founder
Category
Prospecting / Outbound
Difficulty
Advanced
Est. cost
Free repo (MIT); you pay for your sequencer plan and Anthropic API usage for labeling and drafting edits
Want this running on your team by next week? We'll set it up with your tools.

What problem does this solve?

Outbound teams write a playbook of copy rules once and rarely update it from what actually earned replies. When someone does look, they often crown a winner from a handful of replies and change the playbook on noise.

How is the agent set up?

Uday Kang, founder of the outbound agency MarTechs, published GTM Flywheel, an MIT-licensed repo of 28 Claude Code skills (copy frameworks, ICP scoring, signal scoring, campaign analytics, transcript mining) plus a learning loop that rewrites those skills from campaign results. The loop pulls sends, replies and positive replies per email variant from Smartlead by default (adapters also exist for Instantly, lemlist and HeyReach, or a CSV) into a local SQLite file, with lead emails hashed so only the hash and the company domain are stored. A small Claude Haiku step labels every unique email with the copy archetype, subject formula, opener and call to action defined in the skills, cached so reruns cost nothing. A plain scoring script then ranks each label and only names a winner after at least 200 sends and 10 replies, and only when it is at least 90% likely to beat the runner-up; otherwise the report says no winner yet. A second learner checks which dated buying signals (funding, hiring, job changes) actually lift positive replies against the baseline and proposes raising, lowering or holding each weight. Finally it creates a git branch, has Claude draft cited edits to an allowlisted set of skill files, reverts anything outside that list and opens a pull request. Signal weights, campaign tags and threshold tables stay human-owned; the loop can only propose. The HTTP client allows only specific read endpoints per tool and refuses anything else before a request leaves the machine, and a local Smartlead mock lets you run the whole loop before connecting a real account. In his post announcing it, Kang writes that the loop "can't send a single email or touch a campaign, and that's enforced in code, not by promise." The prompt below is our starter version of the review step.

Want this built for your team? Let's talk.

What prompt does it use?

Starter prompt by The GTM Agent Weekly, written from the setup described on this page. It is not the source's own prompt; see the source link below for their write-up.

Starter prompt · 27 lines
# ROLE
You review one cycle of cold email results for {{COMPANY}} and propose changes to the outbound playbook. You never edit campaigns or send anything. A person decides whether each change is accepted.

# INPUTS
- {{RESULTS_TABLE}}: one row per email variant with sends, replies and positive replies, plus its labels (copy archetype, subject style, opener, call to action, word count bucket, persona, segment).
- {{PLAYBOOK}}: the current copy rules and signal weights, with the reason each rule exists.
- {{MIN_SENDS}} and {{MIN_REPLIES}}: the minimum sample before any label can be ranked.
- {{CONFIDENCE_BAR}}: how sure you must be that one option beats the next before calling a winner.
- {{SIGNAL_RESULTS}} (optional): positive reply rate by buying signal compared with accounts that had no signal.

# TASK
1. Drop every label below {{MIN_SENDS}} sends or {{MIN_REPLIES}} replies and list them as "not enough data".
2. For each remaining group, rank options by positive reply rate, not total reply rate, and say whether the top option clears {{CONFIDENCE_BAR}} over the second.
3. Only where a winner clears the bar, draft a specific edit to {{PLAYBOOK}}: the old rule, the new rule and the numbers behind it.
4. For signals, mark each as raise, lower, hold or not enough data, with the numbers.
5. Note anything that could make a result misleading: one campaign or segment driving most of the sends, labels that changed after the fact, or very different lists being compared.

# OUTPUT FORMAT
- "Proposed changes": numbered edits, each with old rule, new rule and evidence.
- "No winner yet": groups where the sample is too small or the gap is not clear.
- "Signal weights": one line per signal with the verdict.
- "Caveats": short bullets.

# GUARDRAILS
- Never change thresholds, weights or campaign tags yourself; only propose.
- "No winner yet" means the sample is too small, not that nothing works. Say so plainly.
- Use only numbers in the inputs. Do not estimate missing counts.

Replace every {{PLACEHOLDER}} before running. Works with any capable LLM and runner.

Get 5 setups like this every week, free.

Real agent setups with prompts, sources and failure modes, in one short weekly email.

Free. One email a week. Unsubscribe anytime.

What tools does it use?

How do you set it up?

  1. Clone the repo and start Claude Code in it; the skills work on their own with no keys.
  2. For the loop, add a Smartlead API key (or another supported sequencer, or a CSV export) and first run it against the bundled local mock, then a dry run, then one real campaign.
  3. Pull sends, replies and positive replies per email variant into the local database, with lead emails hashed.
  4. Label each unique email with the copy taxonomy from the skills (archetype, subject, opener, call to action, length).
  5. Rank each label and only name a winner after the minimum sample and confidence bar; optionally load dated buying signals and measure which ones lift positive replies.
  6. Let the propose step draft cited edits to the allowed skill files on a new branch and open a pull request, then merge or reject it yourself.

What results are reported?

No results are claimed for the learning loop; it is a newly published open-source tool. In a separate post about the same skills the author reports recovered pipeline from lost accounts without explaining how the figure was worked out. A lighter version of the same loop appears in Kenny Damian's Nov 26 X article How to Become a Claude-Pilled Marketer: Claude Code pulls campaigns, full sequences and analytics from the Instantly API, groups the top 10 to 20 sequences by reply rate into 3 to 7 named frameworks, then drafts the next round with each variant testing one variable. He reports that for one client with over 300,000 emails sent, pain-point openers and certain calls to action were behind most booked meetings, with no method shown.

What goes wrong

Where does this break?

  • None of the supported sequencers offer read-only API keys, so the allowlist in the code is the only thing stopping a write; review it before adding endpoints.
  • The sequencer field mappings were built from API docs without a live call, and the author lists the unverified ones; check them on your first real pull.
  • Smartlead's positive label follows the current lead category, so a reply re-tagged later changes past results, and it has no meetings counter.
  • lemlist and HeyReach only expose campaign-level numbers, so they add nothing to the per-lead signal learner.
  • At the 200 send and 10 reply minimum, low-volume teams may wait weeks before any winner appears, and the report will keep saying no winner yet. (editor note)
  • Positive reply rates from different lists or segments are not comparable; tag campaigns by persona and segment before trusting a ranking. (editor note)

This is where most teams get stuck. Want us to handle the setup?

Source and credit

github.com ›

Uday Kang (@UdayKang7), GTM Flywheel (open source, announced on X) · x

Source dated 2026-10-26 · last reviewed 2026-11-27. Summarized in our own words; see the source for details.

Related.

Build a ranked buyer list from people active on open-source repos

For teams selling to engineers, an open-source tool finds people who starred, forked or contributed to relevant code projects, filters out noise, ranks them with a reason, and finds work emails under a spending cap.

Works with GitHubSupabaseSmartlead

  • Prospecting / Outbound
  • advanced

Build outbound in the right order: domains first, people last

An outbound build plan that buys sending domains on day one, scores companies while they warm up, tests the setup on five known accounts, and only pulls contacts at the end. The agent drafts and loads campaigns, and a person presses launch.

Works with InstantlylemlistClay

  • Prospecting / Outbound
  • advanced