{"id":23725987,"url":"https://github.com/voidful/aidev","last_synced_at":"2025-09-04T02:31:25.356Z","repository":{"id":151795731,"uuid":"624586030","full_name":"voidful/aidev","owner":"voidful","description":"Revolutionize your development workflow with AI-powered code assistance, automating mock tests, suggestions, and unit test generation in a single Python CLI tool.","archived":false,"fork":false,"pushed_at":"2024-11-06T08:51:07.000Z","size":26,"stargazers_count":35,"open_issues_count":1,"forks_count":5,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-11-06T09:35:15.276Z","etag":null,"topics":["chatgpt","gpt4","gpt4-api","mldevops","precommit-hooks","tdd","testing","unittest"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/voidful.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-04-06T19:59:14.000Z","updated_at":"2024-11-06T08:51:11.000Z","dependencies_parsed_at":null,"dependency_job_id":"958940c3-a71d-4db2-9230-0af2aada75e1","html_url":"https://github.com/voidful/aidev","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/voidful%2Faidev","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/voidful%2Faidev/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/voidful%2Faidev/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/voidful%2Faidev/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/voidful","download_url":"https://codeload.github.com/voidful/aidev/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":231926492,"owners_count":18447071,"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","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":["chatgpt","gpt4","gpt4-api","mldevops","precommit-hooks","tdd","testing","unittest"],"created_at":"2024-12-31T00:18:06.784Z","updated_at":"2024-12-31T00:18:07.535Z","avatar_url":"https://github.com/voidful.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n  \u003cdiv\u003e\n    \u003ch1 align=\"center\"\u003eAI Dev\u003c/h1\u003e\n  \u003c/div\u003e\n  \u003cp\u003e\n    \u003cstrong\u003e\n    Are you tired of making small code changes only to have a series of CI tests fail afterward? \u003cbr\u003e \n    Introducing an AI-powered(Chatgpt/gpt4) solution to \u003cbr\u003e \n    \u003c/strong\u003e\n  \u003c/p\u003e\n\n  \u003cp\u003e✨ Run mock tests before committing\u003c/p\u003e\n  \u003cp\u003e🚀 Get valuable suggestions to improve your code before you commit\u003c/p\u003e\n  \u003cp\u003e🛠 Automatically generate unit tests for your code changes before committing\u003c/p\u003e\n  \u003cp\u003e📝 Generate insightful commit messages automatically based on your code changes\u003c/p\u003e\n\n  \u003ca href=\"https://pypi.org/project/aidev/\"\u003e\n        \u003cimg alt=\"PyPI\" src=\"https://img.shields.io/pypi/v/aidev\"\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://github.com/voidful/aidev\"\u003e\n        \u003cimg alt=\"Download\" src=\"https://img.shields.io/pypi/dm/aidev\"\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://github.com/voidful/aidev\"\u003e\n        \u003cimg alt=\"Last Commit\" src=\"https://img.shields.io/github/last-commit/voidful/aidev\"\u003e\n    \u003c/a\u003e\n\u003c/div\u003e\n\n---\n\n## 🌟 Features\n\n- Run mock tests on your latest code changes before committing, powered by AI\n- Get actionable code improvement suggestions to optimize your codebase\n- Automatically generate unit tests for your code changes, saving you time and effort\n- Easy-to-use CLI with configuration options for a tailored experience\n- Improve code quality, reduce technical debt, and increase confidence in your commits\n\n## 📦 Installation\n\nInstall the AI Test package using pip:\n\n```bash\npip install aidev\n```\n\n## 🚀 Quick Start\n\nAfter installation, use the aidev command to analyze your code changes:\n\n```bash\naidev\n```\n\nYou can customize the behavior of the CLI using various options:\n\n```bash\naidev --threshold 0.8 --engine gpt-3.5-turbo --max-tokens 400\n```\n\nFor more information on available options, run:\n\n```bash\naidev --help\n```\n\n### ⚙️ Configuration\n\nAI Tester allows you to configure various settings to better suit your needs. To manage and edit these configurations,\nuse the `aidev-config` CLI command.\n\n#### Configurable settings include:\n\n- **API Key**: Store your OpenAI API key in a local configuration file. The CLI tool will guide you through entering and\n  storing the key the first time you use it.\n- **Threshold**: Set the confidence threshold for the AI-generated results (ranging from 0.0 to 1.0).\n- **Engine**: Choose the GPT engine to use (e.g., \"gpt-3.5-turbo\", \"gpt-4\", \"gpt-4-32k\").\n- **Max Tokens**: Specify the maximum number of tokens in the AI-generated response.\n- **Language**: Set the output language for the AI-generated response.\n\n#### Configuration management:\n\nThe `aidev-config` CLI command allows you to view, add, update, or remove configuration settings. The command provides a\nuser-friendly interface to manage your settings.\n\nTo set up and manage the configuration, follow these steps:\n\n1. Run the `aidev-config` command with the desired subcommand, e.g., `aidev-config set-api-key \u003cyour-api-key\u003e`.\n2. The CLI will update the configuration with the provided value.\n3. Use `aidev-config show-config` to view the current configuration settings.\n\nThe main CLI tool, `aidev`, reads the configuration settings and applies them when generating AI responses, ensuring a\ncustomized experience based on your preferences.\n\n### 📚 How it works\n\nAI Test harnesses the power of OpenAI's GPT-4 to provide real-time assistance for developers. When you run the CLI tool\nwith your code changes, it performs the following steps:\n\n- Retrieve code changes: The tool first runs git diff to capture the latest code changes in your repository.\n- Generate a prompt: Depending on your chosen action (mock test, code suggestions, or unit test generation), the CLI\n  tool creates a prompt for the AI model to understand the task.\n- Interact with GPT-4: The tool sends the prompt to GPT-4, which processes the information and generates a relevant\n  response.\n- Display the results: The AI-generated results are displayed in the CLI, providing you with mock test outcomes, code\n  improvement suggestions, or unit test examples based on your request.\n\nBy leveraging AI technology, AI Test streamlines your development process, making it more efficient, accurate, and\nenjoyable.\n\n### 🌱 Contribute\n\nWe welcome contributions! Feel free to open issues, submit pull requests, or start discussions on improving AI Test.\n\n### 📃 License\n\nThis project is licensed under the MIT License.\n\n#### 🚀 Empower your code commit workflow with AI Test today! Give it a try, and don't forget to ⭐️ the repository if you find it helpful!\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvoidful%2Faidev","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvoidful%2Faidev","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvoidful%2Faidev/lists"}