AD SPACE AVAILABLE · BRAND PARTNERS WELCOME

Monitoring Devin ACUs and Configuring Spending Limits: An Engineering Manager's Cost Governance Guide

365Finds Editorial
Indexed 88,650 Wiki articles

Put 365 Wiki to work with your AI

Copy the prompt below, paste it into the AI you already use, then ask your question.

Download full Skill

Try it with the prompt first. If you use 365 Wiki often, install the full 365Wiki Skill so you do not have to paste it again. No regular AI? Gemini or Microsoft Copilot on the web will work.

365Wiki Skill

When engineering teams transition from inline AI autocompletion tools (like GitHub Copilot) to fully autonomous software engineering agents like Devin, the underlying operational economics change fundamentally. Unlike autocomplete tools billed per seat or per token on short completions, Devin operates as an autonomous agent in a sandboxed cloud environment. It plans multi-step architectures, clones repositories, executes shell commands, runs test suites, browses documentation, edits multiple files, and iterates through compilation and testing loops.

For engineering managers, directors, and platform efficiency leads, this autonomy raises a significant governance concern: What prevents Devin from entering an infinite retry loop during an end-to-end test refactoring or complex bug fix, burning through cloud compute and blowing past quarterly budgets?

Devin addresses this challenge through a multi-tiered cost governance architecture centered around Agent Compute Units (ACUs). By establishing organization-level hard budget caps, configuring granular per-user usage tiers, tuning automated approval workflows based on efficiency scores, and leveraging pre-flight prompt coaching, engineering leaders can reliably govern Devin execution costs without slowing down developer velocity.


1. Demystifying Devin's Metering Architecture: What is an ACU?

To control Devin costs, managers must first understand how Cognition measures agent work. Devin does not bill simply by wall-clock time or raw token volume. Instead, all consumption is normalized into Agent Compute Units (ACUs).

What Accrues ACUs

An ACU measures the computational and cognitive resources Devin consumes while actively performing work on a task. This includes:

What Does NOT Accrue ACUs

Devin only meters active agent cycles. ACUs are not consumed during:

Enterprise ACUs vs. Self-Serve Credits


2. Configuring Hard Spending Limits and Budget Guardrails

Devin provides a strict two-layer limit architecture: Organization-Level Limits (pooled team or project budgets) and User-Level Usage Policies (individual developer caps). Both limits operate independently; if a task hits either ceiling, further execution is blocked immediately.

+-------------------------------------------------------------------------+
|                        Enterprise Billing Account                       |
+-------------------------------------------------------------------------+
                                     |
         +---------------------------+---------------------------+
         |                                                       |
         v                                                       v
+-----------------------------------+   +-----------------------------------+
|      Organization A (Core)        |   |      Organization B (Mobile)      |
|  Hard Cap: 5,000 ACUs / month     |   |  Hard Cap: 2,500 ACUs / month     |
+-----------------------------------+   +-----------------------------------+
         |                                                       |
   +-----+----------------------+                          +-----+-----+
   |                            |                          |           |
   v                            v                          v           v
[Tier: Staff Engineers]  [Tier: Standard Devs]       [Tier: Standard Devs]
Cap: 1,000 ACUs / user   Cap: 400 ACUs / user        Cap: 400 ACUs / user

Layer 1: Organization-Level ACU Limits (Team Budgets)

An organization-level limit sets a hard monthly ACU cap for an entire organizational unit, mapping directly to specific engineering groups, microservice teams, or cost centers.

How Organization Limits Work

  1. Monthly Billing Windows: Limits apply to total consumption within the organization's monthly contract window. For example, if an organization has a 5,000 ACU monthly limit and has consumed 3,800 ACUs, 1,200 ACUs remain available.
  2. Hard Block Enforcement: When an organization reaches its cap, all new work billed to that organization is blocked. In-flight sessions pause, and developers receive a clear alert banner indicating that the organization has exhausted its ACU allocation.
  3. Usage Attribution Across Surfaces:
    • Cloud Sessions: Attributed to the organization hosting the session.
    • Devin Review: Attributed to the code review's billing organization.
    • Devin Desktop & Devin CLI: Attributed to the user's assigned billing organization (billing_org_id).

