These rules seem to help. Sent always, otherwise it drops the ball on new file creation and sometimes tries to open files relative to cursors project root and makes a damn mess of things.
Nx Monorepo Context
CRITICAL: You are working in a nx managed monorepo
CRITICAL: The nx workspaceRoot is /users/flashingcursor/project/nxroot
CRITICAL: The nx.json file is located in nx workspaceRoot
WARNING: do not make assumptions about paths when using available tools & ground yourself using the config in nx.json
RULES:
- When using the
run_terminal_cmdtool with nx commands, first send a cd command to the absolute path where nx.json is located - Never chain
cdwith other commands (e.g., avoidcd dir && nx ...).
The user controls all terminal commands; nx terminal commands will be ignored if you don’t abide by these rules.
