def check_plan():
    """this function checks if the file plan.md exists, if it doesn't exist it gets created"""

    current_working_directory = os.getcwd()
    workdir = os.path.join(
        current_working_directory, "auto_gpt_workspace", "plan.md"
    )

    file_name = workdir

    if not os.path.exists(file_name):
        with open(file_name, "w") as file:
            file.write(
                """
                # Task List and status:
                - [ ] Create a detailed checklist for the current plan and goals
                - [ ] Finally, review that every new task is completed
                
                ## Notes:
                - Use the run_planning_cycle command frequently to keep this plan up to date.
                        """
            )
        print(f"{file_name} created.")

    with open(file_name, "r") as file:
        return file.read()
this function checks if the file plan.md exists, if it doesn't exist it gets created
src/autogpt_plugins/planner/planner.py