executing-plans
executing-plans
Use when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available
file-access-preflightRun the pre-flight checklist before an agent gets filesystem access — the scope boundary (which directories, read vs write), the secrets-exposure sweep, the destructive-operation gates, and the path-traversal and untrusted-file defenses. Use when asked let my agent access my files safely, is it safe to give the agent file/computer access, guardrails before …
Independent GitHub snapshot · Automated classification · Original documentation governs
Filesystem access is where an agent goes from talking to doing — and the two failure modes are opposite: reading too much (the agent slurps your .env, SSH keys, and password manager export into its context and thence into logs and API calls) and writing too much (a confused or hijacked agent overwrites, deletes, or rm -rfs outside its lane). The seatbelt: draw the scope boundary tightly, sweep for the secrets that must never enter context, gate the destructive operations, and treat file contents as untrusted input — because a file the agent reads can carry instructions just like an email or a web page.
Ask for these if not provided:
.ssh, .aws, browser profiles, tax PDFs — the blast radius if scope leaks upward).env files, key files, credential stores, config with tokens; the sweep needs to know what's around.env, id_rsa, .aws/credentials, .npmrc with tokens, service-account JSON, password exports — anything in reachable scope that carries a credential goes into context the moment the agent reads the directory, and from there into transcripts, logs, and (for cloud models) API calls. The sweep lists what's reachable and either moves it out of scope or excludes it explicitly (.gitignore-style deny). "The agent read my .env and it's now in three log files" is the classic, quiet breach.rm -rf $VAR where $VAR was empty, and the "clean up the old files" that would have taken the wrong directory..., symlinks, absolute paths) are refused, not followed.git checkout-able, not a loss), with a cap on how many files a single operation can touch (bulk-delete of 400 files trips a halt). Reversibility is the safety net under autonomy; see blast-radius-drill.Read scope: [directories] · Write scope: [narrower directories] · Out of bounds: [everything above/beside, explicitly]
[Reachable credential-bearing files found → moved out / explicitly excluded · the sweep re-run before go-live]
[Delete/overwrite/move/bulk → confirm-with-details · the never-outside-write-scope rule]
[File-contents-as-data framing · the path-traversal refusal (../symlink/absolute) ]
[Working-copy/committed-state requirement · the per-operation file-count cap · the kill-switch]
git-backed or backed-up, or a bad run is a loss