An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:memo: Preserve relevant details in GitHub issues and replies https://github.com/siyuan-note/siyuan/issues/20494
Daniel8df3c34f27b3
diff --git a/AGENTS.md b/AGENTS.mdindex 3f0c7e5afc..7808817562 100644--- a/AGENTS.md+++ b/AGENTS.md@@ -90,9 +90,9 @@ Unambiguous mechanical edits with no behavioral or compatibility impact need no- Append the full issue/PR URL to the end of the commit title (e.g. `https://github.com/siyuan-note/siyuan/issues/<NNN>`, not the `#NNN` short form — it is clickable) only when a related issue exists; never put the URL in the commit body, and do not fabricate one- When creating a pull request, write an English title without a gitmoji shortcode or emoji prefix. Describe the final change in the PR title instead of copying a commit title with its gitmoji prefix or appended issue URL6. **GitHub:** Prefer the GitHub CLI (`gh`) for all GitHub operations, including reading issues, comments, pull requests, commits, statuses, and metadata. If `gh` is unavailable or does not support the operation, fall back to the GitHub API or web interface- - When creating an issue, use an English title and a Chinese body whose first paragraph is the corresponding Chinese title; do not use the repository's issue templates or reproduce their form fields, and write a concise, task-specific body directly+ - When creating an issue, use an English title and a Chinese body whose first paragraph is the corresponding Chinese title; do not use the repository's issue templates or reproduce their form fields, and write a task-specific body directly. Preserve the relevant details from the discussion, including the problem, reproduction steps, expected and actual behavior, evidence, agreed approach, constraints, compatibility concerns, alternatives and tradeoffs, acceptance criteria, and unresolved questions, as applicable. Remove repetition and unrelated material, but do not omit information needed to understand, evaluate, or implement the issue merely to make it shorter- When changing the title of an existing issue, keep the replaced title as the first paragraph of the body, separated from the remaining content by a blank line, and keep the rest of the body unchanged- - When replying to an issue, omit testing and verification details (such as test commands, cases, and results), but invite the user to test the new version and provide feedback. If the issue body is in Chinese, reply in Chinese; otherwise, reply bilingually in the language of the issue body and Chinese+ - When replying to an issue or pull request, explain the conclusion and its basis with detail proportional to the task. Preserve relevant review findings, implementation decisions, behavior changes, compatibility concerns, limitations, and unresolved questions; include testing and verification details when they help assess the conclusion, rather than replacing the explanation with a generic invitation to test. Avoid dumping routine logs or unrelated commands, and distinguish verified results from estimates, assumptions, and planned work. For implemented changes, also invite the user to test the new version and provide feedback. If the issue or pull request body is in Chinese, reply in Chinese; otherwise, reply bilingually in the language of the body and Chinese- When the selected endpoint supports labels, they may be included in the same create or update payload. Afterward, verify only that the issue or pull request itself succeeded (number, title, and body). Do not check whether labels were applied or send a follow-up request solely to apply them; GitHub silently drops label changes when the actor lacks push access- For GitHub write operations containing non-ASCII text on Windows or when shell encoding is uncertain, use this file-based workflow. Do not use this workflow for ASCII-only requests:1. Create the request payload as UTF-8 JSON with a file-editing tool, not an inline shell command