You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Refactor execution modes and CLI integration across agents
- Updated code-developer, tdd-developer, and test-fix-agent to streamline execution modes based on task.meta.execution_config.method.
- Removed legacy command handling and introduced CLI handoff for 'cli' execution method.
- Enhanced buildCliHandoffPrompt to include task JSON path and improved context handling.
- Updated task-generate-agent and task-generate-tdd to reflect new execution method mappings and removed command field from implementation_approach.
- Improved CLI settings validation in CliSettingsModal with format and length checks.
- Added localization for new CLI settings messages in English and Chinese.
- Enhanced GPU selector to use localized strings for GPU types.
- Introduced TypeScript LSP setup documentation for better user guidance.
Final task JSON always has method ="agent" or "cli", never "hybrid"
326
328
```
327
329
328
-
**Note**: implementation_approach steps NO LONGER contain `command` fields. CLI execution is controlled by task-level `meta.execution_config` only.
330
+
**IMPORTANT**: implementation_approach steps do NOT contain `command` fields. Execution routing is controlled by task-level `meta.execution_config.method` only.
329
331
330
332
**Test Task Extensions** (for type="test-gen" or type="test-fix"):
**Note**: CLI tool usage for test-fix tasks is now controlled via `flow_control.implementation_approach` steps with `command` fields, not via `meta.use_codex`.
349
+
**Note**: CLI tool usage for test-fix tasks is now controlled via task-level `meta.execution_config.method`, not via `meta.use_codex`.
348
350
349
351
#### Context Object
350
352
@@ -555,59 +557,45 @@ The examples above demonstrate **patterns**, not fixed requirements. Agent MUST:
555
557
556
558
##### Implementation Approach
557
559
558
-
**Execution Modes**:
560
+
**Execution Control**:
559
561
560
-
The `implementation_approach` supports **two execution modes** based on the presence of the `command` field:
562
+
The `implementation_approach` defines sequential implementation steps. Execution routing is controlled by **task-level `meta.execution_config.method`**, NOT by step-level `command` fields.
561
563
562
-
1. **Default Mode (Agent Execution)** - `command` field **omitted**:
**Key Principle**: The `command` field is **optional**. Agent decides based on user semantics and task complexity.
593
+
**IMPORTANT**: Do NOT add `command` field to implementation_approach steps. Execution routing is determined by task-level `meta.execution_config.method` only.
605
594
606
-
**Examples**:
595
+
**Example**:
607
596
608
597
```json
609
598
[
610
-
// === DEFAULT MODE: Agent Execution (no command field) ===
611
599
{
612
600
"step":1,
613
601
"title":"Load and analyze role analyses",
@@ -644,8 +632,7 @@ Agent determines CLI tool usage per-step based on user semantics and task nature
0 commit comments