惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

云风的 BLOG
云风的 BLOG
M
MIT News - Artificial intelligence
博客园 - Franky
J
Java Code Geeks
V
Visual Studio Blog
G
Google Developers Blog
罗磊的独立博客
MongoDB | Blog
MongoDB | Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Recent Announcements
Recent Announcements
Last Week in AI
Last Week in AI
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Stack Overflow Blog
Stack Overflow Blog
博客园 - 司徒正美
The GitHub Blog
The GitHub Blog
腾讯CDC
阮一峰的网络日志
阮一峰的网络日志
V
V2EX
博客园 - 【当耐特】
IT之家
IT之家
I
InfoQ
U
Unit 42
C
Check Point Blog
Martin Fowler
Martin Fowler

Nx Blog

Sharing Tailwind CSS Styles Across Apps in a Monorepo | Nx Blog How SiriusXM Stays Competitive by Iterating and Getting to Market Fast | Nx Blog Agentic Experience Is the New Developer Experience | Nx Blog Nx Joins the Linux Foundation and the Agentic AI Foundation | Nx Blog A Monorepo Is NOT a Monolith | Nx Blog Why we deleted (most of) our MCP tools | Nx Blog Teach Your AI Agent How to Work in a Monorepo | Nx Blog How Broadcom stays efficient and nimble with monorepos | Nx Blog Why Monorepos are King in the Age of AI | Nx Blog Nx 2026 Roadmap: Expanding Agent Autonomy, Improving Performance, Better Polyglot and More | Nx Blog End to End Autonomous AI Agent Workflows with Nx | Nx Blog Autonomous Agents at Scale | Nx Blog Scaling 700+ Projects: How Nx Became a 'No-Brainer' for Caseware | Nx Blog Configure Tailwind v4 with Angular in an Nx Monorepo | Nx Blog The Missing Multiplier for AI Agent Productivity | Nx Blog A Year of Nx Webinars | Nx Blog Wrapping Up 2025 | Nx Blog Nx 22.3 Release: Angular 21 Support, tsgo Compiler, and Prettier v3 | Nx Blog Nx Cloud Release: Agent Resource Usage | Nx Blog Nx Platform Outperforms DIY Cache by 5x | Nx Blog An Nx Carol: Past, Present, and Future of Your Monorepo | Nx Blog Nx 22.1 Release: Terminal UI on Windows, Storybook 10, Vitest 4, and more! | Nx Blog The Compounding Effect: How Nx Features Multiply Performance Gains | Nx Blog 10 Monorepo Myths Debunked: Separating Fact from Fiction | Nx Blog Nx Cloud Release: Enterprise Task Analytics | Nx Blog Watch and Rebuild Storybook Dependencies with Nx | Nx Blog Book - React for Enterprise: Timeless Architecture for Enterprise Apps | Nx Blog Beyond Remote Cache: Unlock 70% More CI Performance | Nx Blog Nx 22 Release: Expanding the build platform | Nx Blog What's the Point of Generating All This Code If You Can't Merge It? | Nx Blog
Making It Easier to Import Projects Into Your Monorepo | ...
Juri Strumpflohner · 2026-04-30 · via Nx Blog

Importing an existing project into a monorepo is not always as trivial as it might sound. There are conventions to align: project structure, build configs, package boundaries. There's the question of git history (you usually want to keep it for blame and debugging).

We shipped nx import last year to take care of the deterministic part of this. It clones a project, detects its tech stack, applies the right Nx plugin to wire it up, and preserves git history while it moves files around. That covers the common path well, but every workspace has its own edge cases (workspace-specific quirks, missing tools) that no generic tool can predict.

This is exactly where an AI agent comes in. So we made nx import agentic.

Deterministic CLI, controlled by an agent

The interesting part is not that an agent is involved, it's how the work is split.

The Nx CLI does the heavy lifting: cloning, file moves, history preservation through subtree merges, plugin detection and setup. That part is deterministic and the agent doesn't reimplement it. It just invokes the CLI.

This split has two practical consequences:

  1. Token efficiency. Because nx import does the heavy lifting underneath, the agent doesn't need to scrape every file in the source repos to figure out what to do. It just invokes the CLI and reacts to its output.
  2. Correctness on the long tail. The deterministic part stays deterministic. The agent only steps in where the CLI can't predict your specific workspace, like missing runtimes, follow-up file moves, or build failures that surface after the import.

You get the predictability of a real tool with the flexibility of an agent filling in workspace-specific gaps.

How it works

First, make sure your agent has the Nx skills loaded:

This scans your system, detects which agent harnesses you use (Claude Code, Codex, Cursor, etc.), and installs the Nx skills (including the nx import skill) for each one.

With that in place, prompt the agent to import your projects and explicitly call out the nx import skill so it gets loaded. Something like:

Example prompt

Can you merge/import the gradle and tanstack projects in ../ into this monorepo. The apps for both should go into the ./apps folder and the packages into the ./packages folder. Make sure that git history is preserved and also run some tests like running builds and inspecting the project graph to make sure the import is successful. Use the nx import skill.

The agent then runs nx import for each source project and follows up with verification steps based on the targets defined in your workspace: building the project graph to confirm projects were detected and dependencies wired up, running builds, running tests. When something fails, it reacts. In the video walkthrough at the top, the agent notices missing Java runtimes during a build, sees that I use Mise for runtime management, and adds the right entries to mise.toml on its own. That's not something nx import knows about, it falls out of giving the agent room to react to real failures.

What's next: agentic nx migrate

nx migrate has a similar shape to nx import: a deterministic upgrade process that handles the common path well but can't anticipate every workspace-specific quirk. We're working on making that agentic too, so the agent can fill in the gaps when an upgrade step doesn't quite fit your setup.

Learn More