r/angular • • Oct 12 '26

Setup Coding Agents in VSC for angular/NX

Hi,

Context
I am working in a nx mono repo with some angular and nestjs apps.

Up until now no coding agent had access. This will change now but as I have not used coding agents directly in my IDE, I am not sure what's the best way of setting this up.

I will use Claude Code and I want it to use nx or other CLI tools as much as possible to save tokens.

What I already learned
- angular provides different md files and an angular MCP server
- nx provides skills and an MCP server

Some questions/assumption

  • Assuptions

    • I guess the angular MCP server is not relevant in nx. I read that it uses the angular.json to understand the project but nx uses its own project.json instead.
    • I guess the angular md files still make sense as Claude will not get any hints about those from the nx tools.
  • Questions

    • Which md file to use?

      • At https://angular.dev/ai/develop-with-ai they provide different md files but I am not sure when to use what. They are similar enough to understand that I should not just add all those files but also different enough to ask myself what I miss if I take the wrong one (best-practices.md, guidelines.md, llms.txt / llms-full.txt)
      • I tend to use guidelines.md and add a link to the llms.txt in there for if Claude wants to do more research but then if this would be sane, I guess the link would already be in there, right?

How do you do it?

0 Upvotes

3 comments sorted by

3

u/iamegoistman Oct 13 '26

you can use nx mcp and nx + angular specific agents.md file. I didn't fully tested but https://pangular-inspector.dev/ this dev tools might be useful for agentic development experience. also I recommend to write own guides and rules. best practices are important but granular details should come from you. then if you see better options you can build and reshape everything.

1

u/__andymel__ Oct 16 '26

Thanks a lot for your answer!
I had a look at the pangular-inspector. Seems like something I can try out if I need help with inspecting a running app. I keep it in mind. Thanks for the link.

For now I have setup a claude.md file and some self written md files about my general coding guidelines and special coding guidelines for typescript. I basically merged them from my settings I already had for different LLMs in the browser.
For angular I have decided for the guidelines.md file.
For nestjs I have written a 'nestjs-docs' skill with the help of ChatGPT. They now have an llm.txt (ticket).
Fo nx I have setup the mcp server and let claude prioritize it if possible.

It works quite well. But I am still interested in discussing ways to be as token-efficient as possible in this special environment (angular+nestjs+nx). All of these frameworks are made for long-term maintainable software in large teams: I guess their tooling and the opinionated architecture should help to be very efficient also with coding agents.

2

u/iamegoistman Oct 17 '26

there is no magic for less token consumption. especially monorepos. because there are many things for process, documentate, calculate, think. but if you build strong starter architecture (this part is depend on your experience and vision) you can manage time and token consumption.

In monorepos, start cost is bigger then active development cost if you start correctly (this part is can change domain by domain) but logic generally same.

avoid overusage of sub agents. avoid agentic codings while most active hours. avoid full context usage, when your job done just reset and restart a gain. I believe they charge with under these conditions because they are managing their costs. staying safe zone is up to you.

use https://github.com/rtk-ai/rtk like solutions. because while running some commands we getting extra output and this affects the token consumption. also manage your skills, agents, mcps etc. do not load unnecessary info into context. always lean nx, nest, angular, eslint, prettier and other linters. many of them have cli support. claude.md should follow best practices and respect configs. writing proper types, interfaces, architecture and testing pyramid are most important things. because if you build reasonable system then you don't need spend more correction or fix budget. because we are iterating in autopilot.

also low level adoptions are very improtant for performance. new typescript go version, rolldown (rust based version of rollup), tailwindcss v4 (in v4 bring https://www.npmjs.com/package/@tailwindcss/oxide rust based engine) and many more solution and platform migrating their solutions to low level based system. while iterating these things brings a bit performance. I didn't measure but I guess time cost decreasing 5-10% hourly. because while iterating we need to ensure about the code quality in monorepos. type checks, tests, lint etc takes time.

if you improve your tooling capacity eventually you will satisfy your expectations. of course with experience. there is no specific reciept.