A Brief History of AI Coding (2020–2026): From Ghost Text to Agentic Engineering

    This article traces the evolution of AI-assisted programming from 2020 to 2026 across six phases: ghost text, the intent revolution, mass adoption, the trust crisis, industrialization, and the collective hangover. It focuses less on individual tools and more on how the engineering paradigm was rewritten at each step, covering context engineering, evaluation baselines, sandboxed execution, governance, and the shift from writing code to defining goals and acceptance criteria. Developers will find a practical action checklist for adopting AI coding in a verifiable, auditable way.

    Introduction: Redefining What It Means to “Write Code”

    In early 2025, a casual post by an AI researcher drew millions of views within two days. The term it introduced, “vibe coding,” was named word of the year by a major English dictionary at the end of that same year. A playful, colloquial expression ended up marking a dividing line in the history of technology: the center of gravity in programming shifted from “specifying syntax line by line” to “describing intent and verifying results.”

    This article reviews the technical movement from 2020 to 2026 as a chronology, dividing it into six phases: ghost text, the intent revolution, mass adoption, the trust crisis, the industrialization wave, and the collective hangover. The focus is not on the tools themselves, but on how the engineering paradigm was rewritten step by step.

    1. Ghost Text (2020–2022): Striking a Match on the Rubble

    Organization: A Small Team Inside a Large Company’s Cracks

    The story did not begin with a grand launch event, but with a six-person R&D group inside a code hosting platform. The lead’s candid summary was representative: we knew nothing about the model’s capabilities, so we could only start with the simplest scenarios and iterate through trial and error. This “no assumptions, experiment first” organizational form was later proven to be one of the most effective paths for incubating generative AI applications: small teams, short feedback loops, and real user behavior as the only judge.

    The First “Aha Moment”

    The turning point came during a remote meeting: when a member entered a natural language instruction into the model, the screen returned a function body that was syntactically correct and logically usable, and the room fell silent. Proposals for “automatically writing code” had been raised and rejected roughly every six months inside the platform, always for the same reason: the results were unusable. This time, the inflection point arrived.

    From Chatbot to Ghost Copilot

    The team initially envisioned a question-and-answer bot: developers ask questions and copy the answers. But they soon found that copy-pasting broke the flow state. The real value was not in “answering questions,” but in “guessing your next line while you write the current one.” So the interaction form converged from a chat window to gray ghost text inside the editor: a low-interruption completion that could be accepted or ignored with a single keystroke. This decision established the basic interaction paradigm for AI coding products for years to come.

    Early Engineering Challenges

    Early experimental models had limited parameter counts and training corpora dominated by a single language, with function-level accuracy of only about ten percent. The team’s core work was therefore not “tuning the model” but building data and evaluation loops: cleaning corpora, deduplication, removing public problem sets to prevent leakage, and establishing an automatically judgeable metric of unit test pass rate. This seemingly tedious engineering formed the infrastructure for all subsequent code model iterations.

    2. The Intent Revolution (2022–2023): From Completion to Conversation

    After general-purpose large models took a leap in capability, coding interaction expanded from “completing a line” to “changing a whole area.” Three changes were key:

    • Larger context windows made cross-file understanding possible;
    • Improved instruction following made compound intents like “extract this logic into a function and add tests” expressible in a single request;
    • Tool-calling capability emerged, allowing the model to retrieve documentation, execute commands, and read errors.

    The engineering focus shifted accordingly from “predicting the next token” to context engineering: which files should enter the window, how to trim them, how to order them, and how to preserve symbol indexes and dependency relationships. The industry gradually reached a consensus: model capability determines the ceiling, while context quality determines the actual floor.

    Illustrative context assembly logic:

    1. def build_context(task, repo_index, budget=120_000):
    2. # 1) Key symbols parsed from the task intent
    3. symbols = extract_symbols(task)
    4. # 2) Expand to directly related files and callers along the dependency graph
    5. files = repo_index.expand(symbols, direction="both")
    6. # 3) Trim by priority within budget, keeping interface definitions and tests
    7. return clip_by_priority(files, symbols, budget=budget)

    3. Mass Adoption (2023–2024): The Barrier Disappears and the Productivity Illusion

    Natural language became the new programming interface, and non-professional developers could “state a requirement and get a program” for the first time. This phase delivered real inclusive value: internal small tools, data cleaning scripts, and one-off pages were produced in large numbers.

    But a productivity illusion emerged along with it. Generation speed far exceeded reading speed, making code review the bottleneck; duplicate implementations, style drift, and implicit dependencies caused technical debt to accumulate faster. The industry began to realize that a drop in generation cost does not equal a drop in maintenance cost, and the latter is the main cost item across a software’s lifecycle.

    4. The Trust Crisis (2024–2025): From “It Runs” to “We Dare to Use It”

    Several production incidents caused by generated code pulled the discussion back from effectiveness to governance. On the enterprise side, the core questions concentrated on four points:

    1. Licensing and provenance compliance: how to define the ownership boundary of training and generated content;
    2. Data leakage: whether source code and keys could be taken outside the internal network;
    3. Supply chain risk: whether third-party dependencies introduced by generated code are trustworthy;
    4. Accountability: who bears responsibility when something goes wrong.

    The countermeasures gradually became standardized in engineering: private or dedicated deployment, keeping code within its domain, dependency allowlists and provenance scanning, key custody with least privilege, and mandatory labeling of generated content with audit trails. Trust is not built by model promises, but by verifiable processes.

    5. The Industrialization Wave (2025–2026): Agentic Engineering Takes the Stage

    Monolithic completion gave way to orchestrable agents: planning, retrieval, coding, test execution, repair, and submission form a closed loop. The role also changed from “the person who writes code” to “the person who defines goals and acceptance criteria.” In engineering practice, this can be summarized in four layers of capability:

    • Evaluation layer: a baseline composed of task pass rate, regression rate, and manual rework rate; any model or prompt change must pass evaluation;
    • Context layer: unified management of repository indexes, symbol graphs, specification documents, and historical decision records;
    • Execution layer: running in isolated containers, combined with a container platform, logging service, monitoring and alerting, and object storage for archiving artifacts;
    • Governance layer: tiered permissions, change approval, sensitive information interception, and full-chain traceability.

    A minimal viable agent loop:

    1. while not accepted:
    2. plan = planner(goal, repo_index)
    3. patch = coder(plan, context)
    4. result = sandbox.run(tests, patch)
    5. if result.passed and reviewer(patch) == "ok":
    6. accepted = True
    7. else:
    8. context = update(context, result.logs)

    6. The Collective Hangover and a Second Name (2026): After Sobering Up

    As the euphoria receded, the industry entered a period of reflection. The verified conclusion was that AI does not remove the basic constraints of software engineering; it only amplifies them. The truly scarce capabilities are problem definition, system design, review judgment, and risk awareness.

    So “vibe” gave way to a more serious expression: agentic engineering. It emphasizes being evaluable, rollback-able, and auditable, embedding generative capability into the existing engineering system rather than starting a separate one. Cloud service providers such as Baidu AI Cloud play a role that is mainly to provide general infrastructure like compute, container platforms, logging, and monitoring, so that teams can focus their energy on scenarios and evaluation.

    Conclusion: An Action Checklist for Developers

    • Build the evaluation set first, then discuss tool selection: efficiency gains without a baseline cannot be proven;
    • Treat context as an asset to manage: indexes, specifications, and decision records need versioning;
    • Merge in small steps: control the size of each generation to reduce review and rollback costs;
    • Isolate execution by default: run generated code in a sandbox with least-privilege access;
    • Keep the human gate: architecture decisions and security-related changes must be confirmed by a person.

    In six years, AI coding completed the leap from ghost text to agentic engineering. The definition was thoroughly rewritten, but the core of engineering remains unchanged: only what is verifiable can be delivered.