Implemented a generic alternative to Claude Code with the following features: Core Implementation: - Multi-LLM provider support (OpenAI compatible APIs) - Function calling for direct tool execution by LLM - Interactive REPL shell interface - MCP server mode for Claude Desktop integration - Shell executor with bash, read, write, list tools Architecture: - src/cli: Interactive REPL implementation - src/llm: LLM provider abstraction (OpenAI compatible) - src/shell: Shell execution engine with duct - src/mcp: MCP server for Claude Desktop - src/config: Configuration management Technical Stack: - Rust 2021 with tokio async runtime - clap for CLI framework - reqwest for HTTP client - duct for shell execution - rustyline for REPL interface This tool integrates with aigpt to form AIOS (AI Operating System), enabling AI-driven OS management and automation. Based on aigpt architecture for CLI and MCP patterns.
46 lines
1.1 KiB
Markdown
46 lines
1.1 KiB
Markdown
# aishell
|
||
|
||
**ID**: ai.syui.shell
|
||
**Name**: aishell
|
||
**SID**: ai.shell
|
||
**Version**: 0.1.0
|
||
|
||
## 概要
|
||
|
||
Claude Codeのような、AIがshellを操作するためのツール。
|
||
例えば、gpt-ossのようなllmを使用することを想定。場合によっては、MCPを駆使する。
|
||
|
||
## 主な機能
|
||
|
||
1. **マルチLLMプロバイダー対応**
|
||
- OpenAI API互換(OpenAI, gpt-oss, etc.)
|
||
- 将来的にClaude API、Ollamaなども対応予定
|
||
|
||
2. **Function Calling (Tool use)**
|
||
- LLMが直接ツールを呼び出してシェルを操作
|
||
- bash, read, write, list等のツールを提供
|
||
|
||
3. **MCPサーバーモード**
|
||
- Claude Desktopとの連携が可能
|
||
- aigptと同様のMCPプロトコル実装
|
||
|
||
## アーキテクチャ
|
||
|
||
```
|
||
User → CLI → LLM Provider → Function Calling → Shell Executor → Result
|
||
```
|
||
|
||
## AIOS統合
|
||
|
||
- **aigpt**: メモリー、パーソナリティ分析
|
||
- **aishell**: シェル操作、自動化
|
||
- **統合**: AIによるOS管理の実現
|
||
|
||
## 技術スタック
|
||
|
||
- Rust 2021
|
||
- tokio (async runtime)
|
||
- reqwest (HTTP client)
|
||
- duct (shell execution)
|
||
- clap (CLI framework)
|