feat: add STRIX_REASONING_EFFORT env var to control thinking effort

- Add configurable reasoning effort via environment variable
- Default to "high", but use "medium" for quick scan mode
- Document in README and interface error panel

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
0xallam
2026-01-09 20:00:01 -08:00
committed by Ahmed Allam
co-authored by Claude Opus 4.5
parent 88a02e539a
commit 66518c8a0e
3 changed files with 27 additions and 1 deletions
+15
View File
@@ -67,6 +67,9 @@ def validate_environment() -> None: # noqa: PLR0912, PLR0915
if not os.getenv("PERPLEXITY_API_KEY"):
missing_optional_vars.append("PERPLEXITY_API_KEY")
if not os.getenv("STRIX_REASONING_EFFORT"):
missing_optional_vars.append("STRIX_REASONING_EFFORT")
if missing_required_vars:
error_text = Text()
error_text.append("", style="bold red")
@@ -118,6 +121,13 @@ def validate_environment() -> None: # noqa: PLR0912, PLR0915
" - API key for Perplexity AI web search (enables real-time research)\n",
style="white",
)
elif var == "STRIX_REASONING_EFFORT":
error_text.append("", style="white")
error_text.append("STRIX_REASONING_EFFORT", style="bold cyan")
error_text.append(
" - Reasoning effort level (default: high)\n",
style="white",
)
error_text.append("\nExample setup:\n", style="white")
error_text.append("export STRIX_LLM='openai/gpt-5'\n", style="dim white")
@@ -140,6 +150,11 @@ def validate_environment() -> None: # noqa: PLR0912, PLR0915
error_text.append(
"export PERPLEXITY_API_KEY='your-perplexity-key-here'\n", style="dim white"
)
elif var == "STRIX_REASONING_EFFORT":
error_text.append(
"export STRIX_REASONING_EFFORT='high'\n",
style="dim white",
)
panel = Panel(
error_text,