LLM Wiki is a cross-platform desktop application that turns your documents into an organized, interlinked knowledge base — automatically. Instead of traditional RAG (retrieve-and-answer from scratch every time), the LLM incrementally builds and maintains a persistent wiki from your sources。
TypeScript
docs: update agent skills readme
nash_su0d952f92c0a7
diff --git a/README.md b/README.mdindex f7c2df02..1af63091 100644--- a/README.md+++ b/README.md@@ -41,6 +41,10 @@- **Folder Import** — recursive folder import preserving directory structure, folder context as LLM classification hint- **Source Folder Auto-Watch** — detects external changes in `raw/sources/` and keeps ingest/delete cleanup in sync- **Deep Research** — LLM-optimized search topics, multi-query web search via Tavily, SerpApi, or SearXNG, auto-ingest results into wiki+- **Rust Backend Chat Agent** — tool-using chat runtime with wiki/source/graph/web retrieval, workspace file generation, shell approval, cancellation, and streaming tool events+- **Agent Skills** — scan and enable local `SKILL.md` folders, select skills with `/skill`, and let the Agent read skill instructions on demand+- **Generated Outputs Preview** — Agent-created Markdown, HTML, images, and other workspace files appear as outputs with preview and quick folder access+- **Mermaid Diagram Rendering** — render Mermaid code blocks directly in chat and preview, with compact syntax-error cards instead of raw parser output- **Async Review System** — LLM flags items for human judgment, predefined actions, pre-generated search queries- **Chrome Web Clipper** — one-click web page capture with auto-ingest into knowledge base- **Local HTTP API + MCP Server + AI Agent Skill** — built-in `127.0.0.1:19828` JSON API and bundled MCP server for hybrid search, file read, graph traversal, and source rescan; ready-made [agent skill](https://github.com/nashsu/llm_wiki_skill) installs into Claude Code / Codex with one command (`npx skills add …`)@@ -237,7 +241,17 @@ The original has a single query interface. We built **full multi-conversation su- **Regenerate** — re-generate the last response with one click (removes last assistant + user message pair, re-sends)- **Save to Wiki** — archive valuable answers to `wiki/queries/`, then auto-ingest to extract entities/concepts into the knowledge network-### 9. Thinking / Reasoning Display+### 9. Rust Backend Chat Agent & Skills++Not in the original. Chat now runs through a Rust backend Agent runtime rather than a browser-only TypeScript loop:++- **Tool-using Agent** — can choose wiki search, source search, graph search, web search, AnyTXT, workspace file tools, approved shell commands, and skill file reads+- **Skill management** — scan project and user skill folders, enable or disable skills, and pick a skill per conversation with `/skill` completion+- **Generated workspace outputs** — files produced by Agent tools are kept under `agent-workspace/`, shown as generated outputs, and can be previewed or opened from the chat+- **User interaction forms** — skills can ask for structured user input such as single choice, multiple choice, or free text without hardcoding skill-specific UI+- **Safer execution model** — project workspace commands can continue smoothly, while external shell commands still require explicit approval++### 10. Thinking / Reasoning DisplayNot in the original. For LLMs that emit `<think>` blocks (DeepSeek, QwQ, etc.):@@ -245,16 +259,18 @@ Not in the original. For LLMs that emit `<think>` blocks (DeepSeek, QwQ, etc.):- **Collapsed by default** — thinking blocks hidden after completion, click to expand- **Visual separation** — thinking content shown in distinct style, separate from the main response-### 10. KaTeX Math Rendering+### 11. Markdown Rendering: KaTeX Math & Mermaid Diagrams-Not in the original. Full LaTeX math support across all views:+Not in the original. Rich Markdown rendering across chat and preview:- **KaTeX rendering** — inline `$...$` and block `$$...$$` formulas rendered via remark-math + rehype-katex- **Milkdown math plugin** — preview editor renders math natively via @milkdown/plugin-math- **Auto-detection** — bare `\begin{aligned}` and other LaTeX environments automatically wrapped with `$$` delimiters- **Unicode fallback** — 100+ symbol mappings (α, ∑, →, ≤, etc.) for simple inline notation outside math blocks+- **Mermaid code blocks** — fenced `mermaid` diagrams render directly as flowcharts, sequence diagrams, and other Mermaid-supported visuals+- **Compact Mermaid errors** — syntax failures are captured inside a small error card instead of spilling raw parser output into the chat-### 11. Review System (Async Human-in-the-Loop)+### 12. Review System (Async Human-in-the-Loop)The original suggests staying involved during ingest. We added an **asynchronous review queue**:@@ -263,7 +279,7 @@ The original suggests staying involved during ingest. We added an **asynchronous- **Search queries generated at ingest time** — LLM pre-generates optimized web search queries for each review item- User handles reviews at their convenience — doesn't block ingest-### 12. Deep Research+### 13. Deep Research<p align="center"><img src="assets/1-deepresearch.jpg" width="100%" alt="Deep Research">@@ -282,7 +298,7 @@ Not in the original. When the LLM identifies knowledge gaps:- **Task queue** with 3 concurrent tasks- **Research Panel** — dedicated sidebar panel with dynamic height, real-time streaming progress-### 13. Browser Extension (Web Clipper)+### 14. Browser Extension (Web Clipper)<p align="center"><img src="assets/4-chrome_extension_webclipper.jpg" width="100%" alt="Chrome Extension Web Clipper">@@ -298,7 +314,7 @@ The original mentions Obsidian Web Clipper. We built a **dedicated Chrome Extens- **Clip watcher** — polls every 3 seconds for new clips, processes automatically- **Offline preview** — shows extracted content even when app is not running-### 14. Multi-format Document Support+### 15. Multi-format Document SupportThe original focuses on text/markdown. We support structured extraction preserving document semantics:@@ -314,7 +330,7 @@ The original focuses on text/markdown. We support structured extraction preservi> MinerU is optional. When enabled, PDF files are uploaded to MinerU cloud for parsing; keep the built-in parser for sensitive documents. If MinerU fails, LLM Wiki falls back to the built-in parser. MinerU usage is subject to its file size, page count, and quota limits.-### 15. File Deletion with Cascade Cleanup+### 16. File Deletion with Cascade CleanupThe original has no deletion mechanism. We added **intelligent cascade deletion**:@@ -324,7 +340,7 @@ The original has no deletion mechanism. We added **intelligent cascade deletion*- **Index cleanup** — removed pages are purged from index.md- **Wikilink cleanup** — dead `[[wikilinks]]` to deleted pages are removed from remaining wiki pages-### 16. Configurable Context Window+### 17. Configurable Context WindowNot in the original. Users can configure how much context the LLM receives:@@ -332,7 +348,7 @@ Not in the original. Users can configure how much context the LLM receives:- **Proportional budget allocation** — larger windows get proportionally more wiki content- **60/20/5/15 split** — wiki pages / chat history / index / system prompt-### 17. Cross-Platform Compatibility+### 18. Cross-Platform CompatibilityThe original is platform-agnostic (abstract pattern). We handle concrete cross-platform concerns:@@ -343,7 +359,7 @@ The original is platform-agnostic (abstract pattern). We handle concrete cross-p- **Tauri v2** — native desktop on macOS, Windows, Linux- **GitHub Actions CI/CD** — automated builds for macOS (ARM + Intel), Windows (.msi), Linux (.deb / .AppImage)-### 18. Other Additions+### 19. Other Additions- **i18n** — English + Chinese interface (react-i18next)- **Settings persistence** — LLM provider, API key, model, context size, language saved via Tauri Store@@ -427,7 +443,7 @@ LLM Wiki ships a built-in local HTTP API at `http://127.0.0.1:19828` (token-protEnable the API, generate a token, and choose whether local unauthenticated access is allowed in **Settings → API + MCP**.-For MCP-compatible clients, LLM Wiki also includes a local MCP server in `mcp-server/`. After building it with `npm run mcp:build`, **Settings → API + MCP** shows a copyable MCP client configuration with the correct local path for your machine. The MCP tools call the same API surface, so agent clients can list projects, read files, export unresolved Review items, run hybrid search, inspect the graph, and trigger source rescans without custom HTTP glue code.+For MCP-compatible clients, LLM Wiki also includes a local MCP server in `mcp-server/`. After building it with `npm run mcp:build`, **Settings → API + MCP** shows a copyable MCP client configuration with the correct local path for your machine. The MCP tools call the same API surface, so agent clients can list projects, read files, export unresolved Review items, run hybrid search, inspect the graph, trigger source rescans, and call the same Rust backend Agent chat endpoint without custom HTTP glue code.### Plug your AI agent in with one commanddiff --git a/README_CN.md b/README_CN.mdindex abf9cbff..36aa3a63 100644--- a/README_CN.md+++ b/README_CN.md@@ -41,6 +41,10 @@- **文件夹导入** — 递归导入保留目录结构,文件夹路径作为 LLM 分类上下文- **Source 文件夹自动监听** — 检测 `raw/sources/` 的外部变更,并同步触发摄入或删除清理- **深度研究** — LLM 智能生成搜索主题,通过 Tavily、SerpApi 或 SearXNG 进行多查询网络搜索,研究结果自动摄入 Wiki+- **Rust 后端 Chat Agent** — 支持工具调用的聊天运行时,可进行 Wiki/Source/Graph/Web 检索、workspace 文件生成、shell 审批、取消和流式工具事件展示+- **Agent Skills** — 扫描并启用本地 `SKILL.md` 目录,在聊天中用 `/skill` 选择,让 Agent 按需读取 Skill 指令+- **生成物预览** — Agent 生成的 Markdown、HTML、图片等 workspace 文件会作为生成物展示,支持预览和快速打开目录+- **Mermaid 流程图渲染** — 聊天和预览中可直接渲染 Mermaid 代码块,语法错误会显示为紧凑错误卡片- **异步审核系统** — LLM 在摄入时标记需人工判断的项,预定义操作,预生成搜索查询- **Chrome 网页剪藏** — 一键捕获网页内容,自动摄入知识库- **本地 HTTP API + MCP Server + AI Agent Skill** — 内置 `127.0.0.1:19828` JSON API 和随包提供的 MCP Server,支持 Hybrid 检索、文件读取、知识图谱遍历、源资料重新扫描;配套 [agent skill](https://github.com/nashsu/llm_wiki_skill) 一行命令接入 Claude Code / Codex(`npx skills add …`)@@ -237,7 +241,17 @@ LLM Wiki 是一个跨平台桌面应用,能将你的文档自动转化为有- **重新生成** —— 一键重新生成最后一条回复(移除最后的助手+用户消息对,重新发送)- **保存到 Wiki** —— 将有价值的回答归档到 `wiki/queries/`,然后自动摄入提取实体/概念到知识网络-### 9. 思维链 / 推理过程展示+### 9. Rust 后端 Chat Agent 与 Skills++原始设计中没有。聊天现在由 Rust 后端 Agent runtime 驱动,而不是只在浏览器端运行 TypeScript 循环:++- **工具型 Agent** —— 可自主选择 Wiki 检索、Source 检索、图谱检索、网页搜索、AnyTXT、workspace 文件工具、已批准的 shell 命令和 Skill 文件读取+- **Skill 管理** —— 扫描项目级和用户级 Skill 目录,启用或禁用 Skill,并在每个会话中通过 `/skill` 补全选择 Skill+- **生成物管理** —— Agent 工具生成的文件统一放在 `agent-workspace/` 下,并作为生成物在聊天中展示、预览或打开目录+- **用户交互表单** —— Skill 可以请求单选、多选或自由文本等结构化用户输入,不需要为每个 Skill 硬编码专用界面+- **更安全的执行模型** —— 项目 workspace 内的命令可以顺畅继续执行,外部 shell 命令仍需要明确批准++### 10. 思维链 / 推理过程展示原始设计中没有。针对会输出 `<think>` 块的 LLM(DeepSeek、QwQ 等):@@ -245,16 +259,18 @@ LLM Wiki 是一个跨平台桌面应用,能将你的文档自动转化为有- **默认折叠** —— 生成完成后思维块隐藏,点击展开- **视觉分离** —— 思维内容以独特样式显示,与主回复分开-### 10. KaTeX 数学公式渲染+### 11. Markdown 渲染:KaTeX 数学公式与 Mermaid 图表-原始设计中没有。跨所有视图的完整 LaTeX 数学支持:+原始设计中没有。聊天和预览支持更丰富的 Markdown 渲染:- **KaTeX 渲染** —— 行内 `$...$` 和块级 `$$...$$` 公式通过 remark-math + rehype-katex 渲染- **Milkdown 数学插件** —— 预览编辑器通过 @milkdown/plugin-math 原生渲染数学公式- **自动检测** —— 裸 `\begin{aligned}` 等 LaTeX 环境自动补上 `$$` 定界符- **Unicode 降级** —— 100+ 符号映射(α, ∑, →, ≤ 等)用于数学块外的简单行内符号+- **Mermaid 代码块** —— fenced `mermaid` 代码块可直接渲染为流程图、时序图等 Mermaid 支持的图表+- **紧凑 Mermaid 错误** —— 语法错误会被收敛到小型错误卡片中,不会把原始解析器输出铺满聊天界面-### 11. 审核系统(异步人机协作)+### 12. 审核系统(异步人机协作)原始设计建议在摄入时全程参与。我们新增了**异步审核队列**:@@ -263,7 +279,7 @@ LLM Wiki 是一个跨平台桌面应用,能将你的文档自动转化为有- **摄入时生成搜索查询** —— LLM 预先为每个审核项生成优化的网络搜索查询- 用户可在方便时处理审核 —— 不阻塞摄入流程-### 12. 深度研究+### 13. 深度研究<p align="center"><img src="assets/1-deepresearch.jpg" width="100%" alt="深度研究">@@ -282,7 +298,7 @@ LLM Wiki 是一个跨平台桌面应用,能将你的文档自动转化为有- **任务队列** —— 最多 3 个并发任务- **研究面板** —— 专用侧边面板,动态高度,实时流式进度-### 13. 浏览器扩展(网页剪藏)+### 14. 浏览器扩展(网页剪藏)<p align="center"><img src="assets/4-chrome_extension_webclipper.jpg" width="100%" alt="Chrome 扩展网页剪藏">@@ -298,7 +314,7 @@ LLM Wiki 是一个跨平台桌面应用,能将你的文档自动转化为有- **剪藏监听** —— 每 3 秒轮询新剪藏,自动处理- **离线预览** —— 即使应用未运行也能显示提取的内容-### 14. 多格式文档支持+### 15. 多格式文档支持原始设计聚焦于纯文本/Markdown。我们支持保留文档语义的结构化提取:@@ -314,7 +330,7 @@ LLM Wiki 是一个跨平台桌面应用,能将你的文档自动转化为有> MinerU 是可选功能。启用后 PDF 文件会上传到 MinerU 云端解析;敏感文档建议继续使用内置本地解析。若 MinerU 解析失败,LLM Wiki 会回退到内置解析。MinerU 使用受其文件大小、页数和额度限制约束。-### 15. 文件删除级联清理+### 16. 文件删除级联清理原始设计没有删除机制。我们新增了**智能级联删除**:@@ -324,7 +340,7 @@ LLM Wiki 是一个跨平台桌面应用,能将你的文档自动转化为有- **索引清理** —— 被移除的页面从 index.md 中清除- **Wiki 链接清理** —— 指向已删除页面的失效 `[[wikilinks]]` 从其余 Wiki 页面中移除-### 16. 可配置上下文窗口+### 17. 可配置上下文窗口原始设计中没有。用户可配置 LLM 接收多少上下文:@@ -332,7 +348,7 @@ LLM Wiki 是一个跨平台桌面应用,能将你的文档自动转化为有- **比例预算分配** —— 更大的窗口按比例获得更多 Wiki 内容- **60/20/5/15 分配** —— Wiki 页面 / 聊天历史 / 索引 / 系统提示-### 17. 跨平台兼容+### 18. 跨平台兼容原始设计与平台无关(抽象模式)。我们处理了具体的跨平台问题:@@ -343,7 +359,7 @@ LLM Wiki 是一个跨平台桌面应用,能将你的文档自动转化为有- **Tauri v2** —— macOS、Windows、Linux 原生桌面- **GitHub Actions CI/CD** —— 自动构建 macOS(ARM + Intel)、Windows(.msi)、Linux(.deb / .AppImage)-### 18. 其他新增+### 19. 其他新增- **国际化** —— 中英文界面(react-i18next)- **设置持久化** —— LLM 提供商、API 密钥、模型、上下文大小、语言通过 Tauri Store 保存@@ -418,12 +434,13 @@ LLM Wiki 内置一个本地 HTTP API(监听 `http://127.0.0.1:19828`,Token- `GET /api/v1/projects` —— 项目列表- `GET /api/v1/projects/{id}/files` / `files/content` —— 读取文件树与内容- `POST /api/v1/projects/{id}/search` —— **Hybrid 混合检索**(关键词 + 向量),返回 `mode`、`tokenHits`、`vectorHits`,每条结果带 `vectorScore`+- `POST /api/v1/projects/{id}/chat` —— 非流式 Rust 后端 Agent 聊天接口,返回助手消息、引用、用量和工具事件;支持 Wiki/Source/Web/AnyTXT 检索,`mode: "deep"` 会扩展证据收集范围- `GET /api/v1/projects/{id}/graph` —— Wikilinks 知识图谱- `POST /api/v1/projects/{id}/sources/rescan` —— 触发后端重新扫描在 **设置 → API + MCP** 中开启 API、生成 Token,并按需选择是否允许本机无鉴权访问。-对于兼容 MCP 的客户端,LLM Wiki 还内置了 `mcp-server/`。执行 `npm run mcp:build` 构建后,**设置 → API + MCP** 会展示一份可复制的 MCP 客户端配置,并自动填入当前机器上的真实入口路径。MCP 工具复用同一套 API 能力,因此 Agent 可以直接列出项目、读取文件、执行 Hybrid 检索、查看图谱和触发资料源重新扫描,不需要再手写 HTTP 调用。+对于兼容 MCP 的客户端,LLM Wiki 还内置了 `mcp-server/`。执行 `npm run mcp:build` 构建后,**设置 → API + MCP** 会展示一份可复制的 MCP 客户端配置,并自动填入当前机器上的真实入口路径。MCP 工具复用同一套 API 能力,因此 Agent 可以直接列出项目、读取文件、执行 Hybrid 检索、查看图谱、触发资料源重新扫描,并调用同一套 Rust 后端 Agent 聊天接口,不需要再手写 HTTP 调用。### 一条命令把 AI Agent 接进你的知识库diff --git a/README_JA.md b/README_JA.mdindex 0c8bc031..0722839b 100644--- a/README_JA.md+++ b/README_JA.md@@ -41,6 +41,10 @@- **フォルダインポート** — ディレクトリ構造を保持した再帰インポート。フォルダパスを LLM の分類ヒントとして利用- **ソースフォルダの自動監視** — `raw/sources/` の外部変更を検出し、インジェスト・削除クリーンアップを同期- **Deep Research** — LLM が検索トピックを最適化生成し、Tavily / SerpApi / SearXNG によるマルチクエリ Web 検索結果を自動で Wiki 化+- **Rust バックエンド Chat Agent** — Wiki / Source / Graph / Web 検索、workspace ファイル生成、shell 承認、キャンセル、ストリーミング tool event に対応するツール実行型チャット runtime+- **Agent Skills** — ローカル `SKILL.md` フォルダをスキャンして有効化し、チャット内の `/skill` で選択。Agent が必要に応じて Skill 指示を読み込みます+- **生成物プレビュー** — Agent が作成した Markdown、HTML、画像などの workspace ファイルを生成物として表示し、プレビューとフォルダをすばやく開く操作に対応+- **Mermaid 図表レンダリング** — チャットとプレビューで Mermaid コードブロックを直接描画し、構文エラーはコンパクトなエラーカードで表示- **非同期レビューシステム** — LLM が人間の判断を要する項目を作成し、定義済みアクションと事前生成された検索クエリを付与- **Chrome Web Clipper** — Web ページをワンクリックで取り込み、知識ベースへ自動インジェスト- **ローカル HTTP API + MCP Server + AI Agent Skill** — `127.0.0.1:19828` の JSON API と同梱 MCP Server でハイブリッド検索、ファイル読み取り、グラフ探索、ソース再スキャンを提供。専用の [agent skill](https://github.com/nashsu/llm_wiki_skill) はワンコマンドで Claude Code / Codex に追加可能(`npx skills add …`)@@ -245,7 +249,17 @@ LLM Wiki は、手元の文書を整理された相互リンク付きの知識- **再生成** — 最後の回答をワンクリックで再生成(直近の assistant + user メッセージ対を削除して再送信)- **Wiki に保存** — 価値のある回答を `wiki/queries/` に保管し、自動インジェストでエンティティ/概念を知識ネットワークに抽出-### 9. 思考過程(Thinking / Reasoning)の表示+### 9. Rust バックエンド Chat Agent と Skills++元の設計にはありません。チャットはブラウザ内だけの TypeScript ループではなく、Rust バックエンドの Agent runtime で実行されます。++- **ツール実行型 Agent** — Wiki 検索、Source 検索、Graph 検索、Web 検索、AnyTXT、workspace ファイルツール、承認済み shell コマンド、Skill ファイル読み取りを選択可能+- **Skill 管理** — プロジェクト単位・ユーザー単位の Skill フォルダをスキャンし、有効/無効を切り替え、会話ごとに `/skill` 補完で Skill を選択+- **生成 workspace 出力** — Agent ツールが作成したファイルは `agent-workspace/` 配下に保存され、生成物として表示・プレビュー・フォルダオープンできます+- **ユーザー入力フォーム** — Skill は単一選択、複数選択、自由入力などの構造化入力を要求でき、Skill ごとの専用 UI をハードコードする必要はありません+- **より安全な実行モデル** — プロジェクト workspace 内のコマンドはスムーズに継続し、外部 shell コマンドは引き続き明示的な承認を要求します++### 10. 思考過程(Thinking / Reasoning)の表示元の設計にはありません。`<think>` ブロックを出力する LLM(DeepSeek、QwQ など)向けです。@@ -253,16 +267,18 @@ LLM Wiki は、手元の文書を整理された相互リンク付きの知識- **デフォルトで折りたたみ** — 完了後は思考ブロックを隠し、クリックで展開- **視覚的な分離** — 思考内容はメインの回答とは別のスタイルで表示-### 10. KaTeX による数式レンダリング+### 11. Markdown レンダリング: KaTeX 数式と Mermaid 図表-元の設計にはありません。全画面で LaTeX 数式をサポートします。+元の設計にはありません。チャットとプレビューでよりリッチな Markdown 表示をサポートします。- **KaTeX レンダリング** — インライン `$...$` とブロック `$$...$$` の数式を remark-math + rehype-katex で描画- **Milkdown 数式プラグイン** — プレビューエディタが @milkdown/plugin-math でネイティブに数式を描画- **自動検出** — むき出しの `\begin{aligned}` などの LaTeX 環境を自動的に `$$` で囲む- **Unicode フォールバック** — 数式ブロック外のシンプルなインライン表記用に 100 以上の記号マッピング(α, ∑, →, ≤ など)+- **Mermaid コードブロック** — fenced `mermaid` ブロックをフローチャート、シーケンス図など Mermaid 対応の図表として直接描画+- **コンパクトな Mermaid エラー** — 構文エラーは小さなエラーカード内に収め、チャット画面に生の parser 出力を広げません-### 11. レビューシステム(非同期 Human-in-the-Loop)+### 12. レビューシステム(非同期 Human-in-the-Loop)元の設計ではインジェスト中に人間が関与することが推奨されています。本プロジェクトでは**非同期レビューキュー**を追加しました。@@ -271,7 +287,7 @@ LLM Wiki は、手元の文書を整理された相互リンク付きの知識- **インジェスト時に検索クエリを生成** — LLM がレビュー項目ごとに最適化された Web 検索クエリを事前生成- ユーザーは好きなタイミングでレビュー可能。インジェスト処理を妨げない-### 12. Deep Research+### 13. Deep Research<p align="center"><img src="assets/1-deepresearch.jpg" width="100%" alt="Deep Research">@@ -290,7 +306,7 @@ LLM Wiki は、手元の文書を整理された相互リンク付きの知識- **タスクキュー** — 最大 3 件の同時実行- **リサーチパネル** — 高さが動的に変わる専用サイドバー。ストリーミング進捗をリアルタイム表示-### 13. ブラウザ拡張(Web Clipper)+### 14. ブラウザ拡張(Web Clipper)<p align="center"><img src="assets/4-chrome_extension_webclipper.jpg" width="100%" alt="Chrome 拡張 Web Clipper">@@ -306,7 +322,7 @@ LLM Wiki は、手元の文書を整理された相互リンク付きの知識- **クリップ監視** — 3 秒ごとに新しいクリップをポーリングして自動処理- **オフラインプレビュー** — アプリが起動していなくても抽出済みコンテンツを表示-### 14. 複数フォーマットのドキュメントサポート+### 15. 複数フォーマットのドキュメントサポート元の設計はテキスト/Markdown が中心です。本プロジェクトではドキュメントの意味構造を保持した構造化抽出に対応しています。@@ -322,7 +338,7 @@ LLM Wiki は、手元の文書を整理された相互リンク付きの知識> MinerU は任意機能です。有効にすると PDF ファイルは解析のため MinerU クラウドへアップロードされます。機密文書には内蔵ローカル解析の利用を推奨します。MinerU 解析に失敗した場合、LLM Wiki は内蔵解析へフォールバックします。MinerU の利用はファイルサイズ、ページ数、クォータ制限の対象です。-### 15. ファイル削除のカスケードクリーンアップ+### 16. ファイル削除のカスケードクリーンアップ元の設計には削除機構がありません。本プロジェクトでは**インテリジェントなカスケード削除**を追加しました。@@ -332,7 +348,7 @@ LLM Wiki は、手元の文書を整理された相互リンク付きの知識- **index のクリーンアップ** — 削除されたページを index.md から除去- **wikilink のクリーンアップ** — 削除済みページを指す失効した `[[wikilinks]]` を、残りの Wiki ページから除去-### 16. 設定可能なコンテキストウィンドウ+### 17. 設定可能なコンテキストウィンドウ元の設計にはありません。LLM に渡すコンテキスト量をユーザーが設定できます。@@ -340,7 +356,7 @@ LLM Wiki は、手元の文書を整理された相互リンク付きの知識- **比例配分された予算** — ウィンドウが大きいほど Wiki コンテンツの取り分も増える- **60/20/5/15 の配分** — Wiki ページ/チャット履歴/index/システムプロンプト-### 17. クロスプラットフォーム互換+### 18. クロスプラットフォーム互換元の設計はプラットフォーム非依存の抽象パターンです。本プロジェクトでは実際のクロスプラットフォーム問題に対処しています。@@ -351,7 +367,7 @@ LLM Wiki は、手元の文書を整理された相互リンク付きの知識- **Tauri v2** — macOS、Windows、Linux のネイティブデスクトップ- **GitHub Actions による CI/CD** — macOS(ARM + Intel)、Windows(.msi)、Linux(.deb / .AppImage)の自動ビルド-### 18. その他の追加機能+### 19. その他の追加機能- **多言語対応** — 英語と中国語の UI(react-i18next)- **設定の永続化** — LLM プロバイダー、API キー、モデル、コンテキストサイズ、言語を Tauri Store で保存@@ -427,12 +443,13 @@ LLM Wiki は組み込みのローカル HTTP API(`http://127.0.0.1:19828` で- `GET /api/v1/projects` — プロジェクト一覧- `GET /api/v1/projects/{id}/files` / `files/content` — ファイルツリーと本文の取得- `POST /api/v1/projects/{id}/search` — **ハイブリッド検索**(キーワード + ベクトル)。`mode`、`tokenHits`、`vectorHits` を返し、各結果に `vectorScore` を付与+- `POST /api/v1/projects/{id}/chat` — 非ストリーミングの Rust バックエンド Agent chat エンドポイント。assistant message、references、usage、tool events を返し、Wiki / Source / Web / AnyTXT 検索に対応します。`mode: "deep"` では証拠収集範囲を広げます- `GET /api/v1/projects/{id}/graph` — wikilinks の知識グラフ- `POST /api/v1/projects/{id}/sources/rescan` — バックエンドの再スキャンをトリガー**設定 → API + MCP** から API を有効化し、Token を発行できます。必要に応じて、ローカルからの認証なしアクセスも切り替えられます。-MCP 互換クライアント向けに、LLM Wiki には `mcp-server/` も同梱されています。`npm run mcp:build` でビルドしたあと、**設定 → API + MCP** に現在のマシンに合ったパス入りの MCP クライアント設定が表示され、そのままコピーできます。MCP ツールは同じ API を利用するため、エージェントはプロジェクト一覧、ファイル読み取り、ハイブリッド検索、グラフ参照、ソース再スキャンをカスタム HTTP 実装なしで実行できます。+MCP 互換クライアント向けに、LLM Wiki には `mcp-server/` も同梱されています。`npm run mcp:build` でビルドしたあと、**設定 → API + MCP** に現在のマシンに合ったパス入りの MCP クライアント設定が表示され、そのままコピーできます。MCP ツールは同じ API を利用するため、エージェントはプロジェクト一覧、ファイル読み取り、ハイブリッド検索、グラフ参照、ソース再スキャン、同じ Rust バックエンド Agent chat エンドポイントの呼び出しをカスタム HTTP 実装なしで実行できます。### ワンコマンドで AI エージェントを接続diff --git a/README_KO.md b/README_KO.mdindex 7d062342..a29c5fb7 100644--- a/README_KO.md+++ b/README_KO.md@@ -41,6 +41,10 @@- **폴더 가져오기** — 디렉터리 구조를 유지하며 재귀적으로 가져오고, 폴더 컨텍스트를 LLM 분류 힌트로 사용합니다- **소스 폴더 자동 감시** — `raw/sources/`의 외부 변경을 감지하고 인제스트/삭제 정리 흐름과 동기화합니다- **Deep Research** — LLM에 최적화된 검색 주제와 Tavily, SerpApi, SearXNG 기반 다중 쿼리 웹 검색을 사용하고, 결과를 자동으로 Wiki에 인제스트합니다+- **Rust 백엔드 Chat Agent** — Wiki/Source/Graph/Web 검색, workspace 파일 생성, shell 승인, 취소, 스트리밍 tool event를 지원하는 도구 사용형 채팅 runtime입니다+- **Agent Skills** — 로컬 `SKILL.md` 폴더를 스캔하고 활성화하며, 채팅에서 `/skill`로 선택하면 Agent가 필요할 때 Skill 지침을 읽습니다+- **생성물 미리보기** — Agent가 만든 Markdown, HTML, 이미지 등 workspace 파일을 생성물로 표시하고, 미리보기와 출력 폴더 열기를 지원합니다+- **Mermaid 다이어그램 렌더링** — 채팅과 미리보기에서 Mermaid 코드 블록을 직접 렌더링하고, 문법 오류는 간결한 오류 카드로 표시합니다- **비동기 리뷰 시스템** — LLM이 사람의 판단이 필요한 항목을 표시하고, 사전 정의된 작업과 미리 생성된 검색 쿼리를 제공합니다- **Chrome Web Clipper** — 웹 페이지를 한 번의 클릭으로 캡처하고 지식 베이스에 자동 인제스트합니다- **로컬 HTTP API + MCP Server + AI Agent Skill** — 내장 `127.0.0.1:19828` JSON API와 번들 MCP Server를 통해 하이브리드 검색, 파일 읽기, 그래프 탐색, 소스 재스캔을 지원합니다. 바로 사용할 수 있는 [agent skill](https://github.com/nashsu/llm_wiki_skill)은 한 줄 명령(`npx skills add ...`)으로 Claude Code / Codex에 설치할 수 있습니다@@ -245,7 +249,17 @@ LLM Wiki는 문서를 자동으로 정리되고 서로 연결된 지식 베이- **Regenerate** — 한 번의 클릭으로 마지막 응답을 다시 생성합니다(마지막 assistant + user 메시지 쌍 제거 후 재전송)- **Save to Wiki** — 가치 있는 답변을 `wiki/queries/`에 보관한 뒤, 자동 인제스트로 엔티티/개념을 지식 네트워크에 추출합니다-### 9. Thinking / Reasoning 표시+### 9. Rust 백엔드 Chat Agent와 Skills++원본에는 없는 기능입니다. 채팅은 브라우저 전용 TypeScript 루프가 아니라 Rust 백엔드 Agent runtime으로 실행됩니다.++- **도구 사용형 Agent** — Wiki 검색, Source 검색, Graph 검색, Web 검색, AnyTXT, workspace 파일 도구, 승인된 shell 명령, Skill 파일 읽기를 선택할 수 있습니다+- **Skill 관리** — 프로젝트 및 사용자 Skill 폴더를 스캔하고, Skill을 활성화/비활성화하며, 대화별로 `/skill` 자동완성으로 Skill을 선택합니다+- **생성 workspace 출력물** — Agent 도구가 만든 파일은 `agent-workspace/` 아래에 저장되며, 생성물로 표시되어 미리보기하거나 폴더를 열 수 있습니다+- **사용자 입력 폼** — Skill은 단일 선택, 다중 선택, 자유 입력 같은 구조화된 사용자 입력을 요청할 수 있으며, Skill별 UI를 하드코딩할 필요가 없습니다+- **더 안전한 실행 모델** — 프로젝트 workspace 내부 명령은 자연스럽게 이어서 실행되고, 외부 shell 명령은 계속 명시적 승인을 요구합니다++### 10. Thinking / Reasoning 표시원본에는 없는 기능입니다. `<think>` 블록을 내보내는 LLM(DeepSeek, QwQ 등)을 위해:@@ -253,16 +267,18 @@ LLM Wiki는 문서를 자동으로 정리되고 서로 연결된 지식 베이- **기본 접힘 상태** — 완료 후 thinking 블록은 숨겨지고 클릭하면 펼쳐집니다- **시각적 분리** — thinking 콘텐츠는 별도 스타일로 주 응답과 분리되어 표시됩니다-### 10. KaTeX 수식 렌더링+### 11. Markdown 렌더링: KaTeX 수식과 Mermaid 다이어그램-원본에는 없는 기능입니다. 모든 뷰에서 전체 LaTeX 수식을 지원합니다.+원본에는 없는 기능입니다. 채팅과 미리보기에서 더 풍부한 Markdown 렌더링을 지원합니다.- **KaTeX 렌더링** — inline `$...$` 및 block `$$...$$` 수식을 remark-math + rehype-katex로 렌더링합니다- **Milkdown math plugin** — preview editor가 @milkdown/plugin-math로 수식을 네이티브 렌더링합니다- **자동 감지** — bare `\begin{aligned}` 및 기타 LaTeX environment를 `$$` delimiter로 자동 wrapping합니다- **Unicode fallback** — math block 밖의 단순 inline notation을 위해 100개 이상의 symbol mapping(α, ∑, →, ≤ 등)을 제공합니다+- **Mermaid 코드 블록** — fenced `mermaid` 블록을 flowchart, sequence diagram 등 Mermaid 지원 다이어그램으로 직접 렌더링합니다+- **간결한 Mermaid 오류** — 문법 오류는 작은 오류 카드 안에 표시되어 원본 parser 출력이 채팅 화면을 채우지 않습니다-### 11. Review System(비동기 Human-in-the-Loop)+### 12. Review System(비동기 Human-in-the-Loop)원본은 인제스트 중 사람이 계속 관여할 것을 제안합니다. 우리는 **비동기 리뷰 큐**를 추가했습니다.@@ -271,7 +287,7 @@ LLM Wiki는 문서를 자동으로 정리되고 서로 연결된 지식 베이- **인제스트 시점에 생성되는 검색 쿼리** — LLM이 각 리뷰 항목에 대해 최적화된 웹 검색 쿼리를 미리 생성합니다- 사용자는 편한 시간에 리뷰를 처리할 수 있습니다. 인제스트를 막지 않습니다-### 12. Deep Research+### 13. Deep Research<p align="center"><img src="assets/1-deepresearch.jpg" width="100%" alt="Deep Research">@@ -290,7 +306,7 @@ LLM Wiki는 문서를 자동으로 정리되고 서로 연결된 지식 베이- 3개 동시 작업을 지원하는 **작업 큐**- **Research Panel** — 동적 높이와 실시간 스트리밍 진행 상황을 갖춘 전용 사이드바 패널-### 13. 브라우저 확장(Web Clipper)+### 14. 브라우저 확장(Web Clipper)<p align="center"><img src="assets/4-chrome_extension_webclipper.jpg" width="100%" alt="Chrome Extension Web Clipper">@@ -306,7 +322,7 @@ LLM Wiki는 문서를 자동으로 정리되고 서로 연결된 지식 베이- **Clip watcher** — 3초마다 새 clip을 polling하고 자동 처리합니다- **Offline preview** — 앱이 실행 중이 아니어도 추출된 콘텐츠를 표시합니다-### 14. 다중 형식 문서 지원+### 15. 다중 형식 문서 지원원본은 text/markdown에 집중합니다. 우리는 문서 의미 구조를 보존하는 구조화 추출을 지원합니다.@@ -322,7 +338,7 @@ LLM Wiki는 문서를 자동으로 정리되고 서로 연결된 지식 베이> MinerU는 선택 기능입니다. 활성화하면 PDF 파일이 파싱을 위해 MinerU 클라우드로 업로드됩니다. 민감한 문서는 내장 로컬 파서를 사용하는 것을 권장합니다. MinerU 파싱이 실패하면 LLM Wiki는 내장 파서로 자동 fallback합니다. MinerU 사용에는 파일 크기, 페이지 수, quota 제한이 적용됩니다.-### 15. Cascade Cleanup을 포함한 파일 삭제+### 16. Cascade Cleanup을 포함한 파일 삭제원본에는 삭제 메커니즘이 없습니다. 우리는 **지능적인 cascade deletion**을 추가했습니다.@@ -332,7 +348,7 @@ LLM Wiki는 문서를 자동으로 정리되고 서로 연결된 지식 베이- **Index 정리** — 삭제된 페이지를 index.md에서 제거합니다- **Wikilink 정리** — 삭제된 페이지로 향하는 죽은 `[[wikilinks]]`를 남은 Wiki 페이지에서 제거합니다-### 16. 설정 가능한 Context Window+### 17. 설정 가능한 Context Window원본에는 없는 기능입니다. 사용자는 LLM이 받는 컨텍스트 양을 설정할 수 있습니다.@@ -340,7 +356,7 @@ LLM Wiki는 문서를 자동으로 정리되고 서로 연결된 지식 베이- **비례 예산 할당** — 더 큰 window는 비례해서 더 많은 Wiki 콘텐츠를 받습니다- **60/20/5/15 분할** — Wiki pages / chat history / index / system prompt-### 17. 크로스 플랫폼 호환성+### 18. 크로스 플랫폼 호환성원본은 플랫폼 중립적인 추상 패턴입니다. 우리는 구체적인 크로스 플랫폼 문제를 처리합니다.@@ -351,7 +367,7 @@ LLM Wiki는 문서를 자동으로 정리되고 서로 연결된 지식 베이- **Tauri v2** — macOS, Windows, Linux에서 native desktop 제공- **GitHub Actions CI/CD** — macOS(ARM + Intel), Windows(.msi), Linux(.deb / .AppImage) 자동 빌드-### 18. 기타 추가 사항+### 19. 기타 추가 사항- **i18n** — 영어 + 중국어 인터페이스(react-i18next)- **설정 영속성** — LLM provider, API key, model, context size, language가 Tauri Store에 저장됩니다@@ -427,12 +443,13 @@ LLM Wiki에는 `http://127.0.0.1:19828`의 내장 로컬 HTTP API가 포함되- `GET /api/v1/projects` — projects list- `GET /api/v1/projects/{id}/files` / `files/content` — files and content read- `POST /api/v1/projects/{id}/search` — `mode`, `tokenHits`, `vectorHits`, per-result `vectorScore`를 반환하는 **hybrid** retrieval(keyword + vector)+- `POST /api/v1/projects/{id}/chat` — 비스트리밍 Rust 백엔드 Agent chat 엔드포인트로 assistant message, references, usage, tool events를 반환하며 Wiki/Source/Web/AnyTXT 검색을 지원합니다. `mode: "deep"`은 증거 수집 범위를 넓힙니다- `GET /api/v1/projects/{id}/graph` — wikilinks graph- `POST /api/v1/projects/{id}/sources/rescan` — backend rescan trigger**Settings → API + MCP**에서 API를 활성화하고 token을 생성할 수 있습니다. 필요하면 로컬 unauthenticated access도 켜거나 끌 수 있습니다.-MCP 호환 클라이언트를 위해 LLM Wiki는 `mcp-server/`도 함께 제공합니다. `npm run mcp:build`로 빌드한 뒤 **Settings → API + MCP**에서 현재 머신의 실제 경로가 들어간 MCP client configuration을 복사할 수 있습니다. MCP tools는 같은 API surface를 사용하므로 에이전트는 별도 HTTP glue code 없이 project list, file read, hybrid search, graph inspect, source rescan을 실행할 수 있습니다.+MCP 호환 클라이언트를 위해 LLM Wiki는 `mcp-server/`도 함께 제공합니다. `npm run mcp:build`로 빌드한 뒤 **Settings → API + MCP**에서 현재 머신의 실제 경로가 들어간 MCP client configuration을 복사할 수 있습니다. MCP tools는 같은 API surface를 사용하므로 에이전트는 별도 HTTP glue code 없이 project list, file read, hybrid search, graph inspect, source rescan, 같은 Rust 백엔드 Agent chat endpoint 호출을 실행할 수 있습니다.### 한 줄 명령으로 AI 에이전트 연결하기