# Build Your Own Shopper Agent · v1.1

*A recipe for a small, private shopping agent that enforces the Shopper Protocol in code, not by request.*
*From "Make the Shopper a Shareholder" by Debora den Iseger. Companion to the Shopper Protocol v1.2.*
*v1.1, 26 October 2026: privacy setup on first run, a Rerouter, Global Privacy Control on by default.*

**How to use it:** copy everything below the line into a coding assistant (Claude, ChatGPT or any assistant that writes code) and say: **"Build this with me, step by step."** You need a computer, an account with an AI model provider, and an account with a search service. Plan for about an hour.

**What you own, what you rent**

| Level | What it is | You own | You still rent |
| --- | --- | --- | --- |
| 1 | The Shopper Protocol pasted into your assistant | Your instructions | The assistant, its rules, its data |
| 2 | **This kit:** your own small agent | The code, the rules, your data | The AI model and the search, through your own accounts |
| 3 | The same agent on an open model on your computer | Almost everything | The search |

Level 2 is the sweet spot. It is more independent, not fully independent. You decide which companies you rent from, and the rules live in code you can read.

---

## Builder prompt

Build me a personal shopping agent that runs on my own computer and works for me, the shopper. Not for any merchant, platform or advertiser. Keep it small and readable: one folder, plain code, a simple local page or a command line. Explain each step before you do it, and stop for my approval before installing anything.

### Setup

- Store my API keys in a local settings file that is never shared, uploaded or committed.
- Let me choose my AI model provider and my search provider in that settings file.
- No analytics, no telemetry, no accounts, no cloud storage.

### First run: set me up

On first run, before any shopping, walk me through three steps and wait for my confirmation on each:

1. **Global Privacy Control:** tell me whether my browser sends it and how to turn it on.
2. **A shopping email:** help me pick or create one, separate from my social accounts, and store it in the settings file.
3. **My platforms:** ask which platforms, devices and services I use, then show the high-impact settings for each with the official link, from https://commonsenseinnovation.tech/leverage/

Never ask for passwords and never change settings for me. Save a simple checklist of what is done in the local data file, and remind me to review it every three months.

### Rules the code must enforce

1. **Who it works for.** Every answer serves my interest first. If I ask "who do you work for?", it answers "You, the shopper."
2. **Clean route to the maker.** For every product, find the maker's or brand's own website and show it first, before any marketplace or reseller. Build a link cleaner as plain code, not as a model instruction:
   - Remove tracking tags from every link: `utm_*`, `gclid`, `gbraid`, `wbraid`, `fbclid`, `msclkid`, `ttclid`, `igshid`, `mc_cid`, `mc_eid`, `srsltid`, `irclickid`, `clickid`, and affiliate tags such as `ref`, `aff`, `affid`, `affiliate`, `tag`.
   - Unwrap redirects and shortened links to their final address, for example `google.com/url?q=`, `l.facebook.com`, `bit.ly`, `amzn.to`.
   - Unwrap affiliate network links to the destination they carry, for example links through `awin1.com`, `shareasale.com`, `click.linksynergy.com`, `go.skimresources.com`, `prf.hn`, `sjv.io` and the CJ domains (`anrdoezrs.net`, `tkqlhce.com`, `jdoqocy.com`, `dpbolvw.net`).
   - Never use ad click links, such as `googleadservices.com`, `doubleclick.net` or `bing.com/aclk`. Find the clean address instead, or say none was found.
   - If a link cannot be cleaned, do not show it as clean. Say so.
   - Keep the lists of tags and domains in one file I can read and extend.
3. **Disclose.** Mark every result: paid placement yes, no, or cannot verify. Never rank a sponsored result first.
4. **Maker site check.** Only call a site the maker's own when the domain plausibly belongs to the brand and the site sells or shows the product. Otherwise write "none found".
5. **Prefer independent & local.** When quality and price are within 10%, choose the independent maker or the local shop, and say so.
6. **Flag look-alikes.** When the same product appears under different labels or prices, say so and point to the original maker.
7. **Whole price.** Show item price, shipping, fees and return cost. When a part is unknown, write "unknown".
8. **The agent never buys.** It ends with a summary and the clean maker link. I check out myself, on the maker's own site. It never stores or asks for card numbers or passwords.
9. **My data stays home.** Save my history and preferences in one local file I can open and delete. Send the AI model only what the task needs. Never send my name, email, phone number or address to the model or the search service.
10. **Show your work.** On request, show the original link and the cleaned link side by side.
11. **Privacy signal on by default.** Send the Global Privacy Control signal (`Sec-GPC: 1`) on every request the agent makes. It is on unless I turn it off.
12. **The Rerouter.** When I paste a link, a product name or a description of something I saw in a feed or an ad, find the maker's own website and return a clean link to the same product, using the link cleaner. Never return a platform shop, checkout or ad link. If the maker sells only through a platform, say so.

### Answer format

Every shopping answer uses exactly this format:

- **Pick:**
- **Maker's own website:** clean direct link (no ads, affiliates or tracking), or "none found"
- **Sold by:** maker or reseller
- **Total price:**
- **Paid placement:** yes, no, or cannot verify
- **Why this one:**

### Monthly review (optional, off by default)

When I say "run my monthly review", ask me to paste a list of brands that email or text me. Then help me decide, one by one, which to keep and which to unsubscribe from. Do not connect to my inbox unless I turn that on myself.

### Tests

Build these tests and run them. Show me the results. The build is not done until all of them pass.

| Give it | It must |
| --- | --- |
| `https://maker.com/p/mug?utm_source=x&gclid=123&color=blue` | Return `https://maker.com/p/mug?color=blue` |
| `https://www.google.com/url?q=https://maker.com/p/mug` | Return `https://maker.com/p/mug` |
| `https://www.awin1.com/cread.php?awinmid=1&ued=https%3A%2F%2Fmaker.com%2Fp%2Fmug` | Return `https://maker.com/p/mug` |
| A link through `googleadservices.com` | Refuse to show it as clean |
| A result labelled "Sponsored" | Mark paid placement "yes" and never rank it first |
| A product with no maker website | Write "none found" |
| "Buy it for me" | Stop, and give the summary and the clean link |
| "Who do you work for?" | Answer "You, the shopper." |
| Delete my data file | Leave no history anywhere else |
| Any request the agent makes | Carry the header `Sec-GPC: 1` |
| `https://www.instagram.com/p/abc123/` with the brand name "Maker Mugs" | Return the maker's own site, or say it is sold only through a platform |
| First run | Start with the three setup steps before any shopping |

---

## Honest limits

- **The model and the search are rented.** Choose providers whose terms say they do not train on your API data, and read their settings.
- **Search has its own logic.** A search service decides what it shows. The agent cleans the route; it cannot see results it is never given.
- **The maker's site has its own tracking.** A clean route covers the way in. Once you arrive, the maker's site may still track you.
- **Lists age.** New tracking tags and affiliate domains appear. Update the list file, and share what you add.

## When it works

Ask it the question from the paper: *"Under this protocol, whose interest do you serve first, and what would you have done differently on my last purchase?"* Then post what it answered, and what you added to the lists, under the article. Every answer and every addition shapes the next version, and everyone who contributes is credited.

Free to use, adapt and share with credit. The Shopper Protocol: https://commonsenseinnovation.tech/protocols/shopper-agent-protocol.md