Configuring Organization Limits in the Console

  1. Navigate to Enterprise Settings > Organizations (app.devin.ai/settings/organizations).
  2. Locate the target organization and click Update name and limits (pencil icon).
  3. Specify the monthly ACU budget in the Monthly ACU Limit field.
  4. Save the configuration. Changes take effect across all agent surfaces within approximately five minutes.

Configuring Organization Limits via API

Enterprise administrators can automate budget provisioning via the v3beta1 Enterprise REST API:

# Set a 5,000 ACU monthly cap for an organization
curl -X PATCH "https://api.devin.ai/v3beta1/enterprise/organizations/org-platform-eng/consumption/acu-limits" \
  -H "Authorization: Bearer <ENTERPRISE_API_TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{"cycle_acu_limit": 5000}'

Setting "cycle_acu_limit": 0 immediately freezes all new work for that organization, while "cycle_acu_limit": null removes the organization cap.


Layer 2: User-Level ACU Limits and Usage Policies

While organization caps protect macro team budgets, Usage Policies prevent individual engineers from unintentionally consuming an entire squad's quota on a single runaway script.

Enterprise administrators manage user caps via Enterprise Settings > Usage policies.

Usage Tiers

A usage tier is an enterprise-wide group definition that establishes a standard monthly ACU limit applied individually to each member:

Tier NameTypical PersonaSuggested Monthly AllocationApproval Policy
Default TierNew team members, contractors, exploratory users150 – 250 ACUsManual approval
Standard EngineeringFull-time feature and backend developers400 – 600 ACUsApprove based on efficiency
Power Users / Tech LeadsInfrastructure leads, migration engineers1,000 – 1,500 ACUsAlways approve (up to ceiling)
CI / Service AccountsHeadless automated ticket-triage botsCustom / UncappedManual approval

Note: Tier allocations apply individually to each member; they do not act as a shared pool.

IdP Group Mappings and Precedence Resolution

Rather than manually assigning developers to tiers, administrators can map Okta, Microsoft Entra ID, or SAML/OIDC groups directly to tiers:

  1. Under Usage policies > Usage tiers, select Configure group mappings.
  2. Map directory groups (e.g., Engineering-Platform vs. Engineering-Frontend) to their respective tiers.
  3. Configure Tier Priority to resolve conflicts when an engineer belongs to multiple IdP groups.

A developer's effective limit resolves in strict precedence:

  1. Permanent Override: User-specific manual override configured by an admin.
  2. Active Temporary Override: Approved limit bump valid for the current billing cycle.
  3. Explicitly Assigned Tier: Direct user assignment in the Devin console.
  4. Highest-Priority IdP-Mapped Tier: Winning group mapping.
  5. Default Tier: Fallback for unassigned members.

Granular Overrides and Blast-Radius Previews

If an engineer needs temporary extra compute for a high-priority migration, an admin can apply an override from Usage policies > Members:

When reducing limits across a tier, the Devin console presents a blast radius preview, showing exactly how many members will be blocked, how many will have their caps lowered, and who remains unaffected.

Additional Usage Request Workflows

When an engineer reaches two-thirds of their monthly limit, Devin displays an advisory warning. Upon hitting the limit, all new local (CLI, Desktop) and cloud tasks are blocked, and a Request more ACUs prompt appears.

Administrators configure how limit requests are handled per tier:


3. Real-Time Observability and Consumption Monitoring

Cost governance requires continuous visibility. Devin provides built-in dashboards, per-task analytics, and programmatic monitoring APIs.

+---------------------------------------------------------------------------------+
|                               Observability Matrix                              |
+-----------------------------------+---------------------------------------------+
| Surface                           | Governance Value                            |
+-----------------------------------+---------------------------------------------+
| Enterprise Consumption Dashboard  | Macro enterprise run-rate, billing cycles   |
| Org Consumption Analytics         | Team-level drilldown, top-consuming users   |
| Session Insights                  | Task-level root cause, retry loop detection |
| Devin Coach                       | Pre-flight prompt waste prevention          |
| Enterprise REST APIs              | Automated FinOps pipelines, Slack alerts    |
+-----------------------------------+---------------------------------------------+

Console Analytics Dashboards

Task-Level Post-Mortems with Session Insights

