1
0
2025-06-02 00:32:00 +09:00
2025-06-02 00:32:00 +09:00
2025-06-02 00:32:00 +09:00
2025-06-02 00:32:00 +09:00
2025-06-01 23:35:22 +09:00
2025-06-02 00:32:00 +09:00
2025-06-02 00:32:00 +09:00
2025-06-02 00:32:00 +09:00
2025-06-02 00:32:00 +09:00
fix
2025-06-02 00:13:07 +09:00
2025-06-02 00:32:00 +09:00
2025-06-01 23:35:22 +09:00
2025-06-02 00:32:00 +09:00
2025-06-01 23:35:22 +09:00
2025-05-31 01:42:11 +09:00

ai.shell

AIがコンピュータのコマンド操作を行うCLIツール

概要

ai.shellは、ローカルLLMを活用してコード生成、ファイル操作、プロジェクト管理を行うClaude Codeライクなツールです。

必要要件

  • macOS
  • Rust (1.70+)
  • Python (3.9+)
  • Ollama (ローカルLLM用)

インストール

# 1. リポジトリをクローン
git clone https://git.syui.ai/ai/shell.git
cd shell

# 2. セットアップvenv環境を~/.config/syui/ai/shellに構築
make setup

# 3. PATHに追加~/.zshrcまたは~/.bash_profileに追記
export PATH="$HOME/.config/syui/ai/shell/bin:$PATH"

使い方

セットアップ後、以下のコマンドで起動:

# ai.shellを起動
aishell

# または、プロジェクトディレクトリから
make run

コマンド例

# インタラクティブモード
ai> create a web server in rust
ai> explain this error: [paste error]
ai> /analyze src/main.rs
ai> /create rust my-project

# ワンショット実行
aishell exec "create a fibonacci function"
aishell analyze src/main.rs

機能

  • 🤖 ローカルLLMによるコード生成
  • 📝 ファイル分析と説明
  • 🚀 プロジェクトテンプレート作成
  • 🎨 カラー出力対応
  • 📦 Python venv環境の自動管理

設定

設定ファイル: ~/.config/syui/ai/shell/config.toml

[server]
host = "127.0.0.1"
port = 8765

[llm]
default_model = "qwen2.5-coder:7b"

アンインストール

make uninstall

開発

# テスト実行
make test

# クリーンアップ
make clean

ライセンス

© syui

Description
No description provided
Readme 144 KiB
Languages
Rust 56.6%
Python 28.5%
Shell 12%
Makefile 2.9%