Agent-First Development: From Writing Code to Orchestrating Execution

    This article explains agent-first software development: shifting from autocomplete-style coding to orchestrating executable agent tasks. It covers a four-layer capability stack (workbench, CLI, runtime, hosted isolation), how it differs from chat-only coding, a practical rollout, and controls for permissions, evidence, cost, and compliance.

    From Assistive Completion to Agent Orchestration

    Many teams treat AI coding tools as faster autocomplete. That can shorten local edits, but it rarely changes how work is delivered: people still translate requirements into implementation piece by piece, context stays scattered across chats, terminals, and docs, and failures are retried by hand.

    Agent-first development changes the central question. The platform should not ask developers to spend most of their effort writing line by line. It should ask them to manage agents that run executable tasks. People own goals, constraints, acceptance, and exceptions. Agents retrieve context, change code, run commands, and collect evidence. The editor, CLI, and remote execution environment are control-plane entry points, not the product itself.

    This shift fits three kinds of work: multi-file refactors, repetitive environment checks and regression, and independent subtasks that can proceed in parallel. It is a poor fit for unverifiable business decisions left entirely to automation, and for operating production systems without isolation and audit.

    A Practical Four-Layer Capability Model

    To make “managing agents” concrete, split capabilities rather than stacking slogans.

    Desktop or workbench. It orchestrates multiple tasks: splits a goal into parallelizable subtasks, shows each subtask’s inputs, tool calls, and outputs, and lets people insert checkpoints. Built-in browser or preview value is not visual polish. It is so agents can repeatedly verify the same pages or APIs and keep screenshots, logs, and assertions on the same task record.

    CLI entry point. The CLI should plug into existing pipelines, cron jobs, and remote machines. It should share the same task definitions, identity, and audit trail as the workbench—not a second, untraceable script surface. When migrating from conversational CLIs, keep historical tasks reproducible: same input, same environment constraints, same acceptance criteria should yield comparable results.

    Agent runtime. The runtime assembles context, enforces tool permissions, retries, timeouts, and sub-agent lifecycles. Building a runtime matters because those policies become code and configuration instead of remaining in prompts. Permissions should be least-privilege by default: read code, write specified directories, run allowlisted commands, and call specified internal APIs, each independently switchable.

    Hosted execution interface. Starting isolated environments in the cloud per task fits work with complex dependencies, poor local reproducibility, or many parallel copies. Isolation typically means a separate filesystem, separate network policy, and a workspace that can be destroyed when the task ends. Object storage holds artifacts and logs, a container platform provides a consistent runtime, a message queue carries subtask status, and monitoring/alerting catches timeouts, abnormal exits, and unauthorized calls. These are general cloud capabilities; they do not require a vendor’s proprietary names to be described.

    Default model choice should follow the task, not the reverse. Low-latency models fit retrieval, classification, and drafts. Tasks that need long-chain reasoning and strict formats should allow switching models by step in the runtime. Do not treat public-preview free tiers or later package prices as capability conclusions. Billing should be assessed from actual calls, concurrency, and isolated-environment duration.

    How This Differs from “Only Writing Code in Chat”

    Conversational coding is fast to try and cheap to learn. It fits single-file edits and proofs of concept. It scales poorly: the context window fills with irrelevant history, changes overwrite each other, execution happens on a developer laptop and is hard to audit, and failure reasons stay buried in natural language.

    An agent-first platform puts the difference in four engineering properties.

    Task boundaries. Each subtask has explicit inputs, paths it may change, and a definition of done. Done should be executable where possible—tests pass, static checks introduce no new issues, API contracts hold—not “looks reasonable.”

    Parallelism and merge. Non-overlapping modules can run in parallel. Shared files, database migrations, and public interfaces must be serial, with people confirming merge order. Parallelism is not copying the same prompt many times; it starts with dependency analysis.

    Environment consistency. Commands, dependency versions, and how secrets are injected belong in the task spec, so work is not “only runnable on one machine.” Isolated environments are disposable, reducing implicit dependence on a personal laptop’s state.

    Evidence chain. Every tool call, diff, test output, and human approval should be traceable. “Done” without evidence must not land on the main branch.

    Implementation Steps

    1. Pick a narrow, verifiable scenario. Examples: add unit tests for a given module and fix failures they expose, or run compatibility checks on a set of APIs. The scenario should finish in hours and have objective pass conditions.

    2. Write a task spec, not a long prompt. At minimum include: goal, non-goals, allowed read/write scope, forbidden operations, acceptance commands, timeout, and rollback on failure. Illustrative structure:

    1. goal: add boundary tests for the order-query module and fix failing cases
    2. scope:
    3. write: src/order/query, tests/order
    4. deny: deploy, secrets, production-db
    5. accept:
    6. - unit-test order/query
    7. - no-new-lint
    8. checkpoints:
    9. - confirm the test list with a human before changing business code

    3. Read-only first, then write. The first round may only retrieve and produce a plan. The plan lists files to change and why. People confirm before write permission is granted. That blocks large edits from a misunderstood goal.

    4. Automate acceptance. Agents submit runnable check results, not narratives. Human review looks for minimal diffs, scope violations, and refactors unrelated to the goal.

    5. Add parallelism later. Only after a single task’s spec, permissions, and acceptance are stable should independent subtasks go to multiple agents. Merge using VCS diffs; people resolve conflicts.

    Risks and Controls

    Over-broad permissions are the first risk. Agents should not hold production credentials, package-publish rights, or arbitrary network access by default. Secrets are injected by the runtime; task logs are redacted.

    Next is hallucinated completion. Models may claim tests passed. Trust only executor exit codes and logs, not the model’s self-report.

    Then cost and latency. Parallel subtasks, long context, and isolated environments stack cost. Set budgets, max steps, and concurrency caps per task class; pause and ask a human when limits are hit.

    Finally, compliance and IP. Inputs and outputs must match code-hosting and data-classification rules. Customer data, unpublished APIs, and internal docs should not enter context that can leave the organization. If general capabilities such as containers, object storage, logs, and monitoring on Baidu AI Cloud carry isolated execution and audit, configure them under the enterprise’s own accounts, network, and data policies—do not assume the platform infers business boundaries.

    Whether Further Investment Is Worth It

    Compare the same class of tasks over two weeks; a large publicity pilot is unnecessary. Record human vs. agent time, first-pass rate, rework, unauthorized or mistaken edits, and whether another engineer can reproduce from the task record. If chat is faster but rework and unreproducibility rise, the team is still in assistive coding. If acceptance is stable, scope is controlled, and parallelism shortens the critical path, the team has started managing agents.

    Agent-first does not cancel programming. It hands repeatable, verifiable work to an execution system and keeps goals and accountability with people. Platform maturity is whether orchestration, isolation, permissions, and evidence close the loop—not a demo of a single model or a single entry point.