Back to browse
GitHub Repository

Claude Code plugin: Python type-checker LSP multiplexer. Auto-detects .venv and routes to pyright/ty/pyrefly—no Claude Code restart.

12 starsRust

Typemux-cc – .venv-aware Python LSP proxy for Claude Code (no restarts)

by K-dash·Feb 15, 2026·1 point·0 comments

AI Analysis

●●SolidSolve My ProblemDark Horse

Fixes Claude Code's .venv restart annoyance with smart backend pooling. Niche but precise.

Strengths
  • LSP request routing via .venv detection solves a real Claude Code friction point that doesn't affect other editors.
  • Per-environment backend pooling with ID remapping shows thoughtful protocol-level design.
  • Rust implementation + warmup queueing handles tricky LSP concurrency edge cases.
Weaknesses
  • Audience is tiny: only Claude Code + python + worktrees; mainstream Python developers won't notice this exists.
  • Early stage (4 stars, 2 days old); unclear if LSP multiplexing handles all edge cases (doc restore, failure modes).
Target Audience

Claude Code users managing Python projects with git worktrees or multiple virtual environments

Similar To

Pyright · Pylance (VSCode) · Jedi LSP

Post Description

Hi HN — I built typemux-cc, a Claude Code plugin that makes Python `.venv` switching work without restarts.

Claude Code’s official pyright plugin spawns one backend at startup; if you create/switch `.venv` later (common with git worktrees), it won’t pick it up without restarting Claude Code.

typemux-cc is a Python LSP proxy that fixes this by keeping a per-`.venv` backend pool and routing requests based on `didOpen` `.venv` detection. It also restores open docs on spawn, queues index-dependent requests during warmup, and rewrites backend→client request IDs to avoid collisions.

Supports pyright / ty / pyrefly.

Repo + quickstart: https://github.com/K-dash/typemux-cc

Feedback welcome — especially on the “fail loudly vs fallback when `.venv` is missing” policy and reliable warmup/readiness signals across pyright/ty/pyrefly.

Similar Projects

AI/ML●●Solid

See what ChatGPT knows about you that Claude doesn't

Identity protection through compression cycles is clever, but agent memory is a crowded space.

Big BrainNiche Gem
tomtom1977
206d ago
Developer Tools●●Solid

Killpy – CLI to find and clean Python environments

Cleans 11 Python environment types with interactive TUI — every dev has this disk space problem.

Solve My ProblemCozy
Tlaloc-Es
202mo ago