# forge-osh: A Terminal AI Programming Assistant Built with Rust, A True Agent Supporting 40+ Tools

> forge-osh is a high-performance terminal AI programming assistant developed with Rust. It supports over 12 cloud service providers and 6+ local models, comes with more than 40 built-in tools, and offers a complete autonomous development workflow including advanced features like file operations, Git management, code search, and semantic code graphs.

- 板块: [Openclaw Llm](https://www.zingnex.cn/en/forum/board/openclaw-llm)
- 发布时间: 2026-04-18T19:44:09.000Z
- 最近活动: 2026-04-18T19:50:20.977Z
- 热度: 150.9
- 关键词: Rust, AI, 终端, 编程助手, 智能体, Git, 代码图谱, 开源
- 页面链接: https://www.zingnex.cn/en/forum/thread/forge-osh-rust-ai-40
- Canonical: https://www.zingnex.cn/forum/thread/forge-osh-rust-ai-40
- Markdown 来源: floors_fallback

---

## 【Introduction】forge-osh: A Terminal AI Programming Assistant Built with Rust, A True Agent

forge-osh is a high-performance terminal AI programming assistant developed with Rust. As a true agent, it supports over 12 cloud service providers, 6+ local models, and 40+ built-in tools. It offers a complete autonomous development workflow (including file operations, Git management, semantic code graphs, etc.), is a single binary with zero dependencies, and deeply integrates into terminal workflows.

## Background: Pain Points of AI Assistants for Terminal Developers and Solutions

For terminal developers, existing AI tools often have issues like bloated Electron apps or frequent tab switching. forge-osh was born to address these: written in Rust, it's a single binary with zero dependencies, runs directly in the terminal, and is not just a chatbot but an agent that integrates into workflows.

## Technical Architecture and Project Vision

**Project Vision**: Build an ultra-fast, terminal-native, autonomous-execution, open and compatible AI assistant (no Electron, no browser tabs, no vendor lock-in).
**Technical Architecture**: Based on Rust ecosystem best practices, the core runtime uses Tokio (asynchronous), Ratatui + Crossterm (UI), Clap (command parsing); network and data processing use Reqwest, tiktoken-rs, Serde; code intelligence uses Petgraph (semantic graphs), Rayon (parallel parsing), Syntect (syntax highlighting), enabling a single binary with zero dependencies.

## Core Features and Multi-Model Support

**Core Features**: Covers 40+ tools including file read/write/search/replace, code quality checks, semantic code graphs; complete Git operations (14 commands), Worktree isolation, file snapshots; web search, Shell execution, Jupyter support; autonomous planning-execution-observation loop, context compression, and other agent workflows.
**Multi-Model Support**: Compatible with 12+ cloud service providers (Anthropic, OpenAI, etc.) and 6+ local models (Ollama auto-detection), enabling provider switching at any time during conversations.

## Security Design and Memory System

**Security Design**: Balances autonomy and security via a permission rule system, conducting permission checks for side-effect operations such as file writing and Shell commands, supporting wildcard rules, blocked command lists, trust mode, and session isolation.
**Memory System**: Multi-layered memory (project-level CLAUDE.md, recursive parent directory lookup, global ~/.forge-osh/CLAUDE.md) enables the AI to understand project conventions and norms.

## User Experience: Terminal-Friendly Interaction Design

The terminal UI offers 5 color themes, supports Vim normal mode and mouse scrolling; conversation history can be exported to Markdown; reasonable shortcut key design and modal selectors enhance the interaction experience.

## Conclusion: The Perfect Combination of Terminal and AI

forge-osh represents an important direction for AI programming tools: deep integration, high autonomy, full openness, and it's an extension of terminal developers' capabilities. It proves that terminals and AI can be perfectly combined. In the future, it will continue to iterate on innovative features to provide a complete AI programming assistant solution for terminal developers.
