Skip to content

Keep GTM context in one repo with a decisions file and write-blocking hooks

A go-to-market team keeps its calls, rules and scripts in one GitHub repo that Claude Code reads every session. A decisions file tells the agent what it may do alone and when to stop, and small scripts block risky CRM writes.

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

  • Sales-Agent Fleet Ops
  • advanced
  • RevOps
  • Sales leader
  • Founder
Category
Sales-Agent Fleet Ops
Difficulty
Advanced
Est. cost
GitHub and Claude Code plans plus model API usage for scheduled jobs; the source gives no total cost
Want this running on your team by next week? We'll set it up with your tools.

What problem does this solve?

Sales context is scattered across call recorders, the CRM, docs and old chat threads, so every AI session starts from zero and someone re-explains the company and uploads CSVs again. Rules that live in a forgotten file do not stop an agent from overspending or writing to the CRM.

How is the agent set up?

Ryan Gerstein of the outbound agency SeedLift describes the GitHub repository his team calls its GTM brain, which grew from a few dozen markdown files into tens of thousands, most of them JSON, Python and CSV rather than documents. A CLAUDE.md primer at the root loads in every Claude Code session and holds a few hundred lines of rules (what needs approval before touching an outside system, where files go, how spend is budgeted), and many rules carry a dated note on the incident behind them. The repo has four top folders: clients, company context, infrastructure code, and the agent's skills, commands and hooks. Every client folder uses one template with its own CLAUDE.md and folders for calls, campaigns, context, data, engagement, learnings and reports. A GitHub Actions workflow files each new call: it starts when a transcript arrives (with a weekday schedule as a backstop), runs a cheap check against Granola for notes not yet in the repo, and only then runs Claude Code with a fixed system prompt that classifies the call, extracts the content, creates ClickUp tasks, writes the files to a branch and posts a Slack notice, with failures sent to a separate alert channel. Each tool has one doc (auth, endpoints, known gotchas) that replaced most MCP servers, keys live in a git-ignored .env the agent is blocked from writing, and data stays in Salesforce or Snowflake. About twenty hooks check actions before they run; the Salesforce hook lets reads through and stops any write pattern such as sf data update or sf project deploy to ask for confirmation, naming the org and object. A decisions file (sections D1 to D10, each rule with source and date) holds thresholds such as the sending window, pausing any campaign at 3% bounces, treating the suppression list as absolute and setting a spend ceiling before every run, plus six stop conditions. Approvals sit in four lanes: do it, do it and tell me, ask first, and ask first with a dry run. In his words: "If the file is silent, stop and ask. Never infer a rule from a nearby one." Real work ships as pull requests reviewed by a model, and any CLAUDE.md change waits for a person. The prompt below is our starter version for drafting a first decisions file.

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 · 29 lines
# ROLE
You help {{TEAM_NAME}} write the first version of a decisions file for the AI agents that work
in our go-to-market repo. You draft rules for a person to approve. You never change systems.

# INPUTS
- {{CURRENT_RULES}}: rules we already follow (sending hours, bounce limits, suppression lists,
  spend limits, who approves what), pasted from wherever they live today.
- {{RECENT_INCIDENTS}}: short notes on things that went wrong with an agent or script.
- {{SYSTEMS}}: the outside systems agents can reach (CRM, sequencer, data providers, chat).

# TASK
1. Group the rules into numbered sections (D1, D2, ...) such as sending, campaigns, lists,
   spend and data. Give every rule its source and date, or [CHECK] if unknown.
2. For each incident, write the rule that would have prevented it and a one-line
   "why this rule exists" note.
3. Put every action an agent can take in {{SYSTEMS}} into one of four lanes: do it,
   do it and tell me after, ask me first, ask me first with a dry run.
   Anything that writes to or sends from an outside system starts in "ask me first".
4. List the stop conditions: a rule is missing, two rules conflict, the same step failed
   {{MAX_RETRIES}} times, or source data looks wrong.

# OUTPUT FORMAT
A markdown file: numbered sections with one rule per line, then the four approval lanes as
lists, then the stop conditions. End with open questions for the owner.

# GUARDRAILS
- Do not invent thresholds. Use {{PLACEHOLDERS}} where we have not agreed a number.
- Add the line: "If this file is silent, stop and ask."
- Never put API keys, passwords or customer data in the file.

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. Create a private repo and move in what you already know as markdown: customer profiles, messaging, campaign notes and what worked.
  2. Write a short CLAUDE.md primer at the root with approval, file placement and spend rules, and add a dated reason under any rule that came from a mistake.
  3. Give every client, segment or product line the same folder template (calls, campaigns, context, data, learnings, reports) so the agent always knows where to read and write.
  4. Route call transcripts in with a scheduled workflow: check the call tool for notes not yet filed, and only then run Claude Code with a fixed prompt that classifies the call, writes the files and creates tasks.
  5. Connect each tool with a key in a git-ignored .env and one doc per tool covering auth, endpoints and known gotchas.
  6. Add hooks for rules that must never be skipped, such as asking for confirmation before any CRM write and forcing email checks through one standard script.
  7. Start a decisions file with the numbers the team already agrees on, sort every outside action into four approval lanes, and move an action one lane toward autonomy only after weeks of being right.
  8. Ship real changes as pull requests, and require a person to approve any change to a CLAUDE.md file.

What results are reported?

According to Ryan Gerstein, the rules come from real incidents: a signals pipeline that went live with no spend ceiling spent $18.75 on its first run classifying 273 stories (7 worth pursuing) and hit the team's $150 monthly API limit, and hand-written scripts that skipped the standard email check bounced at 48% against 3.0% for the standard path. Before the cheap pre-check was added, call processing was the team's largest single model API cost. He gives no before and after measure for the repo as a whole.

What goes wrong

Where does this break?

  • A rule only works if it sits in a file that loads every session. The source had a spend rule written elsewhere that no session read, and a pipeline overspent anyway.
  • Data committed to the repo slows it down: a checkout that normally took about a minute took almost five, the transcript job was killed and a call sat unprocessed with no alert.
  • It sprawls. One overnight run proposed about 32 new files and only about 2 were new, so the primer now tells every session to search first and extend an existing file.
  • A hook that raises too many false alarms gets switched off, so write it to catch exact write commands, not everything.
  • The week-one plan for a company that is not an agency is the author's suggestion; he says he has not run that exact plan. (editor note)

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

Source and credit

x.com ›

Ryan Gerstein (@Ryan_Gerstein), SeedLift, X article "How to Build a GTM Brain" · x

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

Related.