claudian README

项目的 README,来自 github.com/YishenTu/claudian。合并为一个 markdown 文件:README.md。

Claudian

Claudian on Trendshift GitHub stars Obsidian downloads GitHub release License

Preview

An Obsidian plugin that embeds AI coding agents (Claude Code, Codex, Grok Build, Antigravity CLI, OpenCode, Pi, DeepSeek Harness, and more to come) in your vault. Your vault becomes the agent's working directory — file read/write, search, bash, and multi-step workflows all work out of the box.

Features & Usage

Open Claudian interface from the ribbon icon or command palette. Everything works like your familiar coding agent, Claude Code, Codex, Grok Build, Antigravity CLI, OpenCode, Pi, and DeepSeek Harness — talk to the agent, and it reads, writes, edits, searches and run commands in your vault.

Inline Edit — Select text or start at the cursor position + hotkey to edit directly in notes with word-level diff preview.

Projects — Group sessions that work toward a shared goal. Every member shares the project's instructions and a memory file that the agents keep current, and the agents can cooperate by finding, reading and messaging each other. See the Projects guide.

Zen Mode — Collapse the sidebar holding Claudian and the chat moves to a compact composer at the bottom of your notes, with a one-line activity preview and the conversation one click away.

Slash Commands & Skills — Type / or $ for reusable prompt templates or Skills from user- and vault-level scopes.

@mention — Type @ to reference vault files, folders and other Claudian sessions.

Cross-Session Messaging — Let agents read, message, steer or interrupt other Claudian sessions, or start new ones on any provider. See the Cross-session messaging guide.

Side Chat (/side or /btw) — Explore a separate, temporary conversation with follow-ups and tools while keeping the main chat unchanged.

MCP Servers — Connect external tools through each coding agent's native CLI-managed MCP configuration.

Tabs & Session Management — Use multiple tabs in single-pane mode or a persistent session manager beside the chat in dual-pane mode.

Plugin API (experimental) — Let other Obsidian plugins send prompts to sessions, stop them and read their replies. See the Plugin API guide.

Collaboration — Collab is now a standalone plugin. See Claudian Collab.

Requirements

Installation

  1. Open Obsidian → Settings → Community plugins → Browse
  2. Search for "Claudian" and click Install
  3. Enable the plugin

Or install directly from the community plugin page.

From source (development)

  1. Clone this repository into your vault's plugins folder:

    cd /path/to/vault/.obsidian/plugins
    git clone https://github.com/YishenTu/claudian.git realclaudian
    cd realclaudian
    
  2. Install dependencies and build:

    npm install
    npm run build
    
  3. Enable the plugin in Obsidian:

    • Settings → Community plugins → Enable "Claudian"

Development

# Watch mode
npm run dev

# Production build
npm run build

Privacy & Data Use

Troubleshooting

See the Troubleshooting guide for a provider CLI or Node.js that isn't found, a newly released model that is missing, and authentication that fails while the CLI subscription works. If you have a feature request or run into a bug, please submit a GitHub issue.

Architecture

src/
├── main.ts                      # Plugin entry point and sole composition root
├── composition/                 # Host objects and view wiring shared by app and features
├── app/                         # Startup, conversations, settings, and storage
├── core/                        # Provider-neutral execution, registry, and type contracts
│   ├── execution/               # Run, session snapshot, and interaction primitives
│   ├── providers/               # Provider registry and workspace services
│   ├── process/                 # CLI discovery and managed child processes
│   ├── prompt/                  # Prompt and context encoding
│   ├── auxiliary/               # Shared provider auxiliary services
│   └── ...                      # bootstrap, commands, rpc, security, storage, tools, types
├── providers/
│   ├── antigravity/             # Antigravity CLI ACP adaptor, transcript history, models
│   ├── claude/                  # Claude Agent SDK adaptor, native history, plugins
│   ├── codex/                   # Codex shared app-server adaptor, JSON-RPC, JSONL history
│   ├── deepseek/                # DeepSeek Harness native Remote adaptor, presets, and history
│   ├── grok/                    # Grok Build ACP adaptor, native history, models, and tools
│   ├── opencode/                # OpenCode HTTP adaptor, shared server
│   ├── pi/                      # Pi RPC adaptor, model discovery, JSONL history
│   └── acp/                     # Agent Client Protocol shared mechanics
├── features/
│   ├── agent-skills/            # Vault skill and Claude command management
│   ├── chat/                    # Sidebar chat: tabs, workspace lifecycle, controllers, renderers
│   ├── inline-edit/             # Inline edit modal and provider-backed edit services
│   └── settings/                # Settings shell and provider tabs
├── shared/                      # Reusable UI components, settings controls, mention/dropdown
├── i18n/                        # Internationalization (10 locales)
├── utils/                       # Domain-free leaf helpers
└── style/                       # Modular CSS

