By NHI Mgmt Group Editorial TeamBased on StackHawk: “What We Learned Watching Engineers Use AI Agents for Real Work” (July 29, 2026)

TL;DR: Watching engineers use AI coding agents on real work showed that cheap models often shift cost from tokens to human correction time, shadow usage, and slower delivery, according to StackHawk. The governance lesson is that model choice now behaves like a control decision, not a personal preference, because the real risk sits in workflow economics and ungoverned tool use.


At a glance

What this is: StackHawk says AI coding agent model selection is a governance choice, not a personal preference, because token-free models often create hidden costs in correction time and shadow usage.

Why it matters: This matters to IAM and security teams because AI agents are becoming operational actors inside engineering workflows, and their access, model tier, and usage policy now shape both productivity and governability.


Context

AI coding agents now sit inside real engineering workflows, so model choice affects more than token spend. The governance gap is that organisations often treat model selection as an individual convenience, even when the choice changes quality, speed, and the amount of unreviewed work created inside the delivery chain.

The identity angle is not about human access alone. When engineers and AI coding agents share the same development environment, policy has to decide which model tier is permitted, how usage is tracked, and whether shadow usage is creating an unmanaged control surface. That makes model choice an IAM and governance issue, not just a developer preference.


Key questions

Q: How should organisations govern model selection for AI agents?

A: Organisations should treat model selection as a governance decision, not a local implementation detail. Approved models, restricted models, and external-facing models should be defined centrally so business teams cannot expand risk simply by choosing a different foundation model.

Q: Why do cheaper AI models sometimes cost more in production?

A: Because total cost includes retries, failed completions, cache resets, and operator time. A model that is cheaper per token but less reliable in tool-heavy workflows can burn far more compute before finishing the task. The right comparison is cost per successful outcome under the real workload, not the advertised input rate.

Q: What are the warning signs that GenAI governance is failing in production?

A: Common signs include rising token spend without clear business growth, poor traceability of prompt flows, inconsistent routing between models, and backend services that still contain long-lived API keys. If teams cannot explain who is calling what and why, governance is not working.

Q: Should teams use the same model tier for every coding task?

A: No. Routine autocomplete, multi-file changes, and security-sensitive decisions have different risk profiles and should not all map to the same tier. A single default makes governance easy but ignores where correctness matters most. The better approach is to define when a stronger model is justified and when a cheaper one is sufficient.


Technical breakdown

Why cheap models create hidden workflow cost

Token-free or low-cost models often look efficient because they reduce visible spend, but that view misses the corrective work they create. When a model gets a task partially right, the engineer pays in reprompting, fixing, and explaining the same context repeatedly. In practice, the expensive unit is not the token, but the human hour spent steering the agent back onto course. For AI coding agents, model quality changes the economics of the whole workflow, especially when tasks span multiple files, context windows, or security-sensitive changes.

Practical implication: Treat model tier as a workflow control and measure engineer correction time, not only token spend.

How shadow usage emerges around AI coding agents

When teams push cost decisions down to individual engineers, people often route around policy to get the model that works best for their task. That creates shadow usage: unapproved accounts, personal keys, or unmanaged access paths that let workers bypass the intended control. In identity terms, the agentic workflow becomes fragmented across accounts and tools, so governance loses visibility into who used what model, under which entitlement, and for which change. The control failure is not just overspend. It is unmanaged access to a production-adjacent workflow.

Practical implication: Centralise model access policy so engineers do not need personal workarounds to reach an appropriate model tier.

Why AI coding agent governance belongs in IAM and policy design

AI coding agents are not only productivity tools. They are decision points that shape code quality, change velocity, and the handling of sensitive engineering tasks. That means the organisation needs a policy model for which tasks may use token-free, workhorse, or frontier tiers, and which workflows require stronger oversight. This is an IAM problem because access to capable models is effectively access to more reliable execution. It is also a governance problem because the organisation has to decide where cheap is acceptable and where failure would be too costly.

Practical implication: Define model tier approval rules for routine, sensitive, and high-consequence engineering tasks.


NHI Mgmt Group analysis

Model choice has become a governance control, not a developer preference. The article shows that the real decision is whether an organisation accepts a token-saving choice that quietly increases human remediation time. Once AI coding agents are embedded in delivery work, the cost centre shifts from software spend to workflow governability. Practitioners should treat model tiering as policy, not habit.

Shadow usage is the predictable failure mode when teams optimise the wrong metric. If leaders reward low visible spend, engineers will seek better models through personal accounts or unofficial paths. That creates an identity and access problem around who can invoke which model, from where, and under whose approval. The control gap is not just visibility, but sanctioned access to the right tier.

AI coding agents turn engineering throughput into an entitlement question. The article’s core insight is that access to the right model affects whether work moves cleanly through the pipeline or stalls in correction loops. That is close to the way IAM leaders already think about role design and permission scope. The practitioner conclusion is straightforward: govern model access as part of the development identity model.

