OpenClaw skill reduces accessibility tree tokens from 600K to 1.3K for ad-heavy sites

Token reduction for modern web tasks
A developer on r/openclaw shared benchmark data showing significant token variance in OpenClaw's default accessibility tree across different websites. The data reveals that ad-heavy sites generate massive token counts, while simpler sites remain manageable.
Benchmark data from source
- slickdeals: 24,567 elements → ~598K tokens
- ycombinator: 681 elements → ~16K tokens
- httpbin: 34 elements → ~1.5K tokens
The developer noted that "ad-heavy sites are brutal" with 600K tokens required just to observe pages filled with tracking pixels and ad iframes.
ML-based pruning solution
To address this, they built an OpenClaw skill that uses machine learning-based element ranking to prune the accessibility tree before sending it to the LLM. The approach keeps only the top ~50 actionable elements (configurable), which brings slickdeals down from ~598K tokens to ~1.3K tokens.
Available resources
The skill is available as:
- OpenClaw Skill: https://clawhub.ai/rcholic/predicate-snapshot
- GitHub repository: https://github.com/PredicateSystems/openclaw-predicate-skill
The developer is seeking feedback on alternative approaches to accessibility tree pruning for OpenClaw.
📖 Read the full source: r/openclaw
👀 See Also

PromptFlow Voice: Speak Hindi, Get Structured Claude Code Prompts — Built with Claude Code
A developer used Claude Code and Codex to build PromptFlow Voice — a desktop app that converts natural Hindi speech into structured dev prompts for Claude Code, or ready-to-send emails for Gmail. The demo shows a Hindi voice request producing an English Claude Code prompt about socket reconnection logic with exponential backoff.

Demo for AI Agent Micropayments Using x402 and Solana
The x402-hello demo illustrates AI agents autonomously handling micropayments using USDC on the Solana blockchain.

Superglue CLI: Let AI Agents Execute API Calls Without Pre-Built Tools
Superglue CLI provides a skill that teaches AI coding agents how to use its commands, handle authentication, build tools, and debug failures. Instead of creating pre-built tools for every API integration, agents can read API specs at runtime and plan multi-step calls.

SkyClaw: An Open Agent Runtime Written in Rust
SkyClaw is an open-source agent runtime written in Rust with 34 new features across 7 development phases. It includes task checkpointing, SQLite-backed persistent queues, parallel tool execution, and multi-tenancy support.