AWS and Cloudanix team co-authored this blog: Real-Time Threat and Anomaly Detection for Workloads on AWS

Cloudanix – Your Partner in Cloud Security Excellence

Paved Paths for Coding Agents: Designing Guardrails for the Human and the AI

  • Purusottam Mupunu Purusottam Mupunu
  • Monday, Nov 23, 2026

For years, developer-first security meant building around one person: the engineer at the keyboard. We gave them paved roads, sensible defaults, and fast feedback in the IDE. Netflix was an early advocate of that model. That gets harder when much of the code is written by an AI agent. If a coding agent does most of the typing, who is the “developer” you are designing guardrails for?

I put that question to Dhivya Chandramouleeswaran on a recent episode of Scale To Zero. Dhivya is an engineering manager at AWS, where she leads a team of defensive and offensive engineers who secure AI products, and an AI safety research fellow at Heron AI Security. Her answer was refreshingly practical: you design for both, but the paved path looks different for each.

The Agent Still Starts With a Human

Dhivya acknowledged the philosophical side first, the “who built it, who owns it” question. But she was clear about where intent comes from today:

“An AI agent cannot operate in a vacuum. It needs to start with an intent, it needs to start with a goal, and that right now is provided by humans.”

So the human does not disappear from the picture. Their job shifts. Instead of writing every line, they set the goal, the constraints, and the definition of done, and then verify the result. That verification step matters because AI-generated code carries real security risks, and our checklist on whether AI-generated code is safe to ship covers what to look at before it reaches production.

Two Paved Paths, Not One

“We need to design for both. But the guardrails and the paved path would look different for a human and for an AI agent.”

For the Human: System Design and Context

For people, Dhivya described the paved path as mostly knowledge and instructions. Can the engineer explain the system design in detail, “down to the atoms of it”? Do they know the tech stack and design choices their organization expects, and do they have those resources ready to hand to the agent?

Her examples were the kind of rules every team already has in its head: don’t build a Flask application without a certain set of controls, or only build a React application within these guardrails. The human’s paved path is making sure that knowledge is written down and passed on.

For the Agent: Guardrails and Test Cases

For the agent runtime, the paved path is concrete: guardrails that let it follow those instructions, and tests that let humans check it did. Tactically, Dhivya pointed to test cases, regression systems, and production suites that exercise the different functions and use cases of the finished product.

In plain terms, a regression suite is a set of tests you rerun after every change to make sure nothing that used to work has broken. With an agent producing changes quickly, that suite becomes your safety net. For how this fits into everyday engineering, see Shift-Left Security in Practice.

Tell the Agent What Good Looks Like

One of the most useful points in the conversation was about how to phrase guardrails for an agent. Dhivya referenced studies on how agents respond to paved paths:

“A list full of thou shalt not do this, thou shall not do that, is less effective than giving it very specific prescriptive instructions.”

Her advice is to describe how something should be built, or what the final result should look like, rather than piling up prohibitions.

Give It the Right Context Up Front

She listed what that context can include:

  • Approved code packages the agent can use
  • Previous coding samples, ideally reflecting how your company has produced code before
  • Your design patterns
  • Product-specific requirements, such as the authorization model a product must follow

Her authorization example was a good one: tell the agent explicitly that it shall use three-legged OAuth for this product. (Three-legged OAuth is the flow where a user approves an app’s access to their data through an identity provider, rather than the app handling their credentials.) Dhivya’s view was that guidance like this should be blanket and easy to implement.

Our addition: a quick way to test your instructions is to read each line and ask whether it describes a target or only a boundary. “Use the shared auth middleware for every route” gives the agent a target. “Don’t write insecure auth” does not.

Instruction files are also an attack surface. Our post on how a text file in your Downloads folder can hijack an AI coding agent shows why you should control where those instructions come from.

How Do You Evaluate Design Decisions an Agent Makes?

Unit tests catch broken functions. They are less helpful for architecture. When I asked how to put evaluations around system design, Dhivya tied the answer to three things: the velocity of the team, its budget, and how many interrupts the development process can tolerate.

Option 1: Get It Right the First Time

Teams that are moving very fast can invest up front: steering documents, the right packages, the right context, and the right access. With that in place, the agent can work without a human interrupting it midway, and the regression tests catch what slips through.

