← Back to Blog

deep-dive

By ReclaimLLM Team

What Cursor knows before your first tool call

Cursor can receive your workspace path before any tool runs. How directory names enter context, and what to check before storing or sharing sessions.

Updated November 14, 2026.

An agent does not have to open a customer file to learn a customer name. If that name appears in the workspace's directory path, it may already be in the context supplied to the model.

That is a separate question from whether the agent can read outside the repository. A security review should examine both the information included when a chat starts and the permissions governing later tool calls.

For teams reviewing Cursor security, the first prompt deserves its own check.

A directory path can carry confidential context

Consider this fictional workspace:

/Users/alex/Clients/ExampleCo/acquisition-review/payments-api

The last directory identifies the repository. Its parents reveal a local account name, a client relationship and a possible business activity. None of that requires the model to inspect a source file.

In a November 12, 2026 Cursor staff reply, the team confirmed that a new chat receives the opened folder's absolute path. The reply also describes project-specific Cursor directories under the user's home folder entering context. Staff explained that tools use these paths to locate files and terminal output.

The important distinction is between knowing a location and having permission to access it. A model being told an absolute path does not establish that it can read every parent directory.

This example is about metadata. A team can remove credentials from code and still disclose internal names through its folder structure.

Check prompt context and tool access separately

A workspace boundary governs operations: which files tools may read, where commands execute, and what actions require permission. Initial context describes the environment in which those tools operate.

Those controls answer different review questions:

Review questionEvidence to collect
Can the agent read a file outside the repository?Installed version, read-access configuration and a harmless access test
Does a new chat know the full workspace path?A fresh-chat test in a synthetic workspace
Does a captured session retain that path?A redacted export from the capture system
Can a shared view reveal it?A separate check of the rendered page and downloadable export

Passing one check does not answer the others. Keep the results separate so that a restricted file-read test does not become evidence for an untested claim about prompt redaction.

Privacy Mode does not replace data minimization

Cursor's Data Use & Privacy Overview describes training and retention protections under Privacy Mode, together with qualifications for abuse investigations and non-ZDR models. It also says requests pass through Cursor's backend for final prompt construction, including when a customer supplies an API key.

Those terms matter when evaluating a provider. They do not establish that identifying directory names have been removed from model input.

For an internal review, record two decisions: whether the provider's handling terms are acceptable, and whether the data being sent is necessary. A favorable answer to the first does not eliminate the second.

The same distinction applies to ignore files. Our guide to why .cursorignore is not DLP explains why an exclusion list should not stand in for a tested content control.

Run a small test before changing your team setup

Use a disposable workspace containing invented directory names and harmless files. Avoid introducing an actual customer name just to demonstrate the problem.

  1. Record the Cursor version, privacy settings and agent surface being tested.
  2. Open the synthetic workspace and start a fresh chat.
  3. Ask what workspace path the agent was given, explicitly requesting that it use no tools. Check the activity record for any tool calls.
  4. Inspect an available transcript or export for the synthetic marker. A model's answer alone is not a complete inventory of its input.
  5. If sessions are captured elsewhere, inspect that stored copy and any share or export you intend to distribute.

Write the result narrowly: which marker appeared, in which artifact, under which settings. A single test cannot establish every future version's behavior, and an absent marker in a summary does not prove it was absent from the underlying request.

Reduce the identifiers you control

Start with workspace naming. Where practical, use neutral directory names rather than customer names, employee email addresses or confidential project descriptions. Check the whole path, including parent folders.

A neutral repository name alone may be insufficient when another path in the session still includes the home directory. Renaming folders is therefore a useful reduction, not a guarantee of anonymous context.

Next, review how session records leave the laptop. Add known machine-specific strings to the appropriate redaction rules and test exact matches against a synthetic record. Consider path variants and separators; a rule for one spelling need not catch another.

Keep provider-bound controls separate from capture-upload controls. Redacting a record before an observability service receives it does not retroactively redact an earlier request to a model provider.

Where ReclaimLLM fits

ReclaimLLM's documented local redaction before session upload supports machine-specific substitutions, including usernames and absolute paths. It applies configured string replacements to captured payloads before upload to ReclaimLLM. Local folder exclusions can skip captured records from designated locations.

Shared substitution changes require refreshing the installed cache with rclm-update. This is configured string matching, so test the values your team actually needs removed.

That feature should be evaluated as protection for the uploaded session copy. It is not evidence that Cursor's original provider request was rewritten, or that every existing screenshot and shared artifact has been masked.

Make the first prompt part of your review

A useful security record states what you tested: initial context, permitted reads, captured content and shared output. It names the version and identifies any untested surfaces.

This gives engineering and security a concrete question to resolve: which identifiers does the workflow need, and at which boundary can the team remove the rest?

Review your Cursor security controls.