Assess an AI coding agent by mapping what it can read, change, run, and share, then test those boundaries in a controlled workflow. Limit access to what the task requires, review consequential code changes, protect sensitive data, and keep records of tool use. Reassess whenever its permissions, integrations, or responsibilities change.
In This Article
What will the agent be allowed to do?
"GDS followed up the next day to make sure the door sensor issue is resolved. That kind of attention shows real customer service."
Kawal, professional services
Start with the work, not the product label. An agent that suggests a patch for a developer to inspect has a different level of authority from one that can create pull requests, run shell commands, or alter deployment settings. SecurityWeek reported that threat actors used AI agents to find and exploit a zero-day vulnerability in medical imaging software: SecurityWeek.
List the tasks the agent is expected to perform and the systems each task touches. Include repositories, issue trackers, build systems, package registries, cloud services, secrets stores, and developer workstations. A connected tool adds to the agent's effective reach, even when its access is managed separately. TechCrunch reported that Apple is developing an agent intended to work across apps, browse websites, run commands, and write and debug code: TechCrunch.
Trace a typical task from prompt to completion. Note where instructions come from, what context the agent retrieves, which tools it can invoke, and where its output goes. Consider how the workflow handles misleading instructions in files, issue comments, or other content the agent reads.
Assign human ownership alongside technical access. Identify who approves the agent's permissions, reviews its changes, investigates unusual activity, and revokes access when a pilot ends. Unclear responsibilities leave a gap in the assessment.
For each workflow, assess four boundaries: data access, tool authority, code execution, and human approval.
A GDS Technology client described the value of clear access ownership in the company's Built, Wired & Secured episode on access creep and credential ownership. Use that same lens here: every permission should have a defined purpose and accountable owner.
The workflow, not just the model, defines the security boundary.
Which permissions need the tightest controls?
Inventory permissions at both the identity and tool levels. Determine whether the agent can read private repositories, access customer information, retrieve secrets, install dependencies, run commands, change CI settings, or deploy code. Record which credentials it uses and whether they are scoped to a task or broadly reusable.
Grant only the access required for the stated work. Separate read and write permissions, and keep experiments away from production environments. If the agent needs to run tests, use a contained workspace with limited network access where practical, rather than giving it unrestricted access to a developer's machine.
Check indirect access paths as well as direct permissions. A repository token may allow workflow changes; a build system may hold deployment credentials; an issue tracker may contain sensitive operational details. Map how the agent could reach those resources through connected systems.
Test actions that should be denied, not only tasks that should succeed. Try to access an unrelated repository or change a protected setting. Verify that controls block the action and leave a record for review.
GDS Technology's cybersecurity services and IT compliance services address related security and governance needs.
Permissions should fit the task, and the boundary should be provable.
How should generated code be reviewed?
Treat generated code as a proposed change, not a trusted one. Review the diff for altered behavior, exposed data, weakened checks, unexpected network calls, and changes to authentication or authorization. A small patch can also introduce a dependency or change a build step with wider effects.
Keep accountable human review for changes that affect production behavior, security controls, sensitive data, or deployment configuration. Where possible, prevent the agent from approving or merging its own work. Preserve branch protections and release approvals.
Inspect dependency changes explicitly. Ask whether a new library is needed, whether its source and version are understood, and whether it has passed the project's normal dependency review. Build and test the change through the same controlled process used for other code.
Use test results as evidence, not as a substitute for review. Tests can reveal regressions covered by the test suite, but they do not establish that a change is appropriate for the business or free of unintended behavior.
For work involving regulated or sensitive information, connect code review to the organization's data-handling and change-management requirements. GDS Technology provides FTC-related IT compliance services; each organization remains responsible for determining which requirements apply to its systems and work.
Generated code belongs inside the same review and release discipline as other code.
What information can the agent access or expose?
Trace the data supplied to the agent, including prompts, source code, logs, test fixtures, and tool outputs. Identify whether it contains personal information, credentials, customer records, proprietary logic, or internal security details. Treat information as sensitive based on its content, not the interface used to submit it.
Confirm how the specific product configuration processes and retains data, whether it uses submitted material for model improvement, and what connected services can access it. Check the applicable product settings and agreement rather than relying on assumptions. Keep sensitive material out until the responsible owner has answers.
Reduce exposure at the source. Use synthetic or sanitized test data when feasible, keep secrets out of prompts, and limit repository and log access to what the task needs. Give employees clear rules for approved use and a straightforward way to report accidental disclosure.
Follow information to its destination, too. The agent may write results to a pull request, chat channel, ticket, or external service. Confirm that the destination is appropriate and that the output reveals no more than the task requires.
Data safeguards need to follow information through every connected system.
How can a business test and maintain its controls?
Run a limited pilot with a named owner, defined tasks, a contained environment, and explicit stop conditions. Record the starting permissions and expected behavior. Test routine work, out-of-scope requests, misleading instructions, and attempts to reach information beyond the task.
Use a simple pilot checklist to make the assessment repeatable:
- Document the workflow, data sources, connected tools, credentials, and intended code destinations.
- Record approved actions, prohibited actions, human approval points, and the person accountable for the pilot.
- Exercise routine and out-of-scope tasks, then retain evidence of allowed and blocked actions.
- Review findings with technical and business owners before expanding access or responsibilities.
Keep useful records of task requests, tool calls, code changes, approvals, and exceptions. A reviewer should be able to determine what the agent did, which identity it used, what it changed, and who authorized the next step. Decide who reviews those records and how concerns are escalated.
Define reassessment triggers before expanding use. Review the assessment when the agent gains tools, a new model capability, repository access, execution privileges, or deployment authority. Revisit it after an incident, a significant workflow change, or a change in data sensitivity.
Plan for removal as well as rollout. When a pilot ends or responsibilities change, revoke credentials, disconnect integrations, and handle temporary workspaces and stored outputs under the organization's retention rules. GDS Technology's Built, Wired & Secured episode on access creep and credential ownership discusses why access needs a current owner and business purpose.
A sound assessment stays current as scope, controls, and ownership change.
Looking for local help? We've covered this for Atlanta.
A few questions to ask about your own setup:
- Can you see which code and data an agent can access?
- Do you review changes before they reach production?
- Do you know how to revoke an agent's access?
If you're weighing how these risks apply to your environment, you can [get in touch with our team] to talk through your questions.
Frequently Asked Questions
Can an AI coding agent access production systems?
Only when the business has a specific, reviewed need and can constrain that access. Separate development and production authority where possible, keep deployment approval with an accountable person, and use scoped credentials. Test that prohibited actions are blocked, and document the owner and rationale for any exception.
Should developers paste company code into an AI coding tool?
First confirm the approved product configuration and the organization's rules for code, prompts, retention, and model use. Treat source code as potentially sensitive business information. If those conditions are unclear, use sanitized examples or hold the material back until the data owner approves the workflow.
Does human review make AI-generated code safe?
Human review is an important control, not a guarantee. Reviewers need a clear diff, relevant tests, and context about dependencies and permissions. Keep branch protections and release checks in place, and ensure the reviewer can reject or revise the change before it reaches production.
How often should AI coding agent permissions be reassessed?
Review permissions whenever the agent gains an integration, tool, model capability, or workflow responsibility. Reassess after incidents, role changes, and pilot transitions as well. Set a recurring interval that reflects the risk and pace of change, and remove access without a current owner or business purpose.
What is the first step before a pilot?
Choose one defined workflow and map its data, tools, credentials, code destinations, and approval points. Name the person accountable for the pilot and specify which actions are out of scope. This boundary map gives the team a concrete basis for testing controls and explaining the result to technical and business owners.
Follow GDS Technology on Facebook, and subscribe on YouTube for new videos.