cd /news/ai-agents/the-5-boundaries-i-set-before-my-cod… · home topics ai-agents article
[ARTICLE · art-135131] src=gist.github.com ↗ pub= topic=ai-agents verified=true sentiment=· neutral

The 5 boundaries I set before my coding agent builds anything

A developer outlined five operational boundaries for running coding agents safely, arguing that access, spend, change, and release controls should be enforced by the environment rather than the agent's own caution. The recommendations include isolating browsing sessions from sessions holding credentials, restricting file and network permissions, using enforced spending caps with timeouts and retry limits, requiring protected-branch reviews before merges, and gating deployment behind approvals outside the agent's control.

by read1 min views5 publishedSep 14, 2026

A companion to the five shifts above. Not prompt advice, setup: what the agent can access, spend, change, and release.

1. Everything it reads is a potential instruction. Hidden text in a webpage, README, or issue can steer an agent, content and commands look the same to a model. The session that browses is never the session holding keys or write access.

2. A project folder is not automatically a secret-proof sandbox. By default an agent can often read more than the folder you opened. Restrict file and network access in your agent's permission settings, and keep production secrets out of its environment entirely. In Claude Code: check Settings and the permissions you approve, plus the sandboxing docs at code.claude.com/docs/en/sandboxing

3. Check whether your spending limit stops requests or just sends an alert. Providers differ, and enforcement is not always instant. Use an enforced cap where available, plus a timeout and a retry limit on anything running unattended. OpenAI's spend-limit docs: developers.openai.com/api/docs/guides/spend-limits

4. Unreviewed changes never reach main. Let the branch enforce it, not your discipline: required review and passing status checks before merge. GitHub protected branches: docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/managing-protected-branches/about-protected-branches. Treat secret scanning as a check, not proof.

5. Building and releasing are separate decisions. Do not rely on the agent remembering not to deploy. The release requires an approval outside its control, deployment environments with required reviewers, restricted deploy permissions.

The pattern: not asking the agent to be more careful, deciding what it can access, spend, change, and release.

── more in #ai-agents 4 stories · sorted by recency
── more on @claude code 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/the-5-boundaries-i-s…] indexed:0 read:1min 2026-09-14 ·