by 孙鹏飞
Embeds CodeM (Feishu AI coding agent) as a sidebar chat in your vault. Your vault becomes its working directory.
CodeM Chat
Embed CodeM (Feishu AI coding agent) into Obsidian as a sidebar chat. Your vault becomes the agent's working directory.
将 CodeM(飞书 AI 研发智能体)嵌入 Obsidian 侧边栏,获得流畅的 AI 结对对话体验。
Features
- ACP protocol streaming: JSON-RPC over stdio, replies render character by character with live thinking and tool-call cards
- Multi-session tabs: run several sessions in parallel in one view; each tab has a three-color status light (idle / running / done)
- Session history: scans local CodeM sessions (
~/.codem/sessions), replays any past conversation and resumes it natively; falls back to snapshot context when a session is held by another client - AI session titles: a Chinese title is generated from your first exchange
/skills: lists CodeM and local skills, searchable by Chinese description@references: fuzzy search or drill-down browse;[[note]]and[[folder]]contents are injected into context- Image paste: paste screenshots from the clipboard (base64 inline, decoded by CodeM)
- YOLO mode: one-click auto-approval of tool permission requests
- Turn navigation: floating buttons jump between user turns in long conversations
Prerequisites
- Windows 10/11 (the plugin launches CodeM CLI via
cmd /c) - Obsidian 1.7.2 or later
- The CodeM CLI installed and logged in (
codemon PATH, or configure the path in plugin settings)
Install
From release
- Download the latest release assets from the Releases page
- Copy
main.js,manifest.jsonandstyles.cssinto<Vault>/.obsidian/plugins/codem-chat/ - Enable the plugin in Obsidian (Settings → Community plugins)
Manual build
npm install
npm run build
Privacy
The plugin runs entirely on your machine. It reads ~/.codem/sessions and ~/.codem/history.jsonl for session history, and generates titles via your local CodeM CLI. Prompts are sent only to the CodeM backend configured by your own CodeM login; the plugin has no telemetry.
Development
npm install # install dependencies
npm run dev # build with inline sourcemaps
npm run build # production build
License
致谢
布局与交互设计参考 Claudian(Obsidian AI 对话插件)的设计思路:侧边栏对话视图、多会话 Tab、流式渲染。
For plugin developers
Search results and similarity scores are powered by semantic analysis of your plugin's README. If your plugin isn't appearing for searches you'd expect, try updating your README to clearly describe your plugin's purpose, features, and use cases.