# Better terminal command handling for monorepos

**URL:** <https://forum.cursor.com/t/better-terminal-command-handling-for-monorepos/100215>\
**Category:** Feature Requests\
**Created:** [June 4, 2025, 2:39pm UTC](https://forum.cursor.com/t/better-terminal-command-handling-for-monorepos/100215 "2025-06-04T14:39:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![aaronstatic](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/aaronstatic/32/58504_2.png) [@aaronstatic](https://forum.cursor.com/u/aaronstatic)\
**Post date:** [June 4, 2025, 2:39pm UTC](https://forum.cursor.com/t/better-terminal-command-handling-for-monorepos/100215/1 "2025-06-04T14:39:03Z")

</div>

When working with a lerna monorepo and/or node.js workspaces, the agent will always `cd packages/package && npm install`, or `cd packages/package && npm run build` etc. Even if its already in that folder

this is with claude 4 at least, not sure if other models are better

thankfully you let us edit the commands before they are executed now, but it would be nice if it at least knew what folder it was in, or if not then maybe the cursor terminal tool could be upgraded to better handle these situations so that the agent could be left on its own