Contributing

Issues and focused pull requests are welcome. Issues are the preferred starting point: describe the problem, reproduction steps, and environment clearly so it can be investigated.

Before opening a pull request, please read the contribution guide. Pull requests must explain the problem, the proposed solution, why the approach is appropriate, and how the change was validated. Pull requests that add a new provider are not accepted; the guide explains this maintenance and product-quality boundary in detail.

Star History

Star History Chart

Sponsorship

Kimi (Moonshot AI)

Kimi (Moonshot AI)

Thanks Kimi (Moonshot AI) for supporting Claudian! Try a Kimi Code plan (CN | Global), or use the API through the Kimi Open Platform (CN | Global). New users receive bonus API credits equal to 10% of their first successful top-up. This offer ends December 31, 2026. Claudian receives no affiliate commission from these links.

Ke Holdings Inc. (BEIKE)

MOMA

Claudian is proudly sponsored by Ke Holdings Inc. (BEIKE) and the MOMA team. Their support helps Claudian continue to improve through ongoing development and maintenance.

Want to support Claudian or appear here? Contact me: [email protected].

License

Licensed under the MIT License.

claudian (YishenTu/claudian)

正在搜索数据库…

这是什么?Claudian 是一个 Obsidian 插件,可以把 AI 编程代理(Claude Code、Codex、Grok、Opencode、Pi)嵌入你的库中,让库成为代理的工作目录,用于读写文件、搜索以及执行 bash 命令。
它是独立应用,还是需要先打开 Obsidian?它是 Obsidian 插件,不是独立应用,运行在 Obsidian 桌面端内,并调用你已经安装好的外部编程代理命令行工具(CLI)。
如何安装 Claudian?在 Obsidian 的社区插件浏览页面搜索 'Claudian',点击安装,然后启用即可;也可以把仓库克隆到你的库的插件文件夹中,从源代码自行构建。
我需要先安装 Claude Code 或其他命令行工具吗?需要。至少要安装一个代理工具(Claude Code CLI、Codex CLI、Grok Build、OpenCode 或 Pi),还需要兼容的订阅或 API 服务商,例如 OpenRouter、Kimi、GLM 或 DeepSeek,并且 Obsidian 版本需为 v1.13.0 及以上。
安装时有哪些需要注意的坑吗?由于 Claude Agent SDK 的存在,插件包现在超过 5 MB,因此 Obsidian 官方同步服务无法同步它,你需要在每台设备上手动安装和更新。如果服务商的 CLI 不在 GUI 应用可识别的 PATH 中,Windows 上的 CLI 自动检测也可能失败。
Claudian 能在 Obsidian 手机版上使用,还是只能在电脑版使用?仅支持桌面端,包括 macOS、Linux 和 Windows。不支持手机端,此外协作模式还需要 Git。
使用 Claudian 时,我的库数据会被发送到哪里?你输入的内容、附加的文件、图片以及工具调用输出,会被发送到你所选的服务商(Anthropic、OpenAI、xAI,或 OpenCode/Pi 配置的后端);插件本身不进行任何遥测。
什么是协作模式?这是一项实验性功能,允许多名 Claudian 用户共同处理同一个共享项目。基于 Git 的项目数据和协调元数据通过本地网络在队友的设备之间直接同步,不经过任何 Claudian 云服务。
内联编辑(Inline Edit)有什么作用?选中文本或将光标置于某处,然后触发快捷键,即可让代理直接编辑你的笔记;在应用更改之前,会先显示逐词差异预览。
我能把 MCP 服务器连接到 Claudian 吗?可以。MCP 服务器需要通过各编程代理自身的 CLI 原生 MCP 配置进行设置,而不是通过 Claudian 中单独的设置项。
为什么维护者不接受添加新代理服务商的 PR?贡献指南明确将此作为维护和产品质量的边界,因此新的服务商集成不会以社区拉取请求的形式被接受。
作者
YishenTu
大小
39.4 MB
星标
16K
时长
11个月
提交 · 90 天