Files
cindy/apps/desktop/help-knowledge/plugins.md
Lizi bb3f71d084 chore: Cindy 首次开源提交 / initial open-source release
Cindy 是心动网络 (X.D. Network Inc.) 的跨端 AI Agent 客户端。
本次提交包含 Desktop(Electron)、Mobile(Expo)及全部共享 packages
的完整源码,以 Apache-2.0 协议开源。

This is the first public release of Cindy, X.D. Network's cross-platform
AI agent client: the Electron desktop app, the Expo mobile app, and all
shared workspace packages, licensed under Apache-2.0.

- 许可与合规:根 LICENSE(Apache-2.0)+ NOTICE;第三方组件归属声明与
  SPDX SBOM 收口在 docs/legal/notices/,由 pnpm licenses:generate 生成。
- 社区文件:README / CONTRIBUTING / CODE_OF_CONDUCT / SECURITY / SUPPORT
  中英双语;issue / PR 模板与 CI workflow 在 .github/。
- 协议层以公开 submodule 引入:github.com/makecindy/cindy-protocol。
- 提交前已通过仓库门禁:全量 pnpm test:unit 与涉及 package 的 typecheck。

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-24 08:30:44 +08:00

53 lines
3.8 KiB
Markdown

---
id: plugins
title: Plugins (extending what the agents can do)
summary: What plugins are, how to browse / install / enable / disable them, per-working-directory control, the permission model, and invoking one with a $command.
tab: ghosts
---
Plugins (internally "意识" / Ghost) extend what the agents can do — they add AI-callable tools, dockable UI panels, and "ask Cindy to make it" media generation. Each plugin is a self-contained `.cindy` capability pack that runs in its own isolated sandbox.
**The Plugins page:**
- Open it from the **Plugins** entry in the left sidebar.
- Browse by origin: **all / built-in / team-shared / external**. The team-shared (enterprise) group only shows if your account belongs to an organization.
- Each plugin has a detail page — that's where you enable it, connect an account / enter an API key, and read what it can do.
**Built-in plugins that ship with the app:**
- **Cindy Art** (`$cindy-art`) — generate and edit images and short videos.
- **Cindy Web Search** (`$cindy-web-search`) — public web search (add your own Brave or Tavily key on its detail page).
- **Cindy Mermaid** (`$cindy-mermaid`) — build / repair Mermaid diagrams.
- **Cindy GitHub** (`$cindy-github`) / **Cindy GitLab** (`$cindy-gitlab`) — read / write issues, PRs / MRs, reviews, CI, releases.
- **Filo Google** (`$filo-google`) — Gmail / Calendar / Drive / Sheets.
**Enabling and disabling:**
- **Enable / disable (globally)** from the plugin's detail page. Disabling puts its tools and panel to sleep but keeps the plugin installed — its layout slot is remembered and restored when you re-enable it.
- **Disable for one working directory only** — a plugin can be turned off just for a specific project. In that project's sessions it behaves as if it isn't installed (its tools and `$command` are unavailable there); everywhere else it stays on.
**Installing:**
- Install from the marketplace, or add a `.cindy` file manually (drag it in / pick it from disk).
- Every install or update shows a **permission confirmation dialog** that lists exactly what the plugin can access (network domains, credentials it needs, tools, `$command`, panel). Nothing runs until you accept — and freshly installed plugins start **disabled** until you turn them on.
**Using a plugin with `$command`:**
- Type its command at the **start** of a message — e.g. `$cindy-art a poster for…`. Only enabled plugins that declare that command match.
- You don't have to use `$command`: the agents can also pick an enabled plugin's tools on their own when a task calls for it.
**The permission / sandbox model (why plugins are safe):**
- A plugin's sandbox has **no filesystem, no network, and no direct system access** by default. It can only ask the host to do things it declared up front in its manifest, and the host enforces each one.
- **Network** access is limited to a domain allowlist the plugin declares; the host proxies every request. Credentials never enter the sandbox — the host injects them only into the declared requests.
- Because of this, a plugin **can't see your files** on its own. A file reaches a plugin only when you or the agent explicitly hand one over (an image attachment, or a directory the host passes through after an ownership check).
**Configuring a plugin's account / API key:**
- Do it on the plugin's **detail page**. Plugins that use a key (web-search, GitHub/GitLab tokens) have a field there; the value goes straight into the host's encrypted store and can't be read back.
- Plugins that use OAuth (for example Filo Google) show a **Connect account** button instead.
**Notes:**
- Enabling or disabling a plugin takes effect on the **next** agent query, not retroactively in the current turn.
- Skills (`/` slash commands) and Plugins (`$` commands) are two tabs of the same management surface — see the Skills topic for skills.