Can AI Agents Really Do the Work for Developers?

    This article defines what it means for an AI agent to genuinely complete a task, then breaks down five core evaluation dimensions: task decomposition, tool calling, context management, result verifiability, and permission boundaries. It also outlines a reusable evaluation method based on a small internal benchmark set and a phased adoption path, showing that agents are best suited for repeatable work with clear acceptance criteria rather than replacing engineering judgment.

    1. Define “Doing the Work” First

    Before evaluating any coding tool or general-purpose agent, you need a clear standard. “Doing the work for me” does not mean generating text that looks correct. It means independently completing a verifiable task loop under given constraints. That loop includes at least five stages: understanding intent, breaking down the task, calling tools, verifying results, and delivering the output. Output without verification is only a suggestion. Output without tool calls is only a draft. A design without permission boundaries is not ready for a real engineering environment.

    Many teams find that agents seem “inconsistent” during pilots. The root cause is often not the model itself, but handing the agent open-ended tasks that cannot be verified. So the first step is to classify tasks into layers:

    • L1 Information: retrieval, summarization, and document drafts. High fault tolerance, safe to automate.
    • L2 Editing: local code changes, unit test additions, and configuration adjustments. Requires diff review.
    • L3 Execution: builds, deployments, and data changes. Requires a sandbox and rollback.
    • L4 Decision: architecture choices and capacity planning. The agent should only provide evidence and options.

    2. Five Core Evaluation Dimensions

    2.1 Task Decomposition and Planning

    Check whether the agent automatically breaks a request like “add rate limiting to the order API” into steps such as locating the entry point, confirming the rate-limiting dimension, choosing an algorithm, adding tests, and running checks. It should also ask questions when information is missing instead of making assumptions. Planning quality determines how much rework follows.

    2.2 Tool Calling and Ecosystem Integration

    Real value comes from connecting to the engineering system: reading and writing repositories, executing commands, querying log services, and pulling monitoring or alerting metrics. The focus should be on whether calls have clear parameter validation, timeout and retry strategies, and whether the agent can degrade to “provide operational advice” when a call fails.

    1. # Example: add a unified guardrail to agent tool calls
    2. def guarded_call(fn, *args, timeout=30, retries=2, **kwargs):
    3. for attempt in range(retries + 1):
    4. try:
    5. return fn(*args, timeout=timeout, **kwargs)
    6. except TimeoutError:
    7. if attempt == retries:
    8. return {"status": "degraded", "advice": "Timeout, escalate to human confirmation"}

    2.3 Context Management and Long-Task Stability

    The most common degradation in long sessions is forgetting constraints and repeating work. Structured context layering can help: a system constraint layer, a repository structure layer, a current task layer, and a historical conclusions layer, with summaries compressing the history. If the tool supports project-level knowledge retention, write conventions into versionable configuration files rather than relying on conversation memory.

    2.4 Result Verifiability

    Require the agent to provide a verification method for every change: unit tests, static checks, build artifacts, or a manual acceptance checklist. Refusing to accept conclusions without verification evidence is the most effective way to control risk.

    2.5 Permission and Compliance Boundaries

    High-risk actions such as production credentials, data exports, and bulk deletion should be disabled by default and constrained through least privilege, operation auditing, and approval flows. In enterprise settings, also consider compliance issues such as whether data is used for training and how long logs are retained.

    3. A Reusable Evaluation Method

    Build an internal benchmark set. Thirty to fifty real historical tickets are usually enough to start, covering L1 through L4, with a predefined acceptance script for each task. Keep only four metrics: first-pass rate, human rework time, average interaction turns, and high-risk action interception rate. Fix the environment and dependency versions, otherwise the data is not comparable.

    1. # Example evaluation case structure
    2. task_id: T-017
    3. level: L2
    4. goal: Add caching to the query API and add unit tests
    5. acceptance:
    6. - "All unit tests pass"
    7. - "No new static check warnings"
    8. forbidden:
    9. - "Modify production configuration"

    Start with L1 and L2 scenarios. Connect the agent to the code repository and the CI pipeline, submit output uniformly as patches, and have humans merge them. Once stability is proven, gradually open up L3 with a sandbox environment and one-click rollback. If the enterprise already uses general capabilities such as object storage, log services, monitoring and alerting, and container platforms from Baidu AI Cloud, evaluation data and audit logs can be stored centrally to form a continuously observable baseline.

    The conclusion is not mysterious: agents are currently best suited for repeatable work with clear acceptance criteria, not for replacing engineering judgment. Layer the tasks, move verification forward, and tighten permissions. That is the right order for making AI actually do the work for you.