← sources

What should a coding agent be allowed to do?

source: reddit (reddit:AI_Agents)published 2026-09-14 14:36ingested 2026-09-15 02:36

retained text

When a coding agent runs inside a project, it often has access to more than the files it actually needs. That can include `.env` files containing API keys, database credentials, and other sensitive values.

But the bigger issue is what the agent can do with the access it inherits. An agent may need to inspect code, install dependencies, call an API, open a pull request, or deploy something—but those actions shouldn’t automatically give it broad access to every environment or service.

I’m not sure whether teams are solving this with short-lived credentials, scoped service accounts, a proxy, or something else.

How are you handling coding-agent access in practice?

document fetched 2026-09-15 00:19 · canonical https://reddit.com/r/AI_Agents/comments/1wg57cy/what_should_a_coding_agent_be_allowed_to_do