---
title: "Discussion on \"AI Coding Tip 036 - Grant AI the Least Privilege Possible\" | Hashnode"
description: "Discussion on \"AI Coding Tip 036 - Grant AI the Least Privilege Possible\". Deny by default, or watch your API become someone else's playground.\n\nTL;DR: Give every AI agent only the access its task needs, and watch for the intrusion nobody granted.\n\nCommon Mistake ❌\nYou wire"
url: "https://hashnode.com/posts/ai-coding-tip-036-grant-ai-the-least-privilege-possible/6aa5751fb1836e9b2c3bad8c"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [AI Coding Tip 036 - Grant AI the Least Privilege Possible](https://maximilianocontieri.com/ai-coding-tip-036-grant-ai-the-least-privilege-possible?utm_source=hashnode&utm_medium=feed)

Deny by default, or watch your API become someone else's playground. TL;DR: Give every AI agent only the access its task needs, and watch for the intrusion nobody granted. Common Mistake ❌ You wire

Sep 12 · 16 min read · maximilianocontieri.com  
Read the article

## Written by

[Maxi Contieri](https://hashnode.com/@mcsee)

@mcsee · Buenos Aires

  
[View profile](https://hashnode.com/@mcsee)

Software Engineer

I’m a senior software engineer loving clean code, and declarative designs. S.O.L.I.D. and agile methodologies fan.

## Responses 3

Markdown supported · ⌘↵ to post

[Julian Neagu](https://hashnode.com/@julianneagulab)

[Sep 16](https://hashnode.com/posts/ai-coding-tip-036-grant-ai-the-least-privilege-possible/6aa5751fb1836e9b2c3bad8c/comment/6aaa4b9ba7053d1d3fe4c4fc)

The part about permissions being enforced outside the prompt is key. If the agent can't call the tool, there's nothing to argue about.

[Ира Иващенко](https://hashnode.com/@irusik)

[Sep 13](https://hashnode.com/posts/ai-coding-tip-036-grant-ai-the-least-privilege-possible/6aa5751fb1836e9b2c3bad8c/comment/6aa6bc85f52d4b1abdb79108)

I’m interested in AI and currently testing different tools and programs. That’s why AI agent security is especially interesting to me — the more capabilities we give them, the more important it becomes to properly limit access and monitor their actions.

[BotSailor](https://hashnode.com/@botsailor)

[Sep 13](https://hashnode.com/posts/ai-coding-tip-036-grant-ai-the-least-privilege-possible/6aa5751fb1836e9b2c3bad8c/comment/6aa65789274707ef2057cd8a)

Great reminder that giving AI more access does not always mean better results. As AI tools become more integrated into development workflows, security practices like least privilege become even more important. Just like we carefully define permissions for human team members, we should also think about what data, systems, and actions an AI agent truly needs to perform its task. A thoughtful balance between capability and control will be key for building reliable AI-powered workflows. Simple principle, but a very important one for anyone working with AI systems today. Thanks for highlighting this!
