# VACT: Vector Agent Context Transport > **Specification**: 1.0.0 > **Repository**: https://github.com/fy2ne/VACT > **Docs & Portal**: https://vact.fy2ne.me > **License**: Apache-2.0 ## Overview VACT (Vector Agent Context Transport) is a high-frequency GPU perception pipeline and IPC transport protocol for autonomous desktop AI agents. It replaces brute-force screenshot polling with continuous, sub-5ms localized perception directly in GPU VRAM. By executing Direct3D 11 compute shaders over the native desktop framebuffer, VACT extracts sub-pixel bounding geometry, element centroids, and differential Directed Acyclic Graph (DAG) state at native 60 FPS. Structured differential frames are streamed over a local Win32 named pipe (`\\.\pipe\VACT`), reducing agent token consumption by 99.8% (from ~2,200 tokens per screenshot to 80–180 tokens per diff). ## Core Architecture 1. **Hardware Capture Pipeline**: DXGI Desktop Duplication acquires the raw desktop surface directly into Direct3D 11 texture memory with zero CPU copy overhead. 2. **GPU Perception Shaders (HLSL CS 5.0)**: - *Bilateral Range Filter*: Edge-preserving noise removal in 1.2ms. - *Sobel Gradient Tensor*: Spatial derivative edge detection in 1.1ms. - *Connected Component Labeling (CCL)*: Parallel bounding box and centroid extraction in 1.4ms. 3. **Differential DAG Engine**: Generates monotonic mutations (`INSERT`, `UPDATE`, `REMOVE`) representing only what changed on the screen between frames. 4. **IPC Transport**: Streams sub-2KB frames over `\\.\pipe\VACT` with sub-5ms total latency. ## Key Metrics & Benchmarks | Metric | Screenshot VLM | VACT Protocol | Gain | |---|---|---|---| | Frame Latency | 800 – 2,500 ms | 4.8 ms (60 FPS) | 200x faster | | Token Overhead | ~2,200 tokens/step | 80 – 180 tokens/step | 99.8% reduction | | Coordinate Accuracy | Hallucinated (~15-40px drift) | Exact sub-pixel centroid | 0px drift | | Network Bandwidth | 1.8 MB per frame | Sub-2 KB differential | 99.9% reduction | | Privacy | Transmits desktop images to cloud | 100% local, air-gapped | Zero data leak | ## Official SDKs - **Rust**: `crates/vact-protocol` (zero-copy binary wire parsing) - **TypeScript / Node.js**: `sdks/typescript` (named pipe streaming client) - **Python**: `sdks/python` (asyncio pipe listener with native agent bindings) ## Canonical Endpoints - Portal & Docs: https://vact.fy2ne.me - Spec JSON: https://vact.fy2ne.me/vact-spec.json - Full Architectural Spec: https://vact.fy2ne.me/llms-full.txt - GitHub Source: https://github.com/fy2ne/VACT