Correction time is the hidden risk signal in agentic coding workflows. The article correctly frames the problem as one of economics and control, not merely quality. When engineers spend more time repairing agent output than benefiting from it, the organisation is paying for unmanaged friction. Teams should treat repeated reprompting, workaround behaviour, and model swapping as evidence that the workflow is outside policy.

Governed model tiering is the right named concept for this problem. Organisations need a clear policy for when token-free, workhorse, or frontier models are allowed, because the cheapest option is not always the least expensive in practice. The practitioner takeaway is to align model access with task risk and approval boundaries, then monitor for bypass behaviour.

From our research library:

What this signals

Governed model tiering is becoming the practical boundary for AI coding agents. If organisations treat model selection as an informal developer choice, they will keep creating hidden correction costs and bypass behaviour that policy never sees.

For identity and access teams, the important shift is that model capability now behaves like an entitlement. That means the control point is not just the account used to access the environment, but the tier of model permitted for the task.

The governance test is whether teams can explain why one workflow gets token-free access while another needs a stronger model. If they cannot, the organisation is already making access decisions without a policy model.


For practitioners

  • Define model-tier approval rules Set policy for which engineering tasks may use token-free, workhorse, or frontier models, and require stronger models for sensitive or high-consequence changes.
  • Track correction-time signals Measure reprompting, manual fixes, and repeated clarification cycles so model choice is evaluated against engineer time, not only token spend.
  • Eliminate personal-account workarounds Provide sanctioned access to approved model tiers so engineers do not route around governance with personal keys or unmanaged accounts.
  • Classify agent use by task risk Separate routine autocomplete work from architecture, security-sensitive, and multi-file tasks, then map each class to the permitted model tier.

Key takeaways

  • AI coding agent model choice is now a governance issue because cheaper models can push cost into human correction time and unmanaged workarounds.
  • The hidden risk is not only spend inefficiency. It is the loss of visibility when engineers route around policy to reach a model that performs better.
  • The practical response is to tier model access by task risk and measure whether the organisation is reducing total workflow friction, not just token usage.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

OWASP Non-Human Identity Top 10 and MITRE ATT&CK address the attack and risk surface, while NIST SP 800-53 Rev 5 and NIST CSF 2.0 set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
OWASP Non-Human Identity Top 10NHI-04 — Insecure AuthenticationAI coding agent access depends on how workers authenticate to approved models and accounts.
NHI-05 — Overprivileged NHIThe article centres on granting stronger models or broader access than task risk warrants.
NHI-10 — Human Use of NHIEngineers are using agent workflows directly, making human behaviour part of the control problem.
Recommendation — Audit AI coding agent access paths for insecure authentication and replace ad hoc logins with governed access. Scope AI coding agent entitlements to the minimum model tier needed for the task. Define policy for when humans may invoke AI coding agents and under what approval boundaries.
NIST SP 800-53 Rev 5IA-9 — Service Identification and AuthenticationAI coding agents and model endpoints behave like service actors that require controlled authentication.
Recommendation — Use IA-9 to govern service-to-service authentication for AI coding workflows.
NIST CSF 2.0PR.AA-05 — Access Permissions, Entitlements and AuthorizationsThe article is fundamentally about who is authorised to use which model tier and when.
Recommendation — Apply PR.AA-05 to align AI coding agent access with role, task risk, and approval rules.
MITRE ATT&CKTA0006;TA0008 — Credential Access; Lateral MovementUnmanaged model access and personal workarounds create credential and movement opportunities inside the workflow.
Recommendation — Map shadow AI access paths to credential access and lateral movement controls.

Key terms

  • AI Coding Agent: An AI coding agent is software that writes, edits, reviews, or tests code with limited human prompting. It operates as an agentic system that can plan actions, call tools, and modify development artifacts, so its identity, permissions, and audit trail must be governed like any other privileged software actor.
  • Shadow Usage: Shadow usage is the use of an approved or unapproved technology outside formal governance visibility. For AI agents, it often appears when people route around policy with personal accounts, unmanaged keys, or informal access paths to get better model performance.
  • Model Tiering: Model tiering is the practice of assigning different AI models to different task classes based on risk, complexity, or cost. It lets organisations reserve stronger models for high-consequence work while keeping routine tasks on cheaper tiers, provided the policy is governed and auditable.
  • Correction Spiral: A correction spiral is the pattern where an AI system produces incomplete or flawed output, and the human must repeatedly reprompt, clarify, or fix it. The risk is not only lost time. It also increases the chance that unsafe or inconsistent output makes it further into the delivery process.

Deepen your knowledge

NHI Mgmt Group covers identity security, NHI governance, and agentic AI through independent research, practitioner guides, and the NHI Foundation Level course. If your programme now includes AI coding agents, this course helps teams connect governance, access, and identity controls across the workflows that matter.
NHIMG Editorial Note
Published by the NHIMG editorial team on August 1, 2026.
Updated on October 13, 2026.
NHI Mgmt Group, the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org