# Decide what content to send and who can read it

Choose which agent content Harnessforce stores, who can read it, how long it's kept, and how to delete it, in Collection & retention.

Content such as prompts, responses, and tool input and output is collected so your team can read the same session's conversation and failures and make better calls next time. The workspace decides what to store, who in the workspace can read it, and when it expires; each member decides whether their own machine sends it. Timings, tokens, and cost are always kept, whatever the content settings.

## Open Collection & retention

1. Open the workspace settings and choose "Collection & retention" under Data.
2. Only Owners and Admins can change these settings. Members and Viewers see the current values only.
3. The page runs in this order: what Harnessforce stores, who sends content, who can read content, how long it's kept, and delete data now. The "Save" button at the bottom saves all changes together.

Decide what to store, who can read it, and how long it's kept, all on one page.

*Collection & retention (sample data)*

## Choose what to store

Content comes in two categories, each switched on or off separately. New workspaces start with both on.

| Category                                  | Includes                                                                                       |
| ----------------------------------------- | ---------------------------------------------------------------------------------------------- |
| Prompts you typed                         | What members type to Claude Code and Codex                                                     |
| Model and tool content                    | Everything else: responses, system instructions, tool input and output, code diffs, log bodies |
| Timings, tokens, cost, tool and hook runs | Always on. Not content                                                                         |

1. Flip the switch for each category. When it's on, values that match known patterns for secrets and personal information are masked before storage, but not everything can be detected.
2. When you turn a category off, new content in it is dropped on arrival. Stored content becomes unreadable and stays until it expires. To remove it now, use "Delete stored prompts" or "Delete stored responses and tool content", available only while the category is off.
3. Codex sends tool input and output by default. While Model and tool content is on, those values are stored even from machines set not to send content.

Content arrives only from machines set to send it. Machines send by default, and members can stop it on their own machine with `harnessforce config set send-content off`. To apply one setting to everyone, distribute it with managed settings. The "Who sends content" table shows, from sessions received in the last 7 days, whether each member sends each category. Only Owners and Admins see it.

Distribute centrally: [Distribute with managed settings](/en/docs/managed-settings)

## Choose who can read content

| Option                        | Who can read                                                      |
| ----------------------------- | ----------------------------------------------------------------- |
| Everyone in the workspace     | Every member, whatever their role. The default for new workspaces |
| Owners, admins and the sender | Owners, Admins, and the person who sent it                        |
| Only the sender               | The person who sent it                                            |

1. Pick one of the three. The setting covers both categories.
2. Widening who can read asks you to confirm. Content received before the change stays visible only to the person who sent it.
3. Narrowing takes effect immediately, including for content received earlier.

Members who can't read content still see timings, tokens, cost, tool names, and links, with a reason in place of the content. The same check applies in the app, the Read API, and MCP. Every content read is recorded in the access log. Developer seats don't change who can read.

## Set how long it's kept

1. Under "How long it's kept", choose 7, 14, or 30 days for content. The default is 30 days, and both categories share the value. It can't be longer than telemetry retention.
2. Retention for sessions, traces, and spans comes from your plan. If your plan lets you shorten it, choose from the values up to the plan's limit.
3. Issues, pull requests, and CI runs "Follows GitHub". GitHub deletes CI logs after 90 days, so older runs keep their results but not their logs.
4. Shortening retention asks you to confirm. Data older than the new period becomes unreadable immediately and is then deleted. This can't be undone.

## Delete content

| What to delete                                                               | Where                                                                                               | Who                           |
| ---------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | ----------------------------- |
| One session's content                                                        | "Delete content" on the session page, or "Delete this session's content" in the trace's action menu | The sender, Owners, Admins    |
| All content you sent                                                         | "Delete my content" under "What my agents send" in your account                                     | Anyone, for their own content |
| All stored content in a category                                             | "Delete stored …" in Collection & retention, while the category is off                              | Owners, Admins                |
| Everything a user sent, including removed members and users who never joined | "Delete data now" in Collection & retention                                                         | Owners                        |

Deleting content keeps timings, tokens, cost, and links to issues and pull requests. Every deletion makes the content unreadable to everyone from the moment it's accepted and can't be undone. "Delete data now" removes the user's telemetry as well as their content. A current member keeps their membership and ingest keys.

## FAQ

**Does masking guarantee no secrets are left?**

No. Only values that match known patterns are masked; in-house token formats, names, and the like can't be detected. If something slips into a session, delete that session's content.

**Can Viewers read content?**

Yes, when the setting is "Everyone in the workspace". With the other two settings they can't. Viewers have no sending key, so there is no content of their own either.

**Can Harnessforce staff read our content?**

The "who can read" setting is an agreement among workspace members. Harnessforce operators hold the content encryption key, but don't decrypt content outside the documented read and deletion procedures.

## Read next

- [Invite members and assign developer seats](/en/docs/usage/members): Send invites, assign seats, and check that data is arriving.
- [Distribute with managed settings](/en/docs/managed-settings): Roll out content-sending settings to every machine in your organization.
- [Rollout](/en/product/rollout): Roll out without leaving your terminal or GitHub.
