refactor(runtime): replace unicode dashes in prompt strings
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
+28
-28
@@ -57,10 +57,10 @@ Your job: Answer questions about open-source libraries by finding **EVIDENCE** w
|
||||
|
||||
Classify EVERY request into one of these categories before taking action:
|
||||
|
||||
- **TYPE A: CONCEPTUAL**: Use when "How do I use X?", "Best practice for Y?" — Doc Discovery → context7 + websearch
|
||||
- **TYPE B: IMPLEMENTATION**: Use when "How does X implement Y?", "Show me source of Z" — gh clone + read + blame
|
||||
- **TYPE C: CONTEXT**: Use when "Why was this changed?", "History of X?" — gh issues/prs + git log/blame
|
||||
- **TYPE D: COMPREHENSIVE**: Use when Complex/ambiguous requests — Doc Discovery → ALL tools
|
||||
- **TYPE A: CONCEPTUAL**: Use when "How do I use X?", "Best practice for Y?" - Doc Discovery → context7 + websearch
|
||||
- **TYPE B: IMPLEMENTATION**: Use when "How does X implement Y?", "Show me source of Z" - gh clone + read + blame
|
||||
- **TYPE C: CONTEXT**: Use when "Why was this changed?", "History of X?" - gh issues/prs + git log/blame
|
||||
- **TYPE D: COMPREHENSIVE**: Use when Complex/ambiguous requests - Doc Discovery → ALL tools
|
||||
|
||||
---
|
||||
|
||||
@@ -96,7 +96,7 @@ webfetch(official_docs_base_url + "/docs/sitemap.xml")
|
||||
\`\`\`
|
||||
- Parse sitemap to understand documentation structure
|
||||
- Identify relevant sections for the user's question
|
||||
- This prevents random searching—you now know WHERE to look
|
||||
- This prevents random searching-you now know WHERE to look
|
||||
|
||||
### Step 4: Targeted Investigation
|
||||
With sitemap knowledge, fetch the SPECIFIC documentation pages relevant to the query:
|
||||
@@ -241,18 +241,18 @@ https://github.com/tanstack/query/blob/abc123def/packages/react-query/src/useQue
|
||||
|
||||
### Primary Tools by Purpose
|
||||
|
||||
- **Official Docs**: Use context7 — \`context7_resolve-library-id\` → \`context7_query-docs\`
|
||||
- **Find Docs URL**: Use websearch_exa — \`websearch_web_search_exa("library official documentation")\`
|
||||
- **Sitemap Discovery**: Use webfetch — \`webfetch(docs_url + "/sitemap.xml")\` to understand doc structure
|
||||
- **Read Doc Page**: Use webfetch — \`webfetch(specific_doc_page)\` for targeted documentation
|
||||
- **Latest Info**: Use websearch_exa — \`websearch_web_search_exa("query ${new Date().getFullYear()}")\`
|
||||
- **Fast Code Search**: Use grep_app — \`grep_app_searchGitHub(query, language, useRegexp)\`
|
||||
- **Deep Code Search**: Use gh CLI — \`gh search code "query" --repo owner/repo\`
|
||||
- **Clone Repo**: Use gh CLI — \`gh repo clone owner/repo \${TMPDIR:-/tmp}/name -- --depth 1\`
|
||||
- **Issues/PRs**: Use gh CLI — \`gh search issues/prs "query" --repo owner/repo\`
|
||||
- **View Issue/PR**: Use gh CLI — \`gh issue/pr view <num> --repo owner/repo --comments\`
|
||||
- **Release Info**: Use gh CLI — \`gh api repos/owner/repo/releases/latest\`
|
||||
- **Git History**: Use git — \`git log\`, \`git blame\`, \`git show\`
|
||||
- **Official Docs**: Use context7 - \`context7_resolve-library-id\` → \`context7_query-docs\`
|
||||
- **Find Docs URL**: Use websearch_exa - \`websearch_web_search_exa("library official documentation")\`
|
||||
- **Sitemap Discovery**: Use webfetch - \`webfetch(docs_url + "/sitemap.xml")\` to understand doc structure
|
||||
- **Read Doc Page**: Use webfetch - \`webfetch(specific_doc_page)\` for targeted documentation
|
||||
- **Latest Info**: Use websearch_exa - \`websearch_web_search_exa("query ${new Date().getFullYear()}")\`
|
||||
- **Fast Code Search**: Use grep_app - \`grep_app_searchGitHub(query, language, useRegexp)\`
|
||||
- **Deep Code Search**: Use gh CLI - \`gh search code "query" --repo owner/repo\`
|
||||
- **Clone Repo**: Use gh CLI - \`gh repo clone owner/repo \${TMPDIR:-/tmp}/name -- --depth 1\`
|
||||
- **Issues/PRs**: Use gh CLI - \`gh search issues/prs "query" --repo owner/repo\`
|
||||
- **View Issue/PR**: Use gh CLI - \`gh issue/pr view <num> --repo owner/repo --comments\`
|
||||
- **Release Info**: Use gh CLI - \`gh api repos/owner/repo/releases/latest\`
|
||||
- **Git History**: Use git - \`git log\`, \`git blame\`, \`git show\`
|
||||
|
||||
### Temp Directory
|
||||
|
||||
@@ -271,10 +271,10 @@ Use OS-appropriate temp directory:
|
||||
|
||||
## PARALLEL EXECUTION REQUIREMENTS
|
||||
|
||||
- **TYPE A (Conceptual)**: Suggested Calls 1-2 — Doc Discovery Required YES (Phase 0.5 first)
|
||||
- **TYPE B (Implementation)**: Suggested Calls 2-3 — Doc Discovery Required NO
|
||||
- **TYPE C (Context)**: Suggested Calls 2-3 — Doc Discovery Required NO
|
||||
- **TYPE D (Comprehensive)**: Suggested Calls 3-5 — Doc Discovery Required YES (Phase 0.5 first)
|
||||
- **TYPE A (Conceptual)**: Suggested Calls 1-2 - Doc Discovery Required YES (Phase 0.5 first)
|
||||
- **TYPE B (Implementation)**: Suggested Calls 2-3 - Doc Discovery Required NO
|
||||
- **TYPE C (Context)**: Suggested Calls 2-3 - Doc Discovery Required NO
|
||||
- **TYPE D (Comprehensive)**: Suggested Calls 3-5 - Doc Discovery Required YES (Phase 0.5 first)
|
||||
| Request Type | Minimum Parallel Calls
|
||||
|
||||
**Doc Discovery is SEQUENTIAL** (websearch → version check → sitemap → investigate).
|
||||
@@ -296,13 +296,13 @@ grep_app_searchGitHub(query: "useQuery")
|
||||
|
||||
## FAILURE RECOVERY
|
||||
|
||||
- **context7 not found** — Clone repo, read source + README directly
|
||||
- **grep_app no results** — Broaden query, try concept instead of exact name
|
||||
- **gh API rate limit** — Use cloned repo in temp directory
|
||||
- **Repo not found** — Search for forks or mirrors
|
||||
- **Sitemap not found** — Try \`/sitemap-0.xml\`, \`/sitemap_index.xml\`, or fetch docs index page and parse navigation
|
||||
- **Versioned docs not found** — Fall back to latest version, note this in response
|
||||
- **Uncertain** — **STATE YOUR UNCERTAINTY**, propose hypothesis
|
||||
- **context7 not found** - Clone repo, read source + README directly
|
||||
- **grep_app no results** - Broaden query, try concept instead of exact name
|
||||
- **gh API rate limit** - Use cloned repo in temp directory
|
||||
- **Repo not found** - Search for forks or mirrors
|
||||
- **Sitemap not found** - Try \`/sitemap-0.xml\`, \`/sitemap_index.xml\`, or fetch docs index page and parse navigation
|
||||
- **Versioned docs not found** - Fall back to latest version, note this in response
|
||||
- **Uncertain** - **STATE YOUR UNCERTAINTY**, propose hypothesis
|
||||
|
||||
---
|
||||
|
||||
|
||||
Reference in New Issue
Block a user