From Prototype to Production: How AI Coding Agents Actually Grow

    This article examines how a terminal-based AI coding agent evolved from an internal engineer's script into a daily development standard, and the practical engineering and product lessons behind that growth. It covers the role of accidental discovery in product evolution, why a minimalist CLI interface succeeded, how to design context and project instruction files, and the uses, limits, and debates around agent-assisted debugging. It also discusses how hiring, collaboration, and development workflows should be rethought for the AI era. The core takeaway: good AI coding tools are grown through real usage rather than planned up front, so teams should choose low-cost validation scenarios, keep context configurations concise and accurate, and keep the tool layer replaceable.

    1. The Accident Behind the Evolution: Chance and Inevitability in Product Development

    Looking back at where these tools began, the strongest impression is not “strategic planning” but “accident.” Most turning points were absent from the original roadmap: a leap in model capabilities, a sudden spike in internal usage, or a single engineer’s complaint could all trigger a change of direction.

    1.1 Accident Is the Norm in Product Evolution

    Many AI coding tools started as scripts engineers wrote to save a few keystrokes. There was no roadmap and no growth target; development effort fit into spare moments. This seemingly chaotic evolution followed a simple logic: features that immediately relieved the developer’s own pain shipped first. High-frequency, real-world needs grounded in concrete scenarios filter for valuable directions better than any abstract “product vision.”

    When the team later tried to expand horizontally and push the same capabilities into other interfaces, the results never matched the terminal form. That retreat is telling: accidental success still needs data to validate it, not intuition to drive expansion.

    1.2 Staged Development of Model Capabilities

    An agent’s performance is determined by three parts working together: model capability, tool design, and context organization. Early models had limited instruction-following ability and limited long-context handling, so the team could only develop the system in stages:

    • Prompts evolved from simple templates into structured task descriptions;
    • The toolset expanded from single-command execution to file reading and writing and code search;
    • Context strategies moved from one-time concatenation to layered organization and retrieval on demand.

    This path yields an important judgment: the ceiling of an agent’s capability is set by the model, but the floor of its experience is set by engineering. Model upgrades directly change the optimal tool design, so the tool layer must stay lightweight and replaceable.

    1.3 The CLI’s “Spontaneous Takeoff”

    Choosing a command-line interface was not initially a strategic decision, but the path of least resistance: input and output were plain text, engineers were already comfortable with it, and both debugging and record-keeping were easy. That convenience later became one of the product’s biggest competitive advantages.

    1.4 Starting from a Simple Prototype

    Early versions implemented only a minimal loop: the model produced a command, the system executed it, and the result was fed back to the model. There was no complex permission system, no visual interface, and no fine-grained tool separation. The fewer the constraints, the faster the iteration; the team could validate a large number of hypotheses in a short time.

    1.5 Pragmatic Reasons for Choosing the Terminal

    From today’s perspective, terminal interaction offers at least the following advantages:

    1. It composes seamlessly with existing tools such as pipes, redirection, and version control;
    2. It is naturally scriptable and can be embedded in CI pipelines and automated tasks;
    3. Text output makes logs easy to retain, trace, and audit;
    4. It is cheap to deploy in remote development, containerized environments, and low-bandwidth settings;
    5. It matches engineers’ existing habits, so the learning cost is nearly zero.

    1.6 The “Low-Pressure” State of Early Exploration

    As an internal tool, it made no explicit feature promises and faced no pressure from external user complaints. The team could freely experiment with prompt wording, tool granularity, and context length, or even start over. This low-risk environment is a prerequisite for fast learning, and it is a signal to engineering managers: innovation projects need a protected period during which mistakes are allowed.

    1.7 The First Tool: Command Execution

    The earliest extended capability let the agent execute shell commands directly. The reasons:

    • Broadest coverage: compiling, testing, version control, and dependency installation can all be done through commands;
    • The model already knows a great deal about the command line, so no extra adaptation is needed;
    • Simple permission control: restricting the working directory and blocking high-risk commands already form a basic security boundary;
    • Short feedback loop: a command’s standard output and exit code are natural, structured signals.

    1.8 The First “Near-AGI” Moment

    A typical scenario: a developer requests a small change spanning multiple files; the agent searches the code on its own, edits the files, and runs the tests. When tests fail, it proactively inspects the errors and fixes the implementation until everything passes.

    What truly impresses is not the quality of a single output but the autonomy of “discovering and fixing its own mistakes.” However, this experience has prerequisites: clear task boundaries, reliable verification methods, and a controllable scope of change. In modules lacking test coverage, an agent’s “self-correction” easily degenerates into “self-confirmation.”

    2. The Unconventional Success of Terminal Simplicity

    2.1 Explosive Growth in Internal Usage

    Once the agent could reliably complete common tasks, internal usage climbed sharply in a short period. Notably, growth was driven not by marketing but by word of mouth among engineers. Near a release deadline, colleagues would remind each other, “Don’t forget to have the agent run through the final cleanup.” When a tool becomes embedded in the daily rhythm, it stops being a novelty and becomes productivity infrastructure.

    2.2 Early Engineers’ Usage Patterns

    • Navigating unfamiliar codebases: quickly answering “which modules implement this feature”;
    • Mechanical refactoring: batch renaming, adjusting interface signatures;
    • Test completion: generating unit tests for functions lacking coverage;
    • Throwaway scripts: code for data cleaning, log analysis, and similar one-off tasks;
    • Documentation and comments: reverse-engineering design notes from code.

    These scenarios share a common trait: clear objectives, low verification cost, and high repetitiveness — exactly the parts agents handle best and humans least want to do.

    2.3 Why Simplicity Won

    Complex graphical interfaces often try to make decisions for the user, while the terminal leaves control in the user’s hands: every step can be anticipated, interrupted, or rewritten. This transparency builds trust, and trust determines usage frequency. The terminal also makes copy-paste and command composition easy; when teams share usage tips, they can hand over a directly executable example, so the cost of spreading knowledge is minimal.

    3. Context Configuration: The Birth and Principles of Project Instruction Files

    3.1 Core Product Philosophy: Wait for the Need

    The team always followed a “wait for the need” principle: no new feature without a real pain point. The context configuration feature was precisely forced out by a high-frequency pain point — having to re-explain the project background every time.

    3.2 Scaffolding and Trade-offs

    Around the context file, scaffolding that automatically initializes a project description can significantly lower the barrier to entry. But scaffolding is inherently templated and tends to generate long, generic content. The team’s choice: keep the entry point lightweight, leave judgment about content quality to the engineer, and have the tool prompt “what should go here” rather than writing it for the user.

    3.3 Simplicity of the Context File

    Good context configuration should follow these principles:

    • Short: only record information that both the model and the developer are prone to misjudge;
    • Accurate: commands, directory structure, and code conventions must match reality;
    • Stable: do not record details that change frequently;
    • Verifiable: conventions should map to checks that can be executed automatically.

    A reference structure:

    1. # Project Guide
    2. ## Common Commands
    3. - Install dependencies: `<package manager> install`
    4. - Start locally: `<start command>`
    5. - Run tests: `<test command>`
    6. - Static checks: `<lint command>`
    7. ## Code Conventions
    8. - Use 4-space indentation; do not end statements with semicolons
    9. - Every new public interface must include unit tests
    10. - Commit messages follow the Conventional Commits specification
    11. ## Architecture Notes
    12. - Core business logic lives in `src/domain/` and must not depend directly on framework code
    13. - All database access goes through the repository layer; controllers must not connect to the database directly

    3.4 Managing Shared Configuration Across the Team

    Context configuration should be version-controlled like code, reviewed and evolved alongside the codebase. Layered organization is recommended:

    • Put the team-wide configuration in the repository root so all members behave consistently;
    • Keep personal preferences in local configuration and add them to the ignore list to avoid polluting shared content;
    • Set directory-level configuration to give individual modules their own conventions.

    3.5 Recommendations for Managing Configuration

    • Assign an owner: every context file needs a maintainer, or it will quickly go stale;
    • Trim regularly: overly long instructions eat into the context budget and weaken the model’s attention to key information;
    • Align with checking tools: conventions written into the configuration should be enforced by automated tools wherever possible, not merely “remembered” by the model;
    • Measure effectiveness: use adoption rate, rework rate, and similar metrics to judge whether the configuration actually works.

    3.6 Instruction Strategy Adapted to Model Changes

    After a model upgrade, existing instructions may stop working, for three reasons:

    • New models are more sensitive to long, repetitive instructions, and over-constraining them can actually degrade performance;
    • Things old models needed to be explicitly reminded of may already be default behavior in new models;
    • Changes in underlying capabilities such as tool-call formats and context windows alter how instructions should be organized.

    Context configuration should therefore be treated as a “living document”: re-evaluate, trim, and rewrite it after every model upgrade instead of only adding to it.

    4. Tool Design and Interaction Details: An Underrated Competitive Edge

    4.1 Personal Preferences and Diversity in Tool Use

    Engineers’ tool habits vary widely: some rely on the terminal and scripts, while others prefer graphical tools and IDEs. The value of AI coding tools is not to replace any one category of tool but to unify scattered operations under a natural-language interface.

    4.2 Building the Product as a User

    Developers are the most demanding users of their own product. Using the agent for their own daily work lets them immediately feel the frustration of latency, misoperations, and missing context. This feedback loop is more honest than any survey.

    4.3 Deciding How Verbose Terminal Output Should Be

    Too little output leaves the user unable to tell what the model is doing; too much drowns the key information. A reasonable approach is tiered presentation:

    • Show a summary and key decisions by default;
    • Keep detailed processes collapsed by default, expandable on demand;
    • Provide progress feedback for long-running operations;
    • Explicitly confirm before executing dangerous operations.

    In early implementations, the model often “read too little” or “searched too broadly.” Improvements included:

    • Prefer semantic search to locate relevant code first, then read key files closely;
    • Extract snippets from long files on demand to avoid stuffing the context all at once;
    • Give actionable hints on failure, such as suggesting the user narrow the search scope.

    4.5 User-Feedback-Driven Iteration

    Priorities are set by real feedback: high-frequency complaints are fixed first, while low-frequency but high-risk issues are handled separately. This “data first” mechanism prevents resources from being pulled by the few loudest voices.

    5. Debugging with Agents: Capability, Controversy, and Accumulated Lessons

    5.1 The Trend Toward Automated Vulnerability Fixing

    Traditional debugging follows a cycle of “reproduce — locate — fix — verify,” and locating relies most on experience. Agents can read code, logs, stack traces, and commit history simultaneously and quickly compare multiple hypotheses, compressing investigations that once took hours into minutes. But they are better suited to “locating” than to “making the call”; final changes should still be reviewed by engineers.

    5.2 Debugging Case: Memory Leak

    Take a service whose memory usage keeps growing. A typical investigation path:

    1. Collect evidence: sample the memory usage curve periodically and generate a heap dump at the peak;
    2. Compare differences: compare object counts and reference chains at two points in time to find object types that only ever grow;
    3. Locate the root cause: common causes include static collections that keep accumulating, listeners that are never unregistered, caches without an expiration policy, and unbounded thread-pool queue buildup;
    4. Fix and verify: add regression tests for the leak scenario and keep watching whether the memory curve returns to a stable level.
    1. # Pseudocode: finding objects that only grow
    2. snapshot_before = heap_dump()
    3. run_workload(duration="30m")
    4. snapshot_after = heap_dump()
    5. growth = diff_object_counts(snapshot_before, snapshot_after)
    6. top = growth.sort_by(delta).take(10)
    7. for item in top:
    8. print(item.class_name, item.delta, item.retainers)

    The agent’s role shows up in two places: turning raw data into readable conclusions, and proposing several verifiable hypotheses based on reference chains. The final fix is still merged only after engineer confirmation.

    5.3 The Controversy Around Code Review

    The debate centers on two points:

    • Does the review burden rise in step with output volume?
    • Will reviewers let their guard down because changes “look reasonable”?

    A safer approach is to keep individual changes small, require clear change descriptions, strengthen automated checks in high-risk areas, and keep a human final review. An agent is suited to being the “first reader,” not the “final judge.”

    5.4 Learning from Mistakes and Reusing Them

    The highest-return improvement is to distill typical failure cases into constraint clauses in the context configuration, checklists, or automated tests. If the same mistake appears more than twice, it should become a mechanism, not rely on individual memory.

    5.5 The “Meta-Question” of Changing Model Capabilities

    Teams need to keep answering one meta-question: when the model’s capability boundary shifts, which of our original design assumptions no longer hold? It is advisable to keep the tool layer replaceable and to run regular regression evaluations against real task sets, avoiding designs that are overly coupled to the traits of any single model generation.

    6. Six Recommendations for Technical Founders

    6.1 Keep a Beginner’s Mind and First Principles

    Conventional experience rests on the assumption that “coding is the main bottleneck.” When coding speed rises sharply, review, design, and decision-making become the new bottlenecks instead. Only by asking, from first principles, “what is the real purpose of this step?” can you redesign the process rather than applying the old one unchanged to new tools.

    6.2 Hire People with a New Mindset

    In interviews, observe how candidates treat mistakes — for example, ask, “When did you last admit your own judgment was wrong?” In a fast-moving field, a high individual error rate is not frightening; what is frightening is being afraid to try. The ability to try quickly and correct quickly often matters more than the stock of existing knowledge.

    6.3 Hire Based on Collaboration Records

    Traces of agent usage are themselves a new evaluation material: how a candidate breaks down tasks, corrects course, and verifies results in a session reflects engineering habits better than verbal description. You can design standardized collaboration tasks and observe the candidate’s questioning quality, context-organization ability, and verification awareness.

    6.4 A Shift in Thinking About Generalist Roles

    When agents can fill in knowledge and implementation details from unfamiliar domains, the barrier to advancing cross-domain work drops significantly. Engineers with systems thinking who can step outside established frameworks gain in value, and the division-of-labor model in which everyone “only knows one layer” needs to be re-examined.

    6.5 Full Automation of the Development Process

    From requirement clarification, code generation, and test completion to build, deployment, and monitoring alerts, agents can be introduced at every stage to form an end-to-end loop. Three bottom lines should be followed in implementation:

    • Least privilege;
    • Human confirmation at key steps;
    • The entire process must be auditable.

    Combined with general-purpose capabilities offered by cloud platforms such as Baidu AI Cloud — container platforms, pipelines, logging services, and monitoring alerts — a loop of “agent suggestion → automated execution → automated verification → automated feedback” can be set up relatively quickly.

    6.6 Team Collaboration and Agent Topology

    The core designer on a team is no longer merely “the person who writes the most code,” but the person who defines problems, sets constraints, and judges results. Multi-agent collaboration is becoming a new direction of exploration: different agents take on planning, implementation, review, and testing roles, coordinating through clear division of labor and communication protocols. The key to topology design is to reduce unnecessary communication, avoid overlapping responsibilities, and ensure that final decision authority always remains with humans.

    Conclusion

    The growth of this tool shows that a good AI coding product is not planned in one shot; it is “grown” through real use. For developers, the key is to choose scenarios with low verification cost, keep context configuration concise and accurate, and keep the tool layer replaceable. For teams, it means rebuilding hiring standards, collaboration methods, and process boundaries. Model capabilities are still evolving quickly, and only by grounding design principles in first principles can we keep reaping the benefits.