AI clients and agents

Argent for GitHub Copilot in Visual Studio

Copilot in Visual Studio follows the Windows proxy, so Argent can see, check and record its calls. Here is what Argent governs, how it connects and what your team sets.

GitHub / Microsoft logo
01 / AI CLIENTS AND AGENTS

What Argent does with GitHub Copilot in Visual Studio

Every call GitHub Copilot in Visual Studio makes to a model goes through Argent first. Argent knows which agent sent it and which person owns that agent, checks it against your policy, and writes a signed record of what it decided.

  • A named agent with a human owner. Each install of GitHub Copilot in Visual Studio gets its own Argent agent identity tied to an accountable person, so no call is anonymous. Identity tethering
  • Only the models you allow. The agent can reach only the providers and models your policy names, and a request can be swapped to an approved model. Model control
  • Sensitive data handled before it leaves. Prompts and replies are scanned for personal and secret data, then redacted or blocked as your policy says. Sensitive data redaction
  • Spend priced and capped. Every request is priced and metered against budgets for the agent, its owner and the teams above them. AI spend caps
  • A signed record you can replay. Each decision becomes a hash-chained, signed audit record, and requests are grouped into sessions you can replay. Session replay
02 / AI CLIENTS AND AGENTS

How GitHub Copilot in Visual Studio connects

GitHub Copilot in Visual Studio reaches Argent in one way.

  • TLS-inspecting forward proxy. GitHub Copilot in Visual Studio keeps its normal provider settings and sends its HTTPS traffic through the Argent forward proxy and trusts your Argent certificate; the exact settings are below. The proxy signs in with the agent's own key, so every call is attributed, then runs the same checks as the gateway. It opens only known AI hosts, and its certificate is limited to those hosts.

The user's own sign-in stays in place. GitHub Copilot in Visual Studio signs in to GitHub / Microsoft with the user's token, which Argent never replaces. Turn on the tenant setting that lets Argent inspect these sign-in-bound hosts (Policy > Settings).

The same steps are in the Argent console under Integrations > AI Clients, and each agent's Connect tab gives the copy-paste values for your tenant.

03 / AI CLIENTS AND AGENTS

What you configure

What your team sets in GitHub Copilot in Visual Studio. These are the settings the Argent console shows for this tool. Values in angle brackets come from your tenant.

  1. Windows proxy. Copilot in Visual Studio reads the Windows proxy settings but does not fetch proxy credentials from them: set COPILOT_USE_DEFAULTPROXY=true to use the signed-in Windows credentials, or supply HTTPS_PROXY/HTTP_PROXY=http://proxy:port. VS_USE_DEFAULTPROXY=true makes Visual Studio itself use the default proxy. Some builds expose Tools -> Options -> Proxy Settings.
  2. devenv.exe.config (older/general VS). <system.net><defaultProxy enabled="true"><proxy bypassonlocal="True" proxyaddress="http://proxy:port"/></defaultProxy></system.net> in devenv.exe.config.
  3. CA. Install the Argent per-tenant CA in the Windows trusted root store (Copilot reads the OS trust store).
04 / AI CLIENTS AND AGENTS

Roll it out to every machine

Make it the only way GitHub Copilot in Visual Studio runs on company machines. These controls are documented by the platform each one belongs to (linked); pair them with the Argent settings above.

  • WinHTTP / system proxy via GPO or Intune + machine environment variables (Windows). Make the OS proxy and COPILOT_USE_DEFAULTPROXY / VS_USE_DEFAULTPROXY machine-wide so Visual Studio and Copilot inherit it (this overlaps the cross-cutting OS levers). Vendor docs
  • GitHub Copilot policies and plan-subdomain firewall rule. Per-seat features; block *.individual.githubcopilot.com. Minimum Visual Studio 2022 17.11. Vendor docs

Argent ships the push kit. For managed fleets the console produces per-MDM scripts (Jamf, Kandji, Intune-style, shell and PowerShell) with your tenant certificate and proxy address built in, plus a fleet setup script and certificate bundle. Your company CA can sign the Argent certificate, so managed machines already trust it.

Want to see which AI tools people already run before you push anything? Start with Shadow AI discovery in watch mode. Watch before you enforce

05 / AI CLIENTS AND AGENTS

Check that it works

Send one request and look for the signed row. Chat in Copilot Chat; Argent console live stream shows an intercept tunnel to api.<plan>.githubcopilot.com.

Every request also appears on the live stream with the agent's name and owner, and in the session view. Session replay