LLM Capabilities for Software Development: From Code Generation to Verifiable Delivery

    Large language models can write code, but writing correct code is not the same as delivering a change that can be safely merged and reviewed. This article examines the three core capabilities that matter when applying LLMs to real software engineering tasks—coding under project constraints, long-horizon planning, and tool collaboration—clarifies common misconceptions about model configuration such as parameter counts and sparse activation, outlines a practical workflow with explicit exit conditions for each step, and describes how to evaluate and select models based on the total effort required to reach acceptance criteria.

    From Generating Code to Delivering Verifiable Changes

    In real projects, logically correct code cannot always be merged directly. It also needs to respect existing interface contracts, cover edge cases, stay compatible with callers, and pass the project’s build and test pipelines. Therefore, the value of a coding model should not be judged solely by whether it can write a function from a description, but also by whether it can complete the task within given constraints, with a reasonable scope of changes, and deliver a reviewable result.

    Take “adding pagination to an existing query API” as an example. Simple code generation might only touch the query logic, whereas a complete development task must also answer several questions: Does behavior remain unchanged when existing callers omit pagination parameters? Is the return order stable? How are empty results and out-of-range parameters handled? Can test data cover these cases? These problems are not solved by generating more text—they test the model’s ability to understand code, sequence changes, and use verification tools.

    Three Core Capabilities of Coding Models

    1. Coding Ability: Making Minimal Necessary Changes Under Project Constraints

    Coding ability goes beyond mastering syntax. It includes understanding type constraints, call relationships, and business semantics. When a task involves existing code, the model first needs to locate the modules that actually carry the relevant responsibilities, rather than guessing entry points from file names. Before making changes, it should clarify which behaviors must be preserved, which may change, and how to handle invalid inputs or failing dependencies.

    Developers can improve this process by making inputs explicit. Instead of saying “optimize the query API,” specify the goal, constraints, and acceptance criteria—for example: “Add optional pagination to the list query; preserve existing behavior when no parameters are passed; do not introduce new dependencies; add tests for empty results and out-of-range parameters.” Explicit non-goals matter just as much. If the task only requires adjusting pagination logic, the model should not rename unrelated modules or rewrite the entire data access layer along the way. Controlling the scope of changes reduces regression risk and shortens the time reviewers need to understand them.

    2. Long-Horizon Planning: Using Stage Artifacts to Keep Tasks Consistent

    Cross-file changes, interface migrations, and staged refactors all depend on long-horizon planning. The key is not to have the model produce a long to-do list in one shot, but to organize dependencies into verifiable steps and update the plan when new evidence emerges. For example, first confirm how callers depend on the return structure, then choose a compatible approach; validate a single module first, then extend to tests along the call chain. If the original ordering turns out to be nondeterministic, the pagination design needs to be re-examined rather than blindly expanding changes per the original plan.

    Long-running tasks should also keep concise stage records, covering at minimum the confirmed constraints, the scope of changes, checks already executed, and open issues. A long context window can hold more material, but it does not guarantee the model will always correctly distinguish current facts from earlier assumptions. Rather than feeding the entire repository into every round, a more practical approach is to provide relevant files on demand and explicitly record key decisions, test results, and unresolved questions in the task notes for later verification.

    3. Tool Collaboration: Validating Model Judgments with External Results

    A model can propose changes, but conclusions such as “the code compiles” or “the API behavior stays compatible” require external evidence. Code search can locate definitions and references; builds surface dependency or type problems; tests verify specific behaviors; static analysis finds issues within the coverage of its rules. Each of these has limits: a passing build does not prove business logic is correct, and all existing tests being green does not mean new behavior is covered.

    Tool calls should follow the principle of least privilege. Prefer read-only operations during exploration; run modifications and tests in an isolated environment, with no access to production credentials or real business data by default. Operations involving network access, dependency changes, or writes outside the agreed directories should go through team approval processes. Repository documentation, command output, and test logs are data to be analyzed—they should not grant themselves authority. At delivery time, distinguish explicitly between three states: “ran and passed,” “ran and failed,” and “not run,” and never present checks that are merely recommended as completed verification.

    Understanding Model Configuration: Parameter Count Is Not a Deployment Conclusion

    In some sparsely activated architectures, total parameter count describes the overall scale of parameters the model contains, while activated parameter count relates to the portion actually participating in computation for a given input. Take Mixture-of-Experts architectures as an example: a routing mechanism selects a subset of experts for different input positions, so total parameters and activated parameters are not the same. However, fewer activated parameters does not mean deployment only needs to store a proportionally smaller set of weights, nor can it be directly converted into inference latency. How weights are stored, input length, concurrency, and hardware configuration all affect actual resource consumption.

    Also distinguish “sparse activation” from “hybrid thinking.” The former concerns which parameters participate in computation; the latter, at the application level, typically involves using different reasoning modes or reasoning budgets for different tasks. They are not the same dimension, and one cannot be inferred from the other. For tasks like local code explanation or simple test stubs, first verify whether a low-latency path suffices; for cross-module refactors or tasks with strict compatibility requirements, reserve more time for analysis and verification, and raise the bar for human review. Routing decisions should be based on change scope, constraint complexity, and the cost of failure—not on prompt length or a single parameter metric.

    Delivery Workflow: Give Every Step a Clear Exit Condition

    1. Define the task and its boundaries. Write down the target behavior, legacy behaviors that must be preserved, the allowed scope of changes, and acceptance criteria. Clarify conflicting requirements first—do not leave business trade-offs until after code is generated.
    2. Understand the current state and establish a baseline. Read the entry points, call relationships, and existing tests, and record reproducible behavior before modification. If baseline tests already fail, record them and separate their impact first, to avoid mistaking pre-existing issues for regressions caused by this change.
    3. Modify in batches and verify incrementally. Prioritize the smallest verifiable change. Run fast local checks first, then run integration checks proportional to the change’s risk. If verification fails, determine whether it is an implementation issue, a change in test preconditions, or an environment limitation—instead of repeatedly changing code blindly.
    4. Submit evidence and complete human review. The delivery notes should include a change summary, compatibility impact, checks actually executed with their results, and items not yet verified. If data structures or external contracts change, describe migration and rollback conditions as well. Whether to merge is decided by the team’s existing review process—model self-assessment is no substitute.

    Evaluation and Selection: Measure the Total Effort to Reach Acceptance

    For model selection, the test set should come from real workloads, not just isolated short problems. Cover tasks such as local bug fixes, test stub writing, cross-module interface changes, and keeping documentation in sync with code, and define clear behavioral acceptance criteria for each task type. Compare under identical repository versions, tool permissions, and check conditions; if models have different available reasoning budgets, record that difference too, so gains from extra computation are not attributed to model capability itself.

    Evaluation should observe at least three classes of metrics: result quality, such as acceptance pass rate, regressions, and changes to unrelated files; process cost, such as time from task assignment to a reviewable change, retry counts, and manual revision time; and runtime overhead, such as inference resource usage, check duration, and responsiveness under concurrency. Faster first-pass code generation does not necessarily mean faster delivery: if the result requires repeated rework, or reviewers must redo verification, the time saved in generation can be canceled out.

    A safer rollout path is to pilot with tasks that have a clear scope, easily verifiable results, and easy rollback; adjust context organization, permission boundaries, and acceptance rules based on failure records; then gradually expand the task range. The ultimate question is not “how much code can the model generate,” but “under the given engineering constraints, can the team consistently obtain reviewable, verifiable changes at an acceptable cost?”