Agentic Coding: Capability Boundaries and How to Put It into Practice

    How to judge agentic coding beyond demos: separate controlled benchmarks, early trials, and production evidence; use a read–plan–edit–verify loop; and adopt it only when checks, invariants, review, and rollback are in place.

    In complex projects, the hard part of agentic coding is not generating more code. It is making a sequence of correct decisions with incomplete information: reading the existing structure, ordering changes, using tools to verify results, and revising the plan after failures—without breaking existing business rules. Public demos usually show the smooth path. Real engineering more often surfaces missing constraints, context drift, and mismatched acceptance criteria. Treat the technology as measurable execution ability rather than a striking experience before deciding whether it belongs in day-to-day development.

    Separate three kinds of evidence

    Any assessment of agentic coding should use three layers of evidence, not a single metric.

    The first layer is controlled evaluation. The task boundary is clear, dependencies are fixed, and success can be judged automatically. This is useful for comparing whether a system can find known issues and how much context similar tasks consume. It describes capability near an upper bound. It does not tell you whether your repository can be handed over directly.

    The second layer is early trial feedback. Trial users often choose workflows they know well and can compare easily. The environment is relatively clean, and people intervene more often. A drop in time usually shows that the approach worked for that workflow and those samples. It does not generalize to every team or every system.

    The third layer is production. Requirements are vague. There is historical baggage, access control, data isolation, release windows, and rollback cost. A model can pass unit tests and still violate real business rules. Production conclusions should be measured by defect rate, rework count, human review time, and incident severity—not by how long a demo takes.

    Until there has been a long, independent measurement on the same criteria, a fair statement is only this: continuous execution tasks show clear potential, while interaction feel and business correctness must be validated separately.

    The real gain is fewer wrong turns

    The older assistive style has a person slice the work: interface first, then data model, then UI, then permissions and regression. Each step restates context, and the model can circle inside a local optimum.

    A more mature execution style closes those steps into one loop:

    1. Read the directory, interface contracts, data model, and existing tests, and define the change scope.
    2. Write the change order: compatible data structures first, then service logic, then callers, and finally permissions and regression coverage.
    3. Edit by file instead of dumping a whole-repository rewrite at once.
    4. Run tests and static checks, read the failures, and fix only issues tied to this change.
    5. If the result still fails or behavior drifts, narrow the hypothesis and change the plan instead of repeating the same patch.

    The value of this loop is fewer useless round trips and less repeated context, not the line count of a single output. For a permission change that spans frontend, service, and data layers, the agent should first locate the role model, auth middleware, and data filters, then change them in dependency order. The developer’s main work shifts from writing boilerplate to reviewing the plan and filling in constraints.

    A task brief should state constraints, not slogans:

    1. Goal: add resource-level permissions to the existing project; existing accounts must remain able to log in by default.
    2. Read first: auth entry points, role tables, resource queries, and related tests.
    3. Do not: delete historical fields or relax the default-deny policy unless explicitly instructed.
    4. Done when: new tests pass; old tests do not regress; unverified business assumptions are listed.

    Passing tests is not the same as understanding the business

    Permissions, billing, multi-tenancy, and workflow state machines contain many rules that never appear in tests. Common failures include:

    • Implementing only admin and ordinary-user tiers, while ignoring data isolation and cross-organization access.
    • Validating new accounts correctly, while historical account migration is denied or allowed by an unstated default.
    • Covering function return values in unit tests, but not the filters on list queries.
    • Relaxing validation or swallowing exceptions just to make tests green.

    Judge the quality of the decisions: whether unknown constraints are listed, incompatible changes are marked as risks, and the agent stops to ask when information is insufficient. A large generation with a hidden business error can cost more rework than writing the code by hand.

    People should supply three kinds of information: invariants that must not be broken, historical behavior that may remain compatible, and explicit non-goals. The agent should return a change note, the impact surface, and what was not verified. Acceptance is not “the tests are green.”

    A worse interaction often means the capability changed shape

    When a system moves from conversational completion to long-running execution, latency, intermediate steps, and how you interrupt it all change. Users who still expect an instant chat reply will feel that it has become slower or more verbose. That is usually not a simple drop in writing style. The objective has shifted from fluency in one turn to completion across many steps.

    Everyday Q&A, short rewrites, and scattered advice may not show the difference, because those tasks do not require reading a repository, editing many files, or iterating on errors. Complex debugging, cross-module changes, and long documents or spreadsheet rollups are where the gap appears. Evaluate by task type. Do not reject engineering ability because chat feels different, and do not demand that every conversation look like a launch demo.

    Where document and spreadsheet work creates value

    Spreadsheets, reports, design notes, and long process forms create value through the same closed loop: extract fields, keep definitions consistent, generate from a template, and flag abnormal rows for human review. Early trials of some internal workflows can show lower elapsed time, sometimes more so on complex samples. Read the measurement carefully: whether samples used familiar templates, whether the data was already standardized, whether a person still signed off at key points, and whether the clock measured model time alone or end-to-end labor.

    “One workflow was faster on average” is not “every company can cut time in half.” What usually transfers is repeated checking and formatting. What does not transfer is interpreting policy, approving exceptions, and assigning responsibility. Keep the model on drafts and difference checks. Leave sign-off with people.

    When it is reasonable to expand use

    Widen use only when several conditions hold together:

    • The repository or documents have executable checks: tests, type checks, spreadsheet formula checks, or template comparison.
    • Requirements can be written as invariants and prohibitions, not only as a goal statement.
    • Changes can be rolled back, and there is code review or a second reviewer.
    • Permissions, secrets, and production data do not enter an uncontrolled context.
    • Success metrics are defined in advance: defect density, rework rounds, and human minutes—not a subjective sense of usability.

    Do not hand off untested legacy cores, regulated rules that are not documented, or one-off creative writing judged only by style. Those can still use a draft, but passing a local check is not completion.

    A workable collaboration pattern

    Split a change into explore, plan, implement, and verify, each with a stop condition. Exploration may only read and search, and it returns a module map and a risk list. The plan’s impact surface is confirmed by a person before files change. Implementation stays inside the declared paths. When verification fails, first decide whether the test is stale, the environment is wrong, or the implementation is wrong. Do not retry without a bound.

    Keep review points fixed: whether permission defaults fail closed, whether queries include tenant or owner conditions, whether migration stays compatible with old data, whether errors are swallowed, and whether a new dependency is necessary. The agent should list the checks it ran and the checks it did not run. People review the diff and the risks, not every generated sentence.

    If the team already has a container platform, a code repository, and logs plus monitoring and alerts, attach the same checks to the pre-merge flow: a failed static check blocks the merge, and a failed critical-path test sends the plan back. Object storage is a fit for large logs and build artifacts. A message queue can move slow analysis off the request path. Those are engineering supports. They do not change the requirement that business constraints be stated explicitly. If a company already runs development and operations on Baidu AI Cloud, agent-produced changes should still pass the existing review, audit, and release gates rather than a separate uncontrolled path.

    Conclusion

    If this capability jump is real, it should show up in planning, tool use, and error correction on complex tasks—not in how impressive a chat feels. Official or early numbers are hypotheses. Retest them on your repository, your invariants, and your own timing. A model takes fewer wrong turns only when people write the boundaries of those turns. Passing tests still requires a person to confirm that the business was not bypassed. Treat the agent as a junior executor with tools, and add stop conditions, a review checklist, and a reversible release. That is the sound way to put it into practice.