refactor(prompts): clarified agent and system guidance

- Standardized prompt format, removing XML-like tags.
- Emphasized RFC 2119 keywords using bolding across all prompts.
- Rewrote the core system prompt with enhanced structure and directives.
This commit is contained in:
can1357
2026-02-24 02:50:20 +01:00
parent 8a3699bff4
commit 6240e7bb03
13 changed files with 296 additions and 289 deletions
+1 -1
View File
@@ -108,7 +108,7 @@ export function parseAgent(
});
const fields = parseAgentFields(frontmatter);
if (!fields) {
throw new AgentParsingError(new Error("Invalid agent fields"), filePath);
throw new AgentParsingError(new Error(`Invalid agent field: ${filePath}\n${content}`), filePath);
}
return {
...fields,