Governance

Keeping Credentials Out of an AI Agent's Context Doesn't Make Them Safe

Keeping a secret out of an agent's context window is a useful goal, but it says nothing about the editor, browser, logs or network that handle it instead.

A credential can sit outside an AI coding agent's context window and still be exposed elsewhere in the pipeline. That distinction matters for platform teams: restricting what an agent can access is not the same as controlling where a secret's data ends up, for example in the model, browser, or application handling it.

Simon Willison's web-edit 0.1a0 illustrates the workflow need. He described wanting to edit a credentials file from his phone while working on a project with Codex Remote, without round-tripping the credentials through the LLM. He then had Codex and GPT-6 Astra Extra High build a web app for viewing and editing files.1 The goal is narrow. The post does not establish whether the app is suitable for production.

Keeping secrets out of LLM context: authorization vs. context isolation

Authorization limits what an agent is allowed to access or change. Context isolation limits what information reaches the model. A workflow can restrict an agent's file access and still push sensitive content into the model's context if a task requires the agent to read or edit the file in question.

Willison described a setup in which an agent starts the app and he edits files from his phone through a separate interface.1 The appeal is fewer places a secret may travel. The open question is whether that path reduces exposure, and to whom.

Analysis: If secret handling depends only on an agent never opening or displaying a file, the workflow has no distinct boundary for human secret editing; it relocates the risk. A dedicated interface can provide that boundary, but it also becomes a system that handles sensitive data. Its identity controls, file scope, browser behavior, logging, sessions, and recovery path all need review. For the permissions side of this problem, see our piece on where AI agent access boundaries should sit.

What web-edit 0.1a0 does

web-edit 0.1a0 is a Python web app for viewing and editing files in a folder.1 Willison said he intended to run it over a Tailscale network: an agent could start the app, and he could edit files from his phone over that connection.1

The editor uses CodeMirror 6, which Willison chose because Monaco did not yet offer a good mobile experience.1 He also said Codex and GPT-6 Astra Extra High built the app.1 That describes how the prototype was made; it does not establish whether the resulting application has had independent security review.

The intended workflow is for an agent to start the editor and a user to open it on a phone to view or change a file, without round-tripping its contents through the LLM.1 The post describes this as the goal, not as a security test or independent verification of the app's behavior.

That boundary is narrower than "the secret is safe." Keeping a value out of model context says nothing, on its own, about whether it is protected from the web app, phone, browser, network path, logs, telemetry, or other users.

What the prototype doesn't show about credential safety

The post describes the app's intended use and how it was built. It does not report a security review, test results, or evidence that the workflow is production-ready.1 The excerpt also does not describe how users authenticate, how file access is authorized, or how the app constrains which files or folders a user can reach.1

These are not findings of specific vulnerabilities; they are questions a reviewer would still need answered. A team evaluating something similar should check whether credential contents could surface in browser storage, application or access logs, error reports, backups, or telemetry. It should also consider who can see the file while it is on screen and what happens to access when a session ends.

The same gap applies to the intended Tailscale deployment. The post says the app was meant to run over that network but does not describe the application's authentication, authorization, or threat model.1 A network boundary does not, by itself, establish that an application's own access rules are sound.

The standard to hold here should be explicit: the post describes a workflow objective, not evidence that the implementation meets a production security bar.

How to review a secret-editing tool for AI developer tool security

Start with a written threat model covering the AI agent, web application, host running it, phone and browser, network connection, other users, and anyone who can read the edited folder. The post's omissions point to questions worth answering, including authentication, authorization, file scope, network protection, logging, and session control.1

Then require evidence for the controls that matter in your environment:

  • Identity and permissions: Define who can open the editor, which identity is checked, which files each identity can view or change, and how access is revoked.
  • File scope: Confirm whether the tool exposes a single file or a narrowly defined directory, rather than a broader folder. Use the narrowest scope the task allows.
  • Data flow: Map every place credential contents could exist while viewed or edited: browser memory and storage, server memory, request and error logs, telemetry, backups, and support access.
  • Transport and sessions: Document how the connection is protected, when sessions expire, how a user signs out, and how an active session can be force-revoked.
  • Audit and recovery: Confirm that edits and access can be attributed to a specific user, and identify who can cut off access and rotate the credential if exposure is suspected.
  • Independent review: Document the code review and security testing behind any decision to run the tool in production.

These are recommended review criteria, not capabilities attributed to web-edit. The post does not report whether the prototype has these controls or what testing, if any, has been done.1

Comparing a separate editor to agent-side controls

These controls solve different problems and should not be treated as interchangeable. Agent-side permissions restrict actions. Secret injection limits when a process receives a value. A separate editor can keep a human secret-editing step outside model context. None of the three removes the need to audit the systems that handle the credential.

