CLI Tools2026年4月9日·1 分钟阅读

Codemod — AI-Powered Code Migration CLI

Scaffold, share, and run large-scale code migrations with AI. First-class ast-grep support, multi-step YAML workflows, community codemod registry. Apache-2.0, 970+ stars.

Introduction

Codemod is an AI-powered code migration CLI tool with 970+ GitHub stars. It supports multi-step YAML workflows, ast-grep AST pattern matching, and a community codemod registry. Ideal for teams facing large-scale framework upgrades or refactors.


Codemod — AI-Driven Code Migration Platform

The Problem It Solves

Upgrading frameworks across hundreds of files (Next.js 12→13, React class → hooks) is tedious and error-prone. Codemod provides deterministic AST-based transforms with AI enhancement — define a migration rule once and execute it reliably across the entire codebase.

Core Features

  • CLI execution — run migrations in terminal or CI
  • YAML workflows — multi-step migrations with matrix strategies and approval gates
  • ast-grep — precise AST pattern matching
  • Community registry — discover and share popular migrations
  • MCP integration — use codemods from AI coding assistants

FAQ

Q: What is Codemod? A: An open-source CLI and platform for large-scale AI-driven code migrations using AST-based transforms for safe refactoring.

Q: Is it free? A: Completely free and open source under the Apache-2.0 license.


🙏

来源与感谢

Created by Codemod. Licensed under Apache-2.0.

codemod/codemod — ⭐ 970+

讨论

登录后参与讨论。
还没有评论,来写第一条吧。

相关资产