From 49f73e5b464687b69d4e9e430ef5cd3f2d805c72 Mon Sep 17 00:00:00 2001 From: Symbiont Date: Thu, 19 Mar 2026 19:32:00 +0000 Subject: [PATCH] Fix CLI flags: remove --max-tokens, add --dangerously-skip-permissions Claude Code CLI uses positional args for prompts, not --prompt flag. Also enables full access mode so orchestrator runs without permission prompts. Co-Authored-By: Claude Opus 4.6 --- symbiont/dispatcher.py | 6 +++--- symbiont/router.py | 1 - 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/symbiont/dispatcher.py b/symbiont/dispatcher.py index 2cb788b..b39c322 100644 --- a/symbiont/dispatcher.py +++ b/symbiont/dispatcher.py @@ -81,7 +81,6 @@ def dispatch( prompt: str, tier: ModelTier = ModelTier.SONNET, system_prompt: Optional[str] = None, - max_tokens: int = 4096, timeout_seconds: int = 120, ) -> DispatchResult: """ @@ -113,14 +112,15 @@ def dispatch( "claude", "--print", # non-interactive, just print the response "--model", model_flag, - "--max-tokens", str(max_tokens), "--output-format", "json", + "--dangerously-skip-permissions", # full access, no prompts ] if system_prompt: cmd.extend(["--system-prompt", system_prompt]) - cmd.extend(["--prompt", prompt]) + # Prompt is a positional argument in Claude Code CLI + cmd.append(prompt) start = time.monotonic() diff --git a/symbiont/router.py b/symbiont/router.py index 12ce89e..4957e12 100644 --- a/symbiont/router.py +++ b/symbiont/router.py @@ -41,7 +41,6 @@ def classify_task(task_description: str) -> tuple[ModelTier, float, str]: prompt=f"Classify this task:\n\n{task_description}", tier=ModelTier.HAIKU, system_prompt=CLASSIFIER_SYSTEM_PROMPT, - max_tokens=256, ) if result.success: