r/BASE • u/EstablishmentTough18 • Oct 29 '26
Base Discussion [Builder] agentkit-cleanweb: 87% Token Noise Reduction & Base EIP-712 Oracle Provider for Coinbase AgentKit
Hi Base builders! 🔵
We just released **`agentkit-cleanweb`** (v1.0.0) on npm — an open Action Provider built for autonomous AI agents on Base using Coinbase AgentKit.
### The Problem
When autonomous agents browse the live web or research whitepapers, raw HTML noise (cookie banners, scripts, navigation clutter, ads) consumes **70%–90% of the LLM context window**. On GPT-4o or Claude 3.5, scraping a single 80KB page burns ~$0.05 just in junk tokens.
### What CleanWeb Solves:
- **87% Token Noise Reduction**: Strips HTML boilerplate into clean, LLM-ready structured Markdown (80KB -> ~10KB). Saves **86.2%** in net token inference costs.
- **Base Mainnet (8453) EIP-712 Attestation Proofs**: Cryptographically signs the ground-truth hash on-chain so downstream smart contracts can trust the scraped facts.
- **Research PDF & YouTube Extraction**: 2-second whitepaper PDF parsing and YouTube Gemini 3.8 Flash video transcript summaries.
- **Gasless x402 Micropayments**: Supports pre-funded Base USDC vaults for sub-millisecond execution.
### Try it in 1 second (No wallet / Zero-friction proxy):
```bash
curl https://x402-cleanweb-agent-212942243360.asia-northeast3.run.app/r/https://base.org
1
u/IntrepidDarkness Oct 29 '26
87% less junk tokens is the kind of thing you notice immediately once you run a few scrapes. Curious how the EIP-712 proof handles pages that change between the scrape and the on-chain verification though, feels like the hash would go stale fast on anything dynamic.