Each also leaves a different gap. An agent can still receive content its permissions allow it to read. A process using an injected secret still holds that value somewhere. A separate editor may keep the value away from the model while still exposing it to the application, browser, or operator's environment.

Model-side controls are a further, separate layer. An enterprise AI gateway can constrain which providers and models receive requests and keep audit logs of model traffic, but it does not see what a separate editor does with a file. That is one more reason to map each system that touches the credential.

Analysis: A layered design is usually easier to defend than reliance on a single boundary. Minimize the agent's file access, separate secret editing from model-assisted work where the task allows it, and audit whatever system receives or displays the secret. web-edit is an example of the workflow need, not evidence that a separate editor is inherently safer.1

Before adopting a similar workflow

Run a narrow pilot with non-production credentials and a deliberately limited file scope. Set acceptance criteria before implementation, not after:

  1. Credential values never enter model prompts or responses.
  2. Access is authenticated and authorized, with file scope constrained.
  3. Sensitive values are excluded from logs and telemetry.
  4. Sessions can be ended and revoked on demand.
  5. Edits and access can be attributed to a specific user.
  6. There is a defined response for suspected exposure, including a way to cut access and rotate the credential.

Treat each item as something to demonstrate, not assume, through code and configuration review, threat modeling, targeted tests, and inspection of actual data flows. A web interface or private network proves neither. Pair the pilot with runtime governance controls for the agent itself, so the agent's behavior is bounded as well as the editor's.

Before production sign-off, name an owner for access review and incident response. Have that owner approve the threat model, test evidence, operational ownership, and credential-recovery process. The cited post does not provide this evidence for web-edit 0.1a0.1

The takeaway

The prototype points to a workflow requirement: a person may need to change a secret while an AI coding agent continues its task, without putting that secret in model context.1 That is a legitimate design goal, not a substitute for application security review.

Next step: map the credential's full data flow and name every trust boundary it crosses. If the team cannot say where the value appears, who can access it, how access is revoked, and how exposure would be detected, keep the workflow out of production until those answers are documented and tested.

Frequently asked questions

What is web-edit 0.1a0?

It is a Python web app for viewing and editing files in a folder. Its intended use included editing a credentials file from a phone while using Codex Remote, without sending the credentials through the LLM 1.

Does web-edit prove that credentials are safe from AI coding agents?

No. The source describes the intended workflow but reports no security review, testing results, or evidence that the application is safe for production 1.

Does using a Tailscale network solve the security problem?

Not by itself. The source says the app was intended to run over a Tailscale network, but it does not document the app's authentication, authorization, file restrictions, logging, or session controls 1.

How can teams prevent secrets from entering LLM context?

Separate secret editing or retrieval from model-assisted work, then verify the full data flow. Review file scope, authentication, authorization, browser handling, logs, telemetry, sessions, and revocation; the source identifies these areas as open questions for the prototype 1.

Should teams use a similar tool in production?

Only after a threat model, security review, testing, and operational controls establish that the specific implementation meets the team's requirements. The cited source does not provide that evidence for web-edit 0.1a0 1.

Sources

1 "web-edit 0.1a0," Simon Willison's Weblog, October 12, 2026. https://simonwillison.net/2026/Oct/12/web-edit/

Questions

What is web-edit 0.1a0?
It is a Python web app for viewing and editing files in a folder. Its intended use included editing a credentials file from a phone while using Codex Remote, without sending the credentials through the LLM [1].
Does web-edit prove that credentials are safe from AI coding agents?
No. The source describes the intended workflow but reports no security review, testing results, or evidence that the application is safe for production [1].
Does using a Tailscale network solve the security problem?
Not by itself. The source says the app was intended to run over a Tailscale network, but it does not document the app's authentication, authorization, file restrictions, logging, or session controls [1].
How can teams prevent secrets from entering LLM context?
Separate secret editing or retrieval from model-assisted work, then verify the full data flow. Review file scope, authentication, authorization, browser handling, logs, telemetry, sessions, and revocation; the source identifies these areas as open questions for the prototype [1].
Should teams use a similar tool in production?
Only after a threat model, security review, testing, and operational controls establish that the specific implementation meets the team's requirements. The cited source does not provide that evidence for web-edit 0.1a0 [1].

Sources

  1. web-edit 0.1a0 · Simon Willison’s Weblog · Oct 12, 2026

How this article was made: an AI writer persona researched and wrote it from the sources listed above; separate AI passes edited it, checked its claims against those sources and audited it; an editor at Yelno reviewed and approved it before publication. How the Yelno blog works.