{"id":49593057,"url":"https://github.com/dimuzzo/ai-terminal","last_synced_at":"2026-05-04T01:40:32.914Z","repository":{"id":350331509,"uuid":"1206248627","full_name":"dimuzzo/ai-terminal","owner":"dimuzzo","description":null,"archived":false,"fork":false,"pushed_at":"2026-04-09T21:09:48.000Z","size":240,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-09T23:15:25.463Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/dimuzzo.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-04-09T18:15:16.000Z","updated_at":"2026-04-09T21:09:52.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/dimuzzo/ai-terminal","commit_stats":null,"previous_names":["dimuzzo/ai-terminal"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/dimuzzo/ai-terminal","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dimuzzo%2Fai-terminal","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dimuzzo%2Fai-terminal/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dimuzzo%2Fai-terminal/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dimuzzo%2Fai-terminal/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dimuzzo","download_url":"https://codeload.github.com/dimuzzo/ai-terminal/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dimuzzo%2Fai-terminal/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32591603,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-03T22:12:39.696Z","status":"ssl_error","status_checked_at":"2026-05-03T22:09:10.534Z","response_time":103,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2026-05-04T01:40:30.714Z","updated_at":"2026-05-04T01:40:32.906Z","avatar_url":"https://github.com/dimuzzo.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🚀 AI-Terminal: Self-Learning Local CLI\n\nA blazing-fast, custom terminal emulator powered by Rust (Tauri), React, and xterm.js, integrated with a local LLM (Qwen) via Ollama. \n\nThis is not just an AI chat wrapper. The ultimate goal of this project is to collect user commands and AI outputs locally to build a personalized dataset for future fine-tuning (LoRA), making the terminal natively adapted to your specific workflow.\n\n## Features\n- **Local AI Inference:** Completely offline, privacy-first AI responses using local models.\n- **High Performance:** Built on Tauri and Rust for minimal overhead.\n- **Native Rendering:** Uses `xterm.js` for an authentic terminal experience.\n- **Data Collection:** Silently builds a `.jsonl` dataset of prompt-completion pairs.\n- **Custom System Commands:** Intercepts standard OS commands (like `dir` or `ls`) for clean, privacy-focused outputs.\n\n## Prerequisites\n- [Node.js](https://nodejs.org/) \u0026 npm\n- [Rust](https://rustup.rs/)\n- [Ollama](https://ollama.com/)\n- **For Training:** Python 3.11 \u0026 NVIDIA GPU\n\n## Installation \u0026 Setup (Terminal Application)\n\n1. **Clone the repository:**\n   ```bash\n   git clone https://github.com/dimuzzo/ai-terminal.git\n   cd ai-terminal\n   ```\n\n2. **Install frontend dependencies:**\n   ```bash\n   npm install\n   ```\n\n3. **Start the local AI model:**\n\n   Open a separate terminal and run:\n   ```bash\n   ollama run qwen2.5:1.5b\n   ```\n\n4. **Launch the terminal:**\n   ```bash\n   npm run tauri dev\n   ```\n\n## Local Fine-Tuning Pipeline (WIP)\nTo train the model on your collected data (`dataset.jsonl`), we use Unsloth for highly optimized, low-VRAM LoRA fine-tuning.\n\n1. Navigate to the training directory:\n   ```bash\n   cd training-pipeline\n   ```\n2. Create and activate a Python 3.11 virtual environment:\n   ```bash\n   # Windows\n   C:\\path\\to\\python3.11.exe -m venv venv\n   .\\venv\\Scripts\\activate\n   ```\n3. Install dependencies:\n   ```bash\n   pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu121\n   pip install \"unsloth[colab-new] @ git+https://github.com/unslothai/unsloth.git\"\n   pip install trl peft accelerate bitsandbytes\n   ```\n4. Run the training script:\n   ```bash\n   python train.py\n   ```\n5. Export the trained adapter to GGUF format:\n   ```bash\n   python export.py\n   ```\n6. Load your new custom brain into Ollama:\n   ```bash\n   cd ai-terminal-custom_gguf\n   ollama create ai-terminal-custom -f Modelfile\n   ```\n\n## Stack\n- **Frontend**: React, TypeScript, xterm.js\n- **Backend**: Rust, Tauri\n- **AI Engine**: Ollama (Inference) / PyTorch \u0026 Unsloth (Training)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdimuzzo%2Fai-terminal","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdimuzzo%2Fai-terminal","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdimuzzo%2Fai-terminal/lists"}