Second Opinion Status
Show current configuration and agent status.
Instructions
When invoked:
- •Read the local config from
.claude/second-opinion.jsonif it exists - •Check environment variables for
SECOND_OPINION_HOSTandENABLED_AGENTS - •Check API key availability for each agent:
- •Stored in local config
- •Environment variable
- •GitHub CLI (
gh auth token)
- •Display status in this format:
code
## Second Opinion Configuration **Config source:** local | env | default **Config file:** .claude/second-opinion.json ### Agent Status | Agent | Enabled | API Key | |-------|---------|---------| | openai | ✓ | ✓ stored in config | | anthropic | ✗ (excluded - host agent) | - | | gemini | ✓ | ✓ stored in config | | github | ✓ | ✓ auto-detected from gh CLI | ### Host Exclusion Host: claude-code Excluded agent: anthropic ### To Change Run `/second-opinion setup` to reconfigure agents.
Key Detection Priority
For each agent, check in this order:
- •Environment variable (highest priority)
- •Stored in local config (
.claude/second-opinion.json) - •GitHub CLI (for github agent only, via
gh auth token)
Config File Format
The config file at .claude/second-opinion.json:
json
{
"enabledAgents": ["openai", "gemini", "github"],
"apiKeys": {
"openai": "sk-...",
"gemini": "AI..."
},
"updatedAt": "2024-01-16T12:00:00Z"
}
Fallback Behavior
If no local config exists:
- •Check
ENABLED_AGENTSenv var (comma-separated) - •If not set, all agents are enabled by default
- •API keys are checked from environment variables only