Teams Can't Safely Give AI Agents Write Access
61 posts across 22 communities in the last 90 days; 15% from r/LocalLLaMA.
“Hey everyone 👋 Solo dev here. I've been working on a side project for a few weeks and would like to hear how others solve this problem. The problem: while playing with AI agents I noticed every app ends up needing checks like "don't let it delete data unless the user confirmed"…”
“> If you're testing models by telling them 'go wild, do the evil so we can test how good you can do the evil' and have p(doom)>0, you should not have a sandbox.They were not deliberately told to "go wild". The hacking wasn't even part of their test, it was the agents' attempt to…”
“Genuinely curious. A year or so ago I grew very tired of having to constantly monitor my terminal in case the agent would ask me for permission to use a tool. I wouldn't have minded that much if the all harnesses didn't suck as much as they do and actually remembered permissions…”
Engineers and ops leads who want agents to actually do things — publish content, touch production, run shell commands, hold a Docker socket — but have no permission layer they trust: every new tool needs human approval, zero-trust runtimes, agents with CMS write access, how much to trust an agent at the current capability level. The ask is scoped, auditable permissions for agents instead of all-or-nothing.
SOURCES (60)
“Hey ! I guess most of us have a lot of admin accesses to tools like AWS, k8s clusters, Datadog, GitHub etc. How do you contain your agents to read-only or curated permissions? Without restraining your own accesses. I do have some sort of hook…”
“I work on agent tooling, so I installed 17 self-hosted agents back to back on my local Docker to see what each one can actually touch out of the box. Test format Each agent got an MCP server with read and write tools for a fake Stripe API, and a rule that writes need my approval. A scripted model (not a real LLM) then tried the same things on all of them: a write, deleting the rule from chat, editing the rule file with the agent's own shell, and reading the access token off disk. So this is”
“I'd like a Claude session in a caged ( Enforce / EnforceFs ) task to fan out work to more Claude sessions in the same task, each as a termic tab. Today "$TERMIC CLI" tab agent claude p "..." fails there with "control plane unavailable". This doesn't seem to grant anything new: the agent can already start Claude subagents or claude p inside the same cage, they just aren't termic tabs I can already open a new agent tab on the task by hand, and it gets the same cage The main frictions are: caged ag”
“20 minutes of adversarial prompting is a decent smoke test, not a security result. the important bit is whether the agent has any authority beyond chat: account changes, API calls, file access, refunds, etc. if it does, every action should be allowlisted and require server-side permission checks. “the model refused” isn’t a control.”
“Easy, have an agent watching what the other agents are doing with the ability to stop them doing things. Which will be fine until it gets a bit proactive and takes the permissions off of your other agents, making your other agents hack themselves even more permissions and take them away from your observer.”
“We rolled out AI assistants to about 120 engineers and the policy is two paragraphs long. The assistants can read the repo and write files and some of them shell out. Our appsec review covered the model vendor and nothing about what the agent does locally. Im trying to work out where the control points even are, since the laptop is now executing code nobody reviewed. Secrets in env files are the part keeping me up. How are people scoping this? submitted by /u/theJacofalltrades [link]”
“Hey everyone 👋 Solo dev here. I've been working on a side project for a few weeks and would like to hear how others solve this problem. The problem: while playing with AI agents I noticed every app ends up needing checks like "don't let it delete data unless the user confirmed" . The usual options are writing if/else logic for every case, or a custom LLM prompt whose free-text answer you then have to parse. What I tried: a single call that takes a rule in plain English plus wh”
“I'm guessing you're building this as a policy layer on top of whatever tool-calling framework you're using, so you're checking permissions right before the agent invokes the tool. But the part that usually breaks is tying those policies back to why the agent decided to take that action in the first place, which makes it hard to know if you're blocking something legitimately risky or just over-correcting.”
“hey folks! I’m looking for good examples of product/technical specs for building AI agents, especially agents that interact with a UI. A few things I’m trying to figure out: what the spec should define for the agent itself: goals, inputs/context, tools, decision logic, permissions, failure/recovery states, etc. whether there are any libraries, frameworks, or open-source repos you’d recommend as references for structuring this well If you have examples of specs, agent UX patterns, or implementati”
“pi pod runs sessions of the pi coding agent in isolated sandboxes ("pods") on a server you run, in composable environments.----Since moving my company towards AI-native work, I have been really frustrated by the state of "agentic engineering" environments. Products by the labs (claude code, codex) lock you into a single provider for your tokens. Agnostic solutions (factory, devin, arguably cursor) make you pay per-token costs. None of these products allow you to fully customize the harness, and”
“We have a user who sent an admin permission request for Meta's Muse AI agent. All the permissions it's asking for are all under our low-risk and acceptable permissions (User.Read, offline_access, Mail.ReadWrite, Mail.Send), but my entire team is really hung up on the fact that it's an AI agent doing things on its own to someone's mailbox. It's not just any "regular" piece of integration software like what usually requests these permissions. Right now we're think”
“Those are API things. Should be an API, build an MCP server for it. Doesn't touch the PC. About the automated responses, that's a write operation, therefore requires user consent.If you want to design a system specifically to make sure you're not going to get stonewalled for sending me an emdash, you build and maintain a set of permissive rules for sending/reading to avoid my blacklist of people I'll never work with.Once you got API stuff sorted, just throw a cronjob at it or build a service for”
“I’m one of Acira’s founders. We’re building a way to decide which actions a computer agent can take, which need your approval, and which should be blocked. This video walks through the product and the decision flow. We’re opening invitation-based early access and checking compatibility with each person’s setup. I’d value blunt feedback: is the rule → agent action → decision → result clear from the demo? Which action would you most want an agent to ask about before proceeding? submitted by”
“an open sandbox from nvidia is a nice surprise. curious whether network is off by default or opt-in, that's usually where these get weak”
“Obviously the "Nvidia open agent safety platform" is tailored for nvidia use cases. Nevertheless it is still a sandbox anybody can use to wall an agent in a worspace with constrained permissions and network. Everybody can use it for agents. Imho they have a really high incentive to make a truly capable sandbox and maintain it. Who else?”
“Expand the replies to this comment to learn how AI was used in this post/project.”
“Feature request: Persistent custom agents with managed permissions (OpenCode V2) Problem Following the migration to OpenCode V2, custom agents stored in the Home Assistant project directory are no longer discovered. I previously used a dedicated HILDA Audit agent for read only investigation of my Home Assistant installation. It has a carefully restricted permission policy, explicit allowances for read only Home Assistant diagnostic tools, and a substantial set of instructions specific to my inst”
“> If you're testing models by telling them 'go wild, do the evil so we can test how good you can do the evil' and have p(doom)>0, you should not have a sandbox.They were not deliberately told to "go wild". The hacking wasn't even part of their test, it was the agents' attempt to cover up that they'd cheated on an impossible test.> You should have a fscking air gap.Now we know that.How long ago was it that people laughed at the idea agents would be able to find zero-day exploits and break out of”
“Genuinely curious. A year or so ago I grew very tired of having to constantly monitor my terminal in case the agent would ask me for permission to use a tool. I wouldn't have minded that much if the all harnesses didn't suck as much as they do and actually remembered permissions when you tell them to, but they don't, so you end up having to answer "Yes" a quadrigazillion times a day.So claude has been an alias to `claude --dangerously-skip-permissions`, and codex has had `approvals_reviewer = "a”
“We've got agents in places that make me nervous now. The likes of coding assistant with repo access, one internal thing that pokes at cloud consoles and a couple wired into customer data through internal APIs. Everything we use for security assumes a person is clicking the buttons. Unfortunately that stopped being true the moment these things started chaining tool calls on their own. Right now I'm just bolting on the obvious stuff like own token per agent instead of the shared service ac”
“Hi sysadmins, I'm an IT lead currently planning an internal AI platform for a manufacturing company. Before going too far with the AI side of the project, I'm trying to understand the infrastructure and security implications. Our company has confidential information such as product formulas, research, internal documentation, business data and intellectual property. The goal is eventually to allow employees to use internal AI assistants and agents that can interact with company informatio”
Your AI agent can call 100 tools. But how do you know they actually work? We built an SDK to test agents against real websites and real workflows, not mocked tools. Give…
“giving an ai agent full desktop control is where i get nervous. local helps with privacy, but one bad interpretation still has access to your files. sandboxing + a decent audit log would go a long way”
“Problem: getting ai sdlc running in a project has no single path: clone this repo, symlink the CLI, install agent sandbox, opencode auth login , build the docker/Dockerfile derivative (the stock image has no opencode), pip install lizard + npm i g jscpd on the host, then ai sdlc init + edit conf. Nothing verifies the stack — when something's missing, the first dispatch fails with container internal errors instead of saying what's absent. And the skills ( .claude/skills/sdlc , .claude/agents/revi”
“reql storage clear is the command I’d be most careful about wiring into an agent. Does it require an explicit confirmation or project selector today, or can a non-interactive caller clear the current store directly? I’d want the destructive target to be obvious enough that a stale working directory can’t wipe the wrong project’s memory.”
“More the first one. We normalize events from each integration into Sulcus rather than relying on provider logs directly. Makes it way easier to keep the runtime provider neutral.”
“I run five agents in one repo: Claude, OpenAI and Gemini on subscriptions, plus two open-weight Qwen models on my own hardware. I built a message bus so they could coordinate, and put a permissions broker on the same service. Anything destructive (restart a service, wipe state) sends me a Telegram and waits for approval. One agent needed to change the bus itself: stop it, clean some keys, start it again. The coordinator refused to stop it at first, because with the bus down the cleanup agent had”
“Tried to recreate an agent that worked fine last Tuesday. Skills were in one repo. MCP config was somewhere else. The prompt lived in a wiki. Nobody agreed which combo was actually live. Dug into KitOps (CNCF Sandbox). It packs models, datasets, MCP server bundles, agent skills, and policies into a versioned OCI artifact (a ModelKit). CLI feels like Docker: kit pack / push / pull / unpack . Uses normal OCI registries you already have. Useful bits I’ve hit so far: Selective unpack so you’re not a”
“I remember reading a whole bunch of posts and articles in 2025/early 2026 about how AI agents deleted a company's entire database, pushed bad code or deleted someone's baby pictures. But, AI agents have come a long way since then. I've seen people make really cool stuff when letting their agent run loose and I also had a good time coding with them. But, one problem is that for much larger projects, I still sit around and manually have to approve toolcalls, workspace writes, internet”
“I will be blunt, I don’t use many harnesses other than open code, or just copy pasting from Claude when I code. But do any harnesses allow you to set your own rules or prevention of certain commands or features in the shell from being used, like rm -rf or other destructive commands? I’d probably trust a local model more if I could make sure they don’t do anything that they shouldn’t. Because I’ve noticed a few people in posts talk about this happening to them. I guess since I generally just copy”
“The useful distinction is convenience versus delegated authority. Searching the web can usually be low risk, while deleting pages should require scoped permissions, a visible action preview, and a recovery window. I would also add a dry-run mode that lists affected pages and dependencies before execution, plus alerts for unusually broad operations. https://www.neurakeep.com is relevant here because durable agent memory can preserve workspace context, while authorization and destructive-action sa”
“The best non technical explanation you can give is "An AI agent is an LLM that can take actions".While an agent doesn't necessarily have to be powered by an LLM, most modern AI agents are.You pointing at a human brain does not change that an AI agent is not intelligent and cannot think, we are still talking about probability built on statistics with extra steps.I am not trying to be dishonest, we should stop making analogies between AI and actual thinking, because they are two entire different c”
“I've been experimenting with setting up automation agents and local MCP servers to interact with internal tools. When you first set them up, the quickest route is just handing them an API token with broad permissions in an environment variable so the agent can run tasks without hitting permission blocks. The issue is that automation tools consume credentials at machine scale. Unlike a human developer where access can be audited with standard access logs, these agents run continuously and mak”
“AI pursue goals. The Hugging Face incident was the researchers not setting up the environments properly, so they had permissions which they normally wouldn't. They don't suddenly become "hostile" and want to destroy humanity. They have a prompt/task/goal, they do that. That's it. For AI to copy itself, it needs a massive infrastructure. It can leave instructions to others to help achieve its current goal, and sure, it's annoying, but it will be meaningless to other AI i”
“Summary Provide built in mixin kits for popular coding agents (Claude, Copilot, etc.) so multiple agents can be installed into the same sandbox, instead of agents only being available as full sandbox kits. Motivation Kits for agents like Claude and Copilot currently appear to exist only as full sandbox kits, and it seems only one can be installed per sandbox. I often want to have multiple agent harnesses on the same sandbox. If Docker shipped mixin kits for each agent (configured to work well in”
“Yup, templating is pretty high on the list and in progress. Probably the feature I'm most excited for. For your blast radius problem, do you always throw away agent changes?”
“Problem No document comprehensively/accurately covers agent tool permissions — what a tool invoking agent may call, and what forces a human approval — even though the underlying enforcement is real, live, and heavily exercised in code. docs/developer/AGENT MATURITY LEVELS.md:41,79 states each agent's least privilege boundary is "enforced at the tool seam — see AUTHENTICATION RBAC.md" and cross references it for "Capability boundaries & enforcement." But docs/developer/AUTHENTICATION RBAC.md (rea”
“I’ve been thinking about this while looking at some of the newer AI/agent stuff around Salesforce. Giving an agent read access seems pretty easy to get comfortable with. It’s the write access that I’m not sure about. Say you have an agent that can create leads, update opportunities, change records, etc. Would you give it the same permissions as the user it’s acting for? Or would you give the agent its own user/permission set with a much smaller set of things it can actually do? I’m also wonderin”
“A fake "drop the production database cluster" scored 95 and my own guard allowed it. No policy matched. That was Sep 8 and it's the most useful thing that's happened to this project. Quick background. DashClaw is the approval layer I built so agents running unattended have to ask before they do something destructive. An AI maintains the repo under a constitution I hold and writes a public log of what it did. Last update was five weeks ago. Back in August I turned every policy o”
“Your boss handed you an output without an input. Sandbox + MCP + agents is a shopping list, not a strategy. Before any “AI infrastructure,” name two workflows, the data classes allowed in each, who owns the result when the model is wrong, and what “done” means in dollars or cycle time. Least privilege connectors and audit logs matter but only after the work is defined. Otherwise you build a playground that moves SharePoint files in circles and never changes the P&L. In regulated or PE-backed”
“A former employee's key is sloppy, but giving a model unbounded write access creates far worse damage in production. Models rarely go rogue on purpose. They simply execute ambiguous instructions against whatever API permissions someone handed them. Someone builds a quick script to update a lead status in the CRM, hands the script an admin token with broad permissions, and an unvalidated prompt eventually wipes out custom pipeline fields or overwrites customer records. In my client systems, I”
“We use a similar check before onboarding — Claude Code agents get scoped to specific directories and API endpoints via the OpenClaw config. The scary part tbh isn't the leaver's key, it's the agents that were granted write access to prod db through a one-off "update status" prompt injection. A 15-minute audit saved one client from what would've been a nightmare.”
“ok so we picked up a client this spring who already had a couple of "little AI tools" running that someone in ops built with an LLM before we came in. Things like slack bot that summarizes support tickets, a script that pushes stuff into their crm, etc. The standard for us is to audit access before we write a single piece of code, and this one took about 20 minutes to find. the summarizer bot was running on a personal api key belonging to a guy who'd left the company. admin on ever”
“I have talked to someone recently who said hand-writing a role/permission scope for every new AI agent is becoming the real tax — not runtime failures, just the ongoing work of defining what each agent is allowed to do. For people running more than a handful of agents/tools in production: Are you hand-writing a role for every new agent, or has someone actually solved this? When you write a new one — is it genuinely bespoke, or mostly the same handful of patterns copy-pasted with small tweaks? At”
“If you’re building agents, you’ll probably need to give them a computer at some point. A lot of what agents do today involves CLI tools, skills, Bash, and a filesystem, especially when the work gets more complex. I wrote an article comparing sandbox options like E2B, Vercel, and cloud-native solutions like AWS MicroVMs. The company I work for also built its own internal sandbox system, so I’ve included what we learned from that. It covers what might make sense at different stages, wheth”
“I do, but with a huge asterisk. The agent runs inside a VLAN that has very limited and targeted network access, and the AI model is run on my own GPU. Anything can be secure if you lock it in a box that it can't break out of. Obviously, the weight of the lock can and should be dependent on the value of the data it accesses. For me, it performs read-only log checks over a custom API exposed via private network. At that point all I'm really gaining is automation capable of reasoning. But t”
“Heyo, got a question. Many of the services we host are OSS projects, maintained by volunteers in their freetime. Now ai has gotten extremely good at analyzing code for vulnerabilities and we can only assume it to get better and better. And with this, the amount of 0days will only rise. And that leads to my question. What are the steps to set up an zero trust environment, where I assume any of my containers can be compromised at any time. I’m talking about proper sandboxing and isolation, detecti”
“You're also not running at the scale they are, nor are the models you're running as capable. Launch 1000 agents running a 10T parameter model and let them freely communicate with one another and they'll probably find a way out of your sandbox. The model you're running on your home computer, probably not.”
“Skills can be turned on or off, scoped to user only, or set to name only invocation, all from the running session, without editing a file. Subagents have no equivalent. The only lever today is permissions.deny in a settings.json file, which needs an edit and (for project/local scope) a restart or reload to take effect. This looks like the same gap called out in 77435 (agents have no disable model invocation frontmatter, so plugin agent descriptions always load) and 83547 (the agent roster is not”
“I’d like to propose allowing AI artifacts to send webhooks whenever the stored data in an AI artifact is updated. There are many reasons why this would be advantageous, but I’ll try to keep my case short. Many organizat…”
“tough to sell basic scripts when people can just prompt them lol. maybe try auditing legacy code that ai keeps hallucinating on”
“When Agent Host server tools create a session or a peer chat, inherit the invoking chat's model and permission configuration. The newly created session or peer chat reuses the invoking chat's model when compatible, and delegates provider owned permission config inheritance to the Copilot, Claude, and Codex agents. Preserve each provider's defaults, avoid carrying incompatible models across providers, and keep existing behavior when the tools are invoked without an inheriting context.”
