Skip to Content
HeyBug docs
Security

Data handling: source code is not stored by default

This guide explains what HeyBug keeps when it reads your code, what it never keeps, how to delete what it does keep, and how long data stays by default.

This guide explains what HeyBug keeps when it reads your code, what it never keeps, how to delete what it does keep, and how long data stays by default. Your source code is not stored. Code analysis keeps a summary, and that summary stays in your project folder.

What is stored and where

DataWhere it livesKept until
Code summary: frameworks, routes, npm scripts, portsheybug/code_summary.json in your project folder, on your machineYou delete the file
Standardized PRDheybug/standard_prd.json on your machine, and the PRD text uploaded to the projectYou delete the uploaded file and the local file
Screenshots and results from runsHeyBug serversThe retention rules below
Event logHeyBug servers30 days

The code summary is written by the heybug_summarize_code MCP tool. It reads your folder locally and makes no network calls. No server endpoint stores code summaries.

What is not stored

  • Source files. The scanner reads .go, .js, .ts, .tsx, .jsx and .py files under 200 KB only to find route paths. It writes the paths it found, never the file contents.
  • Folders it skips. node_modules, vendor, heybug and folders whose names start with a dot are not read. Symbolic links are skipped.
  • Environment files. .env files are not read, so their values never leave your machine.

One exception is the PRD upload. heybug_standardize_prd sends the PRD text to your project. It looks for PRD.md, docs/prd* and *.prd.md, reads up to 5 files and only the first 200 KB of each. If none of those exists, it uses README.md. A README uploaded this way is stored on the server until you delete it.

Steps

  1. Create the summary locally. Ask your assistant to run heybug_summarize_code with the absolute path of your project folder. The tool writes heybug/code_summary.json and returns it.
  2. Check what was written. Open heybug/code_summary.json. It holds only frameworks, routes, scripts and ports.
  3. Check the retention you have. Open Data retention at /settings/retention, or call the API with your token (see the example).
  4. Delete what you do not want. Remove the local files, delete an uploaded requirement, or delete your account (below).

Example

Tool input, sent by your assistant:

{ "projectPath": "/home/me/shop" }

The file it writes on your disk:

{
  "frameworks": ["next", "react"],
  "routes": ["/", "/cart", "/checkout"],
  "scripts": { "dev": "next dev -p 3000", "test": "vitest" },
  "ports": [3000]
}

Check the retention of your workspace:

curl -s -H "Authorization: Bearer $HEYBUG_TOKEN" https://opentest.nagara.cloud/api/workspace/retention

It returns days (null means kept forever), nextSweepAt (unix milliseconds) and lastSweep with deletedRuns and deletedArtifacts.

Delete the two local files, and nothing else in the folder:

rm ./heybug/code_summary.json ./heybug/standard_prd.json

Delete an uploaded requirement. List the ids first, then delete one:

curl -s -H "Authorization: Bearer $HEYBUG_TOKEN" https://opentest.nagara.cloud/api/projects/$PROJECT_ID/requirements
curl -s -X DELETE -H "Authorization: Bearer $HEYBUG_TOKEN" https://opentest.nagara.cloud/api/projects/$PROJECT_ID/requirements/$REQUIREMENT_ID

Retention defaults

Your plan sets retention. A daily sweep deletes runs older than the limit, with their case results and screenshots. A run that is queued or running is never deleted.

PlanRuns and artifacts kept
Free30 days
Pro90 days
Team365 days
EnterpriseKept forever
  • Pull-request runs are kept for 7 days on every plan.
  • Projects can only shorten the plan limit, with the retentionDays project setting.
  • The sweep runs once a day. The first one starts about 10 minutes after the server starts.

To delete your account, use the web app while signed in. DELETE /api/me refuses API tokens with 403.

When it fails

  • The retention page says "Retention could not load". Choose Retry. If it keeps failing, check that you are signed in.
  • heybug_summarize_code says "projectPath must be an existing folder". Pass an absolute path to a folder, not a file.
  • heybug_standardize_prd says "no PRD found". Add PRD.md or docs/prd.md to the project, then run it again.
  • The summary lists fewer routes than expected. Routes come from page file paths and from route strings in the file types above. Files over 200 KB and folders the scanner skips are not read.
  • A requirement delete returns 404. The id is wrong, or the requirement was already deleted. List the requirements again.
  • 401 on any call. The token is missing, wrong or revoked. See MCP for how to create a new key.
  • Runs are older than your limit. Queued or running runs are kept until they finish. The next sweep then applies the limit.

On this page