Agents/Retention/retention-audit

See which customers keep coming back, and why

retention-audit builds cohort retention curves from your analytics or a CSV and checks whether each one flattens or leaks to zero. It splits the curves by segment, then compares the people who stay with the people who leave. One page shows who they are, what they said and what to ask next.

Retention agent/Claude Code and Claude.ai/Reads your analytics or a CSV

A horseshoe magnet on a stand holding a ring of small figures with teal field lines08 Retention
One example runa health app for consumers · invented test dataSee the full run
1,787people in three monthly sign-up cohorts
21%still acting each week at week 15, in the segment that stays
8%for everyone else, in the same week
489people compared: 165 who stay against 324 who leave

Every figure comes from the run’s files. The app has no users yet, so the agent invented the activity to rehearse the read.

Example

See a full run for a startup that sells to companies and one that sells to consumers

Each run shows the brief it started from, the cohorts it read, the curve per segment, who stays against who leaves, and the questions you can open.

retention-audit · example runs
You type:Use retention-audit.
Pick a run

Ruleyard and Kelvane are invented startups with no users yet. Every account, person, curve and quote in these runs is invented test data, generated to rehearse the read.

Steps

Name the action that means value and share the data. Claude draws the rest

01Claude

Agrees the value action and the window

The action that means a customer got value. A login does not count. The window follows how often the value happens: weekly for a weekly report, 4-week blocks for something done once a month.

Claude

Active means value action, counted per week. Logging in won’t count. Agreed?

You

Agreed.

02You

Connect your analytics or export two tables

With PostHog, Mixpanel, Amplitude or GA4 connected, the agent pulls the data itself. Without one, export the two tables it names and say “continue the retention curve”.

users.csv · one row per user
user idsign-up datesegment
actions.csv · one row per value action
user iddate
03Claude

Draws the curve, overall and per segment

Weeks since sign-up across, the share still doing the value action up, with the moments that cut it marked. A curve that flattens above zero is the signal. One that keeps falling to zero is a leaky bucket.

Share doing the value action
%0
trial ends
week 0week n
Segment 1 · flattensSegment 2 · leaks to zeroAll users (the two together)
04Claude

Splits the people who stay from the people who leave

Stayers did the value action in most late windows. Leavers did it early, then stopped. Every trait the data holds is shown as stayers against leavers, and the biggest gaps say who the product is for.

Stay against leave
StayLeave
Trait 1%%
Trait 2%%
05Claude

Puts it on one page with what to ask next

Who they are, what the stayers said in the PMF survey, why the leavers cancelled, and three questions for interviews: one per group that matters.

Dashboard
Who they are

the traits that separate stayers from leavers

What the stayers say

answers from pmf-survey, counted

Why the leavers left

cancel reasons from why-people-churn, labelled

Ask next

stayersleavers who match your customerthe nearest segment

Inputs

Start from your project brief and a record of what people do in your product

Your brief names the action that means a customer got value. The agent counts who keeps doing it, week after week.

1 · Your project brief

Four lines about your product

Product

What it is, in one sentence, and what it costs

Customers

The kinds that use it: the lines to split by

Value

What a customer does that means they got value

Users

How many are active, and since when

A login does not count as value.

2 · What people did

Sign-ups and value actions, per person

Pulled from your analyticsAutomated
  1. Sign-ups, grouped into cohorts
  2. The value action, per week or month
  3. The segment of each person
Tools it reads

PostHogMixpanelAmplitudeGA4

No analytics tool connected? Export one table of users and one of value actions, and attach them.

3 · What people said

Survey answers and cancel reasons, if you have them

pmf-survey · the answers of stayers and leavers
why-people-churn · the cancel reasons of leavers

Joined to the two groups, so the page shows why as well as who.

Also read, if it exists: your assumption board. The agent updates it with what the curves show.

No project brief yet? The agent asks five questions in one message
  1. What is the product, in one sentence, and what does it cost?
  2. Which kinds of customer use it? Type, size or use case.
  3. What does a customer do that means they got value? A login doesn’t count.
  4. How many active users or customers, and since when?
  5. What data do you have: an analytics tool, Stripe, survey answers, a spreadsheet export?

Short answers are fine. The agent marks them HYPOTHESIS and gives them back as a short project brief for you to save.

