An AI Agent plugin built for SiYuan.
It understands your notes and writing habits, then helps with search, drafting, editing, document management, and recurring tasks.
Important
Configure API Key and API Base URL in the settings page first.
- Open
SiYuan Agentfrom the SiYuan top bar. - For first-time use, run
/initso the Agent can learn your document structure and writing style. - Ask questions directly, or let it search, summarize, create, append, edit, and move documents.
- Create scheduled tasks, for example: "Every morning at 9, summarize what I did yesterday and write it into today's journal."
- Restrained UI that blends into different SiYuan themes.
- Interaction and workflow design inspired by mature Agent products:
- Combines multiple retrieval tools and explorer agents to search note context like a codebase.
- Automatically compresses context in the background, and manages long tasks with Todo.
- Scheduled tasks: delegate recurring work to the Agent.
- Tool permission management
- Visual edit history and rollback
- ACP protocol exposure
- ... (tentative, issues are welcome)
- LangChain: Agent, tool calling, and streaming runtime
- SiYuan Plugin API: SiYuan plugin integration and document operations
- TypeScript
- Webpack
- Sass
- Vitest
Install SiYuan Agent from the SiYuan community bazaar and enable it.
- Download
package.zipfrom the latest release. - Extract it to
data/plugins/siyuan-agent/in your SiYuan workspace. - Restart SiYuan and enable the plugin.
After enabling the plugin, fill in:
API Base URLAPI KeyProviderModel
Optional settings:
Custom InstructionsGuide DocumentDefault NotebookLangSmith Tracing
npm install
npm run build
npm run testFeature ideas, bug reports, and improvements are welcome via Issue or Pull Request.
MIT
