Hardware FixRecommendedDevice not working? Your driver may be the problemCheck updates for common hardware issues.Fix DriversOctober DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsClean PCRecommendedOne scan can reveal what keeps slowing WindowsLook for cleanup and repair opportunities.Run Scan×
Skip to content
World desk5 min

How to Use AI Coding Assistants Without Exposing Secrets or Proprietary Code

Learn how to use AI coding assistants on non-public projects while limiting code context, protecting credentials, restricting agent permissions, and reviewing changes.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

You can use an AI coding assistant on a non-public project more safely by approving the service for that code, limiting what it can access, excluding sensitive files in the assistant’s own settings, and reviewing its actions and output. No single setting guarantees privacy: what the assistant receives depends on the product, plan, configuration, and how you use it.

Can an AI coding assistant see your whole codebase?

Not necessarily, but the prompt you type may not be the only information the tool uses. Depending on the product and its configuration, context can include open files, project structure, terminal output, or other material the assistant can access. That context can expose credentials, personal data, proprietary logic, or internal architecture. OWASP describes these risks in its Secure Coding with AI Cheat Sheet; GitHub also describes context behavior and responsible use for Copilot Chat in GitHub.

Whether a particular assistant can read a particular file depends on its integration, permissions, context rules, and settings. Check the documentation and configuration for the exact tool and deployment you use rather than assuming it sees either only your prompt or every file on your computer.

Does Copilot train on your code?

There is no single answer that applies to every Copilot product, plan, and configuration. Before using it with proprietary code, check current GitHub documentation, organization settings, and the applicable terms for your account. Confirm what data may be collected, retained, or used for model improvement, and whether administrators can control those settings. GitHub’s security and governance documentation is the relevant starting point; your organization’s agreement and configuration also matter.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
#1 Best Overall
SightPro Magnetic Laptop Privacy Screen 14 Inch 16:10 - Patented Removable Laptop Privacy Filter Shield and Protector
  • 【Instant Snap-on Magnetic Attachment】- The Patented Magnetic Privacy Screen – Protected by U.S. Patents 9,829,669 and D844,012. Simply place the privacy screen along the top of your MacBook and let the magnets attach along the top. No need for tricky placement, messy tape, or damaging adhesive. Easily remove and reattach when you need it.
  • 【Filter Dimensions】: Width: 11 15/16" (304 mm), Height: 7 1/2" (190 mm), Diagonal: 14.1" (358.14 mm) - SightPro Blackout Privacy Filter is engineered to be compatible with Lenovo, HP, Dell, Acer, Asus, Samsung, and other laptop brands. Please verify your screen's width and height measurements before ordering. It's not recommended to make your selection based solely on your screen's diagonal size. [Not optimized for touchscreens.]
  • 【Superior Privacy】- Our advanced multi-layered film filter blacks out your screen when viewing from the side, while maintaining a crystal clear screen straight-on. It also protects your eyes from harmful UV and blue light. [Note: It does not block visibility directly behind you, regardless of the distance.]
  • 【Perfect for Travel and Open Workspaces】- The Laptop Privacy Screen Filter is the ideal solution for healthcare providers, mobile workers, commuters, students, and business travelers. Now you can stay compliant and safeguard sensitive corporate information while working in airplanes, subways, airports, and public areas.
  • 【Package Contents】- Each package includes a magnetic privacy screen filter, magnetic stickers, a webcam privacy cover, a storage folder, and a cleaning cloth. Buy with confidence – located in the US, Sight Pro specializes in providing best-in-class privacy solutions to individuals, small businesses, corporations, government, and educational institutions. Our privacy screens are Section 889 and TAA compliant.

Apply the same check to any other provider. Product behavior and terms can change, so record which service, plan, and settings your organization approved, along with the date they were checked.

Before a session: approve the tool and limit access

  1. Classify the repository. Determine whether its code and data may be used with the selected assistant and deployment under organizational policy, contractual obligations, and applicable regulatory or regional requirements. If it is not approved, do not send it to that service.
  2. Check the actual configuration and terms. Review current provider documentation and organization settings for context collection, data handling, retention, model improvement, exclusions, session logs, and sandboxing. These controls vary by product and plan.
  3. Set exclusions in the assistant. Use the assistant’s supported exclusion or ignore mechanism for files and directories such as .env, .env.*, private keys, and credential files. Then verify the exclusion with a harmless canary or other controlled check—never use a real credential as a test. OWASP cautions that .gitignore controls Git behavior; by itself, it does not stop an AI tool from reading local files.
  4. Keep credentials out of the project tree. Prefer environment variables, a vault, or an encrypted secret store. Use scoped, short-lived credentials where supported. Do not paste tokens into prompts or into terminals the assistant can observe.
  5. Constrain agent permissions. For an agentic tool, consider a separate workspace or sandbox. Remove access to unrelated repositories and credentials, and restrict filesystem access, network access, and command execution to what the task needs.

