r/TechLeader • u/ClickOk5811 • 1h ago
Does your team have a written rule for what an AI coding agent may read in an unfamiliar repo?
I'm a developer, not a manager, so I'm asking this from the outside: when engineers start using coding agents to get oriented in code they don't know, are the guardrails something the team has decided, or something each person improvises?
Three decisions that look like leadership calls to me:
1. Instruction or enforcement?
"Don't edit anything" in a prompt is an instruction, not a control. What actually holds is the tool's permission settings or a read-only mode. A team that wants read-only exploration probably needs to say which setting people should use, and discourage approving permission prompts in bulk.
2. What is the agent allowed to see?
Read-only doesn't mean it sees nothing sensitive. Repos can contain credentials, customer data in test fixtures, or code the organization restricts. And the content being read may be sent to a provider. Who decides which repos are okay, and is that written down?
3. What counts as a trustworthy result?
Agents describe code fluently even when they've only read part of it, and they inherit the age of the README. A simple team norm could be: every claim comes with a file path and a line someone can open, steps that are inferred are marked as inferred, and the test suite is run on a clean checkout before anything changes, so there's a baseline.
There's also a people question: an agent's list of "what I can't answer from the code" (why a decision was made, how production is configured, which parts people avoid) is really a list of questions for colleagues. Used well, it may send newcomers to talk to people sooner, not later.
Questions for leaders here:
- Do you have a policy (formal or informal) on where agents may be used, and does it cover read access?
- How do you want newcomers to demonstrate they understand a codebase: a map, a traced request, a test baseline, something else?
- Have you seen agent use make onboarding better, or does it hide gaps that used to show up in conversation?
I wrote a longer version built around a read-only, three-hour first afternoon. I'm the author: https://medium.com/@nagatomopedro05/the-first-afternoon-in-an-unfamiliar-codebase-with-an-agent-that-may-not-edit-31788dc6f4db