Skip to content
STIRUP

TECHNOLOGY INTELLIGENCE

Understand what's next.

Fovea Reduces Token Costs in LLM Visual Monitoring

Fovea reduces token costs in large language models by transmitting only changed portions of a screen, rather than full screenshots, significantly lowering image token usage.

Share
AI-generated conceptual illustration accompanying: Fovea Reduces Token Costs in LLM Visual Monitoring
AI-generated editorial illustration of the article topic; not a photograph, product screenshot or measured result.

Screen Observation Optimization with Fovea

Screen Observation Optimization with Fovea reduces the token cost of visual monitoring in large language models (LLMs) by transmitting only the changed portions of a screen, rather than full screenshots. According to Hacker News Show, Fovea sends one keyframe initially, then only updates the changed parts—such as patches, scrolls, or zoomed reads—thereby drastically reducing the number of image tokens used. This method is supported by tools like fovea_start, fovea_step, and fovea_stop, with no input injection involved. As described in Hacker News Show, instead of sending full screenshots every time (which is costly due to billing by pixel count), Fovea sends only what has changed. Additionally, Hacker News Show explains that a lightweight UIA signature scan runs on the first two tree tiers (up to 40 controls) every step. If changes occur while pixels remain static, Fovea triggers a KEYFRAME uia within one step, avoiding unnecessary delays based on pixel thresholds.

Priority Order and Server Enforcement

In the context of reducing an LLM's screen-watching cost to ~138 tokens per step, priority order and server enforcement play a critical role. According to Hacker News Show, the system follows a strict sequence: fovea_step -> fovea_look -> ui_fuse -> wait_stable -> fovea_start -> screenshot. This ensures precise reading and processing before capturing visual data. Server enforcement, as outlined in Hacker News Show, uses tiering tags on tool descriptions to maintain this order. It also includes features like NEXT (hints after results), warnings for repeated probing, and a guard-rail on screenshots that requires a valid reason, checked against the current session. Setting SCA_SCREENSHOT=free disables this restriction. Additionally, Hacker News Show notes that minimized/closed windows, hwnd=0, black frames, and mss capture errors are resolved to WAIT (0 extra tokens), preserving canvas and history without crashing.

Limitations and Security Considerations

Limitations and Security Considerations must be carefully addressed when deploying the system. By default, the server listens only on 127.0.0.1 over HTTP, but there is no authentication mechanism in place — exposing it to a network could pose significant security risks [Hacker News Show]. Additionally, the system has known limitations: Fovea and the pixel grid capture only the primary monitor, while screenshot tools capture all monitors [Hacker News Show]. Furthermore, Chromium/Electron applications may expose only a limited number of UIA nodes, which could restrict the system's ability to interact with certain applications [Hacker News Show]. These factors highlight the need for careful deployment and additional safeguards to ensure usability and security.

Proprietary Components and Licensing

The proprietary components of the system, including the frame-diffing algorithm, fovea delta-compression core, and pixel-grid core (pixel_grid), are closed-source and distributed exclusively as compiled binaries (.pyd/.so). These modules are protected by an offline, Ed25519-signed, machine/thread-bound license key, ensuring that their usage is strictly controlled and tied to specific hardware and threads. According to the evidence, the core of the frame-diffing algorithm is fully closed-source, not just the performance-critical sections. Similarly, the fovea delta-compression and pixel-grid components are not published in source form, emphasizing the proprietary nature of these technologies. Licensing restrictions are enforced through the use of signed keys, which bind the software to particular machines and threads, preventing unauthorized use or redistribution. These measures highlight the developer's focus on maintaining control over the system's core functionalities while ensuring compliance with licensing terms.

Performance Bottlenecks in Earlier Builds

The earlier canvas build encountered several performance bottlenecks during real-world use on Windows. Switching between windows and tabs incurred a cost of approximately 600 tokens per action, with no memory retained of prior scenes. Additionally, small adjacent characters on the 960px grid were often unreadable, forcing the model to make guesses. A focus-switch race condition could lead to incorrect delta application or delays of up to 8 steps in detecting changes. Long-running sessions also caused unbounded growth in RAM and cell store usage, while black or minimized-window frames were still recorded as real content in the history.

Sources and reporting notes

Based on published source material. No independent hands-on testing is claimed.

Read more