Three moments
Most local workspaces give each agent a git worktree and run it as you. That keeps parallel tasks from editing each other's files. It does not change what the agent can reach. Here is the same action in both setups.
Piper
The file is not there. Each session's container mounts its project, not your home directory, and the paths you exclude, such as .env, are masked.
Worktree tool
The agent runs as you, so the file is readable. What stands in the way is the agent's own permission settings or its own sandbox, which is off by default in Claude Code.
Piper
A card from the Minimal preset up, with the SQL, the connection marked as production and the rule that asked. Reads of test data and writes to dev run on their own. Inside the container, a direct connection needs its host in the network allowlist.
Worktree tool
The agent uses whatever credentials it finds. Permission rules match the command text, so they tell psql from ls, not a test database from a production one. Claude Code's auto mode judges each action from the conversation; it knows which targets are sensitive only if you name them in its settings.
Piper
Under Recommended, a card with the exact git arguments. Under Minimal it runs on its own and goes to the audit log. Either way it is one switch, not a pattern you maintain.
Worktree tool
The agent pushes with your credentials. Claude Code's auto mode allows pushing to any branch of the working repository by default, the default branch included. You can deny it with a rule; Codex in on-request mode asks before any network use, a push or not.
The same holds for HTTP: requests to test, production or unknown hosts get a card, and outbound traffic from the container is filtered against your list of domains. Every decision, automatic ones included, is written to an audit log. Details and limits: security model.
At a glance
Only the things that separate the tools. "Not documented" means we found nothing either way, not that the feature is missing.