- Intel macOS users (prebuilt binaries are arm64 only)
- Windows users (via WSL2)
- Offline environments
- Development and testing
Prerequisites
Required Tools
1
Install Rust
typemux-cc requires Rust 1.75 or later.Verify installation:
The installation script will update your shell profile. Restart your terminal or run:
2
Install Git
Required for cloning the repository.
3
Install LSP Backend
Install at least one Python type-checker backend:
Build from Source
1. Clone Repository
2. Build Binary
Choose a build type:- Release Build (Recommended)
- Debug Build
Optimized binary for production use:Or using the Makefile:The binary will be at
./target/release/typemux-ccRelease builds are optimized with LTO (Link-Time Optimization) and symbol stripping for smaller binary size.
3. Test Binary
Run the binary directly to verify it works:Expected output:
typemux-cc 0.2.3 (or current version)Install as Claude Code Plugin
Method 1: Install from Local Directory (Recommended)
1
Disable Official pyright Plugin
2
Add Local Marketplace
Point to your local build directory:
Use the absolute path to your cloned repository. Claude Code will use the built binary from
./target/release/ or ./target/debug/.3
Install Plugin
4
Restart Claude Code
Restart Claude Code to load the plugin.
Method 2: Manual Installation
1
Create Plugin Directory
2
Copy Binary and Files
3
Update Plugin Path
Edit
~/.claude/plugins/typemux-cc/.claude-plugin/plugin.json:4
Enable Plugin
Add to
~/.claude/settings.json:5
Restart Claude Code
Restart Claude Code to load the plugin.
Development Setup
For active development on typemux-cc:Quality Checks
The Makefile provides targets for all quality checks:Cargo.toml Configuration
Cargo.toml
- LTO (Link-Time Optimization): Aggressive optimization for smaller binaries
- Symbol stripping: Removes debug symbols from release builds
- clap: CLI argument parsing with environment variable support
Running Tests
Running Locally
Test the binary without installing:Command-Line Options
All options fromsrc/main.rs:
src/main.rs (excerpt)
Backend Commands
How each backend is spawned (fromsrc/backend.rs):
src/backend.rs (excerpt)
Troubleshooting
Rust version too old
Rust version too old
Error:Solution:
Linker errors on Linux
Linker errors on Linux
Error:Solution:
Compilation fails with missing dependencies
Compilation fails with missing dependencies
Error:Solution:
Binary runs but LSP doesn't work
Binary runs but LSP doesn't work
Check:
-
Backend is installed:
-
Binary has execute permission:
-
Plugin is enabled in
~/.claude/settings.json -
Test binary directly:
Tests fail
Tests fail
Common causes:
- Git not installed (required for venv tests)
- Temporary directory permissions
- Tokio runtime issues
Continuous Integration
The CI pipeline runs on GitHub Actions:.github/workflows/ci.yml
- ✅ Code formatting (
cargo fmt --check) - ✅ No clippy warnings (
cargo clippy -- -D warnings) - ✅ All tests pass (
cargo test) - ✅ Cross-platform compatibility (Linux, macOS, arm64)
Update Local Build
To update your local build to the latest version:Next Steps
Configuration
Configure backend selection and logging
Architecture
Learn about the codebase architecture