# Cursor CLI: at least ask before code change?

**URL:** <https://forum.cursor.com/t/cursor-cli-at-least-ask-before-code-change/148765>\
**Category:** Discussions\
**Tags:** auto-run, cli\
**Created:** [January 13, 2026, 10:26am UTC](https://forum.cursor.com/t/cursor-cli-at-least-ask-before-code-change/148765 "2026-01-13T10:26:24Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yucheng\_Li](https://avatars.discourse-cdn.com/v4/letter/y/838e76/32.png) [@Yucheng\_Li](https://forum.cursor.com/u/Yucheng_Li)\
**Post date:** [January 13, 2026, 10:26am UTC](https://forum.cursor.com/t/cursor-cli-at-least-ask-before-code-change/148765/1 "2026-01-13T10:26:24Z")

</div>

I wonder why cursor cli allow code updates directly without ask for permission? I remember cursor agent does ask before take any action, but why cursor agent behave differently?

---

<div class="post-metadata">

**Author:** ![condor](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/condor/32/73148_2.png) [@condor](https://forum.cursor.com/u/condor)\
**Post date:** [January 13, 2026, 10:55am UTC](https://forum.cursor.com/t/cursor-cli-at-least-ask-before-code-change/148765/3 "2026-01-13T10:55:22Z")

</div>

In both the CLI and IDE agent can change code directly. Also can it be that you enabled Auto-run in the CLI as well?

---

<div class="post-metadata">

**Author:** ![Yucheng\_Li](https://avatars.discourse-cdn.com/v4/letter/y/838e76/32.png) [@Yucheng\_Li](https://forum.cursor.com/u/Yucheng_Li)\
**Post date:** [January 13, 2026, 11:45am UTC](https://forum.cursor.com/t/cursor-cli-at-least-ask-before-code-change/148765/4 "2026-01-13T11:45:28Z")

</div>

cli does stop to ask before run any command though. but directly apply code changes is quite weird no? or at least provide an option for this?

---

<div class="post-metadata">

**Author:** ![condor](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/condor/32/73148_2.png) [@condor](https://forum.cursor.com/u/condor)\
**Post date:** [January 13, 2026, 12:07pm UTC](https://forum.cursor.com/t/cursor-cli-at-least-ask-before-code-change/148765/5 "2026-01-13T12:07:22Z")

</div>

It’s expected that code is edited directly. Running commands is different as it may remove critical info by accident and you are in control of approving commands.

For code, assuming you use git it can be restored easily

---

<div class="post-metadata">

**Author:** ![Yucheng\_Li](https://avatars.discourse-cdn.com/v4/letter/y/838e76/32.png) [@Yucheng\_Li](https://forum.cursor.com/u/Yucheng_Li)\
**Post date:** [January 14, 2026, 9:23am UTC](https://forum.cursor.com/t/cursor-cli-at-least-ask-before-code-change/148765/6 "2026-01-14T09:23:11Z")

</div>

what if I have uncommited changes? how could code edit directly be a feature not bug 😅 is there any other code cli tool that changes code without asking?

---

<div class="post-metadata">

**Author:** ![d\_dss](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/d_dss/32/105133_2.png) [@d\_dss](https://forum.cursor.com/u/d_dss)\
**Post date:** [April 13, 2026, 8:40am UTC](https://forum.cursor.com/t/cursor-cli-at-least-ask-before-code-change/148765/7 "2026-04-13T08:40:14Z")

</div>

Sorry to bump an old thread, but I have the same exact question, only in my case, the situation is a bit worse, I’m using multiple subagents with orchestration, and sometimes subagents (using lower quality models) will make hidden changes to bypass pre-commit hooks and other linter checks (they instinctively add ignore rules), this allows them to commit garbage, usually without the user noticing/or noticing much later (eg. after a couple of commits). I also generally don’t like the fact that the agent just edits files on a whim, sometimes it will update documentation or other related files I never told it to touch (I know this could be improved with rules), with edit approval I could stop it on it’s tracks before the situation gets worse, also it’s hard to get the agent to understand what changes you want it to undo and what to keep (you need a very well crafted, usually very long prompt to get it to correctly undo the mess without changing what you actually want).

This can also be very dangerous when running tools as the agent is always free to edit configuration files.

Generally the cursor cli feels frustrating when videcoding (even when creating a detailed plan before execution).

FYI: I’m currently evaluating cursor for enterprise use.

---

<div class="post-metadata">

**Author:** ![system](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/system/32/99069_2.png) [@system](https://forum.cursor.com/u/system)\
**Post date:** [July 12, 2026, 9:05am UTC](https://forum.cursor.com/t/cursor-cli-at-least-ask-before-code-change/148765/10 "2026-07-12T09:05:18Z")

</div>

Closed on July 12, 2026, 9:05am UTC

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
