{"id":24304157,"url":"https://github.com/kotivskyi/ai-project-refactoring","last_synced_at":"2026-07-09T13:31:05.649Z","repository":{"id":272491111,"uuid":"916645954","full_name":"Kotivskyi/ai-project-refactoring","owner":"Kotivskyi","description":"Testing AI refactoring suggestions on realworld project","archived":false,"fork":false,"pushed_at":"2025-01-18T18:14:20.000Z","size":279,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-06T04:37:42.984Z","etag":null,"topics":["ai","aicodeassistant","llvm","refactoring-tools"],"latest_commit_sha":null,"homepage":"","language":null,"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/Kotivskyi.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,"zenodo":null}},"created_at":"2025-01-14T14:02:01.000Z","updated_at":"2025-01-18T18:14:22.000Z","dependencies_parsed_at":"2025-01-14T20:03:46.348Z","dependency_job_id":"4be86c67-ee8b-4484-a8f5-68272d9a4b47","html_url":"https://github.com/Kotivskyi/ai-project-refactoring","commit_stats":null,"previous_names":["kotivskyi/ai-project-refactoring"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Kotivskyi/ai-project-refactoring","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kotivskyi%2Fai-project-refactoring","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kotivskyi%2Fai-project-refactoring/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kotivskyi%2Fai-project-refactoring/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kotivskyi%2Fai-project-refactoring/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Kotivskyi","download_url":"https://codeload.github.com/Kotivskyi/ai-project-refactoring/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kotivskyi%2Fai-project-refactoring/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278931652,"owners_count":26070789,"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":["ai","aicodeassistant","llvm","refactoring-tools"],"created_at":"2025-01-17T01:16:40.148Z","updated_at":"2025-10-08T10:57:26.782Z","avatar_url":"https://github.com/Kotivskyi.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# ai-refactoring-suggestions\nTesting AI refactoring suggestions on real-world project\n\nProject used for analysis: https://github.com/abi/screenshot-to-code\n\nToken counter:  https://github.com/felvin-search/token-count\n\n**Models Tested:**\n- O1\n- Gemini-2.0-flash-thinking-exp\n- Claude-sonnet-3.5-sonnet-20240620\n- ChatGPT-4o\n- DeepThink\n\n**Context:**\nProject_summary.md (332387 tokens). Generated using [code2prompt](https://github.com/raphaelmansuy/code2prompt)\n\n\n**Prompt:** \n\"Here's our current code base  @project_summary.md. Can you propose improvements or a refactoring plan? Give me a bullet list of such improvements with priorities (High/Medium/Low) and a short explanation of why this improvement is needed and what has to be done for each item.\"\n\n\n## Suggested Improvements Comparison (O1 vs Gemini)\n\n| Improvement                                        | O1 (Priority) | Gemini-2.0-flash-thinking-exp (Priority) | Subjective Ranking |\n| ------------------------------------------------- | ------------- | ---------------------------------------- | ------------- |\n| Centralize Configuration Files                    | ❌            | ✅ (High)                                | (Medium) Makes sense, Configs will be easier to support in the future         |\n| Improve Component Organization in Frontend        | ✅ (High)     | ✅ (High)                                | (High) Definitely worth doing, high risk of having spaghetti code              |\n| Standardize Naming Conventions / Linter Rules     | ✅ (Medium)   | ✅ (Medium)                              | (High) A good linter should be able to solve it              |\n| Group Backend Routes                              | ❌            | ✅ (Medium)                              | (Medium-Low) Only if we are planning to add more routes             |\n| Review Utility and Helper Functions               | ✅ (Medium)   | ✅ (Low)                                 | (Medium) Worth checking if there are any duplicates. Why are there 2 places for utility functions?           |\n| Consolidate Test Directories                      | ✅ (Low)      | ✅ (Low)                                 | (Medium) Definitely YES              |\n| Add Consistent Error Handling                     | ✅ (High)     | ❌                                       | (Medium) Good point, especially if we are aiming for good code quality and not just a demo            |\n| Improve TypeScript Strictness                     | ✅ (High)     | ❌                                       | (Low) Up to the taste of developers. TypeScript strictness is kind of painful already            |\n| Extract Reusable Layout Components                | ✅ (Medium)   | ❌                                       | (Low) Sounds good, but need to take a look at what can be reused               |\n| Improve Comments and Documentation                | ✅ (Low)      | ❌                                       | (Medium) It is always a trade-off between development speed and documentation, if there was a way to employ AI to do it              |\n| Optimize for Performance Where Relevant           | ✅ (Low)      | ❌                                       | (Low) Only spend time on it if there is a clear bottleneck              |\n| Enhance Testing Coverage                          | ✅ (Low)      | ❌                                       | (Medium) Maybe let AI do it. Never seen a developer willing to add tests when a feature is already working.              | \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkotivskyi%2Fai-project-refactoring","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkotivskyi%2Fai-project-refactoring","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkotivskyi%2Fai-project-refactoring/lists"}