From dbdb99c486cabc705bfe7e3c863464a60b4b9bef Mon Sep 17 00:00:00 2001 From: Mario Zechner Date: Wed, 31 Dec 2025 13:17:25 +0100 Subject: [PATCH] Fix system prompt: add specific doc/example paths for each topic --- packages/coding-agent/src/core/system-prompt.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/coding-agent/src/core/system-prompt.ts b/packages/coding-agent/src/core/system-prompt.ts index 07e9cbbb..30e7d1f2 100644 --- a/packages/coding-agent/src/core/system-prompt.ts +++ b/packages/coding-agent/src/core/system-prompt.ts @@ -281,7 +281,8 @@ Documentation: - Main documentation: ${readmePath} - Additional docs: ${docsPath} - Examples: ${examplesPath} (hooks, custom tools, SDK) -- When asked to create hooks, custom tools, themes, or skills: read the relevant docs AND examples, follow all .md cross-references`; +- When asked to create: hooks (docs/hooks.md, examples/hooks/), custom tools (docs/custom-tools.md, docs/tui.md, examples/custom-tools/), themes (docs/theme.md), skills (docs/skills.md) +- Always read the doc, examples, AND follow .md cross-references before implementing`; if (appendSection) { prompt += appendSection;