Option 2: Add a Human Checkpoint Between Plan and Act

For critical work, Dhivya recommended separating planning from doing. Many coding agents support a “plan” mode, where the agent proposes an approach without changing code, and an “act” mode, where it carries the plan out.

Her flow looks like this:

  1. Ask the agent to brainstorm a system design for your end goal and iterate on it together.
  2. A human verifies the design matches the spec they had in mind.
  3. Switch to act mode and let the agent follow through, with guardrails and regression tests in place.

Match Supervision to Impact

Which option fits depends on what you are building. If a product affects many customers, is a critical resource, and needs auditability and “absolute correctness,” Dhivya said that is where you can afford, and should accept, more interrupts.

“You have different ways of turning the knob on how supervised you want the agents to be.”

If you are deciding how to roll these controls out to a team, Rolling Out Code Security to Your Development Team covers roles, gates, and adoption.

Quick Reference: Paved Path Checklist for Coding Agents

  • Write down the human context. Tech stack, design choices, and non-negotiables your team expects.
  • Give the agent prescriptive instructions. Describe the target state, not just a list of don’ts.
  • Provide approved packages and code samples. Point the agent at how your company already builds things.
  • State product-specific security requirements. For example, the exact authorization flow to use.
  • Keep regression and production test suites current. They are how you verify agent output at speed.
  • Use plan mode, then act mode, for critical systems. Put a human review on the design before implementation.
  • Tune supervision to impact. More checkpoints for high-impact or customer-facing work, fewer for low-risk changes.
  • Keep accountability with the human. Whoever sets the intent owns the result. (On the episode, I noted the early “the AI wrote it, not me” attitude is fading, and Dhivya’s framing supports that.)

Closing Takeaway

The question “who is the developer?” has a practical answer: both. The human brings intent, design, and organizational context. The agent needs that context turned into prescriptive instructions, guardrails, and tests. Get those two paved paths right and you can decide, product by product, how tightly to supervise the agent.

If you are thinking about how this fits with code scanning and cloud posture in your own environment, this is the kind of problem we spend a lot of time on at Cloudanix, and we are always happy to compare notes.

Listen to the Full Episode

We also covered securing autonomous agents, threat modeling, trusting AI findings, and AI purple teaming.

Give it a listen, and if you have a question you want answered on a future episode, send it our way.

People Also Read

What Our Users Are Saying

Customer Reviews

Cloudanix is trusted by security leaders worldwide to deliver proactive, reliable, and cutting-edge cloud security.

One day, I changed the password of a root account, and my CTO called me within less than a minute to confirm if I did so. I was not expecting a reaction this quick. He told me Cloudanix alerted him of this password change and that he wanted to confirm as it was a critical security notification. I couldn't believe it!

Ritesh Agarwal
Ritesh Agarwal
CEO, Airgap Networks

Compliance is one way of staying secure, but what I want is the ability to go deeper and attain 'true security.' Cloudanix provides us the capability to do so.

Vishal Madan
Vishal Madan
Head of Engineering, iMocha

Cloudanix is building for the future of the cloud, which makes the product all the more desirable.

Ritesh Agarwal
Ritesh Agarwal
CEO, Airgap Networks

Cloudanix gave us the visibility we were missing. Being able to move from permanent access to a robust Just-In-Time (JIT) workflow has fundamentally changed our security posture without slowing down our engineering velocity.

Pavan Kumar Lekkala
Pavan Kumar Lekkala
SRE Lead, HugoHub

We are excited to leverage Cloudanix's comprehensive multi-cloud DevSecOps solution to secure our production workloads on AWS. Cloudanix has demonstrated that it can solve many challenges that DevSecOps teams face while continually adding new features such as SOC2 compliance and drift detection.

Satish Mohan
Satish Mohan
Co-founder & CTO, Airgap Networks

Managing third-party partner access was once a major concern for our security posture. With Cloudanix JIT Cloud, we've effectively achieved zero third-party risk. We can now grant access confidently, knowing that it is temporary, audited, and automatically revoked, resulting in a 100% reduction in our privileged access exposure.

Okesh Badhiye
Okesh Badhiye
Head of Technical Engineering, Finfinity

The snooze feature and responsible alerts have helped us save time and prioritize what to tackle first.

