Multimodal AI Agents: Analyzing Visual Thinking Paths and the Harness Role

    This article examines why multimodal AI agents often struggle with visual grounding and how the agent harness shapes real-world performance. It contrasts two technical approaches—visual primitives and thinking with images—then outlines a four-step method to verify whether a model actually uses structured visual references. It also explains why paper demos and live behavior diverge, and offers practical recommendations for prompts, tool budgets, internal evaluation sets, and configuration consistency.

    1. Where It Started: A Configuration Pitfall That Revealed an Engineering Reality

    While trying to validate multimodal capabilities with an official agent from an AI coding tool, the very first step stalled on model configuration. The official documentation showed an example written for third-party integration scenarios, which required explicitly specifying a model identifier in the configuration. The CLI, however, gave no hint about what format the configuration should take—leading to the awkward situation where following the docs didn’t work and following the CLI didn’t work either.

    The correct approach is actually quite plain: first upgrade the CLI to the latest version, then launch in web form using a startup method with a profile parameter. This detail may seem trivial, but it illustrates a common phenomenon—an agent’s “harness” often serves integrators and automation pipelines first, rather than end users. If the documentation is missing a single note about upgrading, users will burn a lot of time at the environment level.

    There are three engineering takeaways:

    • Configuration should have a single source of truth; the docs, CLI help, and example files must all agree.
    • Version-sensitive capabilities should run a self-check at startup and print a clear message, rather than failing silently.
    • User-facing and integration-facing entry points should be separated, each with a minimal working example.

    Illustrative startup and self-check logic can be written as:

    1. # Upgrade the CLI to the latest version
    2. npm update -g <agent-cli>
    3. # Launch in web form and print the currently active config source
    4. <agent-cli> --profile web --print-config-source
    1. {
    2. "model": "<vision-capable-model-id>",
    3. "modality": ["text", "image"],
    4. "thinking": { "grounding": true, "pointing": false }
    5. }

    2. Two Technical Routes: Natural Language Description vs. Visual Primitives

    When multimodal models “can’t see clearly,” it’s usually attributed to insufficient resolution or encoder capability. But the more critical bottleneck appears at the reasoning stage: the model is still using natural language to “restate” image content. For tasks like dense counting, localization under complex occlusion, and long-range path planning, relying on verbal restatement causes referential relationships to drift and logic to collapse. The industry calls the former the perception gap and the latter the reference gap.

    To address the reference gap, one class of solutions introduces “visual primitives”: generating unambiguous pointers (points, boxes, numbered anchors) in continuous visual space, so that subsequent reasoning references these pointers directly, rather than referencing “that red thing on the left, slightly higher up.” Another class follows the classic “think with images” route: repeatedly cropping, zooming, annotating, and revisiting the image during reasoning, treating image operations themselves as thinking actions.

    The trade-offs between the two routes can be understood like this:

    Dimension Visual Primitives Route Think-with-Images Route
    Reference stability Strong; pointers are unique Medium; depends on per-instance annotation
    Implementation cost Requires coordinate-level alignment and training Reuses general tool-calling
    Observability Structured markers appear in the chain of thought Image operation sequences appear in the chain of thought
    Long-task performance Affected by thinking length and alignment error Affected by tool-call budget

    From a practical engineering standpoint, the latter is easier to implement on a general-purpose agent harness and relies more on the harness’s capabilities for image reading/writing, cropping, and annotation—which is precisely the real meaning of the “harness” for multimodal capabilities: the model handles decisions, and the harness turns visual operations into executable, replayable steps.

    3. Testing Method: How to Tell Whether a Model Actually Uses Visual Primitives

    To answer “is it really equipped with visual primitives,” you can’t rely on marketing—only on observable evidence. A four-step approach is recommended:

    1. Fix the input: use the same image containing dense small targets and complex occlusion, and prepare ground-truth answers and coordinates.
    2. Zero-prompt baseline: add no guiding words, and observe whether coordinates, anchors, or structured pointers appear spontaneously in the chain of thought.
    3. Explicit guidance: add instructions like “establish reference before reasoning” or “annotate before answering” to the prompt, observe whether structured markers appear, and record whether thinking length spirals out of control.
    4. Cross-validation: give the same task to a think-with-images implementation, and compare the two in terms of error distribution and time cost.

    It’s worth noting that examples in public papers often differ from actual online behavior: for the same counting image, a paper may count correctly while the web version may count two extra people; a maze-planning example from a paper may fail entirely on the web. The reasons usually fall into three categories: explicit grounding is disabled by default online, the thinking budget is truncated, or image preprocessing (zooming and tiling) changes the visibility of details. Therefore, evaluation must record a configuration snapshot; otherwise the conclusions are not reproducible.

    A minimal reproducible evaluation skeleton:

    1. cases = load_cases("counting_and_localization.jsonl") # contains image, answer, points
    2. for c in cases:
    3. for cfg in [baseline, grounded, grounded_with_pointing]:
    4. out = run_agent(image=c.image, prompt=c.prompt, config=cfg)
    5. score = evaluate(out, c.answer, c.points) # counting accuracy + point hit rate
    6. log(config=cfg, thinking_len=len(out.trace), score=score)

    4. Conclusions and Implementation Recommendations

    Overall, the new generation of multimodal agents, in agent form, tends toward “thinking with images” rather than insisting on explicit visual primitives; this both lowers the implementation barrier and shifts more of the capability ceiling onto the harness’s image operations and budget management. Recommendations for developers:

    • Make “reference establishment” an independent, observable stage in prompts and logs, to make it easier to pinpoint where failures occur.
    • Set call budgets and timeouts for visual operations to avoid thinking-length inflation.
    • Build an internal evaluation set with coordinate ground truth, and compare different routes only after fixing the configuration snapshot.
    • Unify configuration semantics between docs and CLI to reduce wasted effort at the environment level.

    The competition in multimodal capabilities is shifting from “can it see” to “can it stably reference what it sees,” and the deciding factor in this race is half the model and half the harness.