Polyglot Refactor banner
ronjunevaldoz ronjunevaldoz

Polyglot Refactor

AI community

Description

Semantic, AST-safe multi-language code refactoring engine for AI agents and developers (Kotlin, Swift, TypeScript, Python, Rust, Go, Java, C++, C#).

Installation

This entry records only its repository, not the path inside it, so there is no exact command to give. Open the source below and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

README

Polyglot Refactor

Semantic, AST-safe multi-language refactoring engine for AI agents and developers.

skills.sh installs CI License Python

# Install to your AI Agent (Claude Code, Gemini CLI, Cursor, Antigravity)
npx skills add ronjunevaldoz/polyglot-refactor

💰 AI Agent Token & Cost Efficiency

When refactoring a symbol or moving a package across a 30-file codebase:

Metric Traditional AI Agent (File-by-File) With Polyglot Refactor Savings
Context Input Tokens 45,000–80,000 tokens < 100 tokens 99.8% reduction
Generation Output Tokens 4,000–10,000 tokens < 50 tokens 99.5% reduction
Agent Turns & Tool Calls 30–50 consecutive tool calls 1 single command 98% fewer turns
Execution Latency 60–180 seconds ⚡ 1.72 seconds 98% faster
Compiler Failure / Drift High (Hallucinations, missed files) 0% (AST-Safe) Zero breakage

Benchmark & Comparison (4,200+ files across 30 modules)

Engine Speed Directory Moves Languages Substring Safety Execution Mode
Polyglot Refactor 1.72s Automatic 10+ Languages Guaranteed (\b) CLI, Headless, CI, Agent
Android Studio / IntelliJ 58.30s Automatic JVM / Android only Guaranteed