.venv detection working in your Claude Code session.
Prerequisites Check
Before installing typemux-cc, ensure you have:Supported operating system
Supported platforms:
- macOS (arm64 only - Apple Silicon)
- Linux (x86_64 or arm64)
- Windows (use WSL2 instead)
- Intel macOS (must build from source)
Installation
Step 1: Install a Backend
First, install your preferred Python LSP backend. We recommend starting with pyright (it’s stable and widely used).PATH.
Backend selection: The default backend is pyright. To use ty or pyrefly, you’ll set
TYPEMUX_CC_BACKEND after installation (see Step 4).Step 2: Disable Official Pyright Plugin
You must disable the official pyright plugin to avoid conflicts. Having both plugins enabled will cause issues.Step 3: Install typemux-cc via Marketplace
Install typemux-cc from the GitHub marketplace:Installation uses the GitHub API and
curl. It may fail in offline environments or under API rate limiting. If you encounter issues, see the troubleshooting guide.Step 4: Restart Claude Code
Restart Claude Code to activate the plugin.This is the only time you need to restart. After this initial installation, creating or switching
.venv no longer requires restarts — that’s the whole point of typemux-cc!Step 5: Verify Installation
After restarting, verify that typemux-cc is enabled:~/.claude/settings.json
Verify It Works
Let’s test that typemux-cc correctly detects a.venv and provides type-checking.
Optional: Configure Backend
By default, typemux-cc uses pyright. To switch to ty or pyrefly:Backend selection is explained in detail in the backend selection guide.
Test Worktree Workflow
Now let’s test the killer feature: creating.venv after opening a file.
Open a file in Claude Code
Open
~/test-typemux-worktree/test.py in Claude Code.You’ll see errors because no .venv exists — this is expected and correct behavior (strict venv mode).Troubleshooting
No diagnostics appearing
No diagnostics appearing
Check backend is installed:Enable logging:Restart Claude Code and check
/tmp/typemux-cc.log for errors.Plugin not appearing in settings.json
Plugin not appearing in settings.json
The marketplace installation may have failed.Verify marketplace was added:Reinstall:
.venv not being detected
.venv not being detected
Verify pyvenv.cfg exists:typemux-cc only recognizes
.venv directories that contain pyvenv.cfg. Poetry, conda, and other environment managers are not supported.Check git boundary:If your file is outside the git repository, venv search may not traverse far enough. Enable trace logging:Next Steps
Now that typemux-cc is working, explore these topics:Git Worktrees
Learn best practices for worktree workflows
Monorepo Usage
Manage multiple projects with different .venv paths
Configuration
Configure backend, logging, pool size, and TTL settings
Architecture
Understand how the multi-backend pool works