- Home
- Skills
- Testing & Debugging
- UI-TARS Timeout Patch & Context Pruner
UI-TARS Timeout Patch & Context Pruner
by Nick
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
What it does
- Identifies if agent steps are being cancelled by a hard-coded 30 second limit
- Patches the desktop app files to allow for much longer processing times
- Creates backup files automatically before making any changes to your software
- Checks your local server to ensure the model is actually online and responsive
- Optimizes vision and memory settings to prevent graphics card crashes
- Updates application security hashes so the patched software still opens correctly
Who it's for
Users running UI-TARS on their own computer
Stop your AI agent from giving up just because your computer is slow.
Try asking: “Help me fix the 30 second timeout error in UI-TARS.”
People with older or mid-range graphics cards
Get stable performance on modest hardware without crashing your video card.
Try asking: “My agent keeps timing out at 30 seconds, can you patch it?”
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
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
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 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
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.
What's inside
Frequently Asked Questions
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.