[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-72393":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":16,"stars7d":16,"stars30d":16,"stars90d":16,"forks30d":16,"starsTrendScore":16,"compositeScore":17,"rankGlobal":10,"rankLanguage":10,"license":10,"archived":18,"fork":18,"defaultBranch":19,"hasWiki":20,"hasPages":18,"topics":21,"createdAt":10,"pushedAt":10,"updatedAt":22,"readmeContent":23,"aiSummary":24,"trendingCount":16,"starSnapshotCount":16,"syncStatus":25,"lastSyncTime":26,"discoverSource":27},72393,"o1-engineer","Doriandarko\u002Fo1-engineer","Doriandarko","o1-engineer is a command-line tool designed to assist developers in managing and interacting with their projects efficiently. Leveraging the power of OpenAI's API, this tool provides functionalities such as code generation, file editing, and project planning to streamline your development workflow.","",null,"Python",2847,279,38,8,0,56.34,false,"main",true,[],"2026-06-12 04:01:04","# 🛠️ o1-engineer\n\n![Updated Features](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FFeatures-Updated-brightgreen)\n\nA command-line tool designed to assist developers in managing and interacting with their projects efficiently. Leveraging the power of OpenAI's API, o1-engineer provides functionalities such as code generation, file editing, project planning, and code review to streamline your development workflow.\n\n## NEW\n\nAdded Grok Engineer to the repo. Make sure you add your XAI_API_KEY in your .env file.\nAdded Streaming.\n\n## 🛠️ Updated Features\n\n- **Enhanced File and Folder Management**: The `\u002Fadd` and `\u002Fedit` commands now support adding and modifying both files and folders, providing greater flexibility in managing your project structure.\n- **Project Planning**: Introducing the `\u002Fplanning` command, which allows users to create comprehensive project plans that can be used to generate files and directories systematically.\n- **Advanced Workflows**: New examples demonstrate how to integrate planning and creation commands for efficient project setup.\n\n## ✨ Features\n\n- **Automated Code Generation**: Generate code for your projects effortlessly.\n\n- **File Management**: Add, edit, and manage project files directly from the command line.\n\n- **Interactive Console**: User-friendly interface with rich text support for enhanced readability.\n\n- **Conversation History**: Save and reset conversation histories as needed.\n\n- **Code Review**: Analyze and review code files for quality and suggestions.\n\n- **Enhanced File and Folder Management**: The `\u002Fadd` and `\u002Fedit` commands now support adding and modifying both files and folders, providing greater flexibility in managing your project structure.\n\n- **Project Planning**: Introducing the `\u002Fplanning` command, which allows users to create comprehensive project plans that can be used to generate files and directories systematically.\n\n## 💡 How the Script Works\n\n1. **Initialization**: The script initializes global variables and sets up the OpenAI client using the provided API key.\n\n2. **Handling User Commands**: It listens for user commands such as `\u002Fedit`, `\u002Fcreate`, `\u002Fadd`, `\u002Freview`, and the new `\u002Fplanning` command, processing them accordingly.\n\n3. **Processing File and Folder Modifications**: Based on the user's instructions, the script modifies files and folders, adds new content, or creates new files and folders as needed. The `\u002Fadd` and `\u002Fedit` commands have been enhanced to support both files and folders, providing greater flexibility in project management.\n\n4. **Project Planning**: The newly introduced `\u002Fplanning` command allows users to create comprehensive project plans, which the script can use to generate files and directories systematically using the `\u002Fcreate` command.\n\n5. **AI-Generated Instructions**: The tool interacts with OpenAI's API to generate instructions and suggestions for code generation, editing, project planning, and reviewing.\n\n6. **Applying Changes**: Changes are applied to the project files and folders based on the AI-generated instructions, ensuring that the project stays up-to-date and well-maintained.\n\n7. **Managing Conversation History and Added Files**: The script manages the conversation history and keeps track of files and folders added to the context, allowing users to reset or modify the history as needed.\n\n## 📥 Installation\n\n### Prerequisites\n\n- **Python**: Ensure you have Python 3.7 or higher installed. [Download Python](https:\u002F\u002Fwww.python.org\u002Fdownloads\u002F)\n\n- **OpenAI API Key**: Obtain an API key from [OpenAI](https:\u002F\u002Fplatform.openai.com\u002F).\n\n### 🔧 Steps\n\n1. **Clone the Repository**:\n\n   ```bash\n   git clone https:\u002F\u002Fgithub.com\u002Fdoriandarko\u002Fo1-engineer.git\n   ```\n\n2. **Navigate to the Project Directory**:\n\n   ```bash\n   cd o1-engineer\n   ```\n\n3. **Install Dependencies**:\n\n   ```bash\n   pip install -r requirements.txt\n   ```\n\n4. **Configure APIs**:\n\n   Add your API key at the top of the script\n\n   ```\n   client = OpenAI(api_key=\"YOUR API\")\n   ```\n\n## 📚 Usage\n\nLaunch the application using the following command:\n\n```bash\npython o1-eng.py\n```\n\n### 🎮 Available Commands\n\n- `\u002Fedit`: Edit files or folders (followed by file or folder paths)\n\n- `\u002Fcreate`: Create files or folders (followed by instructions)\n\n- `\u002Fadd`: Add files or folders to context (followed by file or folder paths)\n\n- `\u002Fplanning`: Plan project structure and tasks (followed by instructions)\n\n- `\u002Fdebug`: Print the last AI response\n\n- `\u002Freset`: Reset chat context and clear added files\n\n- `\u002Freview`: Review and analyze code files for quality and potential improvements (followed by file or folder paths)\n\n- `\u002Fquit`: Exit the program\n\n### 🚀 Advanced Workflows\n\nHere's an example workflow that demonstrates using `\u002Fplanning` followed by `\u002Fcreate` to generate files based on the created plan:\n\n1. **Planning the Project**:\n\n   ```bash\n   You: \u002Fplanning Create a basic web application with the following structure:\n   \n   - A frontend folder containing HTML, CSS, and JavaScript files.\n   \n   - A backend folder with server-side scripts.\n   \n   - A README.md file with project documentation.\n   ```\n\n2. **Creating the Project Structure based on the Plan**:\n\n   ```bash\n   You: \u002Fcreate Generate the project structure based on the above plan.\n   ```\n\nThis demonstrates how to use the new `\u002Fplanning` command to define a project structure, and then `\u002Fcreate` to generate the files and folders accordingly.\n\n### 📝 Examples\n\n```bash\nYou: \u002Fadd src\u002Fmain.py src\u002Futils\u002Fhelper.py src\u002Fmodels\u002F\n\nYou: \u002Fplanning Outline a RESTful API project with separate folders for models, views, and controllers.\n\nYou: \u002Fcreate Set up the basic structure for a RESTful API project with models, views, and controllers folders, including initial files.\n\nYou: \u002Fedit src\u002Fmain.py src\u002Fmodels\u002Fuser.py src\u002Fviews\u002Fuser_view.py\n```\n\n## 🤝 Contributing\n\nWe welcome contributions! Please follow these steps:\n\n1. Fork the repository.\n\n2. Create a new branch (`git checkout -b feature\u002FYourFeature`).\n\n3. Commit your changes (`git commit -m 'Add some feature'`).\n\n4. Push to the branch (`git push origin feature\u002FYourFeature`).\n\n5. Open a pull request.\n\n## 🙏 Acknowledgments\n\n- OpenAI for providing the powerful API.\n\n## Star History\n\n[![Star History Chart](https:\u002F\u002Fapi.star-history.com\u002Fsvg?repos=Doriandarko\u002Fo1-engineer&type=Date)](https:\u002F\u002Fstar-history.com\u002F#Doriandarko\u002Fo1-engineer&Date)\n","o1-engineer 是一个命令行工具，旨在帮助开发者高效管理和交互其项目。它利用 OpenAI 的 API 提供代码生成、文件编辑、项目规划和代码审查等功能，以简化开发工作流程。核心功能包括自动代码生成、文件和文件夹管理、项目规划以及通过 AI 生成的指令进行代码审查等。该工具适用于需要快速搭建项目结构、自动化生成代码及日常开发任务管理的场景，尤其适合希望提高开发效率和代码质量的开发者使用。",2,"2026-06-11 03:41:50","high_star"]