---
title: Possible duplicates
description: Petawork People finds people in your list who look like the same person and puts them in a stack. You go through it one pair at a time and choose Merge, Not the same person or Skip. Nothing is merged until you press Merge.
section: cloud
order: 163
audience: [user, agent]
sources: ["services/nodejs-cloud/lib/people/duplicates.ts", "services/nodejs-cloud/lib/people/duplicates-model.ts", "services/nodejs-cloud/lib/people/duplicates-repoint.ts", "services/nodejs-cloud/lib/people/tools-duplicates.ts", "services/nodejs-cloud/lib/people/mcp-duplicates.ts", "services/nodejs-cloud/components/people/Duplicates.tsx", "services/nodejs-cloud/components/people/duplicate-actions.ts", "services/nodejs-cloud/app/(people)/people/duplicates", "services/nodejs-cloud/migrations/0398_people_duplicates.sql"]
features: [cloud.page-people, cloud.migrations]
---

After an import, a few captures and a calendar sync, the same person can end up in People twice: "Sarah Chen" from a
business card and "S. Chen" from an email thread. People looks for these on its own and lists them as **possible
duplicates**. You decide each one. Nothing needs to be set up first.

## Where to find it

When some of your people may be duplicates, the People list shows a link next to the count, such as
**12 possible duplicates**. It opens **People → Possible duplicates** (`/people/duplicates`). A person who is in a
possible pair also shows a notice at the top of their page, with **Review** to see only their pairs.

## The stack

You see one pair at a time, side by side: photo, name, role and company, emails, phones, other handles, location,
tags, how many interactions, notes and events each has, and when each was added. Above them, **Why they may be the
same** lists the reasons, and the matching values are highlighted on both sides.

One side is marked **Kept**: by default the record with more in it (filled fields, handles, tags, interactions,
events), or the older one if they hold the same. **Keep this one** on the other side, or `x`, swaps them.

**After the merge** shows what the person will look like: where both sides have a value (name, role, company,
location, photo), the kept person's value stays and the other is dropped, and the page lists each such field. Empty
fields are filled from the other person. Tags, handles, notes, interactions, events, relationships and files are
joined. A merge can't be undone, so the button says exactly what it does: **Merge Sarah Chen into S. Chen**.

| Button | Key | What happens |
|---|---|---|
| **Merge … into …** | `m` | the other person is merged into the kept one and leaves your list |
| **Not the same person** | `n` | the pair leaves the stack for good. No later scan suggests it again, and neither does the duplicate hint when you add someone |
| **Skip** | `s` | the pair moves to the end of the stack and comes back after the others |

The progress line says where you are ("3 of 12"). When three records are the same person, they come as pairs: after
you merge the first two, the third one's pair moves to the person you kept and comes up next.

## What counts as a possible duplicate

Only your own people are compared, never a colleague's (private or shared), because you can only merge two people
that are yours. No AI model is used: the rules are fixed.

| Strength | When |
|---|---|
| Strong match | the same email; the same phone number in any format (`+65 9123 4567` and `9123 4567`), also as WhatsApp or a Telegram number; the same Telegram, LinkedIn or X handle |
| Likely match | the same name (ignoring case, accents, punctuation, titles such as Dr or Mdm, and word order: "Tan Wei Ming" is "Wei Ming Tan") and the same company or the same work email domain |
| Possible match | a near name (a typo, a nickname such as Bill and William, or an initial: "J. Smith" and "John Smith") and something else in common: the company, a work email domain, an event both are tagged with, or a person both are linked to. Or the same name of two or more words, with nothing else in common |

Free email domains (Gmail, Outlook, Yahoo and the like) never count as a shared domain. A name of one word with
nothing else in common is never a candidate. A value that more than a handful of your people share (an office
switchboard, `info@`) is ignored, since it doesn't point at one person. Websites are not compared, because colleagues
often share their company's site.

## When it looks

Opening the stack, or the People list, checks the people added or changed since the last look, so new imports and
captures show up on their own. **Scan again** looks through all of your people; a very large list may take a few
rounds, and the page keeps going until it is done. A pair whose reasons go away (you changed an email) leaves the
stack at the next look.

## For agents

Four tools in the workspace MCP server ([People over MCP](/docs/cloud/people-mcp.md)):

| Tool | What it does |
|---|---|
| `people_duplicate_list` | the stack: each candidate with its reasons, both people and the side kept by default; `person` for one person's pairs |
| `people_duplicate_scan` | look through all of the member's people again; call again while `done` is false |
| `people_duplicate_merge` | merge one `candidate`, keeping the person `keep` (its `a` or `b` id) |
| `people_duplicate_dismiss` | not the same person, for good |

An agent shows the member each pair and the reasons and asks before it merges. There is no "merge all": each merge
names one candidate. Merging needs `people:write`. REST twins: `GET /api/v1/people/duplicates`,
`POST /api/v1/people/duplicates/scan`, `POST /api/v1/people/duplicates/{candidate}/merge` and
`POST /api/v1/people/duplicates/{candidate}/dismiss`.
