AI Coding Agent Hands-On: Building a Browser Game with Free Credits

    This article examines an AI coding agent that offers free credits and supports multiple models, with a focus on its Agent mode. It covers setup, interface modes, a tank battle web game test, safety practices, and a checklist for evaluating similar tools.

    AI Coding Agent Hands-On: Building a Browser Game with Free Credits

    1. Background: Free Credits as an Entry Point for New Tools

    AI coding tools have become increasingly similar in form. A common design is an IDE-like client with a chat panel, an agent execution engine, local project directory management, and access to multiple large models for users to choose from. The differences between tools increasingly come down to model selection, billing methods, and the execution quality of the agent.

    Two recent trends are worth noting. First, some model vendors have publicly stated that their training approaches reduce reliance on imported high-end GPUs. Specific claims should be checked against the vendor’s technical reports, and this should not be understood to mean that all models have eliminated that dependency. Second, new tools commonly use free allowances to attract users, and registration credits are a common practice.

    The tool observed in this article follows this strategy. In addition to its own models, it integrates several models from different providers, some of which can be used for free. After the allowance is exhausted, users can apply for renewal, and the tool also supports connecting a self-provided model API. In this observation, one credit corresponds to one chat task; regardless of how many tokens the task consumes, only one credit is deducted. This billing method is favorable for scenarios where an agent completes small projects. However, billing rules may change, so users should check the official billing documentation before use.

    2. Installation and Initialization

    2.1 Preparation Before Installation

    Before starting, confirm three things: whether the operating system version is within the supported range listed on the official website; whether the computer has enough disk space; and whether the network can access the official website and the service address of the selected model. Enterprise users should also confirm whether the company’s network policy allows installing this type of client.

    Download the installer only from the official website. Do not use installers from unknown sources or cracked versions, as they may contain malicious programs. If the official website provides a checksum such as SHA256, verify it after downloading to confirm the file is intact.

    2.2 First Launch

    On first launch, the tool displays a user wizard asking whether to import settings from another programming IDE, including keyboard shortcuts, themes, and plugin preferences. Users already accustomed to a particular IDE can import them to reduce migration costs. New users can simply skip this step without affecting later use.

    2.3 Login and Key Management

    The tool supports login via QR-code scan and SMS verification code. If you need to connect a self-provided model API, store the API key in the system keychain or a password manager. Do not write keys into project code or configuration files, do not commit them to a code repository, and do not paste them into a chat box to send to others.

    3. Interface and Modes

    The interface is simpler than a traditional IDE. On the right is the login and model chat area, and on the left is the mode switch area. Two modes are provided by default.

    • Ask mode: pure question and answer. The model only provides suggestions and code snippets and does not modify files. This is suitable for learning principles and discussing approaches.
    • Agent mode: the model can read project context, create task plans, create and modify files, and run commands. This is suitable for end-to-end delivery and is also the highest-risk mode.

    3.1 Auto Mode Toggle

    Below the chat box is an Auto Mode toggle. In the version used for this test, it is enabled by default, and the system selects the model automatically. To fix a specific model for capability comparisons, you need to turn it off manually. The default value and interface location may differ in other versions, so refer to the current interface.

    3.2 Quota and Project Trust

    In the General settings page, you can see the remaining credits. When selecting a local folder as the project directory, the tool displays a trust confirmation window. Only after confirmation can the agent read and write to that directory. This step is an authorization boundary, and you should only confirm directories that you definitely want the agent to modify.

    4. Hands-On Test: Developing a Tank Battle Web Game in Agent Mode

    4.1 Test Conditions

    The requirement for this test was to develop a tank battle web game. This type of task involves page structure, the game loop, keyboard events, collision detection, and win/loss determination, and it can test the agent’s planning and execution capabilities.

    It should be noted that this was a single test. From submitting the requirement to obtaining a runnable page, this test took about 30 minutes; network and model response speed can affect this number. When reproducing the test, it is advisable to record the tool version, the model used, the run mode, network conditions, and project size. The conclusion applies only to the recorded set of conditions and does not represent the performance of all projects.

    4.2 Execution Process

    After the requirement was submitted, the agent’s work was divided into three stages.

    1. Thinking stage: the model first outputs a reasoning process (in English in this test) and breaks down the requirement.
    2. Planning stage: the agent automatically generates a to-do list and splits the game into several subtasks.
    3. Execution stage: the agent creates files, writes code, and configures the runtime environment item by item according to the list.

    After completion, the agent deploys the runtime environment locally and opens a browser window to preview the game, saving the steps of manually installing dependencies and starting services.

    For a small game of this size, as long as the tool-call chain is reasonably designed and the model capability meets the requirement, a runnable version can usually be obtained. The difference between tools becomes apparent when tasks become more complex.

    4.3 Scenarios That Need Further Verification

    Simple tasks cannot reveal much. Subsequent tests should cover the following scenarios:

    • Dependencies between multiple files. For example, when a module import path is incorrect, can the agent locate and fix it?
    • Multiple rounds of fixes. For example, if the first fix introduces a new bug, can the agent review the existing changes?
    • Dependency conflicts. For example, when third-party library versions are incompatible, does the agent first identify the cause before changing code?
    • Medium-sized projects. For example, a small system containing a database, APIs, and a frontend.

    These scenarios best demonstrate differences between tools, mainly the quality of task planning and the ability to self-repair after failures.

    5. Safety and Operating Habits

    The agent can directly modify files and run commands, so preparation is required before use.

    • Before execution, commit the current state with a version control tool, or back up the project directory first. This allows rollback if something goes wrong.
    • After execution, inspect file changes one by one, focusing on deleted code, newly added dependencies, and modified configuration files.
    • Do not let the agent run in production environments or directories containing important data.
    • Stay cautious about installation scripts and network requests executed by the agent, and review their contents before running them.
    • When connecting a self-provided API, set usage limits for the key and rotate it regularly.

    6. Tool Selection Checklist

    Before choosing a tool, you can confirm the following questions one by one:

    1. Which models are covered by the free allowance, and which models can be used for free?
    2. Is billing based on requests, tokens, or time, and is there public billing documentation?
    3. Does it support connecting a self-provided model API, and how are costs calculated after connection?
    4. Can the agent’s changes be viewed as diffs, and can they be rolled back with one click?
    5. Where are project data and conversation content stored, what is the retention period, and can they be deleted?
    6. In your own real project, test the same requirement twice and check whether the results are stable.

    7. Conclusion

    These new tools can serve as low-cost testing grounds. Free credits are enough to complete a batch of small tasks and to help users understand how the agent works. Whether to use one long term should depend on whether it can deliver stably in your own real projects. Keep records during testing and compare different tools using the same set of requirements; this is more reliable than looking at a single demo.