AI Agents in Production: From Deployment Hype to Cost Governance

    As computer-use AI agents go viral, many teams confuse "installed" with "production-ready." This article breaks down what these agents can and cannot do, why token costs multiply in agentic loops, and a practical methodology for running agents reliably — covering permission minimization, tiered model strategies, observability, human-in-the-loop design, and evaluation-driven development.

    1. The Phenomenon: Easy to Deploy, Hard to Run

    Recently, a category of general-purpose agents capable of “operating a computer” — commonly known as Computer-Use Agents — has gone viral on social media. The telltale signs of a hype cycle are all there: branded icons, paid installation and configuration services, and even paid uninstall services appearing shortly afterward, with prices swinging wildly.

    The technical reality behind this phenomenon is clear: deployment is a one-time cost, but operation is an ongoing cost. Installation scripts solve environment dependencies and configuration, but once the agent actually starts working, every inference call, every page parse, and every file read/write translates into model API expenses. Mistaking “installed” for “built” is the most common misconception in this wave of enthusiasm.

    2. Capability Boundaries: What It Can and Cannot Do

    The core capability of these agents is decomposing natural-language goals into a sequence of executable actions. A typical action space includes:

    • Browser control: opening pages, clicking, filling out forms, extracting structured results
    • File system operations: traversing directories, generating and modifying documents
    • Messaging and scheduling: reading emails, drafting replies, creating calendar events
    • External API calls: accessing business systems through scripts or plugins

    Two things must be made clear. First, these agents do not ship with an LLM — model capability comes from an external inference service. Second, they do not possess business-domain understanding. Claims that a “well-trained agent can trade stocks or run a social media account” actually push domain knowledge, data pipelines, and risk-control rules all into prompts and scripts. Without that prerequisite engineering, output reliability cannot be guaranteed. Official risk warnings stating the tool is “not suitable for most ordinary users” boil down to one point: these systems fail probabilistically, while business tolerance for errors is often zero.

    3. Cost Structure: Why Tokens Multiply by Orders of Magnitude

    A conversational call is a single request-response pair. An agent, by contrast, runs an observe–decide–act loop. Cost amplification comes from four sources:

    1. Context accumulation: historical actions and page snapshots keep getting appended, so per-step input length grows linearly with step count
    2. Multimodal parsing overhead: screenshots, DOM trees, and PDFs converted to text are far larger than a typical user query
    3. Failed retries: actions that don’t take effect trigger repeated re-planning — the most easily overlooked hidden expense
    4. Long-horizon tasks: a single goal like “compile the quarterly report” can trigger dozens of model calls

    A simplified budgeting model:

    1. Total task cost ≈ Σ(per-step input tokens × steps) × unit price
    2. + output tokens × unit price
    3. + retry factor (typically 1.2 ~ 3.0) × the above

    Illustrative pseudocode (expressing the metering and circuit-breaking approach):

    1. class BudgetGuard:
    2. def __init__(self, max_steps=20, max_tokens=200_000):
    3. self.max_steps, self.max_tokens = max_steps, max_tokens
    4. self.used_tokens = 0
    5. def before_step(self, step, prompt_tokens):
    6. if step > self.max_steps:
    7. raise BudgetExceeded("Step limit exceeded, terminating task")
    8. self.used_tokens += prompt_tokens
    9. if self.used_tokens > self.max_tokens:
    10. raise BudgetExceeded("Token budget exhausted, terminating task")

    The engineering conclusion: an agent without budget circuit-breakers and step limits is not production-ready.

    4. A Methodology for Production: Putting Uncertainty in a Cage

    1. Minimize permissions

    Give the agent a dedicated account and a dedicated working directory, and keep production credentials out of reach. Restrict file access to whitelisted paths and network access to whitelisted domains. All write operations go to a sandbox first and are merged only after human confirmation.

    2. Tiered model strategy

    Use a stronger model for planning and decision-making, and push deterministic subtasks — formatted extraction, field validation — down to smaller models or plain rule-based code. A good rule of thumb: if code can solve it, don’t hand it to the model.

    3. Build observability

    On Baidu AI Cloud, you can combine general-purpose capabilities such as log services, monitoring and alerting, and object storage to accomplish three things: full-trace call logging (for reviewing failed steps), token and cost dashboards (aggregated by task or user), and anomaly alerts (notifications when step count, duration, or cost exceeds any threshold).

    4. Human–AI collaboration, not full automation

    Position the agent as an execution assistant: high-risk actions (payments, sending messages, deletions) require mandatory human confirmation; low-risk actions (information gathering, draft generation) can run automatically.

    5. Evaluation first

    Build a regression set of 20–50 real tasks and track three metrics: success rate, average steps, and average cost. Run the regression on every prompt or model change, and avoid “tuning by feel.”

    5. Recommendations by Role

    • Individual developers: validate value with read-only tasks first, then gradually open write permissions; set budget caps at one-third of what you can afford to lose
    • Enterprise teams: don’t buy “installation services” — buy evaluation and governance capability; bring agents into your existing permission, audit, and cost-allocation systems
    • Managers: be skeptical of hype narratives; real returns come from business process redesign, not the tool itself

    6. Conclusion

    The lasting asset from this wave of hype is not an icon or an installation, but a shared understanding of agent engineering: capability comes from the model, reliability comes from constraints, and sustainability comes from cost governance. Get budgets, permissions, and evaluation right first — then talk about how much automation can actually deliver. That is the right way to survive a hype cycle.