UI-TARS Timeout Patch & Context Pruner

    by Nick

    1

    Ships three zero-dependency scripts: a dry-run-first timeout patcher, a server health check, and a scripted asar-hash swapper for the repack.

    $9.99

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned

    Works with the AI Agents you already use

    UI-TARS Timeout Patch & Context Pruner

    Example session with this skill installed

    My UI-TARS agent steps keep getting cancelled at exactly 30 seconds even though the llama-server log is clean and the model is still generating. What's killing them?

    • Read your context and instructions
    • Compiled the ui-tars timeout patch

    The 30-second wall is the app, not the server: UI-TARS Desktop 0.2.4 hard-codes 'timeout: 3e4' twice in invokeModelProvider. The patcher raises both to 6e5 (dry-run first, backup written), then the repack procedure and the scripted hash swap make the patched app start again.

    Connects securely to your tools. The creator never sees your data.

    About this skill

    Fix UI-TARS Desktop agent runs that die on slow local inference: 'agent step timed out', steps cancelled at 30 seconds with a healthy llama.cpp server, a clean server log, and no crash. Covers UI-TARS Desktop 0.2.4, whose invokeModelProvider hard-codes 'timeout: 3e4' twice in dist/main/main.js, and the field-proven patch to 6e5, including the asar repack and integrity-hash swap it requires. Also covers context pruning: cap the vision encoder with --image-max-tokens (768 is the proven sweet spot; uncapped encode crashes with 'ggml_vulkan: device lost'), hold server context at -c 8192, and verify /v1/models answers before a run. Ships three zero-dependency scripts: a dry-run-first timeout patcher, a server health check, and a scripted asar-hash swapper for the repack. Companion skill: sd-cpp-vulkan-vram-diagnostic.

    Timeout literals and the repack are verified on UI-TARS Desktop 0.2.4 only; other versions may spell the value differently (the patcher recognises 3e4 / 30000 / 30_000 and reports not-found rather than guessing). The integrity-hash swap assumes the hash is embedded as a hex string, as in 0.2.4; the script stops with an inspect-first verdict if it is not found.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Money-back guarantee

    Doesn't do what its page promises? You get your money back.

    Trust & safety

    Security scan

    Security scan passed 5 days ago

    Software
    Python 3.8+UI-TARS Desktop 0.2.4

    Permissions

    Terminal / Shell
    Read Files
    Write Files

    Runs local Python scripts that patch the app's own files (with backups) and query a local model server. No network access beyond localhost, no API keys.

    Listed5 days ago

    What's inside

    Frequently Asked Questions

    Fix UI-TARS Desktop agent runs that die on slow local inference: 'agent step timed out', steps cancelled at 30 seconds with a healthy llama.cpp server, a clean server log, and no crash. Covers UI-TARS Desktop 0.2.4, whose invokeModelProvider hard-codes 'timeout: 3e4' twice in dist/main/main.js, and

    This skill uses the open SKILL.md standard. Use it through an MCP-compatible agent connected to Agensi, and check the compatibility information on this page for confirmed agents and required capabilities.

    Connect your AI agent to Agensi through MCP, then ask it to use UI-TARS Timeout Patch & Context Pruner on your task. Your agent loads the latest approved version each time. Paid skills require a purchase or active subscription. Skill files are not available for download; your licence does not allow you to save, copy or export any part of a skill.

    New in Testing & Debugging

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Testing & Debugging.