obsidian-agent-client
Copilot instructions2.4k starsChanged 10 months agoApache-2.0View on GitHub
Trending
Less talk lately.thin dataabout the whole repository
Who's talking about RAIT-09/obsidian-agent-client
- @ginoi2.bsky.social“CodexをObsidian PluginのAgent Client経由で使ってるんだけど、APIじゃなくてChatGPT …”Bluesky · Mar 23, 2026 · 3 likes
- @ginoi2.bsky.social“Agent Client Plugin for Obsidian インストールしてみた Codexを試していきたい”Bluesky · Mar 17, 2026 · 2 likes
- code-yeongyu/oh-my-openagent“[Question]: How is OMOC compared to the other OpenCode tools?”GitHub · Jan 9, 2026 · 2 reactions
- @handlena.me“Agent Clientいい感じだな 普段使ってるCoding Agentの知見と資産がそのまま使えるのが良い #obsidian.md github.com/RAIT-09/obsi...”Bluesky · Dec 13, 2025 · 2 likes
- @chudesnov.social“First time I’m hearing about ACP, and this looks pretty cool github.com/RAIT-09/obsi...”Bluesky · Feb 11, 2026 · 1 likes
The biggest 5 of 13 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 13
Talked about on GitHub and Bluesky (13 times).
On GitHub · 9
- Jan 9, 2026[Question]: How is OMOC compared to the other OpenCode tools? — code-yeongyu/oh-my-openagent2 reactions · 2 comments
- Oct 1, 2026agent-skills.github.rait-09.obsidian-agent-client: init at 0.13.0 — sudosubin/agents.nix0 reactions
- Aug 25, 2026Tracker: contribute Fountain integration docs to the projects that speak ACP, AG-UI, Buzz and MCP — managoat/fountain0 reactions · 2 comments
- Jul 14, 2026map ACP ecosystem — 36 agents, obsidian clients, Jockey/TUI options for b00t — elasticdotventures/_b00t_0 reactions · 1 comment
- Jun 23, 2026feat: Prompt library — donivatamazondotcom/obsidian-agent-console0 reactions · 2 comments
4 more on GitHub
- Feb 11, 2026Integrate ACP for agents CLI — logancyang/obsidian-copilot0 reactions · 3 comments
- Jan 10, 2026Inclusion of OpenCode in this tooling — chicogong/obsidian-claude-code0 reactions
- Jan 10, 2026Alternatives to Claude like OpenCode — YishenTu/claudian0 reactions · 5 comments
- Jan 10, 2026How is this different from the other app? — mtymek/opencode-obsidian0 reactions · 2 comments
On Bluesky · 4
- Mar 23, 2026CodexをObsidian PluginのAgent Client経由で使ってるんだけど、APIじゃなくてChatGPT Plusアカウントでログインしてるからなのか、WindowsだとcmdとPowerShell行き来したり許可求められたりで、思ってたよりサクッと動かない。… — @ginoi2.bsky.social3 likes and reposts · 1 reply
- Mar 17, 2026Agent Client Plugin for Obsidian インストールしてみた Codexを試していきたい — @ginoi2.bsky.social2 likes and reposts
- Dec 13, 2025Agent Clientいい感じだな 普段使ってるCoding Agentの知見と資産がそのまま使えるのが良い #obsidian.md github.com/RAIT-09/obsi... — @handlena.me2 likes and reposts
- Feb 11, 2026First time I’m hearing about ACP, and this looks pretty cool github.com/RAIT-09/obsi... — @chudesnov.social1 likes and repost
In this repository3 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- release-notesSkill
The file
We split this copilot-instructions.md into the rules it gives an agent
8 rules. About 0 are common, 0 are distinctive, and 8 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
8
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 16
Keep src/domain/ dependency-free: no obsidian imports, no @agentclientprotocol/sdk imports.
- Very specific: line 17
Add new behavior as hooks under src/hooks/ and compose them in ChatView.tsx (avoid introducing ViewModel/UseCase classes).
- Very specific: line 18
Put non-React business logic in src/shared/ as pure functions (see message-service.ts).
- Very specific: line 22
Use the unified pipeline: AcpAdapter.onSessionUpdate(...) → useChat.handleSessionUpdate(...).
- Very specific: line 24
When merging tool-call content, preserve existing values when updates are undefined and treat diffs as replace-all (see …
- Very specific: line 28
Use Obsidian Platform.isWin/isMacOS/isLinux helpers (avoid process.platform).
- Very specific: line 30
Don't detach leaves in onunload.
- Very specific: line 31
Keep styling in styles.css (avoid JS style manipulation).
≈ “Common” is an estimate: at least 1 in 5 of the 1,644 Copilot instructions files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
GitHub Copilot Instructions (obsidian-agent-client)
Big picture
- Obsidian desktop plugin (React 19 + TypeScript) that chats with external coding agents via Agent Client Protocol (ACP).
- Uses a React Hooks Architecture: hooks own state/logic, components render, adapters integrate external systems, domain is pure types.
Key directories / “where to change things”
- UI composition + adapter instantiation:
src/components/chat/ChatView.tsx(creates adapters viauseMemo, composes hooks). - Session lifecycle + agent switching:
src/hooks/useAgentSession.ts. - Message state + streaming updates:
src/hooks/useChat.ts. - ACP process + JSON-RPC wiring:
src/adapters/acp/acp.adapter.ts. - Pure message prep/sending (mentions, auto-mention, WSL path conversion):
src/shared/message-service.ts. - Domain contracts only (no deps):
src/domain/models/*,src/domain/ports/*.
Architectural rules (project-specific)
- Keep
src/domain/**dependency-free: noobsidianimports, no@agentclientprotocol/sdkimports. - Add new behavior as hooks under
src/hooks/and compose them inChatView.tsx(avoid introducing ViewModel/UseCase classes). - Put non-React business logic in
src/shared/as pure functions (seemessage-service.ts). - Adapters implement ports and isolate protocol/platform churn (ACP changes should mostly stay in
src/adapters/acp/).
SessionUpdate / tool-call update flow (critical)
- Use the unified pipeline:
AcpAdapter.onSessionUpdate(...)→useChat.handleSessionUpdate(...). - Tool calls must be updated via
useChat.upsertToolCall(...)using functionalsetMessages((prev) => ...)to avoid race conditions from streamingtool_call_updateevents. - When merging tool-call content, preserve existing values when updates are
undefinedand treat diffs as replace-all (seemergeToolCallContentinuseChat.ts).
Obsidian & platform constraints
- Desktop-only:
ChatViewthrows when!Platform.isDesktopApp. - Use Obsidian
Platform.isWin/isMacOS/isLinuxhelpers (avoidprocess.platform). - No
innerHTML/outerHTML; use Obsidian element helpers (createEl/createDiv/createSpan). - Don't detach leaves in
onunload. - Keep styling in
styles.css(avoid JS style manipulation).
Developer workflows
- Dev watch build:
npm run dev(esbuild watch; outputsmain.js). - Production build:
npm run build(runstsc -noEmit -skipLibCheckthen esbuild production). - Formatting:
npm run format/npm run format:check(Prettier). - Linting:
npm run lint/npm run lint:fix. - Docs site:
npm run docs:dev,npm run docs:build,npm run docs:preview.
Naming conventions used throughout
- Ports:
*.port.ts - Adapters:
*.adapter.ts - Hooks:
use*.ts - Components:
PascalCase.tsx - Utilities/models:
kebab-case.ts
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

