docs: replace ASCII architecture diagram with Mermaid

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
KoheiYamashita 2026-02-24 19:00:30 +09:00
parent 17478e051c
commit da7f2c74d6
2 changed files with 42 additions and 53 deletions

View file

@ -6,33 +6,27 @@ Android 向け超軽量パーソナル AI アシスタント。Go バックエ
## アーキテクチャ ## アーキテクチャ
``` ```mermaid
┌──────────────────────────────────┐ graph TB
│ Android アプリ (Kotlin) │ subgraph android["Android アプリ (Kotlin)"]
│ ┌───────────┐ ┌───────────────┐ │ ChatUI["チャット UI\n(Compose)"]
│ │ チャット │ │ アシスタント │ │ Overlay["アシスタント\nオーバーレイ"]
│ │ UI │ │ オーバーレイ │ │ end
│ │ (Compose) │ │ │ │
│ └─────┬─────┘ └───────┬──────┘ │ subgraph backend["Go バックエンド (Termux)"]
│ │ WebSocket │ │ Agent["エージェントループ"]
│ └───────┬────────┘ │ Tools["ツールループ\n(16以上)"]
└────────────────┼─────────────────┘ LLM["LLM"]
│ ws://127.0.0.1:18793 Services["MCP / Cron /\nSkills / Memory"]
┌────────────────┼─────────────────┐ Channels["チャンネル\n(Telegram, Discord, Slack, LINE 等)"]
│ Go バックエンド (Termux) │ end
│ ┌────────┐ ┌─────────────────┐ │
│ │エージェント│ │ ツールループ │ │ ChatUI -- "WebSocket\nws://127.0.0.1:18793" --> Agent
│ │ ループ │ │ (16以上) │ │ Overlay -- "WebSocket\nws://127.0.0.1:18793" --> Agent
│ └───┬────┘ └────────┬────────┘ │ Agent --> LLM
│ │ ┌──────────┤ │ Agent --> Tools
│ ┌───┴──┐ │ ┌────────┴─────────┐ │ Tools --> Services
│ │ LLM │ │ │ MCP / Cron / │ │ Agent --> Channels
│ └──────┘ │ │ Skills / Memory │ │
│ ┌────────┴─┴──────────────────┐ │
│ │ チャンネル (Telegram, │ │
│ │ Discord, Slack, LINE 等) │ │
│ └─────────────────────────────┘ │
└──────────────────────────────────┘
``` ```
- **Go バックエンド** (`cmd/clawdroid/`): シングルバイナリ。エージェントループ、ツール実行、LLM 呼び出し、メッセージングチャンネル、Cron、ハートビート - **Go バックエンド** (`cmd/clawdroid/`): シングルバイナリ。エージェントループ、ツール実行、LLM 呼び出し、メッセージングチャンネル、Cron、ハートビート

View file

@ -8,32 +8,27 @@ Forked from [PicoClaw](https://github.com/sipeed/picoclaw).
## Architecture ## Architecture
``` ```mermaid
┌─────────────────────────────────┐ graph TB
│ Android App (Kotlin) │ subgraph android["Android App (Kotlin)"]
│ ┌───────────┐ ┌──────────────┐ │ ChatUI["Chat UI\n(Compose)"]
│ │ Chat UI │ │ Assistant │ │ Overlay["Assistant\nOverlay"]
│ │ (Compose) │ │ Overlay │ │ end
│ └─────┬─────┘ └──────┬──────┘ │
│ │ WebSocket │ │ subgraph backend["Go Backend (Termux)"]
│ └───────┬───────┘ │ Agent["Agent Loop"]
└────────────────┼────────────────┘ Tools["Tool Loop\n(16+ tools)"]
│ ws://127.0.0.1:18793 LLM["LLM"]
┌────────────────┼────────────────┐ Services["MCP / Cron /\nSkills / Memory"]
│ Go Backend (Termux) │ Channels["Channels\n(Telegram, Discord, Slack, LINE etc.)"]
│ ┌────────┐ ┌────────────────┐ │ end
│ │ Agent │ │ Tool Loop │ │
│ │ Loop │ │ (16+ tools) │ │ ChatUI -- "WebSocket\nws://127.0.0.1:18793" --> Agent
│ └───┬────┘ └───────┬────────┘ │ Overlay -- "WebSocket\nws://127.0.0.1:18793" --> Agent
│ │ ┌─────────┤ │ Agent --> LLM
│ ┌───┴──┐ │ ┌───────┴────────┐ │ Agent --> Tools
│ │ LLM │ │ │ MCP / Cron / │ │ Tools --> Services
│ └──────┘ │ │ Skills / Memory │ │ Agent --> Channels
│ ┌────────┴─┴────────────────┐ │
│ │ Channels (Telegram, │ │
│ │ Discord, Slack, LINE etc.)│ │
│ └───────────────────────────┘ │
└─────────────────────────────────┘
``` ```
- **Go backend** (`cmd/clawdroid/`): Single binary. Agent loop, tool execution, LLM calls, messaging channels, cron, heartbeat - **Go backend** (`cmd/clawdroid/`): Single binary. Agent loop, tool execution, LLM calls, messaging channels, cron, heartbeat