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-com/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@next publish or npx codemod@next search.

Getting Started

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

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

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

# 4) Run it from the Registry
npx codemod@next @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

Security policy

Stars

Watchers

Forks

Packages

No packages published

Contributors 42