Bitsbuffer
AI & Automation

Agentic Engineering Explained: Guardrails That Work

What agentic engineering means, where it fails and the guardrails that keep AI coding agents safe, using OWASP, Gartner and DORA guidance for software teams.

B

Bitsbuffer Studio

Engineering & product team

7 min read

Agentic engineering is building software with AI agents that can plan and carry out multi-step work, such as reading a codebase, editing files, running tests and proposing changes, while humans set the goals and review the results. It is a useful way of working when the agent has narrow permissions and a person approves what matters. It is a risk when the agent can do more than its task needs.

This post defines the term plainly, then sets out the guardrails we think any team should have in place first.

Key takeaways

  • Agentic engineering means software built with AI agents that plan and take multi-step actions, under human direction and review.
  • OWASP names three root causes of excessive agency: excessive functionality, excessive permissions and excessive autonomy.
  • Gartner predicts over 40% of agentic AI projects will be cancelled by end of 2027, so scope narrowly.
  • Guardrails are ordinary engineering: least privilege, approval for high-impact actions, logging and tests.

01What Is Agentic Engineering, in Plain Terms?

A chat assistant answers a question. An agent is given a goal and a set of tools, then works through steps on its own: it reads files, runs commands, checks the result and tries again. In software work that might mean fixing a failing test, updating a dependency or writing a feature slice.

The shift matters because the agent now acts, not just advises. Actions have consequences, and consequences need limits.

02What Can Go Wrong With AI Agents in Software Projects?

OWASP's LLM06 entry on excessive agency defines the problem as damaging actions performed in response to unexpected, ambiguous or manipulated model output. It applies whatever the cause, whether a hallucination or a prompt injection. OWASP lists three root causes: excessive functionality, excessive permissions and excessive autonomy (OWASP LLM06:2025).

In plain examples: an agent with a shell tool when it only needed to read files, an agent with database write access when it only needed a report, or an agent that deploys without anyone approving.

The shift matters because the agent now acts, not just advises.

Root causePlain exampleGuardrail
Excessive functionalityAgent can run any shell commandGive it narrow, purpose-built tools only
Excessive permissionsAgent holds production database write accessRead-only roles enforced by the system
Excessive autonomyAgent merges and deploys unaidedHuman approval for high-impact actions
Weak visibilityNobody can see what the agent didLog tool activity and downstream actions

03Which Guardrails Should You Put in First?

Start with least privilege. OWASP recommends providing only the minimum necessary extensions, limiting each to the functions it needs, granting downstream permissions at the minimum level and enforcing authorisation in downstream systems instead of trusting the model's decisions. Then require human approval for high-impact actions, and log activity so you can reconstruct events.

OWASP also notes that logging and rate limiting limit damage but do not prevent the problem. They are a second line, not the first.

04Why Do So Many Agentic Projects Struggle?

Gartner predicts over 40% of agentic AI projects will be cancelled by the end of 2027, citing escalating costs, unclear business value and inadequate risk controls (Gartner, June 2025). Scope is a common culprit. Teams give an agent a broad mission, then cannot tell whether it is working.

DORA's 2025 findings point the same way. AI amplifies existing practice, and delivery instability rose alongside throughput (DORA 2025 report). Without tests and review, speed arrives with breakage.

05How Do You Start Agentic Engineering Safely?

Pick one repository with good tests and low business risk. Give the agent read access and the ability to open a change request, not to merge it. Keep secrets out of its reach. Review every change for a month and note what it got wrong. Widen permissions only where the record is clean.

This is slower than turning everything on. It is also how you find out where the agent is reliable. Our team workflow for this is in how to ship software with AI agents, and the accountability side is in who answers when AI goes wrong.

If you are hiring a studio that uses agents, ask exactly what the agents can access. Ask us the same question and judge the answer.

06What Does an Approval Policy for Agents Look Like?

Write it as a short table that anyone on the team can read in a minute. List the actions an agent might take, then say whether it may do them alone, needs a person to approve or may not do them at all. The policy below is a starting point and should be tightened for payments, personal data and anything customer-facing.

Review the policy after every incident and every quarter. Permissions tend to creep upward because it is convenient, and the review is how you push them back down.

ActionAgent alonePerson approvesNot allowed
Read the repositoryYes
Propose a change requestYes
Merge to the main branchYes
Deploy to productionYes
Access production secretsYes, never
Change permissions or accountsYes, never

Frequently asked questions

It is building software with AI agents that plan and perform multi-step tasks such as editing code and running tests, while humans direct the work and approve results.

OWASP defines it as damaging actions taken in response to unexpected, ambiguous or manipulated model output, caused by excessive functionality, permissions or autonomy.

In narrow, well-tested settings with human approval, yes. Gartner expects over 40% of agentic AI projects to be cancelled by 2027, so start small.

The minimum for its task. Typically read access to the repository and the ability to propose changes, with no production credentials and no merge rights.

Assistants suggest code as you type. Agents take multi-step actions with tools, which raises both the benefit and the need for guardrails.

Want a product or workflow built around your team?

We help teams move from scattered tools to dependable software that actually supports the work.

Talk to us about safe AI-assisted delivery