{"id":22086045,"url":"https://github.com/summerwind/gptask","last_synced_at":"2025-10-27T15:05:05.362Z","repository":{"id":265353193,"uuid":"616984424","full_name":"summerwind/gptask","owner":"summerwind","description":"Performs tasks together with GPT.","archived":false,"fork":false,"pushed_at":"2023-04-04T13:26:33.000Z","size":58,"stargazers_count":13,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-07-19T16:22:41.447Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","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/summerwind.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}},"created_at":"2023-03-21T13:28:47.000Z","updated_at":"2025-03-11T10:07:45.000Z","dependencies_parsed_at":"2024-11-29T03:14:41.944Z","dependency_job_id":"b13552fd-5e25-4077-bab4-18f899ecdfdb","html_url":"https://github.com/summerwind/gptask","commit_stats":null,"previous_names":["summerwind/gptask"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/summerwind/gptask","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/summerwind%2Fgptask","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/summerwind%2Fgptask/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/summerwind%2Fgptask/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/summerwind%2Fgptask/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/summerwind","download_url":"https://codeload.github.com/summerwind/gptask/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/summerwind%2Fgptask/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266878572,"owners_count":23999619,"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-07-24T02:00:09.469Z","response_time":99,"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":[],"created_at":"2024-12-01T01:19:19.464Z","updated_at":"2025-10-27T15:05:05.288Z","avatar_url":"https://github.com/summerwind.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gptask\n\n`gptask` is a command-line tool that executes tasks defined in natural language. GPT performs the task for you.\n\nThis project is currently in the 'Proof of Concept' phase. Please be very careful when using this tool, as it can destroy your computer or an external server depending on how you use it.\n\n## Build\n\nTo use this tool, first build the container image as follows:\n\n```\n$ docker build -t gptask:latest .\n```\n\n## How to use\n\n`gptask` is executed as follows. Be sure to set the environment variable `OPENAI_API_KEY` to the OpenAI API Key.\n\n```\n$ docker run -it --rm -v $PWD/workdir:/opt/gptask -e \"OPENAI_API_KEY=$OPENAI_API_KEY\" gptask:latest gptask 'Define the task you want to perform!'\n```\n\n### Example\n\nThe following is an example of `gptask` performing a task to create a file containing a poem.\n\n```\n$ docker run -it --rm -v $PWD/workdir:/opt/gptask -e \"OPENAI_API_KEY=$OPENAI_API_KEY\" gptask:latest gptask 'Your task is to create a file \"poem.txt\" containing a poem you have thought of.'\nStep 1: I need to write a poem and create a file named \"poem.txt\" to store it.\nAction: file\npoem.txt\nI hear America singing, the varied carols I hear;\nThose of mechanics—each one singing his, as it should be, blithe and strong;\nThe carpenter singing his, as he measures his plank or beam,\nThe mason singing his, as he makes ready for work, or leaves off work;\nThe boatman singing what belongs to him in his boat—the deckhand singing on the steamboat deck;\nThe shoemaker singing as he sits on his bench—the hatter singing as he stands;\nThe wood-cutter’s song—the ploughboy’s, on his way in the morning, or at the noon intermission, or at sundown;\nThe delicious singing of the mother—or of the young wife at work—or of the girl sewing or washing—\nEach singing what belongs to him or her, and to none else;\nThe day what belongs to the day—At night, the party of young fellows, robust, friendly,\nSinging, with open mouths, their strong melodious songs.\nsuccess\n\nStep 2: The file \"poem.txt\" has been created, now I need to check the contents of the file.\nAction: shell\ncat poem.txt\nI hear America singing, the varied carols I hear;\nThose of mechanics—each one singing his, as it should be, blithe and strong;\nThe carpenter singing his, as he measures his plank or beam,\nThe mason singing his, as he makes ready for work, or leaves off work;\nThe boatman singing what belongs to him in his boat—the deckhand singing on the steamboat deck;\nThe shoemaker singing as he sits on his bench—the hatter singing as he stands;\nThe wood-cutter’s song—the ploughboy’s, on his way in the morning, or at the noon intermission, or at sundown;\nThe delicious singing of the mother—or of the young wife at work—or of the girl sewing or washing—\nEach singing what belongs to him or her, and to none else;\nThe day what belongs to the day—At night, the party of young fellows, robust, friendly,\nSinging, with open mouths, their strong melodious songs.\n\nStep 3: The contents of the file are correct. I will now mark the task as completed.\nAction: done\n```\n\nNow, you can see that `poem.txt` is actually created.\n\n```\n$ cat workdir/poem.txt\nI hear America singing, the varied carols I hear;\nThose of mechanics—each one singing his, as it should be, blithe and strong;\nThe carpenter singing his, as he measures his plank or beam,\nThe mason singing his, as he makes ready for work, or leaves off work;\nThe boatman singing what belongs to him in his boat—the deckhand singing on the steamboat deck;\nThe shoemaker singing as he sits on his bench—the hatter singing as he stands;\nThe wood-cutter’s song—the ploughboy’s, on his way in the morning, or at the noon intermission, or at sundown;\nThe delicious singing of the mother—or of the young wife at work—or of the girl sewing or washing—\nEach singing what belongs to him or her, and to none else;\nThe day what belongs to the day—At night, the party of young fellows, robust, friendly,\nSinging, with open mouths, their strong melodious songs.\n```\n\n# Disclaimer\n\nPlease note that by using this software, you agree to the following terms:\n\n- The developers of this software shall not be held liable for any damages, losses, or consequences, regardless of the reason, arising from or related to any actions performed using this software. This includes, but is not limited to, direct, indirect, incidental, consequential, or other types of damages that may result from the use or misuse of the software.\n- By using this software, you accept full responsibility for your actions and agree to indemnify and hold harmless the developers from any legal claims or liabilities that may arise in connection with your use of the software.\n\n# License\n\n`gptask` is made available under MIT license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsummerwind%2Fgptask","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsummerwind%2Fgptask","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsummerwind%2Fgptask/lists"}