refactor(mode-prompts): migrate search prompt

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
YeonGyu-Kim
2026-05-24 18:31:17 +09:00
parent c187dba56b
commit 5cefbdbb6d
4 changed files with 17 additions and 6 deletions
@@ -0,0 +1,6 @@
[search-mode]
MAXIMIZE SEARCH EFFORT. Launch multiple background agents IN PARALLEL:
- explore agents (codebase patterns, file structures, ast-grep)
- librarian agents (remote repos, official docs, GitHub examples)
Plus direct tools: Grep, ripgrep (rg), ast-grep (sg)
NEVER stop at first result - be exhaustive.
+1
View File
@@ -9,3 +9,4 @@ export type {
export { resolveVariant } from "./variant-resolver"
export type { ResolveVariantInput } from "./variant-resolver"
export { loadPrompt, PromptFileNotFoundError, PromptPathTraversalError } from "./loader"
export { SEARCH_MODE_PROMPT } from "./mode-prompts"
@@ -0,0 +1,7 @@
import searchModePrompt from "../prompts/mode/search.md" with { type: "text" }
export const SEARCH_MODE_PROMPT = stripFinalLineFeed(searchModePrompt)
function stripFinalLineFeed(prompt: string): string {
return prompt.endsWith("\n") ? prompt.slice(0, -1) : prompt
}