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

> Source: <https://dev.to/xgbtxy/windows-kernel-hygiene-for-coding-agents-and-a-small-x402-machine-economy-stack-4e8j>
> Published: 2026-12-05 16:38:28+00:00

**Key takeaway:** ap v2.95.0's --io-low sets ProcessMemoryPriority and I/O priority to Low via NtSetInformationProcess so parallel agent builds don't stutter the desktop, and canonical_path_shield resolves symlinks and NTFS junctions, including up to three non-existent trailing components, before path policy checks r

This week I shipped [ap v2.95.0](https://github.com/xgbtxy/ap/releases/tag/v2.95.0) and, separately, put a few small agent services on public repos with per-call pricing. Both are about making agent work cheap to run and safe to leave alone. Here is what is actually in them.

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 pointing outside the allowed tree should not be a way around a path rule.

Release verification from 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, plus SHA256SUMS.

x402 is HTTP 402 used literally: a tool call without payment gets a 402 plus payment requirements, and a paid retry succeeds.

`exact` scheme, USDC on Base. README prices: 0.01, 0.02 and 0.01 USDC per tool, with a free `sample` mode.
These are working demos with public code, not businesses. I have no revenue numbers to share and won't imply any. Check the code and tests rather than my summary.

What would you want a paid MCP tool to prove before you let an agent pay for it?