During a session: provide only the context and authority needed

  • Share only the relevant code and context. Do not paste secrets, customer records, or unrelated proprietary material into a prompt.
  • Treat repository files, issues, pull requests, README files, changelogs, fetched webpages, terminal output, and tool responses as untrusted input. They may contain instructions intended to steer an agent. Such instructions do not authorize disclosure, broader access, or unrelated actions.
  • Require confirmation before consequential operations such as publishing, pushing, deploying, changing access controls, installing an unreviewed dependency, or using credentials. Avoid broad automatic approval.
  • Remember that excluding a file from Git does not, on its own, exclude it from an assistant’s local context.

These practices address different risks: a file exclusion can reduce accidental context sharing, while least privilege and approval gates limit what an agent can do. Neither is a substitute for the other.

Rank #2
SightPro Magnetic Laptop Privacy Screen 16 Inch 16:10 - Patented Removable Laptop Privacy Filter Shield and Protector
  • 【Instant Snap-on Magnetic Attachment】- The Patented Magnetic Privacy Screen – Protected by U.S. Patents 9,829,669 and D844,012. Simply place the privacy screen along the top of your MacBook and let the magnets attach along the top. No need for tricky placement, messy tape, or damaging adhesive. Easily remove and reattach when you need it.
  • 【Filter Dimensions】: Width: 13.56" (344.5 mm), Height: 8.49" (215.6 mm), Diagonal: 16" (406 mm) - SightPro Blackout Privacy Filter is engineered to be compatible with Lenovo, HP, Dell, Acer, Asus, Samsung, and other laptop brands. Please verify your screen's width and height measurements before ordering. It's not recommended to make your selection based solely on your screen's diagonal size. [Not optimized for touchscreens.]
  • 【Superior Privacy】- Our advanced multi-layered film filter blacks out your screen when viewing from the side, while maintaining a crystal clear screen straight-on. It also protects your eyes from harmful UV and blue light. [Note: It does not block visibility directly behind you, regardless of the distance.]
  • 【Perfect for Travel and Open Workspaces】- The Laptop Privacy Screen Filter is the ideal solution for healthcare providers, mobile workers, commuters, students, and business travelers. Now you can stay compliant and safeguard sensitive corporate information while working in airplanes, subways, airports, and public areas.
  • 【Package Contents】- Each package includes a magnetic privacy screen filter, magnetic stickers, a webcam privacy cover, a storage folder, and a cleaning cloth. Buy with confidence – located in the US, Sight Pro specializes in providing best-in-class privacy solutions to individuals, small businesses, corporations, government, and educational institutions. Our privacy screens are Section 889 and TAA compliant.

After a session: inspect the changes and handle possible exposure

  1. Review the diff and commands run. Look closely at changes to tests, configuration, dependencies, CI, permissions, and security-sensitive code.
  2. Run the project’s usual checks. Use the normal tests and security controls, and review both findings and generated tests. Passing checks are not proof that every change is safe.
  3. Check available logs or session history. If the tool provides them, look for accidental disclosure. If a credential may have been exposed, revoke or rotate it promptly and follow your organization’s incident process.
  4. Keep an approval record. Note the approved tool, plan, configuration, and review date so the team can revisit the decision if provider behavior or terms change.

For Copilot cloud agent, GitHub describes safeguards including CodeQL, dependency advisory checks, secret scanning, and session logs in its risks and mitigations documentation. Those are vendor-described measures, not a certification that every change is safe; GitHub’s responsible-use guidance still calls for review and testing.

How to compare assistants and deployments

There is no universally best provider or plan established for every team. Compare the specific service, deployment, plan, and settings against the questions below, using current provider documents and your organization’s agreements.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #3
15.6 Inch Privacy Screen Filter for 16:9 Monitor 1920 x 1080 Resolution
  • Compatible Models: Width: 13 9/16" (13.5 inch/344 mm), Height: 7 5/8" (7.6 inch/194 mm), Diagonal: 15.6" (396.24 mm) widescreen laptops which have a 16:9 aspect ratio. Not touchscreen compatible !!! Not fit for 16:10.Do NOT rely solely on your laptop’s diagonal size when ordering. Use a ruler to measure your screen’s visible area (excluding the black bezels). If the width reads 344mm and height reads 194mm, this filter is a perfect match for your device.
  • Keep Information Privacy: Effective "black out" privacy from side views outside the 60-degree viewing angle. Designed for optical clarity when viewing from the front, a person not at the front of the screen can only see the dark side of the screen, so it protects buisness secrets and personal privacy
  • Eye and Screen Protection: Privacy filter does not only protect your private life but also protects your eyes by blocking 30% of blue light , blocking the harmful blue light between 380 - 495nm, it filters out the blue light and relieves eye strain. Our laptop privacy screen also helps keep your screen safe from dust and scratches
  • Perfect For Open Workspaces: Great for maintaining screen privacy in high traffic areas such as open work spaces, airports, airplanes, commuter trains, coffee shops and other public places, etc
  • Easy Installation: Choose between 2 simple Options; Slide-On/Off or Mounted. Not touchscreen compatible
