Skip to main content
Build typemux-cc from source using Rust and Cargo. This method is required for:
  • 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:

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

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
Key features:
  • 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 from src/main.rs:
src/main.rs (excerpt)

Backend Commands

How each backend is spawned (from src/backend.rs):
src/backend.rs (excerpt)

Troubleshooting

Error:
Solution:
Error:
Solution:
Error:
Solution:
Check:
  1. Backend is installed:
  2. Binary has execute permission:
  3. Plugin is enabled in ~/.claude/settings.json
  4. Test binary directly:
Common causes:
  • Git not installed (required for venv tests)
  • Temporary directory permissions
  • Tokio runtime issues
Solution:

Continuous Integration

The CI pipeline runs on GitHub Actions:
.github/workflows/ci.yml
The pipeline ensures:
  • ✅ 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