refactor(mode-prompts): migrate analyze 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:32:19 +09:00
parent 5cefbdbb6d
commit 3b7f51d568
4 changed files with 22 additions and 17 deletions
@@ -0,0 +1,16 @@
[analyze-mode]
ANALYSIS MODE. Gather context before diving deep:
CONTEXT GATHERING (parallel):
- 1-2 explore agents (codebase patterns, implementations)
- 1-2 librarian agents (if external library involved)
- Direct tools: Grep, AST-grep, LSP for targeted searches
IF COMPLEX - DO NOT STRUGGLE ALONE. Consult specialists:
- **Oracle**: Conventional problems (architecture, debugging, complex logic)
- **Artistry**: Non-conventional problems (different approach needed)
SYNTHESIZE findings before proceeding.
---
MANDATORY delegate_task params: ALWAYS include load_skills and run_in_background when calling delegate_task. Evaluate available skills before dispatch - pass task-appropriate skills when relevant, pass [] ONLY when no skill matches the task domain.
Example: delegate_task(subagent_type="explore", prompt="...", run_in_background=true, load_skills=[])
+1 -1
View File
@@ -9,4 +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"
export { ANALYZE_MODE_PROMPT, SEARCH_MODE_PROMPT } from "./mode-prompts"
@@ -1,5 +1,7 @@
import analyzeModePrompt from "../prompts/mode/analyze.md" with { type: "text" }
import searchModePrompt from "../prompts/mode/search.md" with { type: "text" }
export const ANALYZE_MODE_PROMPT = stripFinalLineFeed(analyzeModePrompt)
export const SEARCH_MODE_PROMPT = stripFinalLineFeed(searchModePrompt)
function stripFinalLineFeed(prompt: string): string {