{"id":14964777,"url":"https://github.com/rbourgeat/refacto","last_synced_at":"2025-10-25T10:30:38.812Z","repository":{"id":227605010,"uuid":"771912923","full_name":"rbourgeat/refacto","owner":"rbourgeat","description":"Refactor your code with local LLM in VSCode","archived":false,"fork":false,"pushed_at":"2024-03-14T12:17:09.000Z","size":91,"stargazers_count":13,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-10-29T09:00:39.637Z","etag":null,"topics":["code","llama","llamacpp","llm","plugin","vscode"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rbourgeat.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":"2024-03-14T07:22:41.000Z","updated_at":"2024-08-06T17:28:47.000Z","dependencies_parsed_at":"2024-03-14T08:20:36.890Z","dependency_job_id":"69a14663-9f2d-4bbb-9769-5bd22d742471","html_url":"https://github.com/rbourgeat/refacto","commit_stats":{"total_commits":3,"total_committers":3,"mean_commits":1.0,"dds":0.6666666666666667,"last_synced_commit":"30ffbdef2ab92be62c5a0eed08749b04761453aa"},"previous_names":["rbourgeat/refacto"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rbourgeat%2Frefacto","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rbourgeat%2Frefacto/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rbourgeat%2Frefacto/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rbourgeat%2Frefacto/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rbourgeat","download_url":"https://codeload.github.com/rbourgeat/refacto/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238120374,"owners_count":19419761,"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":["code","llama","llamacpp","llm","plugin","vscode"],"created_at":"2024-09-24T13:33:45.973Z","updated_at":"2025-10-25T10:30:33.527Z","avatar_url":"https://github.com/rbourgeat.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Refacto\n\nRefacto is a Visual Studio Code extension that allows you to refactor your code using an **local AI model**. The extension sends your selected code to a server running the Llama CPP model, which returns a refactored version of your code.\n\n## Features\n\n- **Refactor Selected Code**: Simply select the code you want to refactor, right-click, and choose \"**✨ Refacto selected code**\" from the context menu.\n\n## Requirements\n\n- [a llama cpp server](https://github.com/ggerganov/llama.cpp)\n- vscode\n\n## Installation\n\n1. Install Visual Studio Code 1.50.0 or higher\n2. Launch Code\n3. From the command palette `Ctrl-Shift-P` (Windows, Linux) or `Cmd-Shift-P` (OSX)\n4. Select `Install Extension`\n5. Choose the extension `refacto`\n6. Reload Visual Studio Code\n\n## Build\n\n```bash\nnpm i\nnpm run compile\n```\n\n## Usage\n\n1. Select the code you want to refactor.\n2. Right-click and choose \"✨ Refacto selected code\" from the context menu.\n3. The refactored code will replace your selected code.\n\n## Configuration\n\n- `llama-cpp.serverUrl`: URL of the Llama CPP server. Default is `http://127.0.0.1:8080/completion`.\n\n## Contributing\n\nIf you find any bugs or have a feature request, please open an issue on [github](https://github.com/rbourgeat/refacto)!\n\n## License\n\n[MIT](https://github.com/rbourgeat/refacto/blob/main/LICENSE)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frbourgeat%2Frefacto","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frbourgeat%2Frefacto","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frbourgeat%2Frefacto/lists"}