How Multimodal Agents Autonomously Complete Complex Games

    This article examines how a new generation of multimodal AI agents autonomously completes complex games, drawing on a fully automated playthrough experiment that compared two agent generations in an identical simulated environment. It explains a "de-assist" experimental setup that requires agents to follow the scientific method rather than execute a fixed walkthrough, and analyzes three capability leaps: re-evaluating the environment instead of patching code, synthesizing custom tools to bypass input constraints, and fusing visual observations with structured state to resolve hidden game states. The article concludes with a reusable agent design framework covering observation, world modeling, planning, tools, and milestone-based evaluation, along with notes on running such experiments in the cloud.

    1. Background: Why Games Are a Test Bench for Agents

    In AI agent research, games have long served as a controlled yet sufficiently complex test environment. Take a classic turn-based role-playing game as an example: it combines sparse rewards, long-horizon dependencies, a massive state space, and opaque rules. Players cannot see the entire map at once, many mechanics must be learned through trial and error, and the outcome of a battle depends on long-term resource planning rather than single-step optimality. This makes it an ideal task for testing an agent’s autonomy.

    A recent fully automated playthrough experiment offers a valuable observation sample: two agents from different generations were asked to autonomously complete the same game’s objectives in an identical simulated environment. The results showed that the newer-generation agent was significantly more efficient in both resource consumption and number of turns. While the previous-generation agent had made only limited progress, the newer one had completed all of the later main-story content and challenged a high-difficulty hidden opponent. After normalization, the speed gap reached several times over. What is more noteworthy is not “who was faster,” but the fundamental methodological difference between the two.

    2. Key Experimental Setup: Removing Assists and Emphasizing the Scientific Method

    The most instructive aspect of this experiment’s design is “de-assisting.” Both agents used the same environment, the same interfaces, and the same prompt constraints. The prompt did not ask them to “finish as quickly as possible”; instead, it required them to proceed with the scientific method: not treating prior assumptions as facts, but proposing hypotheses, designing verification, recording results, and revising their models. The agents were also allowed to use an unstructured notepad to record conjectures and progress.

    This setup elevates the task from “executing a predefined walkthrough” to “establishing a reusable workflow in an unknown environment.” It assesses three capabilities:

    • Environment modeling: the ability to induce mechanics from observations rather than relying on hard-coded rules;
    • Tool building: the ability to build tools and sub-processes within the environment, and even spawn sub-agents;
    • Failure attribution: after a failure, whether the agent repeatedly tweaks the same logic or re-examines its assumptions about the environment.

    3. Capability Leap One: From Grinding on Code to Re-evaluating the Environment

    A common failure mode of the previous-generation agent was local patching: when an action did not take effect, it kept adjusting the parameters of the same script, falling into an inefficient loop. The newer-generation agent displayed a clear “tool trust” characteristic—when an action failed, it first doubted its own understanding of the environment, re-collected the state, compared expected versus actual differences, and then decided whether to change the code or the strategy.

    The difference can be expressed with the following pseudocode:

    1. # Inefficient mode: local patching
    2. while not success:
    3. tweak(same_action_params)
    4. retry(same_action)
    5. # Efficient mode: re-evaluate the environment first, then decide the action
    6. while not success:
    7. obs = sense_environment()
    8. if mismatch(obs, expected):
    9. update_world_model(obs)
    10. replan()
    11. else:
    12. action = choose_action(obs)
    13. execute(action)

    In engineering terms, this corresponds to a closed-loop “observe–model–plan–execute” architecture rather than an open-loop script. It requires the agent to maintain an updatable world model and to treat each failure as information rather than noise.

    4. Capability Leap Two: Custom Tools That Break Input Constraints

    A highly representative behavior in the experiment occurred in a “bulk input” scenario. To keep the older version stable and avoid simulator desynchronization, the environment imposed strict limits on input: mixing key presses was prohibited, and the form of a single input was restricted. While executing a step that required a large amount of repetitive input, the newer-generation agent found single-input efficiency too low. It therefore used the environment’s tool-definition capability to write a “sequence input” tool of its own, generating and replaying input sequences in batches locally. Because the custom tool was not bound by the original mixed-input restriction, it effectively wrote a driver layer for itself and bypassed the environment’s limitation.

    The technical point here is not “exploiting a loophole,” but three general engineering principles:

    1. Constraints should be modeled as queryable state, not implicit assumptions;
    2. The tool layer and the policy layer should be decoupled, with the policy describing only intent and the tool handling execution;
    3. When a general-purpose interface becomes a bottleneck, allowing the agent to generate specialized tools (tool synthesis) is an effective path to improving efficiency.

    An illustrative tool definition:

    1. @tool
    2. def press_sequence(keys: list[str], delay_ms: int = 120) -> bool:
    3. """Replay a key sequence in batches locally and return whether all succeeded."""
    4. for k in keys:
    5. if not send_key(k):
    6. return False
    7. sleep(delay_ms)
    8. return True

    For developers, this suggests that instead of hard-coding every restriction, it is better to explicitly expose “capability boundaries” to the agent, together with sandboxing, auditing, and rollback mechanisms, so that autonomous tool generation remains controllable and manageable.

    5. Capability Leap Three: Multimodal Fusion to Crack “States Not in Memory”

    The third key scenario was a puzzle level that required pushing a boulder to form a path. Relying on memory values alone made it hard to determine underlying state changes, because memory did not record information such as “the block has dropped.” Residual decoy objects in the scene further aggravated misjudgment, and the agent was once caught in a loop.

    The newer-generation agent’s solution was to fuse visual observations with structured state: using the screen to confirm object positions and terrain changes, and using memory data to verify character and event progress. After cross-validating the two, it updated its world model and broke out of the loop. This is essentially multimodal state estimation:

    1. state = fuse(memory_readout, visual_observation)
    2. if conflict(state):
    3. trust(more_recent_and_direct_evidence)
    4. log_hypothesis_for_later_verification()

    In real-world business scenarios, this kind of “multi-source observation fusion” is equally common: logs, metrics, distributed tracing, and UI screenshots or documents need to be judged jointly, since any single data source often has blind spots. The agent’s value lies in being able to actively choose evidence sources and handle conflicts explicitly.

    6. A Reusable Agent Design Framework

    Synthesizing the above observations, we can abstract a framework applicable to complex interactive environments:

    • Observation layer: unified ingestion of structured state and unstructured observations (text, images, logs);
    • World model layer: maintains a hypothesis library with confidence scores, supporting conflict detection and rollback;
    • Planning layer: centered on goal decomposition and resource constraints, supporting long-horizon planning;
    • Tool layer: built-in basic actions plus controlled tool synthesis and sub-agent spawning;
    • Evaluation layer: driven by milestones rather than single-step rewards, recording reproducible experiment traces.

    When deploying in the cloud, a combination of general-purpose capabilities can be used: a container platform to host the sandbox environment, object storage to save traces and snapshots, a message queue to decouple event streams, and logging and monitoring/alerting services for observation and auditing. Baidu AI Cloud can provide corresponding support across these general categories, helping teams standardize and reproduce their experimental environments.

    7. Conclusion

    The significance of this playthrough lies not in “a certain model winning a certain game,” but in demonstrating the shift of agents from “script executors” to “environmental scientists”: model first, then act; treat constraints as engineering problems; and use multimodal evidence to eliminate blind spots. For developers, the truly transferable lessons are architectural—closed-loop observation, explicit world models, controlled tool synthesis, and milestone-based evaluation. Whoever engineers this framework first is more likely to achieve stable gains in complex, uncertain, long-horizon real-world business environments.