{"payload":{"feedbackUrl":"https://github.com/orgs/community/discussions/53140","repo":{"id":821552536,"defaultBranch":"main","name":"claude-engineer","ownerLogin":"PierrunoYT","currentUserCanPush":false,"isFork":true,"isEmpty":false,"createdAt":"2024-06-28T20:04:11.000Z","ownerAvatar":"https://avatars.githubusercontent.com/u/95778421?v=4","public":true,"private":false,"isOrgOwned":false},"refInfo":{"name":"","listCacheKey":"v0:1720091523.0","currentOid":""},"activityList":{"items":[{"before":"5711cd5f0a34f1403043347be840b1b0a777a764","after":"8d4bd5ad711fdc1de59724f948224ba5d8c88afe","ref":"refs/heads/feature/openrouter-integration","pushedAt":"2024-07-04T11:17:38.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"PierrunoYT","name":null,"path":"/PierrunoYT","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/95778421?s=80&v=4"},"commit":{"message":"Integrate OpenRouter API and Environment Variables\n\nTitle: Integrate OpenRouter API and Environment Variables\n\nBranch: feature/openrouter-integration\n\nDescription:\nThis pull request adds support for the OpenRouter API and introduces environment variable management for secure configuration.\n\nChanges:\n1. Add a new .env file for environment variables\n2. Update .gitignore to exclude .env file\n3. Add python-dotenv to requirements.txt\n4. Modify main.py to use OpenRouter API and load environment variables\n5. Update README.md with new features and setup instructions\n\nFiles changed:\n- .env (new file)\n- .gitignore\n- requirements.txt\n- main.py\n- readme.md\n\nDetailed changes:\n\n1. Create a new .env file:\n```\nANTHROPIC_API_KEY=your_anthropic_api_key_here\nOPENROUTER_API_KEY=your_openrouter_api_key_here\nTAVILY_API_KEY=your_tavily_api_key_here\n```\n\n2. Update .gitignore:\n```\n# Existing content\n...\n\n# Environment variables\n.env\n```\n\n3. Update requirements.txt:\n```\n# Existing requirements\n...\npython-dotenv==0.19.2\n```\n\n4. Modify main.py:\n```python\nimport os\nfrom dotenv import load_dotenv\nimport openai\n\n# Load environment variables\nload_dotenv()\n\n# Set up OpenAI client with OpenRouter\nopenai.api_key = os.getenv(\"OPENROUTER_API_KEY\")\nopenai.api_base = os.getenv(\"OPENROUTER_BASE_URL\")\n\n# Rest of the existing code\n...\n\n# Update the chat completion call\nresponse = openai.ChatCompletion.create(\n model=\"openai/gpt-3.5-turbo\",\n messages=[\n {\"role\": \"system\", \"content\": \"You are a helpful assistant.\"},\n {\"role\": \"user\", \"content\": user_input}\n ]\n)\n\n# Rest of the existing code\n...\n```\n\n5. Update README.md:\n- Add information about new features: environment variable management and OpenRouter API integration\n- Update installation instructions to include setting up the .env file\n- Add a new section explaining environment variables and OpenRouter integration\n\nThis pull request enhances the security and flexibility of the application by using environment variables for sensitive information and integrates the OpenRouter API for improved AI capabilities. It also updates the README to reflect these changes and provide users with updated setup instructions.","shortMessageHtmlLink":"Integrate OpenRouter API and Environment Variables"}},{"before":null,"after":"5711cd5f0a34f1403043347be840b1b0a777a764","ref":"refs/heads/feature/openrouter-integration","pushedAt":"2024-07-04T11:12:03.000Z","pushType":"branch_creation","commitsCount":0,"pusher":{"login":"PierrunoYT","name":null,"path":"/PierrunoYT","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/95778421?s=80&v=4"},"commit":{"message":"Update main.py","shortMessageHtmlLink":"Update main.py"}},{"before":"c6e17428663120017d39f30d27803069a17ca488","after":"5711cd5f0a34f1403043347be840b1b0a777a764","ref":"refs/heads/main","pushedAt":"2024-07-04T11:11:21.000Z","pushType":"push","commitsCount":5,"pusher":{"login":"PierrunoYT","name":null,"path":"/PierrunoYT","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/95778421?s=80&v=4"},"commit":{"message":"Update main.py","shortMessageHtmlLink":"Update main.py"}},{"before":"9cee3618083c1b0d608f8cb713aa58bec851cb60","after":null,"ref":"refs/heads/PierrunoYT/SplittedFiles","pushedAt":"2024-07-04T09:24:12.000Z","pushType":"branch_deletion","commitsCount":0,"pusher":{"login":"PierrunoYT","name":null,"path":"/PierrunoYT","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/95778421?s=80&v=4"}},{"before":"b3d2ab06ad328ce45489dc9be810fe43ae629731","after":"c6e17428663120017d39f30d27803069a17ca488","ref":"refs/heads/main","pushedAt":"2024-06-29T09:50:06.000Z","pushType":"push","commitsCount":2,"pusher":{"login":"PierrunoYT","name":null,"path":"/PierrunoYT","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/95778421?s=80&v=4"},"commit":{"message":"Update readme.md to add the new automode impromevents","shortMessageHtmlLink":"Update readme.md to add the new automode impromevents"}},{"before":"b3d2ab06ad328ce45489dc9be810fe43ae629731","after":"9cee3618083c1b0d608f8cb713aa58bec851cb60","ref":"refs/heads/PierrunoYT/SplittedFiles","pushedAt":"2024-06-29T09:49:10.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"PierrunoYT","name":null,"path":"/PierrunoYT","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/95778421?s=80&v=4"},"commit":{"message":"Refactor main.py, Update README.md, and Implement .env for API Keys\n\n# Refactor main.py, Update README.md, and Implement .env for API Keys\n\nThis pull request introduces significant improvements to the Claude Engineer project structure, documentation, and security.\n\n## Changes\n\n1. Refactored `main.py` into multiple files for better modularity:\n - `config.py`: Configuration settings and constants\n - `utils.py`: Utility functions\n - `file_operations.py`: File and folder operations\n - `tools.py`: Tool definitions and execution\n - `claude_chat.py`: Claude interaction logic\n - `main.py`: Entry point (updated)\n\n2. Implemented `.env` file for secure API key storage:\n - Updated `config.py` to use environment variables\n - Added instructions in README.md for setting up `.env` file\n\n3. Updated `README.md` with:\n - Detailed project description\n - Enhanced features list\n - Updated installation instructions, including .env setup\n - New project structure overview\n - Expanded usage instructions, including Autonomous mode\n - Available tools description\n - Contributing guidelines\n - License information\n - Acknowledgements\n\n4. Improved code organization and readability across all files\n\n5. Enhanced error handling and logging in various functions\n\n6. Updated API key handling to use environment variables for better security\n\n## Benefits\n\n- Improved maintainability and scalability of the codebase\n- Better separation of concerns with modular file structure\n- Enhanced documentation for easier onboarding and usage\n- Increased security with proper API key management using .env file\n- Clearer contribution guidelines for potential collaborators\n\n## Testing\n\nAll functionality has been manually tested to ensure it works as expected after the refactoring. Unit tests should be added in a future PR to increase code reliability.","shortMessageHtmlLink":"Refactor main.py, Update README.md, and Implement .env for API Keys"}},{"before":null,"after":"b3d2ab06ad328ce45489dc9be810fe43ae629731","ref":"refs/heads/PierrunoYT/SplittedFiles","pushedAt":"2024-06-29T09:43:12.000Z","pushType":"branch_creation","commitsCount":0,"pusher":{"login":"PierrunoYT","name":null,"path":"/PierrunoYT","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/95778421?s=80&v=4"},"commit":{"message":"Update main.py","shortMessageHtmlLink":"Update main.py"}}],"hasNextPage":false,"hasPreviousPage":false,"activityType":"all","actor":null,"timePeriod":"all","sort":"DESC","perPage":30,"cursor":"djE6ks8AAAAEdtQyGwA","startCursor":null,"endCursor":null}},"title":"Activity ยท PierrunoYT/claude-engineer"}