Baike.dev
All toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
C

codemod

> 编程语言
Open source

The CLI for codemods: scaffold, share, and run multi-step transformations of any size. First-class ast-grep support. Fast, reliable, polyglot.

1.1K stars0 likes0 views
WebsiteGitHub

About

The CLI for codemods: scaffold, share, and run multi-step transformations of any size. First-class ast-grep support. Fast, reliable, polyglot.

Platform · Community · Docs

Codemod

Codemod is the AI-powered, community-led platform for automating code migrations, framework upgrades, and large-scale changes.

This repo houses the Codemod CLI and its underlying workflow engine – everything you need to scaffold, test, and run codemods locally or in CI. The CLI can also connect to Codemod’s hosted Registry and Platform when you want to publish or orchestrate migrations across many repositories.

Key Features

  • Codemod CLI – Run, test, and publish codemods from your terminal or CI.
  • Workflows – Orchestrate multi-step migrations with YAML configuration, matrix strategies, and manual approval gates.
  • JSSG – JavaScript ast-grep: write powerful AST transformations in TypeScript with pattern matching and semantic analysis.
  • Codemod Registry – Share or discover community codemods via npx codemod publish or npx codemod search.
  • Codemod MCP – AI tools for code analysis, AST manipulation, and codemod creation in AI-powered IDEs.

Getting Started

# 1) Open the interactive launcher
npx codemod

# 2) Scaffold a new codemod project
npx codemod init my-codemod

# 3) Test it locally
npx codemod workflow run -w my-codemod/workflow.yaml

# 4) Publish it when you're ready
npx codemod publish my-codemod

# 5) Run it from the Registry
npx codemod @codemod/my-codemod

In an interactive terminal, bare npx codemod opens a launcher for creating a package or running one from the registry. In non-interactive contexts, it prints next steps and exits with status 1.

See the full CLI reference for every command and option.

Codemod Platform

The CLI is the engine that powers campaigns inside Codemod Platform. Need to coordinate changes across multiple repositories, track progress, or collaborate with your team? The Platform adds insights, orchestration, dashboards, and authoring tools that help teams successfully land large-scale code migrations.

Explore our documentation to learn more, and join the conversation or share your feedback in our Slack community.

Contributing

There are two ways to contribute to the Codemod ecosystem:

Contribute to Codemod OSS

Help improve the CLI, workflow engine, and JSSG runtime. See the contributing guide to get started with development setup, testing, and pull requests.

Build and share codemods

Create codemods for framework upgrades, security patches, or common refactoring patterns. Published codemods help the entire community migrate faster.

  • Workflows quickstart – Scaffold your first codemod package
  • JSSG guide – Write AST transformations in JS/TS
  • Publishing – Share your contributions to Codemod Registry

Looking for ideas? Spark a discussion in our Slack community or browse Codemod Registry for codemods that could use improvements.

Contributors ✨

Thanks goes to these wonderful people (emoji key):

Alex Bit

Mohamad Mohebifar

Amirabbas Ghasemi

Mohab Sameh

Siamak

Jahred Hope

Jacob Smith

Augustin Mauroy

Bruno Rodrigues

Cameron Seebach

Benny Joo

Grzegorz

Greg Pabian

arshcodemod

Sasha

Mikhail Demidoff

Aleksy

Pardis Pashakhanloo

DmytroHryshyn

kevtran2

Max Leiter

Manish Jha

with-heart

Aniello Falcone

Harsh Gupta

Nuurek

Norayr Baghdasarov

Espen Bye

Jake Riordan

Jonathan Giardino

Mohamed Amine Diboune

Seif Ghezala

Ahmad Soliman

Maciej Lotkowski

Jay Kumar

Shinya Fujino

coderaiser

Zach Wolf

Serhii Melnyk

Henry Q. Dineen

Matthias

Mohammad Bagher Abiyat

Yugal Agarwal

Sameer Poswal

Michael Stramel

George W Langham

Siddhesh Mhadnak

This project follows the all-contributors specification. Contributions of any kind welcome!

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Rustast-grepcleanupcodemodjscodeshift

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言