Skip to content

The command line tool for building, sharing, and running codemods. From quick cleanups to complex migrations. AI-friendly, and language-agnostic.

License

Notifications You must be signed in to change notification settings

codemod/codemod

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Codemod Registry Header


Platform · Community · Docs

Codemod

Community License

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

  • Workflows – Scaffold, test, and orchestrate complex, multi-step migrations with ast-grep YAML or JavaScipt ast-grep (jssg).
  • Codemod Registry – Share or discover community codemods via npx codemod publish or npx codemod search.

Getting Started

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

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

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

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

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.

Learn more in the docs and share feedback on the feedback board. We also hang out in Slack — join us at go.codemod.com/community.

Contributing

We welcome contributions to the Codemod CLI. Please see the contributing guide to get started.

Contributors ✨

Alt

Thanks goes to these wonderful people (emoji key):

Max Leiter
Max Leiter

💻
Greg Pabian
Greg Pabian

💻 🐛 📖
DmytroHryshyn
DmytroHryshyn

💻 🐛
Alex Bit
Alex Bit

💻 📖
Benny Joo
Benny Joo

💻 🐛 📖
Mohab Sameh
Mohab Sameh

💻 📖
Serhii Melnyk
Serhii Melnyk

🤔
kevtran2
kevtran2

📖 💻
George W Langham
George W Langham

🐛
Aniello Falcone
Aniello Falcone

🐛
Sasha
Sasha

💻 🐛
Harsh Gupta
Harsh Gupta

💻
Mohamad Mohebifar
Mohamad Mohebifar

💻 🐛
Mikhail Demidoff
Mikhail Demidoff

💻
Nuurek
Nuurek

💻 🐛
Norayr Baghdasarov
Norayr Baghdasarov

💻 🐛
Grzegorz
Grzegorz

🐛 💻
Aleksy
Aleksy

💻 🐛
Espen Bye
Espen Bye

🐛
Jake Riordan
Jake Riordan

💻 🐛
Jonathan Giardino
Jonathan Giardino

💻 🐛
Mohamed Amine Diboune
Mohamed Amine Diboune

💻
Seif Ghezala
Seif Ghezala

💻
Ahmad Soliman
Ahmad Soliman

💻
Maciej Lotkowski
Maciej Lotkowski

🐛
Jahred Hope
Jahred Hope

💻
arshcodemod
arshcodemod

📖 📢
Jay Kumar
Jay Kumar

💻
Shinya Fujino
Shinya Fujino

📖 💻 🐛
coderaiser
coderaiser

💻
Zach Wolf
Zach Wolf

🐛
with-heart
with-heart

🐛 📖 🤔
Manish Jha
Manish Jha

🐛 💻
Henry Q. Dineen
Henry Q. Dineen

💻 🐛
Matthias
Matthias

🐛
Pardis Pashakhanloo
Pardis Pashakhanloo

💻 📝 🔣
Mohammad Bagher Abiyat
Mohammad Bagher Abiyat

🚇
Yugal Agarwal
Yugal Agarwal

💻
Sameer Poswal
Sameer Poswal

💻 🐛
Michael Stramel
Michael Stramel

📖
Cameron Seebach
Cameron Seebach

🐛 💻
Jacob Smith
Jacob Smith

📖
Siddhesh Mhadnak
Siddhesh Mhadnak

📖
Augustin Mauroy
Augustin Mauroy

💻 🐛 🤔
Bruno Rodrigues
Bruno Rodrigues

💻

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

About

The command line tool for building, sharing, and running codemods. From quick cleanups to complex migrations. AI-friendly, and language-agnostic.

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Packages

No packages published

Contributors 42