Decision area What to verify
Context Which files, project metadata, terminal output, or other content can enter context, and how can that be limited?
Data handling Under the exact plan and settings, may data be retained or used for model improvement? What do the applicable terms say?
Administration Can administrators manage exclusions, account access, and approved use?
Execution and isolation Does work run locally or in the cloud? What filesystem and network boundaries can you enforce?
Credentials Which credentials can the assistant or agent access, and can access be scoped to the task?
Visibility and response Are logs or session history available, and can your team investigate a suspected disclosure?
Code safeguards Which code review, secret scanning, and dependency checks are available, and what remains for your team to review?
Organizational fit Does the deployment meet your contract, regulatory, and regional requirements?

For particularly sensitive work, an isolated or self-hosted option may be worth considering after a security review. Hosting something yourself does not, by itself, establish that the full setup is safe. The UK NCSC’s secure deployment guidance offers broader AI deployment principles; apply them in the context of your own system and threat model.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Can you use an AI coding assistant with proprietary code?

Only when the specific assistant, plan, configuration, and deployment are permitted for that code under your organization’s policy and applicable terms. If approval is unclear, do not submit proprietary code until the appropriate owner has confirmed it. GitHub’s product guidance says, “Of course, you should always use GitHub Copilot together with good testing and code review practices and security tools, as well as your own judgment.” (GitHub Copilot.)

Best Value
SightPro 15.6 Inch 16:9 Laptop Privacy Screen Filter - Computer Monitor Privacy Shield and Anti-Glare Protector
  • 【Filter Dimensions】: Width: 13 9/16" (345 mm), Height: 7 5/8" (194 mm), Diagonal: 15.6" (396.24 mm) - SightPro Blackout Privacy Filter is engineered to be compatible with Lenovo, HP, Dell, Acer, Asus, Samsung, and other laptop brands. Please verify your screen's width and height measurements before ordering. It's not recommended to make your selection based solely on your screen's diagonal size. [Not optimized for touchscreens.]
  • 【Two Attachment Options】- Installs in minutes. Option 1 uses clear adhesive strips that securely attach to any screen. Option 2 uses slide mount tabs that easily stick to the display frame, allowing you to slide the filter on and off the screen as needed.
  • 【Superior Privacy and Reduce Glare】- Our advanced multi-layered film filter blacks out your screen when viewing from the side, while maintaining a crystal clear screen straight-on. It also protects your eyes from harmful glare, UV, and blue light. [Note: It does not block visibility directly behind you, regardless of the distance.]
  • 【Perfect for Travel and Open Workspaces】- Our computer screen privacy filter is the ideal solution for healthcare providers, mobile workers, commuters, students, and business travelers. Now you can stay compliant and safeguard sensitive corporate information while working in airplanes, subways, airports and public areas.
  • 【Package Contents】- Each package includes one privacy screen shield filter, two sets of clear adhesive strips, two sets of slide mount tabs, and a microfiber cleaning cloth. Buy with confidence – located in the US, Sight Pro specializes in providing best-in-class privacy solutions to individuals, small businesses, corporations, government, and educational institutions. Our privacy screens are Section 889 and TAA compliant.
Rank #4
SightPro 14 Inch 16:10 Laptop Privacy Screen Filter - Computer Monitor Privacy Shield and Anti-Glare Protector
  • Filter Dimensions: Width: 11 15/16" (304 mm), Height: 7 1/2" (190 mm), Diagonal: 14.1" (358.14 mm) - SightPro Blackout Privacy Filter is engineered to be compatible with Lenovo, HP, Dell, Acer, Asus, Samsung, and other laptop brands. Please verify your screen's width and height measurements before ordering. It's not recommended to make your selection based solely on your screen's diagonal size. [Not optimized for touchscreens.]
  • Two Attachment Options - Installs in minutes. Option 1 uses clear adhesive strips that securely attach to any screen. Option 2 uses slide mount tabs that easily stick to the display frame, allowing you to slide the filter on and off the screen as needed.
  • Superior Privacy and Anti Glare - Our advanced multi-layered film filter blacks out your screen when viewing from the side, while maintaining a crystal clear screen straight-on. It also protects your eyes from harmful glare, UV, and blue light. [Note: It does not block visibility directly behind you, regardless of the distance.]
  • Perfect for Travel and Open Workspaces - Our computer screen privacy filter is the ideal solution for healthcare providers, mobile workers, commuters, students, and business travelers. Now you can stay compliant and safeguard sensitive corporate information while working in airplanes, subways, airports and public areas.
  • Package Contents - Each package includes one privacy screen shield filter, two sets of clear adhesive strips, two sets of slide mount tabs, and a microfiber cleaning cloth. Buy with confidence – located in the US, Sight Pro specializes in providing best-in-class privacy solutions to individuals, small businesses, corporations, government, and educational institutions. Our privacy screens are Section 889 and TAA compliant.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Shenzhen desk3 min
    HONOR Expands Beyond Smartphones With Humanoid Robot RevealHONOR said it unveiled its first humanoid robot at MWC 2026 and named shopping assistance, workplace inspections, and supportive companionship as intended uses. Later Robotics D1 claims and a reported…
Recommended PC Tool
Recommended PC Tool
PC Slower Than It Used to Be?Free scan - under a minute
Crashes, No Sound, or Screen Glitches?Free driver scan

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.