Private from whom, and for how long?
Privacy questions become answerable only after you define the boundary. A developer may want to prevent model training on proprietary code, avoid external retention, keep data in a region, or ensure no source leaves the network. These are distinct requirements. A provider can promise no training but retain operational logs. An editor can keep local chat history while transmitting request snippets. An offline model can still have an extension that sends diagnostics to another service.
Create a simple data inventory: source files, prompts, attachments, tool output, account details and usage metadata. For each, ask which service receives it and what controls exist for deletion. This is more useful than a single privacy score because it reveals which part of the workflow must change.
Follow one request end to end
Open a harmless project and trigger one AI request. Identify the context the editor selected: current file, search results, diagnostics, earlier chat or attached documents. Follow it to any editor backend, router, model provider and optional tool. Where possible, compare observed network destinations with official product documentation. Some request paths differ by plan or mode, so document the exact configuration.
Cursor's official BYOK guide says requests still reach Cursor for final prompt assembly and that its privacy-mode guarantee does not govern the separate provider account. Cline describes a client-side BYOK architecture. Licuse describes direct BYOK and a separate hosted path through its backend. None of these descriptions settles the selected provider's own retention policy.
Local inference is a stronger but narrower answer
A model running on your own hardware can avoid sending prompts to a hosted model. That is valuable when remote inference is prohibited. But the rest of the application must also respect the boundary. Online search, cloud embeddings, external MCP servers, crash reports and synchronization can still transmit information. Test the complete stack offline if necessary and review each enabled extension. Cline supports documented local-model workflows; Licuse's current AI providers are remote APIs even though its workspace stores are local.
Protect the local service too. A runtime exposed to an untrusted network can allow others to submit requests or inspect behavior. Use appropriate access controls and keep the model environment patched. Local does not mean risk-free; it means the trust boundary is one you operate.
Minimize context at the source
You can reduce risk before any request leaves the editor. Do not paste secrets into prompts. Exclude customer data and sensitive paths from agent access. Give the assistant the failing test, relevant contract and implementation rather than a whole repository. Review browser URLs, search queries and tool results before an agent forwards them to a model. Smaller context often improves coding quality and cost as well as privacy.
Require approval for file reads outside the workspace and for commands that may expose environment variables or credentials. A model does not need broad machine access to answer a narrow coding question. Keep permission settings practical enough that developers will use them, but do not auto-approve high-impact tool categories simply because a previous command was safe.
Retention, deletion and independent providers
Deleting a local conversation is not the same as deleting an account record or a provider log. An IDE may have local files, authentication tables, hosted request accounting and optional analytics. The model provider may keep data under its own terms. If you need deletion or export, ask each relevant service about its records. Licuse's data-practices page separates local workspace stores, direct BYOK, hosted AI, account services and optional integrations rather than making a blanket promise.
Training and retention are also different. Read the exact provider policy for the API endpoint and account tier you use. If your contract requires zero retention, a geographic region or a data processing agreement, obtain written terms. Marketing language should not be treated as a substitute for a legally binding or technically verified arrangement.
A practical approval process
For a team, produce a one-page decision record for each allowed AI mode. Include product version, selected provider, data path, model endpoint, retention terms, excluded repositories, tool permissions and a review date. Test with non-sensitive code first. Revisit the record when a product updates its routing or you add a new search or MCP integration. This keeps the privacy decision tied to the actual configuration developers use.
The answer to whether an assistant can keep code private is conditional. Some local setups can keep inference inside your environment; some remote setups can meet contractual privacy requirements; others will be inappropriate for the repository. Choose the path that satisfies your defined boundary, then verify it with observed behavior and ongoing controls.
Separate a promise from a control
A privacy promise describes what a provider says it will do. A control lets you restrict what can be sent or executed. Both matter. A strong retention contract does not stop an agent from attaching a secret it never needed, and a context-exclusion setting does not govern what the chosen provider retains after receiving legitimate code. Look for an explicit model endpoint, visible selected context, permission prompts, spend and access controls, and a clear deletion process. Test the controls during an ordinary task, because a setting that developers cannot use comfortably may be bypassed in practice. Record the result and revisit it regularly after major product updates or a new provider integration.
Private coding requires a verified data path and a provider agreement that matches the repository's sensitivity.
Sources & further reading
References support the concepts and product descriptions discussed above. Features, prices and account eligibility can change; check the live documentation. Inclusion here is not a hands-on test or vendor endorsement.