Satish Mohan
Satish Mohan
Co-founder & CTO, Airgap Networks

Implementing Cloudanix JIT internally allowed us to practice what we preach. By eliminating permanent access to our own clouds and databases, we've neutralized the risk of standing privileges, ensuring our own 'keys to the kingdom' are never left exposed.

Girish Manghnani
Girish Manghnani
Managing Partner, Tech Inspira

The problem with permissions is a lot of times, the gaps are left open due to oversights from inside the organization itself. With Cloudanix's CIEM, we get a complete view of user permissions and access. This enables us to update the permissions, reducing the attack surface.

Nilesh Pethani
Nilesh Pethani
Application Architect, iMocha

In the world of Fintech, trust is our currency. Cloudanix provided the frictionless visibility we needed to secure our EKS workloads across AWS, ensuring we stay audit-ready for SOC2 and GDPR without slowing down our engineering velocity.

Amol Naik
Amol Naik
Head of Security & Infrastructure, HugoHub

Cloudanix delivered value within 5 minutes of onboarding. Continuous monitoring, timely detection, and excellent documentation helped us attain a great cloud security posture.

Divyanshu Shukla
Senior DevSecOps, Meesho

Technology strategies and business strategies are in a state of constant change which includes centralization and decentralization of responsibilities. Regardless of strategic shift, we still have intellectual property to protect. Cloudanix are critical partners for us in our public cloud security posture across our three cloud providers.

Jerry Locke
Jerry Locke
Senior Director Global Solutions Engineering, Eversana

Cloudanix has been amazing. They opened up a common Slack channel with us — and it feels like we are talking to our own team and getting things done with Cloud security. The support team is always available, friendly, helpful, and ready to go out of their way.

Satish Mohan
Satish Mohan
CTO, Airgap Networks

Beyond just access management, Cloudanix CSPM has given us a unified view of our AWS environment. The real-time alerting and anomaly detection allow us to prevent any untoward activity before it happens, which is critical for a marketplace connecting 50+ financial institutions.

Okesh Badhiye
Okesh Badhiye
Head of Technical Engineering, Finfinity

For a Fintech company, data is our most valuable — and most sensitive — asset. Cloudanix DAM hasn't just improved our visibility; it has given us control. The ability to mask data and prevent unauthorized queries in real-time is a game-changer for our compliance and customer trust.

Jiten Gala
Jiten Gala
President Engineering and Product, Kapittx

Our clients, especially in the Middle East financial sector, demand absolute accountability. Cloudanix JIT Cloud has been a competitive differentiator for us, allowing us to provide secure, governed access to customer accounts that meet their strictest audit and compliance requirements.

Girish Manghnani
Girish Manghnani
Managing Partner, Tech Inspira

Cloudanix is always on my team's lips because of its exceptional support. Be it a small or big query, Cloudanix has gone above and beyond to resolve them. This one's a keeper for us.

Sujit Karpe
Sujit Karpe
CTO, iMocha

For a long-lasting partnership, great support goes a long way. Cloudanix has delivered exceptional support whenever required. Their edge is their team is always ready to go beyond to solve any issues that we have. This speaks volumes about the culture at Cloudanix.

Akash Maheshwari
Akash Maheshwari
Co-founder, MoveInSync

Beyond the technology, Cloudanix feels like an extension of our own team. Their willingness to stand up a dedicated Middle East tenant for us and provide exceptional support at a sensible price makes them a long-term partner for Hugosave.

Surya Tamada
Surya Tamada
CTO, HugoHub

The real-time notifications that Cloudanix provides are a real lifesaver. Their adaptive notifications ensure that my team stays productive and doesn't get interrupted all the time.

Digvijay Singh
Staff Security Engineer, Meesho

The whole point in technological evolution is to help improve the world we live in. We must protect that and to do so requires an effective and efficient security strategy. The Cloudanix team helped make our public cloud security posture management strategy a reality. The symbiotic relationship we have allows for a continuous feedback loop which is how business should operate.

Larry Wheat
Larry Wheat
Staff Solutions Engineer, Eversana

Ready to see your graph?

Connect a cloud account in under 30 minutes. See every finding rooted in identity, asset, and blast radius — with a fix path attached.

Book a Demo