{"id":27407276,"url":"https://github.com/rihp/autogpt-planner-plugin","last_synced_at":"2025-10-08T22:12:16.216Z","repository":{"id":160117909,"uuid":"630928347","full_name":"rihp/autogpt-planner-plugin","owner":"rihp","description":"Simple planner for AutoGPT that can create tasks and checklists to execute commands based on its strategy.","archived":false,"fork":false,"pushed_at":"2023-06-03T07:28:33.000Z","size":61,"stargazers_count":81,"open_issues_count":6,"forks_count":17,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-14T07:12:01.245Z","etag":null,"topics":["agents","autogpt","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rihp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-04-21T13:38:57.000Z","updated_at":"2025-04-05T04:17:40.000Z","dependencies_parsed_at":null,"dependency_job_id":"1453ae84-76e9-48da-9134-a61924e72cb9","html_url":"https://github.com/rihp/autogpt-planner-plugin","commit_stats":null,"previous_names":[],"tags_count":0,"template":true,"template_full_name":"Significant-Gravitas/Auto-GPT-Plugin-Template","purl":"pkg:github/rihp/autogpt-planner-plugin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rihp%2Fautogpt-planner-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rihp%2Fautogpt-planner-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rihp%2Fautogpt-planner-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rihp%2Fautogpt-planner-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rihp","download_url":"https://codeload.github.com/rihp/autogpt-planner-plugin/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rihp%2Fautogpt-planner-plugin/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279000781,"owners_count":26082851,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-08T02:00:06.501Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["agents","autogpt","python"],"created_at":"2025-04-14T07:11:41.005Z","updated_at":"2025-10-08T22:12:16.211Z","avatar_url":"https://github.com/rihp.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AutoGPT Planner Plugin\nSimple planning commands for planning leveraged with chatgpt3.5 and json objects to keep track of its progress on a list of tasks.\n\n![image](https://user-images.githubusercontent.com/12145726/235688701-af549b76-7f9f-4426-9c88-dd72aca45685.png)\n\n\n### Getting started\n\nAfter you clone the plugin from the original repo (https://github.com/rihp/autogpt-planner-plugin) Add it to the plugins folder of your AutoGPT repo and then run AutoGPT\n\n![image](https://user-images.githubusercontent.com/12145726/235688224-7abf6ae4-5c0a-4e2d-b1b2-18241c6d74b4.png)\n\nRemember to also update your .env to include \n\n```\nALLOWLISTED_PLUGINS=PlannerPlugin\n```\n\n\n\n# New commands\n```python\nprompt.add_command(\n    \"check_plan\",\n    \"Read the plan.md with the next goals to achieve\",\n    {},\n    check_plan,\n)\n\nprompt.add_command(\n    \"run_planning_cycle\",\n    \"Improves the current plan.md and updates it with progress\",\n    {},\n    update_plan,\n)\n\nprompt.add_command(\n    \"create_task\",\n    \"creates a task with a task id, description and a completed status of False \",\n    {\n        \"task_id\": \"\u003cint\u003e\",\n        \"task_description\": \"\u003cThe task that must be performed\u003e\",\n    },\n    create_task,\n)\n\nprompt.add_command(\n    \"load_tasks\",\n    \"Checks out the task ids, their descriptionsand a completed status\",\n    {},\n    load_tasks,\n)\n\nprompt.add_command(\n    \"mark_task_completed\",\n    \"Updates the status of a task and marks it as completed\",\n    {\"task_id\": \"\u003cint\u003e\"},\n    update_task_status,\n)\n```\n\n# New config options\nBy default, the plugin is set ot use what ever your `FAST_LLM_MODEL` environment variable is set to, if none is set it \nwill fall back to `gpt-3.5-turbo`. If you want to set it individually to a different model you can do that by setting\nthe environment variable `PLANNER_MODEL` to the model you want to use (example: `gpt-4`).\n\nSimilarly, the token limit defaults to the `FAST_TOKEN_LIMIT` environment variable, if none is set it will fall \nback to `1500`. If you want to set it individually to a different limit for the plugin you can do that by setting\n`PLANNER_TOKEN_LIMIT` to the desired limit (example: `7500`).\n\nAnd last, but not least, the temperature used defaults to the `TEMPERATURE` environment variable, if none is set it will \nfall back to `0.5`. If you want to set it individually to a different temperature for the plugin you can do that by \nsetting `PLANNER_TEMPERATURE` to the desired temperature (example: `0.3`).\n\n\n## CODE SAMPLES\n\nExample of generating an improved plan\n```python\ndef generate_improved_plan(prompt: str) -\u003e str:\n    \"\"\"Generate an improved plan using OpenAI's ChatCompletion functionality\"\"\"\n\n    import openai\n\n    tasks = load_tasks()\n\n    # Call the OpenAI API for chat completion\n    response = openai.ChatCompletion.create(\n        model=\"gpt-3.5-turbo\",\n        messages=[\n            {\n                \"role\": \"system\",\n                \"content\": \"You are an assistant that improves and adds crucial points to plans in .md format.\",\n            },\n            {\n                \"role\": \"user\",\n                \"content\": f\"Update the following plan given the task status below, keep the .md format:\\n{prompt}\\nInclude the current tasks in the improved plan, keep mind of their status and track them with a checklist:\\n{tasks}\\Revised version should comply with the contests of the tasks at hand:\",\n            },\n        ],\n        max_tokens=1500,\n        n=1,\n        temperature=0.5,\n    )\n```\n\n\n## Testing workflow\n\nClone the repo and modify the functionality, when you're done you can run \n```\nzip -ru ../fork/plugins/planner.zip . ; cd ../fork \u0026\u0026 python3 -m autogpt --debug \n```\n\nthen you need to cd back to \n```\ncd ../autogpt-planner-plugin    \n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frihp%2Fautogpt-planner-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frihp%2Fautogpt-planner-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frihp%2Fautogpt-planner-plugin/lists"}