Skip to content

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

License

Notifications You must be signed in to change notification settings

techflare641/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 JavaScript ast-grep (jssg).
  • 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) 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/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):

Alex Bit
Alex Bit

💻 📖
Mohamad Mohebifar
Mohamad Mohebifar

💻 🐛
amirabbas-gh
Amirabbas Ghasemi

💻 🐛
Mohab Sameh
Mohab Sameh

💻 📖
siamak
Siamak

💻 🐛 🎨
Jahred Hope
Jahred Hope

💻
Jacob Smith
Jacob Smith

📖
Augustin Mauroy
Augustin Mauroy

💻 🐛 🤔
Bruno Rodrigues
Bruno Rodrigues

💻
Cameron Seebach
Cameron Seebach

🐛 💻
Benny Joo
Benny Joo

💻 🐛 📖
Grzegorz
Grzegorz

🐛 💻
Greg Pabian
Greg Pabian

💻 🐛 📖
arshcodemod
arshcodemod

📖 📢
Sasha
Sasha

💻 🐛
Mikhail Demidoff
Mikhail Demidoff

💻
Aleksy
Aleksy

💻 🐛
Pardis Pashakhanloo
Pardis Pashakhanloo

💻 📝 🔣
DmytroHryshyn
DmytroHryshyn

💻 🐛
kevtran2
kevtran2

📖 💻
Max Leiter
Max Leiter

💻
Manish Jha
Manish Jha

🐛 💻
with-heart
with-heart

🐛 📖 🤔
Aniello Falcone
Aniello Falcone

🐛
Harsh Gupta
Harsh Gupta

💻
Nuurek
Nuurek

💻 🐛
Norayr Baghdasarov
Norayr Baghdasarov

💻 🐛
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

🐛
Jay Kumar
Jay Kumar

💻
Shinya Fujino
Shinya Fujino

📖 💻 🐛
coderaiser
coderaiser

💻
Zach Wolf
Zach Wolf

🐛
Serhii Melnyk
Serhii Melnyk

🤔
Henry Q. Dineen
Henry Q. Dineen

💻 🐛
Matthias
Matthias

🐛
Mohammad Bagher Abiyat
Mohammad Bagher Abiyat

🚇
Yugal Agarwal
Yugal Agarwal

💻
Sameer Poswal
Sameer Poswal

💻 🐛
Michael Stramel
Michael Stramel

📖
George W Langham
George W Langham

🐛
Siddhesh Mhadnak
Siddhesh Mhadnak

📖

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

About

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

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 60.2%
  • Rust 30.6%
  • MDX 7.3%
  • CSS 0.9%
  • JavaScript 0.7%
  • Dockerfile 0.2%
  • Other 0.1%