An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:sparkles: AI Agent https://github.com/siyuan-note/siyuan/issues/17797
Daniel4f33811f5406
diff --git a/kernel/agent/agent.go b/kernel/agent/agent.goindex c75c28cf01..1cf11b494d 100644--- a/kernel/agent/agent.go+++ b/kernel/agent/agent.go@@ -63,6 +63,7 @@ const systemPrompt = `You are a SiYuan AI assistant. You help users manage their- Reply in the language indicated by the user.- Provide context: when mentioning documents or blocks, include their titles and IDs so the user can reference them.- Be concise: summarize key findings rather than repeating large amounts of content.+- When you need the user to choose from multiple options (e.g., which notebook, which document, which action), use the question tool to present structured choices. Never reply with a plain text list of options.- Use markdown formatting for readability: bullet points, headings, code blocks for technical content.- When writing code blocks, always specify the programming language after the opening fence (e.g. python, javascript, go) to enable syntax highlighting.- Use $...$ for inline formulas and $$...$$ for block formulas.