To diagnose why a specific task consumed excessive ACUs, managers can inspect Session Insights directly from any completed session menu (⋯ > Session insights):

  1. Session Size Classification:
    • XS: ≤ 2 ACUs (≤ 20 Enterprise ACUs)
    • S: ≤ 5 ACUs (≤ 50 Enterprise ACUs)
    • M: ≤ 10 ACUs (≤ 100 Enterprise ACUs)
    • L: ≤ 20 ACUs (≤ 200 Enterprise ACUs) — Flagged as Unhealthy
    • XL: > 20 ACUs (> 200 Enterprise ACUs) — Flagged as Unhealthy
  2. Issue Timeline & Loop Detection: Color-coded chronological markers highlight runtime obstacles:
    • Red (High Impact): Broken test frameworks, missing environment secrets, persistent build crashes.
    • Yellow (Medium Impact): Missing dependencies, incorrect file path assumptions.
    • Green (Value Delivered): Successful implementation, passing test suites, generated PRs.
    • Manager Insight: If an Issue Timeline displays repeating red and yellow blocks, Devin was caught in a retry loop due to missing tooling or ambiguous requirements.
  3. Action Items: Recommends concrete environment modifications (e.g., adding a missing SDK to the repository blueprint or pruning conflicting knowledge notes).

Programmatic FinOps: Monitoring via Enterprise APIs

Engineering efficiency teams can automate alerting by querying Devin's consumption endpoints on a daily schedule:

# Query daily consumption across all enterprise organizations
curl -X GET "https://api.devin.ai/v2/enterprise/consumption/daily?start_date=2026-10-01&end_date=2026-10-12" \
  -H "Authorization: Bearer <ENTERPRISE_API_TOKEN>"
# Query daily consumption for a specific developer
curl -X GET "https://api.devin.ai/v2/enterprise/consumption/daily/user_789xyz" \
  -H "Authorization: Bearer <ENTERPRISE_API_TOKEN>"

Using these endpoints, teams commonly configure Slack or Datadog alerts that trigger when:


4. Pre-Flight Controls and Preventing Infinite Retry Loops

Hard budget limits prevent total billing disasters, but session-level hygiene prevents compute waste before it occurs. Engineering managers should institute three operational guardrails:

Guardrail 1: Enforce Devin Coach at Prompt Time

Devin Coach operates inside the session input box, inspecting prompts before they are submitted to catch anti-patterns that trigger runaway loops:

Admin Configuration: In Enterprise Settings > Devin Insights > Devin Coach, set Prompt precheck to "Warning and confirmation" to require developers to explicitly acknowledge flagged prompts before execution starts.

Guardrail 2: Tighten the Inactivity Sleep Timeout

In development environments where engineers test experimental workflows, request Cognition support to lower the session inactivity sleep timer from the 30-minute default to 10 or 15 minutes. This ensures that forgotten terminal sessions or stalled prompts enter zero-ACU sleep rapidly.

Guardrail 3: Clean Repository Knowledge and AGENTS.md

A leading root cause of agent retry loops is outdated or conflicting guidance. When Devin consults legacy build commands in AGENTS.md or obsolete Knowledge Base entries, it repeatedly attempts discredited solutions, burning compute on failed compilations.


5. Engineering Manager Implementation Playbook

To roll out Devin with predictable costs, follow this five-step onboarding checklist:

  1. Establish Org Budgets: Segment your enterprise account into departmental organizations (e.g., Platform, Product-Backend, Mobile) and assign monthly cycle_acu_limit values aligned with your quarterly cloud budget.
  2. Configure Baseline Usage Tiers: Create a Default Tier capped at 200 ACUs/month for general developers, and a Core Tier capped at 500 ACUs/month for designated pilot squads.
  3. Automate Identity Mapping: Connect Okta or Entra ID groups to usage tiers with priority rankings to ensure automated de-provisioning and tier upgrades.
  4. Enable Pre-Flight Coaching: Set Devin Coach prompt prechecks to Warning and confirmation across all enterprise workspaces.
  5. Establish a Weekly Session Sizing Review: Have team leads review all sessions flagged as size L or XL in Session Insights. Use these reviews to refine repository blueprints and provide feedback on prompt specificity.

By combining organizational hard caps with individual usage tiers and pre-flight prompt coaching, engineering leaders eliminate cloud bill surprises while empowering developers to harness autonomous agent engineering at scale.


References