2026-12-05 ~4 min read Rust · Windows · x402 RSS

Windows kernel hygiene for coding agents, and a small x402 machine-economy stack

What shipped in xgbtxy/ap v2.95.0 for Windows agent sandboxing, and three small public repos that put pay-per-call x402 / pay-per-event pricing in front of agent tools. Facts only; no revenue claims.

This week I shipped ap v2.95.0 and, separately, put a few small agent services on public repos with per-call pricing. Both are about the same thing: making agent work cheap to run and safe to leave alone. Here is what is actually in them.

ap v2.95.0: Windows kernel hygiene

The headline is --io-low in ap-winjob. It sets Win32 ProcessMemoryPriority to Low and I/O priority to Low via NtSetInformationProcess, on top of the existing BELOW_NORMAL_PRIORITY_CLASS and EcoQoS settings. The goal is mundane: parallel agent builds and tests should not make your interactive desktop stutter. That crate has 49/49 tests.

The second piece is canonical_path_shield in ap-hook. It resolves symlinks and NTFS junctions, including up to three non-existent trailing path components, before the policy and airgap checks run. A junction that points outside the allowed tree should not be a way around a path rule. There is also a quiet_frontier meter that prints one factual line and prefilters JSONL cheaply.

Release verification, as recorded in the release notes: cargo fmt --check passes, clippy is clean with -D warnings, and cargo test --workspace reports 359 passed, 0 failed. Prebuilt artifacts cover Windows x64, Linux x64 (musl), Linux arm64, and macOS x64 and arm64, with a SHA256SUMS file. There is also a install-windows-agent-kit.ps1 installer with a dry-run environment audit.

Three small x402 / pay-per-event repos

x402 is HTTP 402 used literally: a tool call without payment gets a 402 plus payment requirements, and a paid retry succeeds. I wanted to see how little code that takes.

  • cf-x402-mcp: a stateless Streamable-HTTP MCP server on Cloudflare Workers. Paid tools return 402 with a PAYMENT-REQUIRED header (x402 v2, scheme exact, USDC on Base). Prices in the README: ci_log_sieve 0.01, repo_sec_triage 0.02, market_edge_feed 0.01 USDC; "sample": true gives a free preview.
  • coingecko-longtail-agent: a Solana long-tail pool risk agent built on the CoinGecko Onchain API, exposed as CLI, HTTP and MCP, with a Solana USDC x402 paywall on the premium dossier. Data by CoinGecko API.
  • agent-docs-distiller-actor: an Apify Actor with pay-per-event pricing: actor-start $0.002, page-distilled $0.005, spec-discovered $0.010. Failed fetches are never charged as distilled pages.

What I am not claiming

These are working demos with public code, not businesses. I have no revenue numbers to share and I am not going to imply any. The x402 repos default to a public facilitator and a placeholder pay-to address, and the READMEs say so. Check the code and the tests rather than my summary.

Earlier notes: Raw tool-call overhead on Windows and FreeHand vs ap on Windows.

我觉得技术没有壁垒,在合适的时间做合适的事情就好,hhh