May 15, 2026 · v0.2.0

The Deterministic Rebuild

Refactron rebuilt from the ground up as a 100% deterministic AST engine. No LLM touches your code, and versioning restarts at 0.2.0.

A ground-up rebuild

  • Deterministic engine. Refactron 2.0 is rebuilt as a 100% deterministic AST engine: no LLM touches your code. It supersedes the original Python-implemented 1.x line.
  • Versioning reset. The rebuild restarts versioning at 0.2.0. Entries from 1.0.15 and below belong to the legacy Python tool.

Major features

  • 10 AST transforms. Five Python (via LibCST) and five TypeScript (via ts-morph), each with cross-file precondition checks.
  • 3-gate verification. Syntax, imports, and your full test suite must pass on a shadow tree before any byte is written: atomic batch write, or nothing.
  • Documentation engine. The only LLM-touching step, running solely on already-verified diffs. Five providers: Ollama, Groq, OpenAI, Anthropic, and the managed backend.
  • Configuration and auth. .refactronrc.json via cosmiconfig with schema validation, plus OAuth device-flow login and REFACTRON_TOKEN support.