# Plan vs Act mode (xml prompt)

**URL:** <https://forum.cursor.com/t/plan-vs-act-mode-xml-prompt/50996>\
**Category:** Guides\
**Created:** [February 14, 2025, 2:13pm UTC](https://forum.cursor.com/t/plan-vs-act-mode-xml-prompt/50996 "2025-02-14T14:13:53Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![DaleLJefferson](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/daleljefferson/32/20009_2.png) [@DaleLJefferson](https://forum.cursor.com/u/DaleLJefferson)\
**Post date:** [February 14, 2025, 2:13pm UTC](https://forum.cursor.com/t/plan-vs-act-mode-xml-prompt/50996/1 "2025-02-14T14:13:53Z")

</div>

I’ve been using my [Plan vs Act mode](https://forum.cursor.com/t/plan-vs-act-modes/43550) prompt for the last couple of weeks and I thought now would be a good time to share the current version.

**What is looks like in action**

**20%**

 ![image](https://us1.discourse-cdn.com/cursor1/original/3X/9/9/991facd44e6678e39f28ed6d0c2eaea11977ee21.png)  
**80%**  
 ![image](https://us1.discourse-cdn.com/cursor1/original/3X/d/2/d262dff5f7b196b51b9c85d2fc563e34d9ad3c57.png)  
_100%_  
 ![image](https://us1.discourse-cdn.com/cursor1/original/3X/4/3/438cbe030d7ba799d34ef7d62239183d11d875e2.png)

**Show me the code**

```xml
<modes inital="plan" title="I like to work in two modes Plan and Act">
    <plan start="true" name="Plan" read="true" write="false" keyword="plan">
        <rule>Focus on information gathering, asking questions, and architecting a solution, output a comprehensive plan.</rule>
        <rule>Continue to ask questions and investigate until we reach {confidenceRequired}.</rule>
        <rule>Track the the current confidence percentage.</rule>
        <rule>You must include "Would you like to implement the plan now?" at the end of of the response once we hit {confidenceRequired}.</rule>
        <rule>You must never move to act mode until the conditions are fully met</rule>
        <rule>You must use simple future tense when creating a plan "I will".</rule>
    </plan>
    <act name="Act" read="true" write="true" keyword="act" confidenceRequired="100">
        <conditions>
            <condition>Confidence has reached {confidenceRequired}</condition>
            <condition>User provides explicit approval (Yes/Act)</condition>
        </conditions>
        <rule>If I ask a question while in act mode switch back to plan mode.</rule>
    </act>
</modes>

```

_I read that Claude was optimised for XML prompts and it seems more effective._

**Learnings**

- Confidence percentage and requirement (Forces agentic iteration on the problem)
- Explicit approval (Confidence and Keyword)
- “simple future tense” ensures the plan is not interpretation as approval

**How I’m using it**

I’m now storing this prompt in a Notepad (Beta feature) and only including it when I want to do planning. This means Chat and other interactions are not polluted by the planning rules. My “Rules for AI” are just one line, I use the cursor rules folder and Notepads for pretty much everything.  
_If the AI forgets the plan mode or I want to start the process again I include the Notepad again._

 ![image](https://us1.discourse-cdn.com/cursor1/original/3X/b/f/bf08f4630eace7e22af43855bc39a555af1259b3.png)  
 ![Screenshot 2025-02-14 at 14.17.58](https://us1.discourse-cdn.com/cursor1/original/3X/9/a/9a96858faf959859c6b670cb145cf0192f06ab17.png)  
 ![image](https://us1.discourse-cdn.com/cursor1/original/3X/8/4/84d75d8bca6f31faeac3f2c82a0c0380a620f6d4.png)

---

<div class="post-metadata">

**Author:** ![yurkomik](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/yurkomik/32/23558_2.png) [@yurkomik](https://forum.cursor.com/u/yurkomik)\
**Post date:** [February 14, 2025, 7:07pm UTC](https://forum.cursor.com/t/plan-vs-act-mode-xml-prompt/50996/2 "2025-02-14T19:07:37Z")

</div>

thanks for sharing. I am tired writing: ANalyze, do not write code yet. So will deenetely check your solution. Thanks!

---

<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:** [February 14, 2025, 7:13pm UTC](https://forum.cursor.com/t/plan-vs-act-mode-xml-prompt/50996/3 "2025-02-14T19:13:18Z")

</div>

Yes indeed great example for the mode in XML. Have you tried it with anything other than Claude?

Since you apply plan only when needed, which makes sense, you wont face the case that claude starts outputting fake transition to Act mode like:

```plaintext
Mode: PLAN

text details of current plan step....

---
User: ACT

---
Mode: ACT

... fake pretends to be in act mode from current session history.

```

---

<div class="post-metadata">

**Author:** ![saketsarin](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/saketsarin/32/25671_2.png) [@saketsarin](https://forum.cursor.com/u/saketsarin)\
**Post date:** [February 15, 2025, 7:10am UTC](https://forum.cursor.com/t/plan-vs-act-mode-xml-prompt/50996/4 "2025-02-15T07:10:23Z")

</div>

Works pretty nicely. Thanks for sharing!

---

<div class="post-metadata">

**Author:** ![DaleLJefferson](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/daleljefferson/32/20009_2.png) [@DaleLJefferson](https://forum.cursor.com/u/DaleLJefferson)\
**Post date:** [February 15, 2025, 7:16am UTC](https://forum.cursor.com/t/plan-vs-act-mode-xml-prompt/50996/5 "2025-02-15T07:16:43Z")

</div>

I’m currently trying using Claude for pretty much everything (Chat) then jumping into o3-mini If I need the “extra intelligence”.

Sometimes I do

1. Gather requirements, context and create a plan: Claude (o3-mini is too slow for chat).
2. I may ask o3-mini to review the plan (Second opinion).
3. I either ask o3-mini or Claude to write the code (o3-mini seems to have a higher chance of doing it in “one shot”).
4. Then I use Claude to fix any issues in a chat flow (need something fast).

---

<div class="post-metadata">

**Author:** ![dianedef](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/dianedef/32/7893_2.png) [@dianedef](https://forum.cursor.com/u/dianedef)\
**Post date:** [February 20, 2025, 12:13am UTC](https://forum.cursor.com/t/plan-vs-act-mode-xml-prompt/50996/6 "2025-02-20T00:13:43Z")

</div>

Thank you for sharing!  
The only thing that’s annoying is that the NotePads aren’t sync so how to you keep them in sync for multiples projects?

---

<div class="post-metadata">

**Author:** ![ruixingshi](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/ruixingshi/32/24699_2.png) [@ruixingshi](https://forum.cursor.com/u/ruixingshi)\
**Post date:** [February 20, 2025, 7:32am UTC](https://forum.cursor.com/t/plan-vs-act-mode-xml-prompt/50996/7 "2025-02-20T07:32:01Z")

</div>

Does using .Cursor rule make a difference?

 ![image](https://us1.discourse-cdn.com/cursor1/original/3X/7/c/7c791868ff8e32f523142973a0018ed92e5f9af0.png)

---

<div class="post-metadata">

**Author:** ![yohangwak](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/yohangwak/32/4499_2.png) [@yohangwak](https://forum.cursor.com/u/yohangwak)\
**Post date:** [February 21, 2025, 10:50am UTC](https://forum.cursor.com/t/plan-vs-act-mode-xml-prompt/50996/8 "2025-02-21T10:50:05Z")

</div>

Do you always use this Plan mode? Any tips when I should use this or not? Thank you for this mode!

---

<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:** [February 21, 2025, 12:12pm UTC](https://forum.cursor.com/t/plan-vs-act-mode-xml-prompt/50996/9 "2025-02-21T12:12:34Z")

</div>

I have seen overall better results with Plan vs Act compared to some more common (human) development approaches as its better aligned with the process of AI

---

<div class="post-metadata">

**Author:** ![DaleLJefferson](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/daleljefferson/32/20009_2.png) [@DaleLJefferson](https://forum.cursor.com/u/DaleLJefferson)\
**Post date:** [February 21, 2025, 1:21pm UTC](https://forum.cursor.com/t/plan-vs-act-mode-xml-prompt/50996/10 "2025-02-21T13:21:29Z")

</div>

Looks like with the new Ask → Agent feature in 0.46 we don’t need this hack anymore.

1. Open a new Chat (New name for composer)
2. Pick Ask mode (Add @Codebase to context)
3. Pick a thinking model (Or any model you like)
4. Work up a plan until you are happy with it
5. Switch to Agent mode and Sonnet
6. Say make it so

 ![image](https://us1.discourse-cdn.com/cursor1/original/3X/4/2/4208e32761f547abc297371a5caca1e7288cdc12.png)

---

<div class="post-metadata">

**Author:** ![amirsource133](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/amirsource133/32/54193_2.png) [@amirsource133](https://forum.cursor.com/u/amirsource133)\
**Post date:** [May 11, 2025, 3:14pm UTC](https://forum.cursor.com/t/plan-vs-act-mode-xml-prompt/50996/11 "2025-05-11T15:14:23Z")

</div>

````auto
type or paste code here
[quote="DaleLJefferson, post:1, topic:50996, full:true"]
I've been using my [Plan vs Act mode](https://forum.cursor.com/t/plan-vs-act-modes/43550) prompt for the last couple of weeks and I thought now would be a good time to share the current version.

**What is looks like in action**

**20%**![image|431x500](upload://lQAUPp77o2cOjmClVkEZFgSH7Ox.png)
**80%**![image|489x500](upload://u1a6DZeTeScADcuIT26W0bMqx4b.png)
*100%*
![image|690x427](upload://9DzwOSII8D6sh2PCjyMBKXWLXKa.png)

**Show me the code**

```xml
<modes inital="plan" title="I like to work in two modes Plan and Act">
    <plan start="true" name="Plan" read="true" write="false" keyword="plan">
        <rule>Focus on information gathering, asking questions, and architecting a solution, output a comprehensive plan.</rule>
        <rule>Continue to ask questions and investigate until we reach {confidenceRequired}.</rule>
        <rule>Track the the current confidence percentage.</rule>
        <rule>You must include "Would you like to implement the plan now?" at the end of of the response once we hit {confidenceRequired}.</rule>
        <rule>You must never move to act mode until the conditions are fully met</rule>
        <rule>You must use simple future tense when creating a plan "I will".</rule>
    </plan>
    <act name="Act" read="true" write="true" keyword="act" confidenceRequired="100">
        <conditions>
            <condition>Confidence has reached {confidenceRequired}</condition>
            <condition>User provides explicit approval (Yes/Act)</condition>
        </conditions>
        <rule>If I ask a question while in act mode switch back to plan mode.</rule>
    </act>
</modes>

````

_I read that Claude was optimised for XML prompts and it seems more effective._

**Learnings**

- Confidence percentage and requirement (Forces agentic iteration on the problem)
- Explicit approval (Confidence and Keyword)
- “simple future tense” ensures the plan is not interpretation as approval

**How I’m using it**

I’m now storing this prompt in a Notepad (Beta feature) and only including it when I want to do planning. This means Chat and other interactions are not polluted by the planning rules. My “Rules for AI” are just one line, I use the cursor rules folder and Notepads for pretty much everything.  
_If the AI forgets the plan mode or I want to start the process again I include the Notepad again._

 ![image](https://us1.discourse-cdn.com/cursor1/original/3X/b/f/bf08f4630eace7e22af43855bc39a555af1259b3.png)  
 ![Screenshot 2025-02-14 at 14.17.58](https://us1.discourse-cdn.com/cursor1/original/3X/9/a/9a96858faf959859c6b670cb145cf0192f06ab17.png)  
 ![image](https://us1.discourse-cdn.com/cursor1/original/3X/8/4/84d75d8bca6f31faeac3f2c82a0c0380a620f6d4.png)  
[/quote]

```auto

```

---

<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:** [June 18, 2026, 10:41am UTC](https://forum.cursor.com/t/plan-vs-act-mode-xml-prompt/50996/12 "2026-06-18T10:41:58Z")

</div>


