/yellow-research:research:research:setupfrom yellow-research
Check which research API keys and MCP sources are configured and active. Use when first installing the plugin, after adding API keys, or to understand why a research command degraded to fewer sources.
Ships in yellow-research. Installing the plugin adds it to Claude Code.
Check which API keys are configured, validate their format, optionally test live connectivity, and health-check MCP sources. All API keys are optional and MCP sources are always available if their plugin is installed — the plugin degrades gracefully and continues with whichever sources are available.
Check if the optional ast-grep CLI is installed. Agents call it by the name
ast-grep through Bash; sg is not checked because it collides with
shadow-utils on Linux:
if command -v ast-grep >/dev/null 2>&1; then
printf '[yellow-research] ast-grep: ok (%s)\n' "$(ast-grep --version 2>/dev/null)"
fi
If ast-grep is not found, use AskUserQuestion:
"ast-grep binary not found. Install it now? (Enables AST-based code search in /research:code and the yellow-debt scanners)"
Options: "Yes, install ast-grep" / "No, I'll install manually"
If the user chooses Yes: run the install script:
bash "${CLAUDE_PLUGIN_ROOT}/scripts/install-ast-grep.sh"
If the install script exits non-zero, print a warning with manual instructions and continue to Step 1:
[yellow-research] Warning: ast-grep installation failed. AST-based code search
will be unavailable. Other MCP sources are unaffected.
Install ast-grep manually using one of:
npm install -g @ast-grep/cli (Node.js)
brew install ast-grep (macOS/Linux)
pip install ast-grep-cli (Python)
cargo install ast-grep --locked (Rust)
Then re-run /research:setup
If the user chooses No: show manual install instructions and continue:
Install ast-grep manually using one of:
npm install -g @ast-grep/cli (Node.js)
brew install ast-grep (macOS/Linux)
pip install ast-grep-cli (Python)
cargo install ast-grep --locked (Rust)
Then re-run /research:setup
Run a single Bash call to check tools and all three API keys:
printf '=== Prerequisites ===\n'
command -v curl >/dev/null 2>&1 && printf 'curl: ok\n' || printf 'curl: NOT FOUND\n'
command -v jq >/dev/null 2>&1 && printf 'jq: ok\n' || printf 'jq: NOT FOUND\n'
if command -v ast-grep >/dev/null 2>&1; then
printf 'ast-grep: ok\n'
else
printf 'ast-grep: NOT FOUND (optional — AST code search in /research:code)\n'
fi
printf '\n=== API Keys ===\n'
# 2-arg has_userconfig: identical copies live in the research, devin and
# semgrep setup commands (tests/has-userconfig.bats in yellow-research fails
# on drift) — if you change one, change all copies (search for
# "has_userconfig()" across plugins/). The no-jq fallback matches the plugin id with
# `grep -qF` (fixed-string) and the option with `grep -qE` as a key followed by a
# non-empty string value, so an empty stored value does not count (same as jq).
has_userconfig() {
# Sensitive userConfig values live under .pluginSecrets in the credentials
# store (~/.claude/.credentials.json on Linux; the macOS keychain is not
# readable here). Non-sensitive ones live under .pluginConfigs[].options in
# settings.json. Both are keyed by plugin id ("<name>@yellow-plugins");
# other marketplaces' entries for the same name are ignored.
# Presence only: the value is never printed.
local plugin="$1" option="$2" file jq_exit
local config_dir="${CLAUDE_CONFIG_DIR:-$HOME/.claude}" have_jq=1
if ! command -v jq >/dev/null 2>&1; then
have_jq=0
printf '[has_userconfig] Warning: jq not installed; using grep fallback (may produce false positives)\n' >&2
fi
for file in "$config_dir/.credentials.json" "$config_dir/settings.json"; do
[ -r "$file" ] || continue
if [ "$have_jq" -eq 1 ]; then
jq -e --arg p "$plugin" --arg o "$option" '
[ (.pluginSecrets // {} | to_entries[]),
(.pluginConfigs // {} | to_entries[] | .value |= (.options // {})) ]
| map(select((.key == $p or .key == $p + "@yellow-plugins")
and (.value | type) == "object")
| .value[$o] // empty | select(. != ""))
| length > 0' "$file" >/dev/null 2>&1
jq_exit=$?
# 1 = key absent; 4 = no output (empty file). 2, 3 and 5 are real
# errors: say so instead of reporting a configured key as NOT SET.
case "$jq_exit" in
0) return 0 ;;
1|4) ;;
*) printf '[has_userconfig] Warning: jq could not parse %s (exit %d)\n' \
"$file" "$jq_exit" >&2 ;;
esac
else
# Flatten newlines, then require the option inside the same plugin object.
tr -d '\n\r' < "$file" 2>/dev/null \
| grep -qE "\"($plugin|$plugin@yellow-plugins)\"[[:space:]]*:[[:space:]]*\{[^{}]*(\"options\"[[:space:]]*:[[:space:]]*\{[^{}]*)?\"$option\"[[:space:]]*:[[:space:]]*\"[^\"]" 2>/dev/null && return 0
fi
done
return 1
}
check_key() {
# `eval` for POSIX-compatible indirect expansion. bash/zsh-only ${!var}
# silently returns empty under dash, which would mis-classify every key.
local env_name="$1" cfg_key="$2" label="$3" env_val=""
local has_env=0 has_cfg=0
eval "env_val=\${${env_name}:-}"
[ -n "$env_val" ] && has_env=1
has_userconfig yellow-research "$cfg_key" && has_cfg=1
if [ $has_env -eq 1 ] && [ $has_cfg -eq 1 ]; then
printf '%-22s set (both shell & userConfig)\n' "$label:"
elif [ $has_env -eq 1 ]; then
printf '%-22s set (shell env; the MCP uses it via the start-*.sh fallback only if Claude Code was launched with it exported, and not when a keychain userConfig key exists, which this check cannot see on macOS)\n' "$label:"
elif [ $has_cfg -eq 1 ]; then
printf '%-22s set (userConfig only)\n' "$label:"
else
printf '%-22s NOT SET\n' "$label:"
fi
}
check_key EXA_API_KEY exa_api_key EXA_API_KEY
check_key TAVILY_API_KEY tavily_api_key TAVILY_API_KEY
check_key PERPLEXITY_API_KEY perplexity_api_key PERPLEXITY_API_KEY
curl and jq missing are informational warnings — they affect live testing
only. Do not stop if they are absent. All three API keys are optional; if 0 are
set, the command still completes successfully (showing all INACTIVE). Ceramic
has no key: its MCP server authenticates via OAuth 2.1 (browser flow on first
use), and Step 3.5 checks it.
For each key that is set, run a format check. Never echo the key value — only describe format mismatches.
EXA (no public prefix documented — length/charset only):
key="${EXA_API_KEY:-}"
if [ -n "$key" ]; then
if ! printf '%s' "$key" | grep -qE '^[a-zA-Z0-9_-]{20,}$'; then
printf 'EXA_API_KEY: FORMAT INVALID (expected 20+ alphanumeric/dash/underscore chars, no whitespace)\n'
else
printf 'EXA_API_KEY: FORMAT VALID\n'
fi
fi
Tavily (known tvly- prefix):
key="${TAVILY_API_KEY:-}"
if [ -n "$key" ]; then
if ! printf '%s' "$key" | grep -qE '^tvly-[a-zA-Z0-9_-]{20,}$'; then
printf 'TAVILY_API_KEY: FORMAT INVALID (expected tvly- prefix + 20+ chars)\n'
else
printf 'TAVILY_API_KEY: FORMAT VALID\n'
fi
fi
Perplexity (known pplx- prefix):
key="${PERPLEXITY_API_KEY:-}"
if [ -n "$key" ]; then
if ! printf '%s' "$key" | grep -qE '^pplx-[a-zA-Z0-9_-]{40,}$'; then
printf 'PERPLEXITY_API_KEY: FORMAT INVALID (expected pplx- prefix + 40+ alphanumeric/dash/underscore chars)\n'
else
printf 'PERPLEXITY_API_KEY: FORMAT VALID\n'
fi
fi
Per-key status after this step: ABSENT / FORMAT VALID / FORMAT INVALID
Exception: when Step 1 showed set (both shell & userConfig) and the shell key
is FORMAT INVALID, no probe runs and the final status is
PRESENT (userConfig takes precedence — shell key format invalid), because the
MCP uses the userConfig key. Perplexity's label ends with ; pending MCP-visibility confirmation.
Step 3 assigns final live-test status: ACTIVE / INVALID / RATE LIMITED /
UNREACHABLE / UNVERIFIED (shell key rejected; …) (shell key got 401/403 on macOS,
where a keychain key cannot be inspected, or without jq when the substring
fallback finds this provider's userConfig option in a settings or credentials
file; on Linux when the fallback finds no non-empty value for the option, or with
jq finding no userConfig key, the status stays INVALID; Perplexity's label
ends with ; pending MCP-visibility confirmation) /
UNVERIFIED (shell key passed; …) (shell key got 200, but without jq the
fallback finds a non-empty value for this provider's userConfig option in a
settings or credentials file, so a userConfig key that takes precedence in the
MCP may be invalid; macOS alone does not trigger it, and Perplexity's label ends
with ; pending MCP-visibility confirmation) /
PRESENT (untested) (when user skips testing) /
PRESENT (userConfig takes precedence — shell key probe: <result>)
(shell key probed with any result, but a userConfig key is also set and the
MCP uses that one; Perplexity's label ends with ; pending MCP-visibility confirmation).
If any keys are present and format-valid, and curl is available, ask:
"Test live API connectivity? MCP sources are always checked (no quota cost). This option controls whether API key sources are also probed — 1 small call per present key, consuming a small amount of API quota (1 search credit or 1 token per provider). Skip if quota is a concern."
Options: "Yes, test all" / "No, skip testing"
If user opts in, run a probe for each format-valid key with a 5-second timeout.
If user skips, proceed to Step 4 with all format-valid keys marked
PRESENT (untested).
EXA:
# `has_userconfig` was defined in Step 1's bash block, but each ```bash``` block
# in a command file runs in a fresh subprocess — the function is undefined here.
# Re-define inline so the SKIP_CURL_PROBE check below is reliable.
has_userconfig() {
# Sensitive userConfig values live under .pluginSecrets in the credentials
# store (~/.claude/.credentials.json on Linux; the macOS keychain is not
# readable here). Non-sensitive ones live under .pluginConfigs[].options in
# settings.json. Both are keyed by plugin id ("<name>@yellow-plugins");
# other marketplaces' entries for the same name are ignored.
# Presence only: the value is never printed.
local plugin="$1" option="$2" file jq_exit
local config_dir="${CLAUDE_CONFIG_DIR:-$HOME/.claude}" have_jq=1
if ! command -v jq >/dev/null 2>&1; then
have_jq=0
printf '[has_userconfig] Warning: jq not installed; using grep fallback (may produce false positives)\n' >&2
fi
for file in "$config_dir/.credentials.json" "$config_dir/settings.json"; do
[ -r "$file" ] || continue
if [ "$have_jq" -eq 1 ]; then
jq -e --arg p "$plugin" --arg o "$option" '
[ (.pluginSecrets // {} | to_entries[]),
(.pluginConfigs // {} | to_entries[] | .value |= (.options // {})) ]
| map(select((.key == $p or .key == $p + "@yellow-plugins")
and (.value | type) == "object")
| .value[$o] // empty | select(. != ""))
| length > 0' "$file" >/dev/null 2>&1
jq_exit=$?
# 1 = key absent; 4 = no output (empty file). 2, 3 and 5 are real
# errors: say so instead of reporting a configured key as NOT SET.
case "$jq_exit" in
0) return 0 ;;
1|4) ;;
*) printf '[has_userconfig] Warning: jq could not parse %s (exit %d)\n' \
"$file" "$jq_exit" >&2 ;;
esac
else
# Flatten newlines, then require the option inside the same plugin object.
tr -d '\n\r' < "$file" 2>/dev/null \
| grep -qE "\"($plugin|$plugin@yellow-plugins)\"[[:space:]]*:[[:space:]]*\{[^{}]*(\"options\"[[:space:]]*:[[:space:]]*\{[^{}]*)?\"$option\"[[:space:]]*:[[:space:]]*\"[^\"]" 2>/dev/null && return 0
fi
done
return 1
}
# Skip curl probe when key is userConfig-only — shell env is empty so the
# token would not be visible here; the MCP reads it directly from userConfig.
# Note: exa MCP @ 3.1.8 starts without a key and only fails at tool invocation,
# so MCP startup does NOT validate this credential — we only know the key is
# stored in the keychain.
SKIP_CURL_PROBE=0
[ -z "${EXA_API_KEY:-}" ] && has_userconfig yellow-research exa_api_key && SKIP_CURL_PROBE=1
if [ $SKIP_CURL_PROBE -eq 1 ]; then
provider_status="PRESENT (keychain — MCP starts without credential validation)"
provider_detail="Shell env empty; key present in userConfig. Run an exa tool call to validate."
else
response=$(curl -s --connect-timeout 5 --max-time 5 \
-w "\n%{http_code}" \
-X POST "https://api.exa.ai/search" \
-H "x-api-key: ${EXA_API_KEY}" \
-H "Content-Type: application/json" \
-d '{"query":"test","numResults":1}')
curl_exit=$?
http_status=$(printf '%s' "$response" | tail -n1)
# Inline decision tree — must run in the same subprocess as the curl probe so
# $curl_exit and $http_status are still in scope (each ```bash``` block is a
# fresh subprocess; see comment at the top of this Step).
if [ "$curl_exit" -ne 0 ]; then
provider_status="UNREACHABLE"
provider_detail="API unreachable (curl exit $curl_exit — timeout or network error)"
elif [ "$http_status" = "200" ]; then
provider_status="ACTIVE"
provider_detail="Live test passed"
elif [ "$http_status" = "401" ] || [ "$http_status" = "403" ]; then
provider_status="INVALID"
# A 401 here means the shell-env key was rejected (only shell keys reach
# this probe). The start-*.sh wrappers fall back to shell env, but
# userConfig wins when both are set; the both-set override below reports it.
provider_detail="Key in shell env was rejected by the live API (HTTP $http_status). It may be expired or revoked — regenerate it at the provider dashboard. If a userConfig or keychain key is also set, the MCP uses that one instead."
elif [ "$http_status" = "429" ]; then
provider_status="RATE LIMITED"
provider_detail="Key may be valid; service is busy. Try again later."
elif printf '%s' "$http_status" | grep -qE '^5[0-9][0-9]$'; then
provider_status="UNREACHABLE"
provider_detail="API server error (HTTP $http_status)"
else
provider_status="UNREACHABLE"
provider_detail="Unexpected HTTP $http_status"
fi
# The probe tests the shell key; with both set, the MCP uses the userConfig one,
# so report the probe result without claiming the MCP's key was tested.
# Without jq has_userconfig is a pattern match over the settings and
# credentials files and ignores empty values. It can still false-positive (the
# plugin id and option are matched independently), but a miss is definitive: no
# non-empty value for this provider's option means no userConfig key exists
# (Linux has no keychain).
userconfig_maybe=0
if ! command -v jq >/dev/null 2>&1; then
if has_userconfig yellow-research exa_api_key 2>/dev/null; then
userconfig_maybe=1
provider_detail="$provider_detail (jq is not installed, so whether the userConfig key is also set was not confirmed)"
fi
elif has_userconfig yellow-research exa_api_key; then
provider_detail="Shell key probe: $provider_status ($provider_detail). A userConfig key is also set and takes precedence in the MCP; it was not tested here. If the shell key was rejected, update or unset it in your shell rc. Run an exa tool call to validate the userConfig key."
provider_status="PRESENT (userConfig takes precedence — shell key probe: $provider_status)"
fi
# Still INVALID only if no userConfig key was found. Unknown on macOS (the
# Keychain cannot be inspected) and without jq when the substring check found
# this provider's option in a settings or credentials file (it cannot confirm
# the value). A substring miss keeps INVALID.
if [ "$provider_status" = "INVALID" ] && { [ "$(uname -s 2>/dev/null)" = "Darwin" ] || [ "$userconfig_maybe" -eq 1 ]; }; then
provider_status="UNVERIFIED (shell key rejected; a userConfig or keychain key may take precedence and cannot be inspected)"
provider_detail="Shell key probe: HTTP $http_status. A keychain key (macOS) or userConfig key (jq missing, this provider's option found in a settings or credentials file) may be set and takes precedence in the MCP; this check cannot see it. Restart Claude Code, run an exa tool call to check the key the MCP uses, and replace the shell key only if you have no userConfig key."
fi
# The shell key passed, but a non-empty userConfig key wins in the MCP
# (bin/lib/resolve-mcp-key.sh) and may itself be invalid. Without jq the
# substring match cannot confirm it, so do not report ACTIVE. macOS alone does
# not trigger this: only a found userConfig trace does.
if [ "$provider_status" = "ACTIVE" ] && [ "$userconfig_maybe" -eq 1 ]; then
provider_status="UNVERIFIED (shell key passed; a userConfig key may take precedence and cannot be inspected)"
provider_detail="Shell key probe: HTTP $http_status (passed). jq is not installed and this provider's option was found in a settings or credentials file, so a userConfig key may be set; it takes precedence in the MCP and cannot be inspected without jq. Install jq and re-run, or check the key in plugin settings. Run an exa tool call to check the key the MCP uses."
fi
fi
# Variables do not cross Bash blocks, so print the result for Steps 4 and 5.
printf 'provider=exa\nprovider_status=%s\nprovider_detail=%s\n' "$provider_status" "$provider_detail"
Tavily:
# Re-define has_userconfig inline (separate Bash block = fresh subprocess).
has_userconfig() {
# Sensitive userConfig values live under .pluginSecrets in the credentials
# store (~/.claude/.credentials.json on Linux; the macOS keychain is not
# readable here). Non-sensitive ones live under .pluginConfigs[].options in
# settings.json. Both are keyed by plugin id ("<name>@yellow-plugins");
# other marketplaces' entries for the same name are ignored.
# Presence only: the value is never printed.
local plugin="$1" option="$2" file jq_exit
local config_dir="${CLAUDE_CONFIG_DIR:-$HOME/.claude}" have_jq=1
if ! command -v jq >/dev/null 2>&1; then
have_jq=0
printf '[has_userconfig] Warning: jq not installed; using grep fallback (may produce false positives)\n' >&2
fi
for file in "$config_dir/.credentials.json" "$config_dir/settings.json"; do
[ -r "$file" ] || continue
if [ "$have_jq" -eq 1 ]; then
jq -e --arg p "$plugin" --arg o "$option" '
[ (.pluginSecrets // {} | to_entries[]),
(.pluginConfigs // {} | to_entries[] | .value |= (.options // {})) ]
| map(select((.key == $p or .key == $p + "@yellow-plugins")
and (.value | type) == "object")
| .value[$o] // empty | select(. != ""))
| length > 0' "$file" >/dev/null 2>&1
jq_exit=$?
# 1 = key absent; 4 = no output (empty file). 2, 3 and 5 are real
# errors: say so instead of reporting a configured key as NOT SET.
case "$jq_exit" in
0) return 0 ;;
1|4) ;;
*) printf '[has_userconfig] Warning: jq could not parse %s (exit %d)\n' \
"$file" "$jq_exit" >&2 ;;
esac
else
# Flatten newlines, then require the option inside the same plugin object.
tr -d '\n\r' < "$file" 2>/dev/null \
| grep -qE "\"($plugin|$plugin@yellow-plugins)\"[[:space:]]*:[[:space:]]*\{[^{}]*(\"options\"[[:space:]]*:[[:space:]]*\{[^{}]*)?\"$option\"[[:space:]]*:[[:space:]]*\"[^\"]" 2>/dev/null && return 0
fi
done
return 1
}
# Skip curl probe when key is userConfig-only — MCP reads it from userConfig.
# Note: tavily MCP @ 0.2.17 starts without a key and only fails at tool
# invocation, so MCP startup does NOT validate this credential.
SKIP_CURL_PROBE=0
[ -z "${TAVILY_API_KEY:-}" ] && has_userconfig yellow-research tavily_api_key && SKIP_CURL_PROBE=1
if [ $SKIP_CURL_PROBE -eq 1 ]; then
provider_status="PRESENT (keychain — MCP starts without credential validation)"
provider_detail="Shell env empty; key present in userConfig. Run a tavily tool call to validate."
else
# Build body safely — key format already validated as [a-zA-Z0-9_-]+
if command -v jq >/dev/null 2>&1; then
tavily_body=$(jq -n --arg k "${TAVILY_API_KEY}" '{"api_key":$k,"query":"test","max_results":1}')
else
tavily_body=$(printf '{"api_key":"%s","query":"test","max_results":1}' "${TAVILY_API_KEY}")
fi
response=$(curl -s --connect-timeout 5 --max-time 5 \
-w "\n%{http_code}" \
-X POST "https://api.tavily.com/search" \
-H "Content-Type: application/json" \
-d "$tavily_body")
curl_exit=$?
http_status=$(printf '%s' "$response" | tail -n1)
# Inline decision tree — must run in the same subprocess as the curl probe.
if [ "$curl_exit" -ne 0 ]; then
provider_status="UNREACHABLE"
provider_detail="API unreachable (curl exit $curl_exit — timeout or network error)"
elif [ "$http_status" = "200" ]; then
provider_status="ACTIVE"
provider_detail="Live test passed"
elif [ "$http_status" = "401" ] || [ "$http_status" = "403" ]; then
provider_status="INVALID"
# Shell-env 401 diagnostic: see EXA block above for rationale.
provider_detail="Key in shell env was rejected by the live API (HTTP $http_status). It may be expired or revoked — regenerate it at the provider dashboard. If a userConfig or keychain key is also set, the MCP uses that one instead."
elif [ "$http_status" = "429" ]; then
provider_status="RATE LIMITED"
provider_detail="Key may be valid; service is busy. Try again later."
elif printf '%s' "$http_status" | grep -qE '^5[0-9][0-9]$'; then
provider_status="UNREACHABLE"
provider_detail="API server error (HTTP $http_status)"
else
provider_status="UNREACHABLE"
provider_detail="Unexpected HTTP $http_status"
fi
# The probe tests the shell key; with both set, the MCP uses the userConfig one,
# so report the probe result without claiming the MCP's key was tested.
# Without jq has_userconfig is a pattern match over the settings and
# credentials files and ignores empty values. It can still false-positive (the
# plugin id and option are matched independently), but a miss is definitive: no
# non-empty value for this provider's option means no userConfig key exists
# (Linux has no keychain).
userconfig_maybe=0
if ! command -v jq >/dev/null 2>&1; then
if has_userconfig yellow-research tavily_api_key 2>/dev/null; then
userconfig_maybe=1
provider_detail="$provider_detail (jq is not installed, so whether the userConfig key is also set was not confirmed)"
fi
elif has_userconfig yellow-research tavily_api_key; then
provider_detail="Shell key probe: $provider_status ($provider_detail). A userConfig key is also set and takes precedence in the MCP; it was not tested here. If the shell key was rejected, update or unset it in your shell rc. Run a tavily tool call to validate the userConfig key."
provider_status="PRESENT (userConfig takes precedence — shell key probe: $provider_status)"
fi
# Still INVALID only if no userConfig key was found. Unknown on macOS (the
# Keychain cannot be inspected) and without jq when the substring check found
# this provider's option in a settings or credentials file (it cannot confirm
# the value). A substring miss keeps INVALID.
if [ "$provider_status" = "INVALID" ] && { [ "$(uname -s 2>/dev/null)" = "Darwin" ] || [ "$userconfig_maybe" -eq 1 ]; }; then
provider_status="UNVERIFIED (shell key rejected; a userConfig or keychain key may take precedence and cannot be inspected)"
provider_detail="Shell key probe: HTTP $http_status. A keychain key (macOS) or userConfig key (jq missing, this provider's option found in a settings or credentials file) may be set and takes precedence in the MCP; this check cannot see it. Restart Claude Code, run a tavily tool call to check the key the MCP uses, and replace the shell key only if you have no userConfig key."
fi
# The shell key passed, but a non-empty userConfig key wins in the MCP
# (bin/lib/resolve-mcp-key.sh) and may itself be invalid. Without jq the
# substring match cannot confirm it, so do not report ACTIVE. macOS alone does
# not trigger this: only a found userConfig trace does.
if [ "$provider_status" = "ACTIVE" ] && [ "$userconfig_maybe" -eq 1 ]; then
provider_status="UNVERIFIED (shell key passed; a userConfig key may take precedence and cannot be inspected)"
provider_detail="Shell key probe: HTTP $http_status (passed). jq is not installed and this provider's option was found in a settings or credentials file, so a userConfig key may be set; it takes precedence in the MCP and cannot be inspected without jq. Install jq and re-run, or check the key in plugin settings. Run a tavily tool call to check the key the MCP uses."
fi
fi
# Variables do not cross Bash blocks, so print the result for Steps 4 and 5.
printf 'provider=tavily\nprovider_status=%s\nprovider_detail=%s\n' "$provider_status" "$provider_detail"
Perplexity:
# Re-define has_userconfig inline (separate Bash block = fresh subprocess).
has_userconfig() {
# Sensitive userConfig values live under .pluginSecrets in the credentials
# store (~/.claude/.credentials.json on Linux; the macOS keychain is not
# readable here). Non-sensitive ones live under .pluginConfigs[].options in
# settings.json. Both are keyed by plugin id ("<name>@yellow-plugins");
# other marketplaces' entries for the same name are ignored.
# Presence only: the value is never printed.
local plugin="$1" option="$2" file jq_exit
local config_dir="${CLAUDE_CONFIG_DIR:-$HOME/.claude}" have_jq=1
if ! command -v jq >/dev/null 2>&1; then
have_jq=0
printf '[has_userconfig] Warning: jq not installed; using grep fallback (may produce false positives)\n' >&2
fi
for file in "$config_dir/.credentials.json" "$config_dir/settings.json"; do
[ -r "$file" ] || continue
if [ "$have_jq" -eq 1 ]; then
jq -e --arg p "$plugin" --arg o "$option" '
[ (.pluginSecrets // {} | to_entries[]),
(.pluginConfigs // {} | to_entries[] | .value |= (.options // {})) ]
| map(select((.key == $p or .key == $p + "@yellow-plugins")
and (.value | type) == "object")
| .value[$o] // empty | select(. != ""))
| length > 0' "$file" >/dev/null 2>&1
jq_exit=$?
# 1 = key absent; 4 = no output (empty file). 2, 3 and 5 are real
# errors: say so instead of reporting a configured key as NOT SET.
case "$jq_exit" in
0) return 0 ;;
1|4) ;;
*) printf '[has_userconfig] Warning: jq could not parse %s (exit %d)\n' \
"$file" "$jq_exit" >&2 ;;
esac
else
# Flatten newlines, then require the option inside the same plugin object.
tr -d '\n\r' < "$file" 2>/dev/null \
| grep -qE "\"($plugin|$plugin@yellow-plugins)\"[[:space:]]*:[[:space:]]*\{[^{}]*(\"options\"[[:space:]]*:[[:space:]]*\{[^{}]*)?\"$option\"[[:space:]]*:[[:space:]]*\"[^\"]" 2>/dev/null && return 0
fi
done
return 1
}
# Skip curl probe when key is userConfig-only — MCP reads it from userConfig.
# Note: perplexity MCP @ 0.8.2 hard-fails at startup without a valid key
# (tools disappear entirely), so MCP startup IS a credential signal here.
SKIP_CURL_PROBE=0
[ -z "${PERPLEXITY_API_KEY:-}" ] && has_userconfig yellow-research perplexity_api_key && SKIP_CURL_PROBE=1
if [ $SKIP_CURL_PROBE -eq 1 ]; then
# Tentative classification — the MCP-startup validation claim only holds
# if Step 3.5 actually confirms the perplexity tools are visible. If
# Step 3.5 finds the perplexity MCP UNAVAILABLE (e.g., npm/node failure
# or a malformed key that triggered a startup crash), upgrade the
# final report to clarify that the credential's validity was NOT
# confirmed by MCP startup. Use the literal "userConfig only" status
# in the meantime; Step 4 reconciles against Step 3.5's MCP-visibility
# result before printing the unified table.
provider_status="PRESENT (userConfig only — pending MCP-visibility confirmation)"
provider_detail="Shell env empty; key present in userConfig. Perplexity MCP hard-fails at startup without a valid key, so a successful Step 3.5 visibility check upgrades this to PRESENT (validated via MCP startup). If Step 3.5 reports the MCP UNAVAILABLE, leave this status as-is and append: 'MCP did not load — credential validity unconfirmed.'"
else
response=$(curl -s --connect-timeout 5 --max-time 5 \
-w "\n%{http_code}" \
-X POST "https://api.perplexity.ai/chat/completions" \
-H "Authorization: Bearer ${PERPLEXITY_API_KEY}" \
-H "Content-Type: application/json" \
-d '{"model":"sonar","messages":[{"role":"user","content":"hi"}],"max_tokens":1}')
curl_exit=$?
http_status=$(printf '%s' "$response" | tail -n1)
# Inline decision tree — must run in the same subprocess as the curl probe.
if [ "$curl_exit" -ne 0 ]; then
provider_status="UNREACHABLE"
provider_detail="API unreachable (curl exit $curl_exit — timeout or network error)"
elif [ "$http_status" = "200" ]; then
provider_status="ACTIVE"
provider_detail="Live test passed"
elif [ "$http_status" = "401" ] || [ "$http_status" = "403" ]; then
provider_status="INVALID"
# Shell-env 401 diagnostic: see EXA block above for rationale.
provider_detail="Key in shell env was rejected by the live API (HTTP $http_status). It may be expired or revoked — regenerate it at the provider dashboard. If a userConfig or keychain key is also set, the MCP uses that one instead."
elif [ "$http_status" = "429" ]; then
provider_status="RATE LIMITED"
provider_detail="Key may be valid; service is busy. Try again later."
elif printf '%s' "$http_status" | grep -qE '^5[0-9][0-9]$'; then
provider_status="UNREACHABLE"
provider_detail="API server error (HTTP $http_status)"
else
provider_status="UNREACHABLE"
provider_detail="Unexpected HTTP $http_status"
fi
# The probe tests the shell key; with both set, the MCP uses the userConfig one,
# so report the probe result without claiming the MCP's key was tested.
# Without jq has_userconfig is a pattern match over the settings and
# credentials files and ignores empty values. It can still false-positive (the
# plugin id and option are matched independently), but a miss is definitive: no
# non-empty value for this provider's option means no userConfig key exists
# (Linux has no keychain).
userconfig_maybe=0
if ! command -v jq >/dev/null 2>&1; then
if has_userconfig yellow-research perplexity_api_key 2>/dev/null; then
userconfig_maybe=1
provider_detail="$provider_detail (jq is not installed, so whether the userConfig key is also set was not confirmed)"
fi
elif has_userconfig yellow-research perplexity_api_key; then
provider_detail="Shell key probe: $provider_status ($provider_detail). A userConfig key is also set and takes precedence in the MCP; it was not tested here. If the shell key was rejected, update or unset it in your shell rc. Run a perplexity tool call to validate the userConfig key. Perplexity counts as active only once Step 3.5 sees its MCP tools."
provider_status="PRESENT (userConfig takes precedence — shell key probe: $provider_status; pending MCP-visibility confirmation)"
fi
# Still INVALID only if no userConfig key was found. Unknown on macOS (the
# Keychain cannot be inspected) and without jq when the substring check found
# this provider's option in a settings or credentials file (it cannot confirm
# the value). A miss keeps INVALID. Perplexity stays pending for Step 3.5's
# MCP-visibility check, like the passed-key UNVERIFIED case below.
if [ "$provider_status" = "INVALID" ] && { [ "$(uname -s 2>/dev/null)" = "Darwin" ] || [ "$userconfig_maybe" -eq 1 ]; }; then
provider_status="UNVERIFIED (shell key rejected; a userConfig or keychain key may take precedence and cannot be inspected); pending MCP-visibility confirmation"
provider_detail="Shell key probe: HTTP $http_status. A keychain key (macOS) or userConfig key (jq missing, this provider's option found in a settings or credentials file) may be set and takes precedence in the MCP; this check cannot see it. Restart Claude Code, run a perplexity tool call to check the key the MCP uses, and replace the shell key only if you have no userConfig key. Perplexity counts as active only once Step 3.5 sees its MCP tools."
fi
# The shell key passed, but a non-empty userConfig key wins in the MCP
# (bin/lib/resolve-mcp-key.sh) and may itself be invalid. Without jq the
# substring match cannot confirm it, so do not report ACTIVE. macOS alone does
# not trigger this: only a found userConfig trace does. Perplexity stays
# pending for Step 3.5's MCP-visibility check.
if [ "$provider_status" = "ACTIVE" ] && [ "$userconfig_maybe" -eq 1 ]; then
provider_status="UNVERIFIED (shell key passed; a userConfig key may take precedence and cannot be inspected); pending MCP-visibility confirmation"
provider_detail="Shell key probe: HTTP $http_status (passed). jq is not installed and this provider's option was found in a settings or credentials file, so a userConfig key may be set; it takes precedence in the MCP and cannot be inspected without jq. Install jq and re-run, or check the key in plugin settings. Perplexity counts as active only once Step 3.5 sees its MCP tools."
fi
fi
# Variables do not cross Bash blocks, so print the result for Steps 4 and 5.
printf 'provider=perplexity\nprovider_status=%s\nprovider_detail=%s\n' "$provider_status" "$provider_detail"
Each provider block above runs its own inline decision tree (in the same
subprocess as the curl probe) so $curl_exit and $http_status stay in
scope, and ends by printing its provider, provider_status and
provider_detail lines: those printed lines are what Steps 4 and 5 read. A
standalone post-probe decision tree was tried earlier but failed —
each bash block is a fresh subprocess, so variables set in one
block are invisible to the next. See
docs/solutions/code-quality/bash-block-subshell-isolation-in-command-files.md.
Never display raw API response bodies for any provider — only provider_status
and provider_detail are used in the results table. If body content must ever
be shown for error context, redact key patterns first:
sed 's/tvly-[a-zA-Z0-9_-]*/***REDACTED***/g; s/pplx-[a-zA-Z0-9_-]*/***REDACTED***/g'
Never display EXA response bodies at all — EXA keys have no known prefix and cannot be reliably redacted. Show only the HTTP status code and derived status label.
Never use curl -v, --trace, or --trace-ascii — they leak auth headers in
request/response dumps.
If user skips testing: all format-valid keys show PRESENT (untested).
This step runs unconditionally — MCP calls have no quota cost and require no user opt-in. Check each of the six MCP sources using a ToolSearch probe followed by a lightweight test call (except Parallel Task and Ceramic, which use ToolSearch-only).
For each source below, follow this pattern:
UNAVAILABLE and move to the next
source. If ToolSearch itself raises an exception (rather than returning a
non-matching result set), record status as FAIL (ToolSearch error) so
the operator can distinguish a tool genuinely not installed from a
transient session error.ACTIVE — even if the results array is empty.null, or
a non-structured response, record status as FAIL.Context7 (user-level optional MCP — library docs and code examples):
ToolSearch keyword: "resolve-library-id"
Tool name: mcp__context7__resolve-library-id
Test call: mcp__context7__resolve-library-id with libraryName: "react"
If the user-level Context7 MCP is not installed, the probe records
UNAVAILABLE and the install hint is /plugin install context7@upstash
(or per Claude Code MCP settings UI). yellow-core no longer bundles
context7 (removed 2026-04-29 to avoid the dual-OAuth pop-up issue).
Grep MCP (global — GitHub code pattern search):
ToolSearch keyword: "searchGitHub"
Tool name: mcp__grep__searchGitHub
Test call: mcp__grep__searchGitHub with query: "test", maxResults: 1
WarpGrep (yellow-morph plugin preferred, global MCP fallback):
ToolSearch keyword: "codebase_search" (or "morph warpgrep" — same tool)
Preferred tool name: mcp__plugin_yellow-morph_morph__codebase_search
Fallback tool name: mcp__filesystem-with-morph__codebase_search
Test call: <matched tool> with query: "README"
Note: In current morphmcp the tool is named `codebase_search`. Older
versions exposed it as `warpgrep_codebase_search`; that name no longer
exists.
Check for the plugin-namespaced tool first. If not found, fall back to the global MCP tool name. Report which variant is active.
DeepWiki (bundled HTTP — AI-powered repo documentation, public repos only):
ToolSearch keyword: "read_wiki_structure"
Tool name: mcp__plugin_yellow-research_deepwiki__read_wiki_structure
Test call: mcp__plugin_yellow-research_deepwiki__read_wiki_structure with repoName: "facebook/react"
ast-grep CLI (optional local binary, not an MCP server): no probe call.
Report ACTIVE when Step 1 printed ast-grep: ok, otherwise UNAVAILABLE.
Agents run it through Bash on demand, so a fresh install needs no restart,
unless the installer fell back to ~/.local/bin and printed that the
directory is not in PATH. Then Step 1 still reports it missing: tell the user
to add the printed export PATH=... line to their shell profile and restart
Claude Code.
Parallel Task MCP (bundled HTTP — async research orchestration):
ToolSearch keyword: "parallel__createDeepResearch"
Tool name: mcp__plugin_yellow-research_parallel__createDeepResearch
Test: ToolSearch probe only (do not create actual tasks — they have compute cost)
For Parallel Task, a ToolSearch-only check is used instead of the test-call
pattern. Creating tasks has real compute cost and getStatus requires a valid
task ID. If the tool appears in ToolSearch results, record status as
ACTIVE (ToolSearch only — server reachability not verified).
Ceramic MCP (bundled HTTP — lexical web search; OAuth 2.1 first-use):
ToolSearch keyword: "ceramic_search"
Tool name: mcp__plugin_yellow-research_ceramic__ceramic_search
Test: ToolSearch probe only (a real search call burns 1 query; OAuth flow may
also pop a browser on first use)
For Ceramic, a ToolSearch-only check is used. The Ceramic MCP at
https://mcp.ceramic.ai/mcp authenticates via OAuth 2.1 (browser flow on
first use, token cached and auto-refreshed thereafter — same UX as Parallel
Task). If the tool appears in ToolSearch results, record status as
ACTIVE (ToolSearch only — server reachability and OAuth state not verified).
Run all six ToolSearch probes. For sources that are found, run their test calls (except Parallel Task and Ceramic, which use ToolSearch-only). Record each source's status for the Step 4 report table.
Perplexity visibility (not an eighth source row — it settles a pending
Perplexity key status, so run it only when a Perplexity status ends with
pending MCP-visibility confirmation):
ToolSearch keyword: "perplexity_search"
Tool name: mcp__plugin_yellow-research_perplexity__perplexity_search
Test: ToolSearch probe only (a real call burns API quota)
Tool found: visibility reflects the MCP as it was last started, so it confirms
only the key as of that start. Record VISIBLE (as of the MCP's last start) and
let Step 4 promote the pending status with one of its two promotion shapes. Tool
absent: record UNAVAILABLE.
Never stop on a per-source error — record the status and continue to the next source. A failing MCP source does not affect API key checks or overall command completion.
Note: ToolSearch results reflect the session-start state. If a plugin was installed mid-session, a Claude Code restart may be needed for the tool to appear.
Display a unified status table:
yellow-research Setup Check
===========================
API Keys (all optional — plugin degrades gracefully)
Provider Key Format Live Test Status
----------- -------- ------ ----------- ------
EXA SET VALID ACTIVE ACTIVE
Tavily SET VALID ACTIVE ACTIVE
Perplexity NOT SET N/A N/A INACTIVE
OAuth-authenticated MCP servers (no API key needed)
Parallel Task — Claude Code browser OAuth, prompted on first /research:deep use.
Ceramic MCP — Claude Code browser OAuth, prompted on first ceramic_search use.
MCP Sources (no API key required — always available if plugin/MCP installed)
Source Plugin / source Status
----------- ------------------- --------
Context7 (user-level MCP) ACTIVE
Grep MCP (global) ACTIVE
WarpGrep (global) UNAVAILABLE
DeepWiki (bundled) ACTIVE
Parallel Task (bundled) ACTIVE (ToolSearch only — server reachability not verified)
Ceramic (bundled) ACTIVE (ToolSearch only — server reachability and OAuth state not verified)
Capability summary:
/research:deep PARTIAL (2/3 API sources — Perplexity inactive)
/research:code PARTIAL (2/3 API sources — Perplexity inactive)
MCP sources: 5/6 available
Local tools
ast-grep CLI ACTIVE
Adjust the capability summary based on how many functional API keys are
active (three — EXA, Tavily, Perplexity). A key counts as active when
its Step 3 status is any of the following. A pending Perplexity status is
promoted only by Step 3.5's visibility check, and only into one of two shapes,
both of which count as active: PRESENT (validated via MCP startup — userConfig only; …) and the PRESENT (userConfig takes precedence — …; validated via MCP startup; …) suffix replacement.
ACTIVE — live-tested and confirmed working.PRESENT (validated via MCP startup — userConfig only; reflects the key as of the MCP's last start) — Perplexity hard-fails at startup without a valid
key; reach this status only after Step 3.5's visibility check finds the MCP
tools. Promote the pending label to this one only if the key was not added
or changed this session; otherwise keep it pending and add "restart Claude
Code, then re-run /research:setup — a changed key is not visible until the
MCP restarts." If the MCP is absent, keep the pending label and append "MCP
did not load — credential validity unconfirmed."PRESENT (keychain — MCP starts without credential validation) — exa /
tavily start without validating; key is stored and reachable to the MCP
but not yet confirmed valid. Still counts as active for capability-summary
purposes (the user-visible MCP tools work; first invocation will surface
any auth problem).PRESENT (untested) — key was present and format-valid; user opted out of
live testing.PRESENT (userConfig takes precedence — shell key probe: <result>) —
both a shell key and a userConfig key are set; <result> is any shell probe
status (ACTIVE, INVALID, RATE LIMITED, UNREACHABLE). The MCP uses the
userConfig key, which was not tested; a rejected shell key means the shell
export is stale or wrong. For EXA and Tavily it counts as active, like
PRESENT (keychain …): the first MCP call surfaces any userConfig auth
problem. Perplexity's label ends with ; pending MCP-visibility confirmation and follows the pending rule below; when the visibility check
finds the tools, promote it by replacing that suffix with ; validated via MCP startup; reflects the key as of the MCP's last start, with the same
keep-pending rule for a key changed this session. Step 5 never shows setup
instructions for these statuses.PRESENT (userConfig takes precedence — shell key format invalid) — both
keys are set and the shell key failed Step 2's format check, so no probe ran.
Treated like the precedence status above: active for EXA and Tavily, pending
rule for Perplexity, never triggers Step 5.PRESENT (userConfig only — pending MCP-visibility confirmation) and the
Perplexity form of PRESENT (userConfig takes precedence — …; pending MCP-visibility confirmation) do NOT count as active until Step 3.5 promotes
them; if the Perplexity visibility check finds the MCP UNAVAILABLE, treat the
key as inactive for the summary. UNVERIFIED (shell key rejected; …) and
UNVERIFIED (shell key passed; …) also do not count as active (the effective
key is unconfirmed) and are not INVALID. For Perplexity, both end with
; pending MCP-visibility confirmation. When Step 3.5 finds the MCP tools, the
passed status becomes PRESENT (validated via MCP startup — effective credential source unconfirmed; reflects the key as of the MCP's last start). It counts as
active only if the key was not changed this session; otherwise it stays pending
and inactive. The rejected status never counts as active on visibility alone:
the MCP may have started before the key was revoked, so it stays UNVERIFIED (shell key rejected; …) with the note "MCP started with a key whose source is
unconfirmed; restart Claude Code and re-run to verify".
Counts:
FULL (3/3 API sources)PARTIAL (N/3 API sources)MINIMAL (Parallel Task + Ceramic OAuth only — no API key sources)Adjust the MCP sources line based on how many MCP sources are ACTIVE (six — Context7, Grep, WarpGrep, DeepWiki, Parallel Task, Ceramic). The ast-grep CLI is reported on its own line under "Local tools" and is not counted:
MCP sources: 6/6 availableMCP sources: N/6 availableMCP sources: 0/6 available — install plugins or configure MCPsIf any key's status is exactly ABSENT, FORMAT INVALID, or INVALID, show
this block. Match the whole status, not a substring: every
PRESENT (userConfig takes precedence — shell key probe: …) or
PRESENT (userConfig takes precedence — shell key format invalid) status
may contain the word INVALID or ACTIVE as a substring but never triggers it.
To enable missing providers (recommended path, no restart required):
Disable and re-enable yellow-research:
/plugin disable yellow-research
/plugin enable yellow-research
Claude Code will prompt for each key. Dismiss the ones you don't need;
answer the ones you want. Keys are stored in the system keychain (or
~/.claude/.credentials.json at 0600 perms on Linux).
Get keys:
EXA: https://exa.ai/
Tavily: https://tavily.com/
Perplexity: https://www.perplexity.ai/settings/api
Never commit API keys to version control.
(Power users can skip userConfig: the start-*.sh wrappers fall back to the
EXA_API_KEY / TAVILY_API_KEY / PERPLEXITY_API_KEY shell env vars when no
userConfig value is set, provided Claude Code was launched from a shell that
exports them. userConfig wins when both are present and is preferred: the
keychain keeps the key out of your shell environment.)
Only show the lines for keys that are absent or invalid (not all three if some are already working).
For a key whose status starts with UNVERIFIED, do not show the replacement
block. Say: restart Claude Code, run that provider's tool to see which key the
MCP uses, and replace or unset the shell export only if no userConfig key exists.
For UNVERIFIED (shell key passed; …) say instead: the shell key works, but a
userConfig key may take precedence and cannot be inspected without jq; install
jq and re-run, or check the key in plugin settings.
If the ast-grep CLI is UNAVAILABLE, show this block:
To enable AST structural code search (optional; agents fall back to Grep):
npm install -g @ast-grep/cli
brew install ast-grep
cargo install ast-grep --locked
pip install ast-grep-cli
The binary must be on PATH as `ast-grep`. No restart is needed unless you
had to add its directory to PATH; then restart Claude Code.
If any MCP sources are UNAVAILABLE or FAIL, show this block:
To enable missing MCP sources:
Context7: Install at user level — /plugin install context7@upstash (no plugin namespace; gives mcp__context7__*)
Grep MCP: Configure grep MCP globally in Claude Code MCP settings
WarpGrep: Install yellow-morph — /plugin marketplace add KingInYellows/yellow-plugins (select yellow-morph)
Or configure filesystem-with-morph MCP globally in Claude Code MCP settings
DeepWiki: Bundled — public repos only; no install needed. If FAIL, restart Claude Code
Parallel: Bundled — OAuth auto-managed; if FAIL, restart Claude Code
Ceramic: Bundled, OAuth only (no API key) — authenticate via /mcp → ceramic → Authenticate,
or on WSL/headless: claude mcp login plugin:yellow-research:ceramic --no-browser
in a separate terminal (needs a TTY — not via ! or this session; paste the
callback URL only into that terminal, never into chat); if FAIL, restart Claude Code
If a source shows FAIL (installed but test failed), try restarting Claude Code.
ToolSearch results reflect session-start state — restart after installing new plugins.
Only show the lines for MCP sources that are UNAVAILABLE or FAIL (not all six if some are already working).
Ask via AskUserQuestion: "What would you like to do next?" with options:
/research:code (inline code research), /research:deep (multi-source deep
research), Done.
| Error | Message | Action |
|---|---|---|
ast-grep not found (Step 0) | AskUserQuestion: install now? | Offer install or show manual instructions |
| Install script fails (Step 0) | "ast-grep installation failed" | Warn, continue to Step 1 |
curl not found | "curl not found — live testing unavailable. Install via system package manager." | Warn, skip Step 3 |
jq not found | "jq not found — Tavily live test will use printf fallback for JSON body." | Warn, continue |
| All 3 keys absent | Show all INACTIVE in table + full setup instructions block | Complete normally |
| Key format invalid | "FORMAT INVALID — [description of expected format]. Key not echoed." | Record, continue |
| Non-zero curl exit | "UNREACHABLE — API unreachable (timeout or network error)." | Record per-provider |
| HTTP 401/403, Linux, no userConfig key (jq found none, or no jq and no config file) | "INVALID — key rejected. Regenerate at provider dashboard." | Record per-provider |
| HTTP 401/403, macOS, or no jq and a non-empty value for this provider's userConfig option found in a config file | "UNVERIFIED — a keychain/userConfig key may take precedence." Restart and verify. Perplexity adds ; pending MCP-visibility confirmation; Step 3.5 promotes it to the PRESENT (userConfig takes precedence — …; validated via MCP startup; …) label when the MCP tools are visible. | Record per-provider |
| HTTP 200, no jq and a non-empty value for this provider's userConfig option found in a config file | "UNVERIFIED — shell key passed, but a userConfig key may take precedence." Install jq or check plugin settings. Perplexity is promoted like the row above. | Record per-provider |
| HTTP 401/403, userConfig also set | "PRESENT (userConfig takes precedence …)" — shell export is stale or wrong. | Record per-provider |
| Shell key format invalid, userConfig set | "PRESENT (userConfig takes precedence — shell key format invalid)" — no probe. | Record per-provider |
| HTTP 429 | "RATE LIMITED — key may be valid; service is busy. Try again later." | Record per-provider |
| HTTP 5xx | "UNREACHABLE — API server error." | Record per-provider |
| ToolSearch returns no match for MCP tool | "[source] UNAVAILABLE — plugin not installed or MCP not configured." | Record, continue |
| MCP test call throws exception | "[source] FAIL — tool found but test call errored." | Record, continue |
| MCP test call returns empty result set | "[source] ACTIVE — tool reachable, probe returned no matches." | Record, continue |
Never stop on a per-provider or per-source error — report it and continue to the next provider/source. The overall command always completes.
Files this command reads when invoked
What the command file sets; muted values are Claude Code's defaults
7-day visitors to each command page
4 commands in this plugin
/flow:flow:deepen-planflow:deepen-planEnrich an existing plan with codebase validation and external research, annotating inline. Use when a plan needs deeper validation before starting /flow:work./research:research:coderesearch:codeInline code research for active development. Use when user asks how a library works, needs code examples, API patterns, or framework documentation. Returns synthesized answer in-context — no file saved./npx claudepluginhub kinginyellows/yellow-plugins --plugin yellow-researchOther plugins' commands for the same job