MCPcopy Index your code
hub / github.com/augustVino/claude-devtools-tauri

github.com/augustVino/claude-devtools-tauri @v2.0.2

Chat with this repo
repository ↗ · DeepWiki ↗ · release v2.0.2 ↗ · + Follow
3,111 symbols 7,965 edges 411 files 692 documented · 22%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Claude DevTools

Download

基于 Tauri v2 的 Claude Code 会话可视化桌面应用 — 浏览对话记录、追踪上下文窗口使用情况、分析工具调用。

功能

  • 可视化 Claude Code 会话时间线
  • 追踪上下文窗口在 6 个分类中的使用情况
  • 分析工具调用与子 Agent / Team 编排
  • 跨会话搜索(全文检索)
  • 实时文件监听与增量更新
  • 错误检测与通知触发(原生 OS 通知)
  • macOS 系统托盘 + Dock 隐藏
  • SSH 远程连接 — 通过 SSH 浏览远程机器上的 Claude 会话
  • 多上下文切换 — 本地 / SSH 远程上下文之间切换
  • 内置 HTTP 服务 — 浏览器端访问(REST API + SSE 实时事件流)

开发

环境要求

安装与运行

pnpm install
pnpm tauri dev

构建

pnpm tauri build          # macOS: DMG / Windows: NSIS / Linux: deb+rpm

测试

cd src-tauri && cargo test               # Rust 单元测试 (552)
cd src-tauri && cargo test -- session_   # 按名称过滤

技术栈

  • 后端: Rust + Tauri v2.10, tokio (异步运行时), serde, axum 0.8 (HTTP), russh 0.46 (SSH)
  • 前端: React 19, TypeScript 5.9, Vite 8, Tailwind CSS 3, Zustand 5
  • 核心 crates: tokio, serde, notify (文件监听), moka (LRU 缓存), russh (SSH), axum (HTTP)

项目规模

指标 数值
Rust 后端 92 文件, ~27,900 LOC, 552 单元测试
前端 ~43,800 LOC TypeScript/TSX, 14 Zustand store slices
Tauri 命令 65 个 #[tauri::command]
HTTP 端点 50+ REST + SSE
事件通道 8 个 (file-change, todo-change, notification, error, ssh, context 等)

许可证

MIT — 归属详情见 NOTICE

致谢

本项目衍生自 claude-devtools,由 matt1398 及贡献者开发,采用 MIT 许可证。

Extension points exported contracts — how you extend this code

FsProvider (Interface)
文件系统提供者 trait — 抽象本地和远程文件操作。 所有方法均为同步,以匹配现有 `std::fs` 调用模式。 实现 `Send + Sync` 以确保线程安全。 [9 implementers]
src-tauri/src/infrastructure/fs_provider.rs
HoverActionsProps (Interface)
* HoverActions - Action buttons shown on hover.
src/components/notifications/NotificationRow.tsx
ComputeClaudeMdStatsResult (Interface)
* Result of computing CLAUDE.md stats for an AI group. * Includes both the stats and the updated paths set for threadin
src/utils/claudeMdTracker.ts
ConversationalEntry (Interface)
* Base for conversational entries (user, assistant, system). * * Sidechain behavior: * - isSidechain: false -> Main a
src/main/types/jsonl.ts
StoredSnapshot (Interface)
* Stored snapshot - wraps ContextSnapshot with timestamp and version.
src/services/contextStorage.ts
NotificationsResult (Interface)
* Result of notifications:get with pagination.
src/shared/types/api.ts
UseAutoScrollBottomOptions (Interface)
* Options for the auto-scroll hook.
src/hooks/useAutoScrollBottom.ts
CommandInfo (Interface)
(no doc)
src/types/groups.ts

Core symbols most depended-on inside this repo

get
called by 232
src-tauri/src/infrastructure/context_manager.rs
get
called by 189
src/api/index.ts
as_str
called by 137
src-tauri/src/types/config.rs
get
called by 132
src/api/httpClient.ts
has
called by 101
src-tauri/src/infrastructure/context_manager.rs
set
called by 71
src-tauri/src/infrastructure/data_cache.rs
ok
called by 64
src-tauri/src/commands/http_server.rs
error_json
called by 58
src-tauri/src/http/routes/mod.rs

Shape

Function 2,041
Method 467
Interface 340
Class 233
Enum 30

Languages

Rust69%
TypeScript31%

Modules by API surface

src-tauri/src/discovery/project_scanner.rs67 symbols
src-tauri/src/infrastructure/file_watcher/tests.rs50 symbols
src-tauri/src/infrastructure/config/tests.rs46 symbols
src-tauri/src/infrastructure/trigger_manager/tests.rs45 symbols
src-tauri/src/utils/content_sanitizer.rs41 symbols
src-tauri/src/infrastructure/ssh_auth.rs41 symbols
src-tauri/src/infrastructure/ssh_config_parser.rs40 symbols
src-tauri/src/infrastructure/data_cache.rs39 symbols
src-tauri/src/parsing/claude_md_reader.rs38 symbols
src-tauri/src/parsing/message_classifier.rs37 symbols
src-tauri/src/error/error_message_builder.rs37 symbols
src-tauri/src/infrastructure/context_manager.rs36 symbols

For agents

$ claude mcp add claude-devtools-tauri \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact