{"id":26626663,"url":"https://github.com/anongecko/rustfig-beta","last_synced_at":"2025-03-24T11:19:23.644Z","repository":{"id":282466419,"uuid":"948692310","full_name":"anongecko/rustfig-beta","owner":"anongecko","description":"A merge of Fig and Amazon Q written in rust, supporting all major API providers, Ollama, 100% open source, and will always be free.","archived":false,"fork":false,"pushed_at":"2025-03-14T19:57:03.000Z","size":95,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-14T20:33:30.769Z","etag":null,"topics":[],"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/anongecko.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":"2025-03-14T19:33:26.000Z","updated_at":"2025-03-14T19:57:07.000Z","dependencies_parsed_at":"2025-03-15T11:31:19.078Z","dependency_job_id":null,"html_url":"https://github.com/anongecko/rustfig-beta","commit_stats":null,"previous_names":["anongecko/rustfig-beta-"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anongecko%2Frustfig-beta","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anongecko%2Frustfig-beta/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anongecko%2Frustfig-beta/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anongecko%2Frustfig-beta/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/anongecko","download_url":"https://codeload.github.com/anongecko/rustfig-beta/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245258215,"owners_count":20585977,"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":[],"created_at":"2025-03-24T11:19:23.190Z","updated_at":"2025-03-24T11:19:23.637Z","avatar_url":"https://github.com/anongecko.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"DO NOT TRY TO USE THIS YET. Coming v soon.\n\n# RustFig: Ultra-Fast Terminal Assistant (Fig meets Amazon Q)\n\n**RustFig** is a blazingly fast, context-aware terminal assistant built entirely in Rust. It brings modern IDE-like features to your terminal with **zero latency** and **complete privacy**. Think of Amazon Q or Warp terminal suggestions, but open-source, lightweight, and running entirely on your machine.\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"assets/rustfig-demo.gif\" alt=\"RustFig Demo\" width=\"600\"/\u003e\n\u003c/p\u003e\n\n## ✨ Key Features\n\n### 🚀 Ultra-Fast Suggestion Dropdowns\n- **Context-aware suggestions** appear in a sleek dropdown interface as you type\n- **Sub-5ms response time** guaranteed on all operations (even on modest hardware)\n- **Zero latency** ghost text suggestions that feel like magic\n- **Rich visualizations** with file/command icons, syntax highlighting, and more\n\n### 🔒 100% Privacy-Focused\n- **No telemetry or data collection** - your commands stay on your machine\n- **No network requests** for core functionality\n- **Optional AI** features are explicit and configurable\n- **Self-host everything** including AI capabilities\n- **Open source** codebase you can audit\n\n### 🧠 Terminal Intelligence\n- **Project-aware** suggestions based on context (Git, Docker, language-specific)\n- **Learns from your usage patterns** for personalized suggestions\n- **Predictive command intelligence** offers commands before you type them\n- **Shell syntax awareness** for bash, zsh, and fish\n- **Path completion** with file type detection and previews\n- **Command flag suggestions** with documentation\n\n### 💬 AI Terminal Assistant\n- **Chat with AI directly** in your terminal (`rustfig ask \"How do I...\"`)\n- **Support for multiple AI providers**:\n  - OpenAI (including Azure OpenAI)\n  - Anthropic Claude models\n  - Local models via Ollama\n  - Any OpenAI-compatible API\n- **Conversation memory** for contextual discussions\n- **Command explanations** for any terminal command\n- **Error analysis** to fix broken commands\n\n### 🎨 Highly Customizable\n- **Extensive configuration options** via YAML files\n- **Growing theme collection** for terminal integration\n- **Fully customizable keybindings**\n- **Terminal-specific optimizations**\n- **Configurable UI elements** (icons, animations, colors)\n\n### ⚡️ Lightweight \u0026 Efficient\n- **Minimal resource usage** (~15-30MB RAM)\n- **No background processes** when idle\n- **Optimized for Apple Silicon** and modern CPUs\n- **Works over SSH** connections seamlessly\n- **Fast startup time** (\u003c100ms)\n\n### 🔌 Modern Integration\n- **Works with all major terminals** and shells\n- **SSH-aware** for remote connections\n- **Plugin system** for extensibility\n- **Cross-platform** support (macOS, Linux, WSL)\n\n## 📦 Installation\n\n### One-Line Install (macOS \u0026 Linux)\n\n```bash\ncurl -sSL https://get.rustfig.dev | bash\n```\n\n### Using Cargo\n\n```bash\ncargo install rustfig\nrustfig setup\n```\n\n### Package Managers\n\n**macOS (Homebrew):**\n```bash\nbrew install rustfig/tap/rustfig\n```\n\n**Arch Linux:**\n```bash\nyay -S rustfig\n```\n\n**Ubuntu/Debian:**\n```bash\ncurl -sSL https://get.rustfig.dev/gpg.key | sudo apt-key add -\necho \"deb [arch=amd64] https://pkg.rustfig.dev/apt stable main\" | sudo tee /etc/apt/sources.list.d/rustfig.list\nsudo apt update \u0026\u0026 sudo apt install rustfig\n```\n\n### Build from Source\n\n```bash\ngit clone https://github.com/rustfig/rustfig.git\ncd rustfig\ncargo build --release\n./target/release/rustfig setup\n```\n\nFor more detailed instructions, see [INSTALL.md](INSTALL.md).\n\n## 🖥️ Usage Examples\n\n### Basic Commands\n\n```bash\n# Display help\nrustfig help\n\n# Check system status and fix issues\nrustfig doctor --fix\n\n# Edit configuration\nrustfig config edit\n\n# Set a specific configuration option\nrustfig config set ui.theme \"nord\"\n\n# List available themes\nrustfig theme list\n\n# Apply a theme\nrustfig theme set dracula\n```\n\n### AI Features\n\n```bash\n# Ask a quick question\nrustfig ask \"How do I find large files in Linux?\"\n\n# Start interactive chat session\nrustfig chat\n\n# Explain a command\nrustfig explain \"awk '{print $1}' file.txt | sort | uniq -c\"\n\n# Generate a command from description\nrustfig generate \"create a backup of my home directory excluding node_modules\"\n```\n\n### Service Management\n\n```bash\n# Check service status\nrustfig service status\n\n# Restart the service\nrustfig service restart\n\n# View service logs\nrustfig service logs --follow\n```\n\n## ⚙️ Configuration\n\nRustFig is highly configurable. Configuration files are located at:\n\n```\n~/.config/rustfig/\n├── config.yaml            # Main configuration\n├── keybindings.yaml       # Keyboard shortcuts\n├── appearance.yaml        # UI themes and appearance\n├── ai_models.yaml         # AI provider configuration\n└── themes/                # Custom themes\n```\n\n### Theme Customization\n\nRustFig includes multiple built-in themes:\n- `default` - Clean, minimalist theme\n- `dark` - High-contrast dark theme\n- `light` - Bright theme for light terminals\n- `nord` - Popular Nord color scheme\n- `dracula` - Famous Dracula color scheme\n- `monokai` - Vibrant Monokai inspired\n- `solarized` - Both light and dark Solarized variants\n\nSwitch themes with:\n```bash\nrustfig theme set nord\n```\n\nOr create your own:\n```bash\nrustfig theme create mytheme --base=dracula\nrustfig theme edit mytheme\n```\n\n### Keybinding Customization\n\nCustomize keybindings in `~/.config/rustfig/keybindings.yaml` or with:\n\n```bash\n# List all keybindings\nrustfig keybindings list\n\n# Change a keybinding\nrustfig keybindings set AcceptGhost \"Alt+Right\"\n```\n\n### AI Configuration\n\nConfigure AI providers in `~/.config/rustfig/ai_models.yaml` or with:\n\n```bash\n# Set up OpenAI\nrustfig config set ai.api_key \"your-api-key\"\nrustfig config set ai.model \"gpt-4o\"\n\n# Or use Ollama locally\nrustfig config set ollama.enabled true\nrustfig config set ollama.model \"codellama:7b-instruct\"\n\n# Or Azure OpenAI\nrustfig config set ai.api_endpoint \"https://your-resource.openai.azure.com/openai/deployments/your-deployment/v1\"\nrustfig config set ai.api_key \"your-azure-api-key\"\n```\n\n## 🔍 How It Works\n\nRustFig combines multiple techniques to provide intelligent assistance:\n\n1. **Context Analysis**: Analyzes your current directory, git status, and environment\n2. **Command Parsing**: Understands shell syntax and command structure\n3. **Predictive Engine**: Predicts what you might type next based on patterns\n4. **Local Learning**: Learns from your command history and preferences\n5. **Terminal Integration**: Seamlessly integrates with your shell's command line\n\nEverything happens locally on your machine with minimal resource usage.\n\n## 🥊 Comparison with Alternatives\n\n| Feature | RustFig | Amazon Q | Warp | Fig |\n|---------|---------|----------|------|-----|\n| **Privacy** | ✅ 100% local | ❌ Sends data to AWS | ❌ Cloud-based | ❌ Cloud-dependent |\n| **Performance** | ✅ \u003c5ms latency | ⚠️ Variable | ⚠️ Electron-based | ⚠️ High resource usage |\n| **Resource Usage** | ✅ ~15-30MB RAM | ❌ 200MB+ | ❌ 500MB+ | ❌ 200MB+ |\n| **Open Source** | ✅ Fully open | ❌ Closed | ❌ Closed | ✅ Partially |\n| **Self-hosting** | ✅ Full support | ❌ No | ❌ No | ❌ Limited |\n| **SSH Support** | ✅ Native | ⚠️ Limited | ❌ No | ⚠️ Limited |\n| **Customization** | ✅ Extensive | ⚠️ Limited | ⚠️ Limited | ⚠️ Moderate |\n| **Shells** | ✅ Bash, Zsh, Fish | ✅ Multiple | ❌ Custom shell | ✅ Multiple |\n| **Works Offline** | ✅ Full functionality | ❌ Limited | ❌ No | ❌ Limited |\n\n## 🛠️ Advanced Features\n\n### SSH Integration\nRustFig maintains full functionality over SSH connections, automatically optimizing for remote connections with reduced bandwidth usage and enhanced performance.\n\n### Command Chains\nIntelligently suggests piped commands and complex command chains based on the expected output of the current command.\n\n### Error Prevention\nProactively detects potential errors in commands before execution and offers corrections.\n\n### Snippets System\nSave and recall common command patterns with the snippets system:\n\n```bash\n# Save the current command as a snippet\nrustfig snippets add find-large \"find . -type f -size +100M\"\n\n# List available snippets\nrustfig snippets list\n\n# Use a snippet\nrustfig snippets use find-large\n```\n\n### Project Detection\nAutomatically detects project types (Node.js, Rust, Python, etc.) and offers contextual suggestions.\n\n### Custom Completers\nExtend RustFig with custom completers for specialized tools and workflows.\n\n## 🤝 Contributing\n\nContributions are welcome! Check out [CONTRIBUTING.md](CONTRIBUTING.md) for guidelines.\n\n## 📃 License\n\nRustFig is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n\n## 🙏 Acknowledgments\n\nRustFig draws inspiration from:\n- The terminal completion of Fig\n- The suggestions UI of Amazon Q\n- The AI capabilities of GitHub Copilot\n- The performance focus of ripgrep and other Rust CLI tools\n\n## 🔮 Roadmap\n\n- [ ] Command chaining and multi-step suggestions\n- [ ] Advanced visualization capabilities\n- [ ] Dashboard UI for configuration\n- [ ] Enhanced plugin ecosystem\n- [ ] Additional AI model integrations\n\n---\n\n\u003cp align=\"center\"\u003e\n  \u003csub\u003eBuilt with ❤️ by the RustFig team\u003c/sub\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://rustfig.dev\"\u003eWebsite\u003c/a\u003e •\n  \u003ca href=\"https://rustfig.dev/docs\"\u003eDocumentation\u003c/a\u003e •\n  \u003ca href=\"https://discord.gg/rustfig\"\u003eDiscord\u003c/a\u003e •\n  \u003ca href=\"https://twitter.com/rustfig\"\u003eTwitter\u003c/a\u003e\n\u003c/p\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanongecko%2Frustfig-beta","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanongecko%2Frustfig-beta","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanongecko%2Frustfig-beta/lists"}