Major refactor: Switch to complete local operation

- Remove external AI API dependency (no more OpenAI/Claude API calls)
- Claude Code now does all interpretation and scoring locally
- Zero cost: No API fees
- Complete privacy: No data sent to external servers
- Simplified dependencies: Removed openai crate and ai-analysis feature

Changes:
- ai_interpreter.rs: Simplified to lightweight wrapper
- Cargo.toml: Removed ai-analysis feature and openai dependency
- mcp/base.rs: Updated create_memory_with_ai to accept interpreted_content and priority_score from Claude Code
- memory.rs: Added create_memory_with_interpretation() method
- Documentation: Updated README, QUICKSTART, USAGE to reflect local-only operation
- Added CHANGELOG.md to track changes

How it works now:
User → Claude Code (interprets & scores) → aigpt (stores) → game result

Benefits:
 完全ローカル (Fully local)
 ゼロコスト (Zero cost)
 プライバシー保護 (Privacy protected)
 高速 (Faster - no network latency)
 シンプル (Simpler - fewer dependencies)
This commit is contained in:
Claude
2025-11-05 15:55:59 +00:00
parent dbb86cebe5
commit a235f42c61
8 changed files with 441 additions and 141 deletions

View File

@@ -1,11 +1,19 @@
# aigpt - AI Memory System with Psychological Priority
AI記憶装置心理優先記憶システムChatGPTのメモリ機能を参考にしながら、AIによる解釈と心理判定を加えた新しいメモリストレージシステムです。
AI記憶装置心理優先記憶システム**完全にローカルで動作**し、Claude Code と連携して、心理判定スコア付きのメモリ管理を実現します。
## 🌟 特徴
-**完全ローカル**: 外部 API 不要、プライバシー保護
-**ゼロコスト**: API 料金なし
-**Claude Code 統合**: Claude 自身が解釈とスコアリング
-**ゲーミフィケーション**: 心理テスト風の楽しい表示
-**恋愛コンパニオン**: 育成要素付き
## コンセプト
従来の「会話 → 保存 → 検索」ではなく、「会話 → AI解釈 → 保存 → 検索」を実現。
AIが記憶を解釈し、重要度を0.0-1.0のスコアで評価。優先度の高い記憶を保持し、低い記憶は自動的に削除されます。
従来の「会話 → 保存 → 検索」ではなく、「会話 → **Claude による解釈** → 保存 → 検索」を実現。
Claude Code が記憶を解釈し、重要度を0.0-1.0のスコアで評価。優先度の高い記憶を保持し、低い記憶は自動的に削除されます。
## 機能
@@ -25,9 +33,10 @@ AIが記憶を解釈し、重要度を0.0-1.0のスコアで評価。優先度
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
```
2. プロジェクトをビルド:
2. プロジェクトをビルド(依存関係が少なくシンプル!):
```bash
cargo build --release
# API キー不要!完全にローカルで動作します
```
3. バイナリをパスの通った場所にコピー(オプション):