How spookynetwork/kraken-click works
Kraken Click is a Windows perception-and-embodiment subsystem, not the system’s decision engine. The documented production workflow is a user request routed by the Python orchestrator through its pointer bridge to Windows-side interaction; the README says that bridge does not yet link this Rust crate. The Rust scaffold separately exposes pointer-query routing, screen capture and context packaging, AI-provider abstractions, overlays, and PSC-gated actions. Connections among sampled Rust components are shown only where source or documentation supports them; unsampled capability modules remain distinct where their internal wiring is uncertain.
Main entry points: gate.rs PSC safety gate · context.rs Context packager · runtime.rs Cognitive runtime · detector.rs UI detector
Components 25
Production pointer path
- Python orchestrator
- Pointer bridge
Screen perception
- UI detector
pointer/detector.rs - Pointer models
pointer/models.rs - Semantic labeling
pointer/semantic.rs - Screen capture
vision/capture.rs - Vision analyzer
vision/analyzer.rs - OCR fallback
vision/ocr.rs - Accessibility bindings
integrations/accessibility.rs - WinRT bindings
integrations/winrt.rs
Query and cognition
- Context packager
agents/context.rs - Agent router
agents/router.rs - Cognitive runtime
cognition/runtime.rs - Cognition types
cognition/types.rs - Anthropic provider
providers/anthropic.rs
Interaction and display
- PSC safety gate
actions/gate.rs - Click and drag
actions/click.rs - Keyboard input
actions/input.rs - Window actions
actions/window.rs - Overlay windows
overlay/window.rs - Cursor display
overlay/cursor.rs - Caption bubbles
overlay/caption.rs - Direct2D renderer
overlay/renderer.rs
Other components
- User
- Windows host
Connections 11
- User → Python orchestrator: requests pointer task
README.md - Python orchestrator → Pointer bridge: dispatches pointer task
README.md - Pointer bridge → Windows host: uses Windows APIs
README.md - Context packager → Screen capture: captures screen
agents/context.rs - Context packager → UI detector: detects elements
agents/context.rs - Agent router → UI detector: queries elements
agents/router.rs - Click and drag → PSC safety gate: evaluates actions
actions/click.rs - Window actions → PSC safety gate: evaluates actions
actions/window.rs - Keyboard input → PSC safety gate: passes action gate
actions/mod.rs - Cognitive runtime → Cognition types: uses types
cognition/runtime.rs - Anthropic provider → Cognitive runtime: implements runtime