npx codemod ai
give codex the skills and tools it needs to build better codemods faster.
build, test, run, and publish codemods for any language, all from the cli.
every new codemod published to the registry makes the skill smarter and more useful for everyone running:
npx codemod ai
npx codemod ai
coding agents struggle with large migrations.
slow, unreliable, costly. they need a lot of babysitting.
if you’re a platform/principal eng you’ve felt this pain 😅
so we gave them a new superpower
npx codemod ai 🎉
everything your AI coding agent needs for fast, reliable code migrations
free, open source, local-first, no login
and it gets better over time as models improve + community contributes to the registry
try it. break it. tell us what sucks
link + debarrel case study in replies 👇🏼
thinking about building a new saas app and business? you should check out @makerkit_dev!
@gc_psk deeply cares about devx. he uses @codemod to help devs install plugins (such as google analytics, posthog, umami, signoz, etc.) with ease.
check out the 12-min technical walkthrough with screen sharing and code demos below 👇🏼
Hey OSS contributors out here! We just launched a program where we donate to people who publish codemods for OSS projects.
No cap on donation amounts. Some might even end up doing this full time while staying on the cutting edge of new framework releases.
If interested, DM me and tell me a bit about your interest or experience.
Please X-post so more OSS contributors see this!
one-shotted a mining codemod with @cursor_ai +@codemod MCP and created this dashboard for Backstage (an oss dev platform by @Spotify)
any design system engineers out here willing to take our new Codemod Insights for a spin and share some honest feedback?
some 🤓 codemod updates (that your coding agent will love if you have @codemod MCP installed)!
▸ Safe file renames
Move or rename files with guardrails. Can’t escape the target dir. No “oops I refactored /usr”.
▸ Atomic multi-file transforms
Treat complex refactors as one logical unit:
– rename styles.less → styles.css + auto-fix all imports – rename a TS symbol + update barrel exports + every import site
– update TSX + CSS module + JSON config in one pass No broken intermediate states. No rescans. Deterministic pairing.
https://t.co/631px4QQtr
🎉 The codemods to migrate Express to version 5 are now available on https://t.co/T9VYazWUnY!
👉️ Run the recipe: npx codemod@latest @expressjs/v5-migration-recipe
👉️ More codemods here: https://t.co/U6QXRyt15G
Despite all the great coding agents out there, @zapier turned to @codemod to make i18n basically invisible for their devs.
@codemod is becoming the Mission Control for coding agents with on-demand specialized agents, compiler-aware tech, semantic analysis, and code graphs that turn complex migrations into background workflows. It works with any coding agent and gives them a modern and secure foundation to do their best work.
check out the story👇🏼and ping me if you want a live demo. Happy to help with any codebase maintenance or remediation project.
New in @codemod: JSSG engine now supports semantic analysis for JS/TS and Python, powered by @OxcProject oxc_semantic and @astral_sh ruff/ty. (and of course ast-grep)
https://t.co/RrwRUAPfxi
yall! check out what the @nodejs team just shipped today: a bunch of migration guides👇
https://t.co/mm8fBgvQTa
a team effort, but @August1 is the real champ here.
if you’re looking to support someone doing amazing OSS work that helps thousands, this is your guy:
https://t.co/ewEOZZQKry
cc @rauchg
New in Codemod jssg: deny-by-default security model! No file system, network, or subprocess access unless explicitly allowed in `codemod.yaml`
https://t.co/UCF2FvMH9k
We’re excited to share that jssg, our open-source, multi-language codemod toolkit and jscodeshift alternative, is now production-ready! Whether you're refactoring codebases, upgrading frameworks, or applying best practices across your org, jssg has you covered.
https://t.co/OtH85Not8u
how about using ast-grep lint messages like @cursor_ai rules so your coding agent has the context it needs to auto-fix issues your way?
example: detect hard-coded strings and replace them with translation keys.
lemme know if you like this specific pro linter or if you need other custom linters for enforcing best practices or incremental migrations. 🫡
ast-grep + AI → ❤️