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

Using /probe to catch AI hallucinations before writing code
A developer shares a technique called /probe that forces AI-generated plans to make numbered claims with expected values, then probes the real system to catch discrepancies. The method caught four factual errors in Claude's description of its own JSONL format that would have caused code bugs.

120 Prompt Patterns Tested: 8 That Actually Work for Claude Code
A 3-month empirical test of 120 prompt patterns for Claude Code yields 8 actionable commands and 5 validation prompts. Key patterns: L99 (cuts hedging), /ghost (removes AI voice), OODA (structured reasoning), ULTRATHINK (deep reasoning), HARDMODE (constraint debugging).

SubQ: A Sub-Quadratic LLM with 12M-Token Context Window
SubQ is a fully sub-quadratic sparse-attention LLM offering a 12M-token context window at 150 tokens/s, with SWE-Bench Verified 81.8% and RULER @ 128K 95.0%. It reduces attention compute ~1000× compared to transformers.

Ephemeral OpenClaw setups with network sandboxing and auto-teardown
A setup that boots OpenClaw inside an ephemeral VM with a network egress allowlist, injects API keys into RAM-backed storage, and includes a 2-hour auto-teardown. All LLM calls are recorded to SQLite for replay.