{"id":14465490,"url":"https://github.com/0xKoda/coders","last_synced_at":"2025-08-29T00:32:29.220Z","repository":{"id":255438496,"uuid":"849087862","full_name":"0xKoda/coders","owner":"0xKoda","description":"AI coding assistant in rust","archived":false,"fork":false,"pushed_at":"2025-03-07T03:07:08.000Z","size":637,"stargazers_count":30,"open_issues_count":0,"forks_count":4,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-22T13:42:13.203Z","etag":null,"topics":["ai","llm","rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/0xKoda.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":"2024-08-29T00:34:15.000Z","updated_at":"2025-04-13T04:14:57.000Z","dependencies_parsed_at":"2024-09-02T02:02:01.813Z","dependency_job_id":"aef47085-d47f-4fd3-a785-5d9bc8c69ade","html_url":"https://github.com/0xKoda/coders","commit_stats":null,"previous_names":["0xkoda/coders"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/0xKoda/coders","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xKoda%2Fcoders","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xKoda%2Fcoders/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xKoda%2Fcoders/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xKoda%2Fcoders/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/0xKoda","download_url":"https://codeload.github.com/0xKoda/coders/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xKoda%2Fcoders/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272589917,"owners_count":24960828,"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-08-28T02:00:10.768Z","response_time":74,"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","llm","rust"],"created_at":"2024-09-02T02:00:30.600Z","updated_at":"2025-08-29T00:32:29.205Z","avatar_url":"https://github.com/0xKoda.png","language":"Rust","funding_links":[],"categories":["Domain-Specific Tools"],"sub_categories":["Language-Specific"],"readme":"# Coders AI Assistant\n\nCoders is an AI-powered terminal user interface (TUI) tool that helps you edit code with any LLM on [OpenRouter](https://openrouter.ai/models).\n\n## Features\n\n- **Interactive TUI Interface**: Fully navigable terminal interface with keyboard shortcuts\n- **Model Selection**: Choose between Claude, Gemini, or any OpenRouter model\n- **Cost Tracking**: Monitor your OpenRouter **credit usage** directly in the app\n- **File Browser**: Easily navigate and select files to modify\n- **Multi-File Context**: Select multiple files to provide better context for AI prompts\n- **Side-by-Side Diff View**: Compare original and modified code before accepting changes\n- **Explanation Panel**: View AI explanations for each code change\n- **Context Window Tracking**: Track the total prompt size and progress of the context window\n\n![Coders AI Assistant](repl.png)\n\n## Getting Started\n\n1. Clone the repository: `git clone https://github.com/0xKoda/coders.git \u0026\u0026 cd coders`\n2. Launch the application with `cargo run`\n3. On first run, you'll be prompted to enter your OpenRouter API key\n4. Navigate the file browser to select a file to modify\n5. Press the appropriate key to perform actions (as shown in the command bar)\n\n## Navigation and Controls\n\nThe application has several modes, each with its own set of controls:\n\n### Global Controls\n- `h`: Access help screen from most modes\n\n### Welcome Screen\n- `Enter`: Continue to configuration or file browser\n- `q`: Quit the application\n\n### Configuration Screen\n- `↑/↓`: Navigate between available models\n- `Enter`: Select model and proceed\n- `Ctrl+A`: Set API key\n\n### File Browser\n- `↑/↓`: Navigate between files\n- `Enter`: Open selected file\n- `m`: Switch to multi-file selection mode\n- `c`: View credits information\n- `q`: Quit the application\n- `s`: Select File\n\n### Multi-File Selection\n- `↑/↓`: Navigate between files\n- `Space`: Toggle selection of current file\n- `Enter`: Confirm selection and proceed to prompt\n- `Esc`: Return to file browser\n\n### Editor View\n- `↑/↓`: Scroll through file content\n- `p`: Enter prompt mode to modify the file\n- `q`: Return to file browser\n\n### Prompt Input\n- Type your request for code modifications\n- `Enter`: Submit prompt\n- `Esc`: Cancel and return to previous screen\n\n### Results View\n- `Tab`: Switch between original and modified code panels\n- `e`: Toggle explanation panel\n- `y`: Accept changes and apply them\n- `n`: Reject changes and return to editor\n- `q`: Return to file browser without applying changes\n- `←/→`: Navigate between files when viewing multi-file diffs\n- `↑/↓`: Scroll Files\n\n### Credits Screen\n- `q`: Return to previous screen\n\n## Commands and Workflow\n\n1. **Select a File**: Navigate the file browser and press `Enter` to open a file\n2. **Provide Context (Optional)**: Press `m` to enter multi-file selection, choose additional files with `Space`, then confirm with `Enter`\n3. **Modify Code**: With a file open, press `p` to enter a prompt describing the changes you want\n4. **Review Changes**: In the diff view, examine the proposed changes and explanation\n5. **Apply Changes**: Press `y` to accept changes or `n` to reject them\n6. **Continue Iterating**: Make additional changes or select different files\n\n## Cost Monitoring\n\nPress `c` in the file browser to view your OpenRouter credits information:\n- Total credits available\n- Total usage so far\n- Last updated time\n\n## Model Selection\n\nBy default, the application uses Claude 3.7 Sonnet. To select a different model:\n1. Start the application\n2. In the configuration screen, use `↑/↓` to select a model\n3. Select \"custom\" to enter any OpenRouter model ID\n\n\n## API Key Management\n\nYour OpenRouter API key is securely stored in your system's configuration directory:\n- To change your API key, press `Ctrl+A` in the configuration screen\n- Enter your new API key and press `Enter`\n\n## Note\n\nMake sure you have a valid OpenRouter API key. The application will prompt you to enter it if it's not already saved.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0xKoda%2Fcoders","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F0xKoda%2Fcoders","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0xKoda%2Fcoders/lists"}