Rig: 極簡主義的 C 語言 AI 程式碼 Agent | Rig: The Minimalist AI Coding Agent Written in C

打破 runtime 束縛,以 C 語言重新定義極速 AI 開發體驗。 | Breaking the runtime shackles, redefining high-speed AI development with C.

🔎 工具速覽 / AT A GLANCE

CategoryAI Developer Tools / Coding Agent
PricingOpen Source (Free)
BestForPower users, DevOps, and developers seeking a lightweight, provider-agnostic AI engine.
GitHub Stars⭐ 19

🚀 引言 / Introduction

在 Electron App 與龐大 Python 環境充斥的 AI 工具時代,Rig 選擇回歸原點。這是一個僅由 2.3 萬行 C 語言編寫、體積僅 566KB 的單一二進位檔,旨在提供一個無依賴、極速且可擴展的 AI 協作引擎。 | In an era where AI tools are bloated with Electron apps and heavy Python environments, Rig returns to the basics. Written in ~23K lines of C with a 566KB binary, it provides a zero-dependency, lightning-fast, and extensible AI collaboration engine.

🛠️ 核心功能 / Key Features

原生支持 Anthropic, OpenAI, Google, Bedrock 與 Mistral 等主流供應商,可透過 `/model` 指令即時切換模型。 | Native support for major providers including Anthropic, OpenAI, Google, Bedrock, and Mistral, with instant model switching via the `/model` command.

內建 Bash 執行、文件讀寫 (Read/Write/Edit)、grep 搜索及目錄列舉等 7 項核心工具,涵蓋完整開發流程。 | Seven built-in core tools including Bash execution, file manipulation (Read/Write/Edit), grep search, and directory listing, covering the full development workflow.

透過 8 個基礎原語提供 Lua 擴展能力,無需安裝 SDK 或重新編譯即可實現自定義集成。 | Extensible via Lua with 8 primitives, allowing custom integrations without installing SDKs or undergoing build steps.

具備「燈籠渲染」空間光照效果的終端界面,支持 Markdown 渲染與 Vim 風格的導航。 | A sophisticated Terminal UI featuring 'Lantern' spatial lighting, inline Markdown rendering, and Vim-style navigation.

💡 技術亮點 / Tech Highlights

編譯 C 語言,啟動時間低於 1 毫秒,內存佔用僅以 KB 計,而非 GB。 | Compiled in C, starting in under a millisecond with memory usage measured in kilobytes, not gigabytes.

單一二進位檔,無需 Python, Node.js 或 Docker,真正實現『複製即運行』。 | A single binary with no need for Python, Node.js, or Docker—true 'copy and run' portability.

它不僅是一個產品,而是一個引擎。可用於構建編輯器插件、CI 流水線或自定義 AI Agent。 | More than a product, it's an engine. It can be used to build editor plugins, CI pipelines, or custom AI agents.

📦 快速上手 / Quick Start

使用 curl 一鍵安裝:`curl -fsSL https://raw.githubusercontent.com/SrihariLegend/rig/main/install.sh | sh` | One-click installation via curl: `curl -fsSL https://raw.githubusercontent.com/SrihariLegend/rig/main/install.sh | sh`

執行 `rig auth` 配置 LLM 供應商 API 密鑰。 | Run `rig auth` to configure LLM provider API keys.

輸入 `rig` 進入交互模式,或使用 `rig -p "問題"` 快速獲取答案。 | Enter `rig` for interactive mode, or use `rig -p "question"` for quick answers.

準備好試試 Rig: 極簡主義的 C 語言 AI 程式碼 Agent | Rig: The Minimalist AI Coding Agent Written in C 了嗎?

Ready to try Rig: 極簡主義的 C 語言 AI 程式碼 Agent | Rig: The Minimalist AI Coding Agent Written in C?

前往 GitHub 頁面 →

留言

熱門文章