refactor(prompts): harmonized prompt templates and bolded keywords

- Standardized prompt structures, replacing custom XML-like tags with Markdown.
- Implemented automatic bolding for RFC 2119 keywords (e.g., MUST, SHOULD) in prompt content.
- Simplified environment information provided to agents, removing desktop environment details.
- Updated image generation tool parameters for improved clarity and capacity.
This commit is contained in:
can1357
2026-02-23 21:09:24 +01:00
parent a83175c94c
commit 8a3699bff4
63 changed files with 419 additions and 606 deletions
@@ -1,3 +1,4 @@
import { INTENT_FIELD } from "@oh-my-pi/pi-agent-core";
import type { Api, Model } from "@oh-my-pi/pi-ai";
import { Markdown } from "@oh-my-pi/pi-tui";
import chalk from "chalk";
@@ -245,7 +246,7 @@ function formatToolArgs(args?: Record<string, unknown>): string[] {
}
};
for (const [key, value] of Object.entries(args)) {
if (key === "agent__intent") continue;
if (key === INTENT_FIELD) continue;
visit(value, key);
}
return lines;
@@ -34,5 +34,5 @@ Tool guidance:
## Changelog Requirements
If changelog targets provided, you MUST call `propose_changelog` before finishing.
If changelog targets provided, you **MUST** call `propose_changelog` before finishing.
If you propose split commit plan, include changelog target files in relevant commit changes.