Skip to content

Commit adc5a69

Browse files
Taoidleclaude
andcommitted
fix: correct Claude Code CLI command arguments
- Remove print_mode parameter (--print is a flag, not an option) - Fix command structure: --print --output-format stream-json --verbose prompt - Remove print_mode from factory configuration - Bump version to 3.3.10 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 2d7d7b1 commit adc5a69

File tree

4 files changed

+6
-11
lines changed

4 files changed

+6
-11
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "plan-cascade"
7-
version = "3.3.9"
7+
version = "3.3.10"
88
description = "Plan Cascade - Three-layer parallel development framework for AI coding tools"
99
readme = "README.md"
1010
license = {text = "MIT"}

src/plan_cascade/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
results = orchestrator.execute_prd(prd)
2929
"""
3030

31-
__version__ = "3.3.9"
31+
__version__ = "3.3.10"
3232
__author__ = "Plan Cascade Team"
3333

3434
# Core orchestration

src/plan_cascade/backends/claude_code.py

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ def __init__(
5050
claude_path: str = "claude",
5151
project_root: Path | None = None,
5252
output_format: str = "stream-json",
53-
print_mode: str = "tools"
5453
):
5554
"""
5655
Initialize the Claude Code backend.
@@ -59,13 +58,11 @@ def __init__(
5958
claude_path: Path to claude CLI (default: "claude")
6059
project_root: Project root directory
6160
output_format: Output format ("stream-json" recommended)
62-
print_mode: What to print ("tools", "all", "none")
6361
"""
6462
super().__init__(project_root)
6563

6664
self.claude_path = claude_path
6765
self.output_format = output_format
68-
self.print_mode = print_mode
6966

7067
self._process: asyncio.subprocess.Process | None = None
7168
self._llm: LLMProvider | None = None
@@ -117,10 +114,10 @@ async def execute(
117114
# Build command
118115
cmd = [
119116
self.claude_path,
117+
"--print",
120118
"--output-format", self.output_format,
121-
"--print", self.print_mode,
122119
"--verbose",
123-
"-p", prompt,
120+
prompt,
124121
]
125122

126123
# Collect output
@@ -349,10 +346,10 @@ async def complete(
349346
# Use Claude Code to complete
350347
cmd = [
351348
self.backend.claude_path,
349+
"--print",
352350
"--output-format", "stream-json",
353-
"--print", "none",
354351
"--verbose",
355-
"-p", prompt,
352+
prompt,
356353
]
357354

358355
output_text = ""

src/plan_cascade/backends/factory.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ class BackendFactory:
4646
"claude-code": {
4747
"claude_path": "claude",
4848
"output_format": "stream-json",
49-
"print_mode": "tools",
5049
},
5150
"builtin": {
5251
"provider": "claude",
@@ -114,7 +113,6 @@ def create(cls, config: dict[str, Any]) -> AgentBackend:
114113
claude_path=merged_config.get("claude_path", "claude"),
115114
project_root=project_root,
116115
output_format=merged_config.get("output_format", "stream-json"),
117-
print_mode=merged_config.get("print_mode", "tools"),
118116
)
119117

120118
elif backend_type == "builtin":

0 commit comments

Comments
 (0)