Agent traces
How to sell your Claude Code, Cursor and Codex sessions
A practical walkthrough for contributing coding-agent session history for AI training, from finding the files to scrubbing, reviewing, exporting and uploading.

If you use a coding agent every day, your machine is quietly building a record of how software actually gets written: what you asked for, what the agent tried, which commands it ran, what failed and what finally worked. AI labs want exactly that kind of record, and a small market has formed to license it.
This guide walks through the whole process of selling those sessions, step by step, using our free dataoffer tool as the worked example. The same steps apply whatever route you take: find the history, decide what's yours to share, scrub it, review it, and only then send it anywhere.
What you're actually selling
A "session" or "trace" is the full conversation between you and a coding agent, including the parts you never see in the chat window. Depending on the tool, a trace can contain:
- your prompts and the agent's replies;
- tool calls, such as reading a file, running a shell command or editing code, with their inputs and outputs;
- error messages, test output and stack traces;
- the model name and timestamps;
- file paths, repository names and sometimes the contents of files the agent opened.
That last point is why this needs care. A trace is not just chat. It is a log of everything the agent touched, which can include API keys it read from a config file, a colleague's email in a commit message, or a client's name in a folder path.
Step 1: Find out which tools you've used
Most people have history from more than one agent. Claude Code keeps sessions as JSONL files under ~/.claude/projects. Codex CLI keeps them under ~/.codex/sessions. Cursor stores chat history inside SQLite databases named state.vscdb in its user data folder. Extensions such as Cline, Roo Code and Kilo Code keep a folder per task inside VS Code's global storage. Our guide to where coding agents store session history lists the locations for sixteen tools.
With dataoffer, you don't have to hunt for these yourself:
curl -fsSL https://getdataoffer.com/traces/install | bash
dataoffer status
status lists each supported tool it found on your machine and how many files each one has. It doesn't read the contents yet.
Step 2: Decide what is yours to share
Before scrubbing anything, sort your projects into three piles.
- Clearly yours. Side projects, open-source work you own, personal tools, learning exercises.
- Clearly not yours. Work you did as an employee, or for a client under contract. In most cases your employer or client owns that code, and often the conversation about it. Leave it out.
- Unclear. Freelance work with no contract, shared repositories, projects with co-founders. When in doubt, leave it out or ask the other party.
The tool helps by asking about every tool and every project separately, and nothing is included by default. But the decision is yours, and it matters more than any scrubber. Read is it legal to sell your AI chat history? for the issues to think through.
Step 3: Preview with no network
dataoffer preview
Preview scans the history you approve, runs the full scrubber, and shows counts: how many traces, how many redactions of each kind, and how many traces the verification pass blocked. It makes no network calls and writes nothing to disk. That makes it a safe way to see what you have before deciding anything.
While previewing, it's worth creating a blocklist. Put company names, client names, product codenames and anything else specific to your life in ~/.dataoffer/blocklist.txt, one per line. Those terms are always redacted, which covers the cases a general-purpose detector can't know about.
Step 4: Review the scrubbed output
dataoffer review
Review shows you the scrubbed text itself, so you can read what a buyer would read. Here's a real example of a line before and after the scrubber:
| Before | After |
|---|---|
ping Sarah Miller (sarah.miller@acmeplumbing.com, 304-555-0142) |
ping <PERSON_1> (<EMAIL_1>, <PHONE_1>) |
Token: cfut_9xQ2... |
Token: <SECRET_1> |
postgres://admin:hunter22@10.0.4.17:5432/prod |
<SECRET_2> |
/Users/dwhitfield/src/acme-billing/.env |
/Users/<USER_1>/src/<ORG_1>/.env |
Skim a sample from each tool. Look for things a machine wouldn't recognize: an unusual surname, a nickname, an internal project name, a street you mention in passing. Add them to the blocklist and preview again.
Step 5: Export, with a typed confirmation
dataoffer export
Export writes a scrubbed, signed bundle (traces.jsonl and manifest.json) to ~/.dataoffer/exports/. You have to type EXPORT to confirm. There is no --yes flag, and no environment variable skips it, so nothing can be exported by a script running unattended.
Every trace is scrubbed again during export, and then a verification pass re-scans the result with every detector. If anything still matches, that trace is blocked and left out of the bundle, and the reason is recorded.
Step 6: Sign in and upload
dataoffer login --email you@example.com
dataoffer upload
Login sends a six-digit code and a magic link to your email. Each works once and expires in ten minutes. Upload asks you to type UPLOAD, then sends the bundle to our server, which scans it again on its own rather than trusting the client. Anything the server's detectors still flag is quarantined instead of accepted.
dataoffer status then shows each upload's state, so you can see whether it's queued, accepted or quarantined.
Letting your agent do it
You can hand the whole process to your coding agent by pasting a prompt that points it at our skill file. The agent installs the tool, runs the preview and walks you through each question. It signs in as an agent, with your email as the owner, and its uploads are held until you approve them from an email. It can't type EXPORT or UPLOAD for you, and it is told never to open your approval email. Our guide to letting your coding agent sell your sessions covers that flow in detail.
Claude Code, Cursor and Codex: tool-specific notes
Claude Code. Sessions are grouped by project folder, which makes it easy to include one project and exclude another. Its traces are rich, with detailed tool calls and outputs, so they tend to contain more file contents. Review them carefully.
Cursor. History lives in SQLite databases, one global and one per workspace. The tool opens them read-only. Because Cursor groups conversations by workspace, check the workspace list for client folders before approving.
Codex CLI. Sessions are stored by date rather than by project, so a single folder can mix work from several repositories. Read the review output with that in mind, and use the blocklist for client and employer names.
Common mistakes
- Approving everything at once. Take the time to answer per project. It's the single most effective privacy control you have.
- Skipping review. Automated scrubbing is good at structured data like keys and emails and weaker at names it has never seen.
- Including work repos. Even scrubbed, employer code may not be yours to license.
- Assuming a number. Any figure you see before a sale is an estimate. See how coding-agent trace data is priced.
Frequently asked questions
Do I need to stop using my agent while the tool runs?
No. The tool opens history files read-only and works from a snapshot of what's on disk when you run it. New sessions you create afterward simply aren't included until you run it again.
Can I sell sessions from more than one tool?
Yes. The tool supports sixteen coding agents and normalizes them into one format, so one export can include Claude Code, Cursor and Codex sessions together, as long as you approve each one.
What if I change my mind after exporting?
An export is just files on your own machine until you upload it. Delete the folder under ~/.dataoffer/exports/ and nothing has left your computer.
Does the preview upload anything?
No. Preview and review make zero network calls and write nothing. The only network activity happens when you sign in or upload.
Can I include sessions from my job if I scrub them?
Scrubbing removes identifying details, but it doesn't change who owns the work. If the code or conversation belongs to your employer or a client, leave it out unless you have permission. This is general information, not legal advice.
How long does the process take?
Installing and previewing takes a few minutes. Reviewing depends on how much history you have and how carefully you read it. We'd rather you spend the time there than anywhere else.
Getting started
Install the tool and run a preview. It costs nothing, makes no network calls, and tells you what you have. Everything else is on the traces page.
Contribute your agent sessions
The dataoffer tool scrubs every session on your machine before anything leaves it. Start with a preview: it makes no network calls and writes nothing.
This guide is general information, not legal, tax or financial advice. Figures and ranges are illustrative; talk to qualified advisors about your situation.


