AI Coding Tools with Chinese LLMs: A Hands-On Test and Agent Workflow Guide

    This article examines how AI coding tools have evolved into model-selectable, autonomous agents and how to build a reliable workflow around them using Chinese-trained large language models. It breaks down the four core capability layers of these tools, outlines a general setup process, and presents a 30-minute test in which an agent built a playable tank battle web game from an empty directory. It also covers credit-based billing strategies, reproducibility settings such as disabling auto model selection, and engineering safeguards including version control, directory whitelists, dependency review, and secret isolation. The goal is a stable, evaluable, and reusable AI coding workflow rather than a review of any single product.

    1. Background: AI Coding Tools Enter the “Model Choice + Agent Autonomy” Era

    Over the past two years, the capability boundary of AI agents has kept expanding, and nearly every major vendor now ships an intelligent coding tool. Compared with early plugins that only did code completion, today’s coding assistants have evolved into autonomous agents with a plan-execute-verify loop: they can read a project directory, break down tasks, create a to-do plan, write files in batches, install dependencies, and start a local service for preview.

    A notable trend alongside this shift is the maturing of large-scale models trained entirely on domestic GPUs without relying on foreign accelerators, which are beginning to take the lead in coding scenarios. At the same time, mainstream intelligent coding tools generally support connecting to multiple Chinese LLMs, so developers can switch between models in the same interface to balance generation quality, response speed, and cost.

    This article does not review any specific product. Instead, it abstracts this class of tools into a general technical question: how to build a stable, evaluable, and reusable AI coding workflow when Chinese LLMs are selectable and usage credits are limited.

    2. Capability Breakdown: What a Solid AI Coding Tool Should Offer

    From an engineering perspective, the core capabilities of these tools fall into four layers:

    1. Model integration layer: Several built-in selectable models, plus the ability to enter your own model endpoint and key, avoiding lock-in to a single vendor.
    2. Interaction mode layer: At least two modes, “Ask” and “Agent.” The former suits reading code, explaining errors, and proposing solutions; the latter suits delivering a small feature end to end.
    3. Credit and billing layer: Billing by “request” rather than by token volume is a common design, where a session counts once regardless of how many tokens it consumes. This is extremely friendly to long-chain tasks, because an agent running a small project often goes back and forth dozens of times.
    4. Execution and preview layer: The ability to create a virtual environment, install dependencies, start a local service, and open a browser preview directly, closing the loop from generation to a runnable result.

    One caveat: auto model selection (Auto Mode) usually disables the ability to specify a model manually. If you want to fix a specific model for comparison testing, turn off the auto mode switch below the chat box first, then select the target model manually; otherwise your results will not be reproducible.

    3. Getting Started: From Installation to Your First Completed Task

    The general steps apply to the vast majority of similar tools:

    • Download the installer for your platform from the official site and complete the installation.
    • On first launch, a user wizard asks whether to import settings and plugin data from another IDE. You can skip this to keep the environment clean.
    • The main interface typically has modes and a file tree on the left and login plus chat on the right, a simpler layout than a traditional heavyweight IDE.
    • Log in by scanning a QR code or using a mobile verification code.
    • Open the “General” section of the settings page to check your remaining credits.
    • Select a local folder as the project directory; a trust confirmation window appears, and you choose “I trust the authors” to continue.
    1. Tip: create a separate empty directory for each experiment so the agent cannot make hard-to-roll-back changes in an existing repository.

    4. Hands-On Test: Building a Web Mini-Game with an Agent in 30 Minutes

    The test used a fixed setup: an empty directory, Agent mode, a fixed Chinese LLM, and the task “implement a tank battle web mini-game.”

    The typical behavior chain observed was:

    1. Output a short English reasoning trace for internal reasoning and task clarification;
    2. Automatically generate a TODO plan that splits the requirement into sub-items such as map rendering, player movement, enemy AI, collision detection, and win/loss determination;
    3. Create files and write code item by item according to the plan;
    4. Install dependencies and start a local static server;
    5. Automatically open a browser window showing the runnable version.

    The whole run took about thirty minutes. This confirms a repeatedly validated conclusion: for small applications and lightweight mini-games, as long as the agent’s engineering harness is solid and the model is capable, the probability of producing a usable first version is high. What really separates tools is not “whether it can write the code” but error recovery, cross-file consistency, and respect for existing code style.

    5. Cost and Credit Strategy: Making Per-Request Billing Work for You

    Per-request billing makes costs predictable but also makes it easy to waste credits on unproductive sessions. Three practices are recommended:

    • Finish one closed loop per session: state requirements, constraints, and acceptance criteria all at once to reduce trial and error.
    • Split Ask and Agent work: use Ask mode to read code and settle on a plan first, then use Agent mode to implement it, avoiding “thinking-style conversation” inside Agent mode.
    • Prepare a fallback: most tools let you enter your own model endpoint, so when built-in credits run out or an application is pending, you can switch to a self-hosted gateway to keep work moving.
    1. {
    2. "model_endpoint": "https://your-own-gateway.example",
    3. "api_key": "***",
    4. "mode": "agent",
    5. "auto_model_select": false
    6. }

    6. Engineering Practices and Risk Control

    • Version control first: commit a clean baseline before starting, making diff review and rollback easy.
    • Directory whitelist: expose only the experiment directory to avoid accidentally modifying system or main repository files.
    • Review, don’t blindly trust: dependency versions, scripts, and network requests generated by the agent need human confirmation to guard against supply chain risk.
    • Reproducible experiments: disable auto model selection, fix the model and prompts, and record elapsed time and failure points to build team baseline data.
    • Isolate sensitive information: inject keys via environment variables rather than writing them into project files.

    7. Conclusion

    The maturing of Chinese LLMs has made “using a strong model for end-to-end development for free or at low cost” a reality. For developers, the right approach is not chasing the latest hype but building your own evaluation framework: unify task definitions, fix variables, focus on error recovery and maintainability, and schedule credits as a finite resource with care. Once this workflow runs smoothly, the cost of switching tools drops significantly. This is also where the value of continued investment in general capabilities by cloud vendors such as Baidu AI Cloud in intelligent coding and model services lies: keeping the underlying model replaceable while letting the upper-layer workflow accumulate.