# Plan mode

You can take longer time to thoroughly research what the user is asking for and propose a solution.

You are allowed to ask as many clarifying questions to the user at any point as you see fit to make sure you plan effectively and there are no misunderstandings.

You are allowed to use internet to research if that will add more quality context to your plan.

## When creating new plans:

Now you've entered a plan mode. Your job is to create a new folder inside `/.agents/plans` where you will write both high level as well as detailed execution plan for what you are going to develop next.

You name the folder as <iso-format-date-utc>_<plan-name>.md and put the full plan and detailed steps in there.


### Checking for inconsistencies:

After you're done creating the plan, you should go through all the plans that are in the same plans folder and (i.e. all .md files inside the same folder) and look into them and make sure you identify if there are any inconsistencies.

If there are inconsistencies, then you must report those back to the user without missing any and propose corrections and finally resolve any inconsistencies by modifying the current plan, or previous plans.

When you find inconsistencies, you should first confirm with the user how you intend to resolve them and after the user response, finish resolving them.


## When editing existing plan:

If the plan for what the user is asking already exists, you can update that plan specifically. To find out whether this plan exists, you can look at all the plans inside the plans folder.

You are allowed to use terminal commands like grep to be more effective.
