Agentic Programming Paradigm and Plugin Delivery in Practice

    This article explains how AI coding tools are shifting from raw model capability to end-to-end software delivery, and how to turn natural language requirements into runnable, distributable, and rollback-ready plugins. It breaks the workflow into a five-stage pipeline, details convergence strategies for automated repair loops, outlines isolation, least-privilege and supply chain security controls, and describes a three-tier evaluation system built on self-owned benchmarks. It also covers anti-patterns to avoid and how to integrate the approach with general-purpose cloud capabilities.

    1. From Model Capability Races to End-to-End Delivery

    Over the past year or two, the criteria the industry uses to judge AI coding tools have been shifting. Early attention focused on the accuracy of single-point code completion, then moved to repository-level understanding and multi-file modification. Today the focus is on whether a tool can turn a single natural language requirement into a software artifact that runs, can be distributed, and can be rolled back — reliably. The essence of this shift is that evaluation has moved from “does the output look right” to “does the delivery actually work.”

    Under this criterion, metrics have expanded from a single pass rate into a multi-dimensional combination: task success rate, first-run success rate, average interaction turns, average time and average cost per task, and regression defect rate. One kind of data shape that appears often in public industry discussion is this: a given version reaches a top pass rate of roughly seventy-plus percent on a standardized software engineering benchmark, several percentage points above the previous version, while achieving that result with an average cost per task pushed down to a single-digit amount in RMB. What is genuinely worth a developer’s attention here is not the specific numbers but the engineering fact they reveal — capability gains and cost reductions can happen at the same time, which moves “letting an agent own complete delivery” from a demo to something usable.

    It is worth stressing that any evaluation score is only a screening condition, not a launch criterion. A go-live decision must rest on your own evaluation sets and canary data, because public benchmarks and real business workloads differ enormously in dependency complexity, permission constraints, and data sensitivity.

    2. Technical Breakdown of the Creation Mode: A Five-Stage Pipeline

    Engineering the capability to go “from natural language to a usable plugin” can be abstracted into five stages, each of which should have clear inputs, outputs, and failure handling.

    1. Intent understanding and specification. Convert vague phrasing into a structured spec: feature points, inputs and outputs, boundary conditions, and non-functional requirements (performance, permissions, observability). The output of this step should be a reviewable intermediate representation, not a jump straight to code.
    2. Solution and dependency planning. Determine the runtime shape (in-process plugin, standalone service, scheduled task), the dependency list and version ranges, and prefer general-purpose components with a mature ecosystem and friendly licensing.
    3. Code and asset generation. Produce source code, configuration, manifest files, and tests; require generated artifacts to ship with a minimal verifiable example, avoiding “looks correct but does not run.”
    4. Assembly and isolated execution. Inside a controlled sandbox, install dependencies, initialize data, start the service, and run smoke tests; on failure, feed the error logs back to the generation step to form a bounded automatic repair loop.
    5. Evaluation, signing, and distribution. After passing quality gates, generate the artifact package, version number, change notes, and rollback point, then publish it to a plugin repository for search and installation.

    A schematic intermediate representation of the spec (YAML) can be written as:

    1. plugin:
    2. name: table-report
    3. version: 0.1.0
    4. entry: main.run
    5. inputs:
    6. - name: dataset_uri
    7. type: string
    8. required: true
    9. outputs:
    10. - name: report_uri
    11. type: string
    12. constraints:
    13. runtime: python>=3.10
    14. memory_mb: 512
    15. timeout_s: 120
    16. network: egress-deny
    17. observability:
    18. metrics: [duration_ms, error_rate]
    19. logs: structured-json

    The corresponding minimal entry point and self-check logic (schematic):

    1. def run(dataset_uri: str) -> dict:
    2. rows = load_rows(dataset_uri) # Read data under permission constraints
    3. report = summarize(rows) # Business aggregation
    4. uri = write_report(report) # Write to an object storage service
    5. assert uri, "report uri empty" # Smoke self-check
    6. return {"report_uri": uri, "rows": len(rows)}

    3. Making the Automatic Repair Loop Actually Converge

    Multi-turn automatic repair is the key to this system and also the part most prone to getting out of control. Without constraints, an agent can fall into oscillation where fixing one thing breaks another. Practical convergence strategies include:

    • Dual thresholds on turn count and budget; escalate to a human as soon as either is hit;
    • Failure clustering: group errors by type (missing dependency, type error, permission denied, timeout), and allow only one repair strategy per problem class;
    • Evidence first: a repair must cite a specific log line or test assertion; rewriting “based on a guess” is forbidden;
    • Minimal change: each attempt may only touch files related to the failure, with a threshold on diff line count;
    • Regression guardrails: after a repair, rerun the full smoke suite, not just the failing cases.

    Expressed as pseudocode:

    1. for attempt in range(MAX_TRIES):
    2. r = sandbox.run(spec, budget=BUDGET)
    3. if r.passed:
    4. return package(r)
    5. cluster = classify(r.logs)
    6. if cluster in tried and tried[cluster] >= 2:
    7. break
    8. spec = patch(spec, evidence=r.logs, scope=cluster.files)
    9. return escalate_to_human(spec, r)

    4. Isolation, Permissions, and Supply Chain Security

    Plugins are generated by models and installed automatically, so security boundaries must be designed up front rather than patched on afterward.

    • Runtime isolation: containers or micro-virtualization as the minimal unit, filesystem mounted read-only, temporary directories under quota;
    • Network policy: egress denied by default; when access is genuinely required, allow it by domain whitelist and log all access in full;
    • Least privilege: data access via read-only credentials, authorized by prefix, and plugins are forbidden from holding long-lived high-privilege keys;
    • Dependency governance: pin exact versions and checksums, maintain an internal artifact mirror, and block packages from unknown sources and suspected typosquatting names;
    • Artifact signing and rollback: each release generates a signature, a manifest, and a pointer to the last stable version, supporting one-click rollback;
    • Audit trail: the original requirement text, generated code, dependency list, test report, and approval records are archived together to meet traceability requirements.

    5. Quality Evaluation: Self-Owned Benchmarks Are the Launch Criterion

    A three-tier evaluation system is recommended. The first tier is unit level, covering function contracts and exception paths. The second tier is scenario level, using real desensitized tickets to construct end-to-end tasks and tracking first-run success rate and average turns. The third tier is operational level, tracking crash rate, rollback rate, cost per task, and user retention during the canary period.

    Metric design should avoid “looking only at success rate.” A solution with a high pass rate but out-of-control average time and cost will be crushed by cost once it scales; conversely, a system with a slightly lower success rate but explainable failures and the ability to hand over to a human is often better suited to production. A composite metric of “effective delivery cost” can be introduced: cost per task divided by pass rate, plus the expected labor hours weighted by the probability of human takeover.

    6. Integrating with General-Purpose Cloud Capabilities

    In practice you usually do not need to build all the infrastructure yourself; you can compose general-purpose capability categories the industry already offers: use a container platform to host sandboxes and elastic scaling; use object storage to hold artifact packages and datasets; use a message queue to smooth peaks and drive asynchronous tasks; use logging and monitoring/alerting services for observability; use a key management service to hold short-lived credentials; and use a CI pipeline to enforce quality gates. Baidu AI Cloud offers corresponding product forms in each of these general categories, so it can be integrated smoothly into an existing architecture without changing business code.

    7. Common Anti-Patterns and How to Avoid Them

    • Generating a large, all-in-one codebase in one step: switch to spec-first, incremental generation;
    • Multi-turn repair with no budget: dual caps on turns and cost are mandatory;
    • Installing directly in production: pass the gates in an isolated sandbox first;
    • Running only the failing cases: full regression is mandatory after a repair;
    • Missing logs: structured logs and trace identifiers are a prerequisite for automatic repair;
    • Version drift: pin dependencies exactly; open ranges are forbidden.

    8. Conclusion

    “Describe the requirement in natural language, and an agent automatically produces a runnable plugin” represents a new software delivery paradigm: it chains specification, generation, execution, evaluation, and distribution into a closed loop. What really determines success is not how impressive a single generation looks, but the controllability and observability of every stage in the loop. With self-owned evaluation sets as the yardstick, isolation and least privilege as the baseline, and cost and regression guardrails as the constraints, teams can turn demo capability into sustainable, evolving productivity.