AI Agents and the Developer Shift: From Writing Code to Making Decisions

    This article explores how the developer's role is shifting from translating requirements into code toward managing AI agents and making higher-level decisions. It presents a vendor-neutral engineering methodology for running agents in real development work: making toolchains callable through dual human-machine interfaces, structured real-time documentation, and reusable skills; drawing boundaries by hardcoding deterministic tasks; combining OS-level sandboxing with a policy layer that supports timing and frequency constraints; adding circuit breakers for unpredictable costs; and migrating developer effort toward task definition, constraint building, and review with accountability.

    Introduction: The Developer’s Role Is Shifting

    For a long time, the value of developers was measured mainly by their ability to translate requirements into code. Once agents became capable of writing code, calling tools, executing commands, and even deploying applications, the middle segment of this value chain was compressed significantly. That leaves only two real questions: how to keep agents under control, and what developers should do next.

    During a technical discussion, a senior technical expert focused on developer advocacy at a cloud vendor cited a judgment from a keynote by the vendor’s leadership on the agent era: the cloud should be built for agents, not only for people. The technical implication is worth unpacking. Existing cloud platforms, consoles, and infrastructure are designed around the premise that a human is operating them. As a result, interactions are segmented, slow-paced, and broken into many manual steps: people read documentation, copy commands, wait for builds, and confirm results. Agents do not need this rhythm. They need interfaces that can be called programmatically, documentation that can be read in real time, and skill definitions that can evolve continuously.

    This article abstracts that judgment into a vendor-neutral engineering methodology for letting agents participate in real development work safely, with control, and with accountable costs.

    1. Rework the Premise: Prepare a Toolchain for Agents, Not a Console for People

    To make agents reliable executors, the toolchain must first be made callable. In practice, this usually involves three things.

    First, tools need both human and machine entry points. A tool that can only be clicked through and cannot be invoked from a command line or a programmatic protocol effectively does not exist for an agent. A common approach is to expose the same capability through a command-line interface and a standardized Model Context Protocol server, so agents can discover tools, read parameters, and parse responses in a unified way.

    Second, documentation must be real-time, structured, and searchable. Agents do not guess what parameters mean based on experience the way people do; they rely on context. Statically exported long documents often lag behind the code, so they should be replaced by a documentation source that is generated in sync with code changes and can be retrieved semantically.

    Third, skills must be captured and allowed to evolve. Codify the general steps for completing a certain class of task into reusable skills, so agents accumulate correct approaches across multiple tasks instead of reasoning from scratch every time.

    A sample tool description can be organized like this:

    1. tool:
    2. name: read_file
    3. description: Read the content of a file in the repository, read-only
    4. input:
    5. path: string
    6. annotations:
    7. access: read

    This description matters because it serves two types of consumers at once: the agent uses it to decide when to call the tool, and the policy layer uses it to decide whether the call is allowed.

    2. Boundary Principle: Hardcode What Can Be Hardcoded

    The first principle for drawing boundaries is a cost principle, not a security principle: if something can be done with deterministic code, it should not be handed to an agent. Deterministic logic is testable, reproducible, and auditable, while agent output is probabilistic, and the same input may produce different paths.

    Three questions can guide the decision:

    • Are the inputs and outputs stable and enumerable? If so, write a function.
    • Does failure need to be pinpointed to a specific line? If so, write code.
    • Does the task require multi-step exploration in an open environment where the steps cannot be enumerated in advance? Only then hand it to an agent.

    The engineering value of this principle is that it narrows the agent’s scope. The smaller the scope, the simpler the subsequent policy configuration, auditing, and cost accounting.

    3. Isolation Design: From “Locking It in a Box” to “Controllable Boundaries”

    When a task genuinely cannot be hardcoded, risk appears: an agent may access production systems, delete files by mistake, or run resource-intensive commands. The traditional approach is to put the agent in a closed environment with no access to any system. This is too blunt. Many real tasks require limited access, and complete isolation strips the agent of practical value.

    A more reasonable approach has two layers.

    The first layer is operating-system-level isolation. Reuse the sandbox mechanisms the operating system already provides to constrain network egress and the scope of disk reads and writes, so the agent can see only what is inside the working directory by default. This layer addresses out-of-bounds access with low implementation cost and clear semantics.

    The second layer is the policy layer, and this is where the key difference lies. Policy should not judge only a single request; it should also express timing and frequency constraints. For example: a cap on how many times a tool has been called in the past hour; a requirement that a write operation must follow a read operation; a rule that deletion actions must be paired with a human confirmation event. Such rules are described in a general-purpose policy language, typically compiled into an authorization model that can be evaluated efficiently, and then evaluated by the runtime before and after each action.

    A typical interaction proceeds like this:

    1. Instruction: append a line "hello" to README.md
    2. Policy evaluation: file access = read, action = write -> deny
    3. Adjust policy: file access = read -> write
    4. Evaluate again: allow, execution succeeds

    This example shows that controllability does not come from tighter blocking, but from rules that are declarative, verifiable, and adjustable on the spot.

    4. Cost Boundaries: Put a Circuit Breaker on Uncertainty

    Another characteristic of probabilistic systems is unpredictable consumption. An agent may get stuck in a loop, retry repeatedly, or call expensive tools. Engineering must add a circuit breaker for uncertainty. Common measures include: setting a cap on the number of steps for a single session and a single task; setting a cap on resource consumption that automatically stops the run when reached; introducing a human confirmation step for high-impact actions; and retaining a complete action trace for retrospective review.

    It is worth emphasizing that mechanisms like consumption caps are general cost-governance ideas. Specific caps, measurement criteria, and how they take effect should follow each platform’s actual documentation and should not be set based on hearsay.

    5. What Developers Should Do: A Three-Layer Capability Shift

    Only after agents are under control does the second question become meaningful. The developer’s focus is shifting across three layers.

    The first is definition and decomposition. Break vague business goals into verifiable subtasks and make acceptance criteria explicit. This determines how usable the agent’s output is.

    The second is building constraints. Writing tool descriptions, skill definitions, and policy rules is essentially translating an organization’s security and compliance requirements into machine-executable decision logic. This is a new kind of architecture work.

    The third is review and accountability. Review the design, security, and performance of the code agents produce, and take responsibility for the final result. Better generation capability does not automatically bring quality; review density needs to increase in step.

    Conclusion

    The engineering focus of the agent era is not getting models to write more code, but making four things solid: callable, isolatable, constrainable, and accountable. Once these four layers of infrastructure are in place, developers’ time will truly shift from coding to judgment and decision-making. As a general cloud service provider, Baidu AI Cloud can likewise support the engineering practices of isolation, auditing, and cost governance described above through general capabilities such as container platforms, log services, monitoring and alerting, and object storage.