AI Agents That Act: What the New Flagship Models Mean for Engineering

    This article analyzes the shift from conversational benchmarks to task completion in real software environments, and what it requires from developers. It covers the limits of static scoring, layered context assembly for million-token windows, routing across reasoning tiers with cost caps, a five-layer agent stack, sandboxing with least privilege and rollback, and cost governance based on cost per successful task. Code sketches illustrate evaluation harnesses, context building, routing, action selection, and policy checks. It closes with common pitfalls and the engineering foundations teams should solidify first.

    1. The Signal: An Unusual Flagship Launch

    A recent flagship model release has stirred discussion in the industry. What makes it interesting is that its aggregate benchmark scores do not crush the previous generation, yet the launch messaging changed from “the smartest conversational model” to “anything you can do on your computer, it can do for you.” That shift marks a move in where capability is centered: a model’s value is no longer measured only by answer quality, but by whether it can turn reasoning into sustained, verifiable operations inside real software environments.

    From public information, the main changes in this generation concentrate in four areas: very long context (million-level token input, hundred-thousand-level token output), finer-grained reasoning tiers (five levels, from low to high), a significantly higher price (several times the previous generation), and heavy use of the previous generation’s model in supervision during training. Parameter count was not disclosed; outside estimates put it in the trillions. On release cadence, access came first to trusted enterprise users, then gradually expanded to general conversational products, office and coding scenarios, and API services, alongside an operational strategy of “staged unlock compensation.”

    For developers, the real question is not “how smart is it,” but: once a model starts taking over the keyboard and mouse, how must the engineering system be restructured?

    2. The Evaluation Shift: From Scores to Task Completion Rate

    Traditional leaderboards measure the static quality of knowledge and reasoning, while hands-on capability has to be measured dynamically inside an environment. The difference can be abstracted into three layers:

    1. Static Q&A layer: given a question, produce an answer. The criteria are correctness and quality of expression.
    2. Tool-calling layer: given a set of interfaces, the model selects and chains calls. The criteria are call success rate and parameter correctness.
    3. Environment-operation layer: given a real system with a graphical interface, the model explores on its own, executes, observes errors, and falls back and retries. The criteria are end-to-end task completion rate and the number of steps required.

    The third layer is hard because it introduces long-horizon state management, interface uncertainty, error recovery, and side-effect control. A model can excel at multiple-choice questions yet fail repeatedly on multi-step tasks such as “open the spreadsheet app, clean the data, and build a dashboard.” So the industry has begun using completion rates in real operating environments as a supplementary metric, combined with dimensions like coding agents and long-horizon tasks to build a fuller capability profile.

    The engineering conclusion is direct: when selecting a model, run a small-scale benchmark on your own task distribution rather than relying on a single aggregate score. A practical evaluation skeleton:

    1. # Sketch: task-level evaluation for "environment operation"
    2. tasks = load_tasks("my_business_tasks.yaml") # each task has an initial snapshot, a verification script, a timeout and a budget
    3. def run_eval(model, task, sandbox):
    4. sandbox.restore(task.snapshot) # the environment is rollback-able, which keeps runs repeatable
    5. result = model.run(task.instruction, sandbox, budget=task.budget)
    6. passed = task.verify(sandbox) # judged by a deterministic script, not model self-assessment
    7. return {"task": task.id, "passed": passed, "steps": result.steps,
    8. "cost": result.tokens_in * price_in + result.tokens_out * price_out}

    The key points: verification must be done by a deterministic script, the environment must support snapshot and rollback, and cost and step counts must be tracked alongside success rate.

    3. Capability Breakdown 1: Engineering Constraints of Very Long Context

    A million-token context is often understood as “you can fit an entire codebase in it,” but the real challenges are effective utilization and cost. The longer the context, the higher the probability that attention is diluted and key information is buried, and cost grows linearly with input length. In practice, a layered strategy is recommended:

    • Retrieval layer: use hybrid recall with vector search and keyword search, and put only relevant fragments into the context.
    • Structure layer: prefer providing interface definitions, type signatures, directory trees, and configuration over full file bodies.
    • Compression layer: summarize and deduplicate historical operation logs, keeping decisions and errors while discarding redundant screenshots.
    • Write-back layer: write intermediate conclusions of long tasks to external memory (object storage or a database) and read them back when needed.

    A sketch of context assembly:

    1. def build_context(query, repo_index, memory, max_tokens=800_000):
    2. hits = repo_index.hybrid_search(query, top_k=40)
    3. skeleton = repo_index.signatures(hits) # signatures and dependencies only
    4. history = memory.summarize(query.task_id) # compressed summary of history
    5. parts = [system_prompt, skeleton, history, query]
    6. return trim_to_budget(parts, max_tokens) # trim by priority when over budget

    4. Capability Breakdown 2: Multiple Reasoning Tiers and Cost Budgets

    Offering multiple reasoning depths turns the “thinking budget” into a tunable parameter: use the low tier for simple classification and formatting, and the high tier for cross-module refactoring and incident diagnosis. Without control, cost gets swallowed by a handful of hard tasks. Routing and budget mechanisms are recommended:

    1. def route(task):
    2. if task.risk == "low" and task.steps_est <= 3:
    3. return "low"
    4. if task.domain in {"refactor", "incident"}:
    5. return "high"
    6. return "medium"
    7. def guarded_run(task, model, cap_usd=2.0):
    8. plan = route(task)
    9. r = model.run(task.instruction, reasoning=plan)
    10. if r.cost > cap_usd or not r.verified:
    11. return escalate(task, model) # escalate the tier or hand off to a human
    12. return r

    Also record the success rate and unit cost of each tier to build a “tier versus task type” reference table, so routing thresholds are decided by data rather than intuition.

    5. The Real Dividing Line: Turning Reasoning into Verifiable Actions

    The stack for an action-taking agent can be abstracted into five layers, and any vendor’s implementation can be mapped onto this framework:

    1. Perception layer: screen and control recognition, DOM or accessibility-tree reading, producing a structured state.
    2. Decision layer: planning based on state and goal, outputting the next action.
    3. Execution layer: a unified action abstraction over keyboard and mouse, command line, scripts, and business APIs.
    4. Feedback layer: parsing errors, logs, and interface changes to judge whether a subgoal was met.
    5. Governance layer: permissions, audit, rollback, and human takeover.

    One key design principle is the “dual channel”: whenever a stable interface can do the job, never degrade to clicking the UI; use interface operation only when the interface is missing. This significantly improves determinism and maintainability.

    1. def act(state, goal):
    2. if api := match_api(goal): # prefer the stable interface
    3. return api.call(state)
    4. if (el := locate_element(state, goal)) and el.stable:
    5. return click(el)
    6. return ocr_fallback(state, goal) # visual fallback comes last

    6. Deployment Architecture: Sandbox, Permissions, and Rollback

    Before letting a model operate a real environment, assume it will make mistakes. A reference architecture:

    • Isolation: tasks run in disposable containers or virtual desktops, with network egress restricted to a whitelist.
    • Least privilege: grant only the directories, accounts, and interface scope needed for that task, with short-lived credentials.
    • Snapshot and rollback: take a snapshot before execution and restore on failure, which keeps experiments repeatable.
    • Audit: fully record the action sequence, parameters, and screenshots for review and compliance checks.
    • Human gate: force confirmation for irreversible actions such as deletion, payment, and outbound sending.
    • Observability: feed success rate, average steps, rollback rate, and cost per task into monitoring and alerting.

    A sketch of policy enforcement:

    1. POLICY = {"allow_net": ["internal.repo"], "deny_actions": ["delete", "send_email", "pay"]}
    2. def guard(action, ctx):
    3. if action.type in POLICY["deny_actions"] and not ctx.human_approved:
    4. raise PermissionError("human confirmation required")
    5. if action.host and action.host not in POLICY["allow_net"]:
    6. raise PermissionError("network egress restricted")
    7. return action

    7. Cost Governance: Turning “Expensive” into Predictable Spend

    A high unit price does not mean total cost is uncontrollable. Effective measures include: routing by task difficulty to different tiers; reusing cached results for repeated queries; retrieval and compression for long inputs; pre-filtering subtasks a smaller model can handle; and setting token and dollar caps per task, with automatic escalation or human handoff when exceeded. The financial metric should ultimately be “cost per successful task” rather than “price per million tokens,” so that it aligns with business value.

    8. Common Pitfalls

    • Looking only at aggregate benchmark scores: ignoring your own task distribution and acceptance criteria.
    • Chasing one-shot long prompts: neglecting retrieval and compression, which drives both cost and noise up.
    • Letting the model grade itself: without deterministic verification, success rates are inflated.
    • Excessive permissions: without a sandbox and rollback, a single wrong action causes real damage.
    • Ignoring observability: you cannot tell whether the error was in perception, planning, or execution.

    9. Closing

    What deserves the most attention in this generation of flagship models is not the scores, but that it pushes the center of agent capability from generation toward execution. For developers and enterprises, real competitiveness comes from the engineering system built around the model: a rollback-able sandbox, least privilege, deterministic evaluation, layered context, and cost routing. To stand up this foundation quickly in your own cloud environment, you can draw on the combination of general capabilities from Baidu AI Cloud, such as container platforms, object storage, log services, and monitoring and alerting, and first make isolation, audit, and observability solid before gradually opening up more complex operation scenarios.