Connectors

Connect your analytics to read retention straight from the source

PostHog, Mixpanel and Amplitude each have a free tier and connect to Claude. With one connected, the agent asks for retention by cohort itself and splits it by segment.

Claude on its ownYour exports
Cohort tablecomputed with code from your CSVSegmentsfrom the columns you export
Claude with a connectorYour analytics
Retention by cohortweekly or in 4-week blocksThe same curves by segmenttype, size, planNewer cohortsagainst older ones

PostHog, Mixpanel or Amplitude

Optional

Answers the agent’s questions about retention by sign-up cohort, where active means your value action. GA4 works the same way.

PlanFree tier
Readssign-ups and value actions

Outputs

Get the curve, who stays, who leaves and why, on one page

The retention curve, overall and per segment

With the moments that cut it marked, such as the trial ending. The table beside it uses the same segments and the same points.

Who stays and who leaves

Every trait the data holds, stayers against leavers. The biggest gaps describe who the product is for. Traits with no gap are named too.

What they said, and what to ask next

The survey answers of both groups and the cancel reasons of the leavers, counted, plus three questions for interviews.

The cost of keeping each segment

What one customer costs to serve per month against what they pay. Fit that loses money on every active user is not fit yet.

project brief · Evidencewritten by retention-audit

Retention: [segment] [share] active per [window]; flattens from [window], or leaks to zero.

Cost: [segment] costs [amount] a month to serve and pays [price].

Level: L1 to L4, and what to optimise at it.

The customer section is updated where the stayers say so, and the assumption board with the same evidence.

In Claude.ai the agent cannot write files, so it gives you the changed sections as text. Save them in your Project.

Best practice

Count the action that means value, draw the curve and split it every time

Count the action that means value

Creating a report counts. Logins happen whatever the product does, so they overstate retention.

Match the window to how often the value happens

Weekly for a weekly habit, 4-week blocks for a monthly one. A cohort younger than three windows cannot show a flat line yet.

Always draw the curve

A table of segment shares is no substitute. The chart and the table show the same segments, measured the same way.

Split every curve by segment

A blended curve can hide one segment that stays and another that leaves. Use segments that add up to all users.

Read a flat line above zero as the signal

A curve that keeps falling to zero is a leaky bucket, whatever the sign-ups say. Clubhouse had 9.6M downloads in February 2021 and 922k in April.

Check what each segment costs to serve

AI products pay for every use. With no numbers to hand, divide last month’s model and hosting invoices by that month’s active customers.

Next

Take who stays and who leaves into churn interviews and the decision to pivot

Runs before
project-brief

Your product, customer and problem, written once.

pmf-survey

The survey answers it joins to stayers and leavers.

retention-audit

Whether people keep coming back, and who they are.

Uses its results
why-people-churn

Next in line: asks the leavers why, in your cancel flow.

pivot-or-persevere

Sets the curves against what your plan still assumes.

weekly-product-bets

Starts from the biggest drop and turns it into this week’s bets.

Questions

What founders ask about retention-audit

Which tools can it read?

PostHog, Mixpanel, Amplitude or GA4 through a connector. Without one, a CSV with one row per user (user id, sign-up date, segment) and one row per value action (user id, date). Your analytics tool exports it, or whoever built the product writes one database query.

What counts as active?

The action that means a customer got value, such as creating a report. You agree it with the agent before anything is computed. Logging in does not count.

When does a curve count as flat?

When the share still active stays within a few points for three windows or more. Cohorts younger than that cannot show it yet, and the agent says so instead of guessing.

Why compare the people who stay with the people who leave?

The curve shows how many stay. The comparison shows who: the traits with the biggest gap between the two groups describe who the product is for. Joined to the survey answers and cancel reasons, it also shows why.

Can it tell me what a customer costs to keep?

Yes. For each segment it works out what one customer costs to serve per month (model and infrastructure) against what they pay. With no numbers to hand, it asks for last month’s invoices and the number of active customers that month.

Where does the result go?

Into the Evidence section of your project brief: the retention per segment, the cost and margin per segment, and your level of fit. The other agents read it from there.

Start

Type one line in Claude to start retention-audit

Use retention-audit.
Install the agents

Free, MIT licence/No sign-up/Reads your analytics or a CSV