// refactoring-assistant

Apply deterministic, scope-unaware refactorings to a pasted snippet — rename, inline, extract, and more — entirely in your browser.

Part of the CodeIntel tools roadmap — built for the blog, not for production.
// output will appear here

// how-it-works

Pure engine

All transformation logic lives in a DOM-free, side-effect-free engine. Each refactoring is a pure function from source text to source text plus a change count and warnings.

Line-based rewriting

The rewriter works line by line with word-boundary matching and light structural checks. It never calls out to a compiler or a language server.

Honest warnings

When a refactoring cannot be applied cleanly — ambiguous use counts, scope conflicts, wrong language — the tool leaves the code unchanged and explains why.

Runs entirely locally

No network calls, no server, no telemetry. Your snippet never leaves the browser tab.

// limitations