open-codex-computer-use icon indicating copy to clipboard operation
open-codex-computer-use copied to clipboard

Significant context usage

Open natekettles opened this issue 6 months ago • 1 comments

I am seeing significant context use when using for a simple browser form.

Other than that, this is a really great tool so I am wondering if this should be in a sub-process or sub-agent or something?

See:

      ℹ mcp__open-computer-use__click using 355.3k tokens (36%) → save ~71.1k
        This tool is consuming a significant portion of context.

      ℹ mcp__open-computer-use__get_app_state using 305.6k tokens (31%) → save ~61.1k
        This tool is consuming a significant portion of context.

      ℹ mcp__open-computer-use__set_value using 240.5k tokens (24%) → save ~48.1k
        This tool is consuming a significant portion of context.

      ℹ mcp__open-computer-use__press_key using 227.4k tokens (23%) → save ~45.5k
        This tool is consuming a significant portion of context.

Client: Claude Code CLI Computer: Mac, latest OS Version: latest installed from repo

natekettles avatar May 16 '26 14:05 natekettles

Since this was filed, most of that cost can be switched off:

  • get_app_state takes include_screenshot: false, and include_ax: false when you only need the picture (#101).
  • OPEN_COMPUTER_USE_ACTION_READ_BACK=0 in the server's environment makes actions return a short ok instead of the refreshed state and screenshot.
  • ocu config sets the screenshot size and format (see docs/configuration.md).
  • For multi-step work, ocu js and ocu repl run several actions in one call and return only what your script prints.

Closing this. If usage is still high on a current release, please reopen with the call that produced the large result.

hyprcat avatar Nov 19 '26 09:11 hyprcat