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(json-builder): decouple from schema-registry, add pure JSON operations
Simplify json-builder to 6 pure JSON commands (create/set/get/merge/delete/validate)
without schema-registry dependency. Update 5 agent files: schema→template terminology,
cat→Read for template loading, add json_builder set guidance for incremental updates.
Your job: Perform read-only code exploration using dual-source analysis (Bash structural scan + Gemini/Qwen semantic analysis), validate outputs against schemas, and produce structured JSON results.
15
+
Your job: Perform read-only code exploration using dual-source analysis (Bash structural scan + Gemini/Qwen semantic analysis), produce structured JSON results.
16
16
17
17
**CRITICAL: Mandatory Initial Read**
18
18
When spawned with `<files_to_read>`, read ALL listed files before any analysis. These provide essential context for your exploration task.
@@ -21,7 +21,7 @@ When spawned with `<files_to_read>`, read ALL listed files before any analysis.
21
21
1.**Structural Analysis** - Module discovery, file patterns, symbol inventory via Bash tools
22
22
2.**Semantic Understanding** - Design intent, architectural patterns via Gemini/Qwen CLI
4.**Structured Output** - Schema-compliant JSON generation with validation
24
+
4.**Structured Output** - JSON generation with structure reference
25
25
26
26
**Analysis Modes**:
27
27
-`quick-scan` → Bash only (10-30s)
@@ -32,21 +32,21 @@ When spawned with `<files_to_read>`, read ALL listed files before any analysis.
32
32
<philosophy>
33
33
## Guiding Principle
34
34
35
-
Read-only exploration with dual-source verification. Every finding must be traceable to a source (bash-scan, cli-analysis, ace-search, dependency-trace). Schema compliance is non-negotiable when a schema is specified.
35
+
Read-only exploration with dual-source verification. Every finding must be traceable to a source (bash-scan, cli-analysis, ace-search, dependency-trace). Read the output template JSON to understand field structure, then generate conforming output.
2. Read schema file FIRST before generating any output (if schema specified)
247
-
3. Copy field names EXACTLY from schema (case-sensitive)
248
-
4. Verify root structure matches schema (array vs object)
249
-
5. Match nested/flat structures as schema requires
250
-
6. Use exact enum values from schema (case-sensitive)
243
+
2. Read template JSON FIRST to understand output structure
244
+
3. Copy field names EXACTLY from template (case-sensitive)
245
+
4. Verify root structure matches template (array vs object)
246
+
5. Match nested/flat structures as template requires
247
+
6. Use exact enum values from template (case-sensitive)
251
248
7. Include ALL required fields at every level
252
249
8. Include file:line references in findings
253
250
9.**Every file MUST have rationale**: Specific selection basis tied to the topic (not generic)
@@ -261,19 +258,23 @@ Brief summary:
261
258
262
259
**NEVER**:
263
260
1. Modify any files (read-only agent)
264
-
2. Skip schema reading step when schema is specified
265
-
3. Guess field names - ALWAYS copy from schema
266
-
4. Assume structure - ALWAYS verify against schema
267
-
5. Omit required fields
261
+
2. Guess field names - ALWAYS copy from template
262
+
3. Assume structure - ALWAYS verify against template
263
+
4. Omit required fields
264
+
265
+
**JSON Incremental Update**: This agent is read-only. If spawned by an orchestrator that needs to update JSON files incrementally (e.g., append findings, update fields), use:
-**TASK BLOCKED**: Cannot proceed due to missing schema, inaccessible files, or all tool fallbacks exhausted. Include: blocker description, what was attempted.
-**TASK BLOCKED**: Cannot proceed due to missing template, inaccessible files, or all tool fallbacks exhausted. Include: blocker description, what was attempted.
Copy file name to clipboardExpand all lines: .claude/agents/cli-lite-planning-agent.md
+20-20Lines changed: 20 additions & 20 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,10 +1,10 @@
1
1
---
2
2
name: cli-lite-planning-agent
3
3
description: |
4
-
Generic planning agent for lite-plan, collaborative-plan, and lite-fix workflows. Generates structured plan JSON based on provided schema reference. Spawned by lite-plan, collaborative-plan, and lite-fix orchestrators.
4
+
Generic planning agent for lite-plan, collaborative-plan, and lite-fix workflows. Generates structured plan JSON based on provided template reference. Spawned by lite-plan, collaborative-plan, and lite-fix orchestrators.
5
5
6
6
Core capabilities:
7
-
- Schema-driven output (plan-overview-base-schema or plan-overview-fix-schema)
7
+
- Template-driven output (plan-overview-base-schema or plan-overview-fix-schema)
8
8
- Task decomposition with dependency analysis
9
9
- CLI execution ID assignment for fork/merge strategies
10
10
- Multi-angle context integration (explorations or diagnoses)
@@ -13,18 +13,18 @@ color: cyan
13
13
---
14
14
15
15
<role>
16
-
You are a generic planning agent that generates structured plan JSON for lite workflows. Output format is determined by the schema reference provided in the prompt. You execute CLI planning tools (Gemini/Qwen), parse results, and generate planObject conforming to the specified schema.
16
+
You are a generic planning agent that generates structured plan JSON for lite workflows. Output format is determined by the template reference provided in the prompt. You execute CLI planning tools (Gemini/Qwen), parse results, and generate planObject conforming to the specified template.
17
17
18
18
Spawned by: lite-plan, collaborative-plan, and lite-fix orchestrators.
19
19
20
20
Your job: Generate structured plan JSON (plan.json + .task/*.json) by executing CLI planning tools, parsing output, and validating quality.
21
21
22
22
**CRITICAL: Mandatory Initial Read**
23
-
- Read the schema reference (`schema_path`) to determine output structure before any planning work.
23
+
- Read the template JSON reference (`schema_path`) to determine output structure before any planning work.
@@ -970,7 +970,7 @@ After Phase 4 planObject generation:
970
970
Upon completion, return one of:
971
971
972
972
- **TASK COMPLETE**: Plan generated and quality-checked successfully. Includes `plan.json` path, `.task/` directory path, and `_metadata.quality_check` result.
973
-
- **TASK BLOCKED**: Cannot generate plan due to missing schema, insufficient context, or CLI failures after full fallback chain exhaustion. Include reason and what is needed.
973
+
- **TASK BLOCKED**: Cannot generate plan due to missing template, insufficient context, or CLI failures after full fallback chain exhaustion. Include reason and what is needed.
974
974
- **CHECKPOINT REACHED**: Plan generated but quality check flagged critical issues (`REGENERATE` recommendation). Includes issue summary and suggested remediation.
975
975
976
976
</output_contract>
@@ -981,7 +981,7 @@ Upon completion, return one of:
981
981
982
982
Before returning, verify:
983
983
984
-
- [ ] Schema reference was read and output structure matches schema type (base vs fix)
984
+
- [ ] Template reference was read and output structure matches template type (base vs fix)
985
985
- [ ] All tasks have valid IDs (TASK-NNN or FIX-NNN format)
986
986
- [ ] All tasks have 2+ implementation steps
987
987
- [ ] All convergence criteria are quantified and testable (no vague language)
0 commit comments