Launching today
CodeShave
AST code compressor & MCP server for AI coding assistants
2 followers
AST code compressor & MCP server for AI coding assistants
2 followers
CodeShave deterministically strips execution bodies while preserving 100% syntactically valid classes, methods, docstrings, and type signatures. Cuts LLM prompt tokens by 80-90% for Cursor, Claude, Windsurf, and Copilot.

Launch Team

AWS Activate CreditsCredits that fuel your startup’s next milestone
Promoted
Hey Product Hunt! 👋
I built CodeShave after burning through thousands of prompt tokens feeding large codebases into Cursor, Claude Code, and Copilot. Most of that token consumption was just repetitive execution loops and implementation bodies that models don't need for high-level reasoning.
CodeShave uses language-native AST parsers to strip bodies into clean, valid skeletons across 13+ languages (Python, TypeScript, Go, Rust, Java, C++, C#) — cutting tokens by 80% to 90% with zero syntax loss.
It is 100% open-source, available on PyPI, VS Code Marketplace, and officially verified on the Model Context Protocol (MCP) registry.
Try the interactive playground at https://codeshave.netlify.app/ and let me know your thoughts!