Valkey GLIDE is an official open-source client library for Valkey and Redis OSS. It uses a core driver written in Rust with language-specific wrappers for Python, Java, Node.js, and Go, and other languages in seperate repositories.
- NO task completion without tests covering it and passing
- NO PR creation without all subagent feedback addressed
- NEVER assume - always verify with tests and benchmarks
- NEVER ignore bugs, even out of scope - open an issue
- Direct and concise, no compliments or apologies
- Ask if unsure, stop and reassess if looping
- Fetch web resources fresh, don't rely on cached data
- If asked to do X a certain way, do it that way. Disagree? Raise it, but don't change without approval
- Commit frequently with meaningful messages - git is our diary
- Focus on one language + its core bindings. Core changes = consider all bindings
- AI agent files: context-efficient, use XML for structured data in Markdown
- Keep PRs small and focused, split if too large
- Tests cover it and pass
- Linter/formatter ran for changed languages
git pull --rebase upstream main, resolve conflicts- Exception: if on a feature branch rebasing onto another feature branch, rebase onto that branch instead
- Run tests for relevant scope
- Run subagents in parallel, address all feedback:
- performance analysis
- code quality, style, best practices
- test coverage
- documentation clarity
- security vulnerabilities and edge cases
- Performance - low latency, high throughput
- Reliability - robust error handling, edge cases
- Usability - clear APIs, good documentation, best DX
- Maintainability - clean code, modular design, tests, simplicity
- Correctness - verify with tests and benchmarks, not assumptions
glide-core/ # Rust core driver - handles connection, protocol, clustering
python/ # Python client wrapper
java/ # Java client wrapper
node/ # Node.js client wrapper
go/ # Go client wrapper
ffi/ # Foreign function interface for language bindings
logger_core/ # Rust logging infrastructure
utils/ # Test utilities and cluster management scripts
benchmarks/ # Performance benchmarks
examples/ # Usage examples for each language
docs/ # Documentation
| Language | Mechanism | Native Library | Communication |
|---|---|---|---|
| Python Async | PyO3 | valkey-glide (python/glide-async/) | Unix socket IPC |
| Python Sync | CFFI | glide-ffi (ffi/) | FFI calls |
| Java | JNI | glide-rs (java/) | JNI calls |
| Go | CGO | glide-ffi (ffi/) | FFI calls |
| Node.js | NAPI v2 | rust-client (node/rust-client/) | Unix socket IPC |
Socket IPC wrappers → socket_listener → glide-core → Valkey/Redis
FFI wrappers → glide-core → Valkey/Redis