@namch/agent-assistant 1.0.3 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (86) hide show
  1. package/CHANGELOG.md +78 -0
  2. package/README.md +1 -1
  3. package/agents/planner.md +59 -11
  4. package/agents/reporter.md +1 -1
  5. package/cli/install.js +514 -169
  6. package/code-assistants/antigravity-assistant/AntigravityGlobal.agent.md +38 -135
  7. package/code-assistants/antigravity-assistant/GEMINI.md +37 -137
  8. package/code-assistants/claude-assistant/CLAUDE.md +60 -38
  9. package/code-assistants/copilot-assistant/agent-assistant.agent.md +44 -125
  10. package/code-assistants/cursor-assistant/.cursorrules +42 -84
  11. package/code-assistants/cursor-assistant/rules/agent-assistant.mdc +37 -135
  12. package/commands/ask/fast.md +6 -4
  13. package/commands/ask/hard.md +6 -4
  14. package/commands/ask.md +3 -3
  15. package/commands/auto.md +3 -3
  16. package/commands/brainstorm/fast.md +6 -4
  17. package/commands/brainstorm/hard.md +6 -4
  18. package/commands/brainstorm.md +3 -3
  19. package/commands/code/fast.md +6 -4
  20. package/commands/code/focus.md +42 -46
  21. package/commands/code/hard.md +43 -48
  22. package/commands/code.md +6 -3
  23. package/commands/cook/fast.md +5 -3
  24. package/commands/cook/focus.md +22 -51
  25. package/commands/cook/hard.md +23 -55
  26. package/commands/cook.md +3 -3
  27. package/commands/debug/fast.md +5 -3
  28. package/commands/debug/focus.md +35 -40
  29. package/commands/debug/hard.md +38 -16
  30. package/commands/debug.md +3 -3
  31. package/commands/deploy/check.md +4 -4
  32. package/commands/deploy/preview.md +4 -4
  33. package/commands/deploy/production.md +4 -4
  34. package/commands/deploy/rollback.md +4 -4
  35. package/commands/deploy.md +3 -3
  36. package/commands/design/fast.md +6 -4
  37. package/commands/design/focus.md +28 -44
  38. package/commands/design/hard.md +53 -17
  39. package/commands/design.md +3 -3
  40. package/commands/docs/audit.md +5 -5
  41. package/commands/docs/business.md +5 -5
  42. package/commands/docs/core.md +5 -5
  43. package/commands/docs.md +3 -3
  44. package/commands/fix/fast.md +5 -3
  45. package/commands/fix/focus.md +36 -44
  46. package/commands/fix/hard.md +23 -37
  47. package/commands/fix.md +3 -3
  48. package/commands/plan/fast.md +6 -4
  49. package/commands/plan/focus.md +6 -4
  50. package/commands/plan/hard.md +6 -4
  51. package/commands/plan.md +3 -3
  52. package/commands/report/fast.md +6 -4
  53. package/commands/report/focus.md +6 -4
  54. package/commands/report/hard.md +6 -4
  55. package/commands/report.md +3 -3
  56. package/commands/review/fast.md +5 -3
  57. package/commands/review/hard.md +5 -3
  58. package/commands/review.md +3 -3
  59. package/commands/test/fast.md +5 -3
  60. package/commands/test/focus.md +24 -43
  61. package/commands/test/hard.md +24 -16
  62. package/commands/test.md +3 -3
  63. package/documents/HSOL-ASSESSMENT.md +121 -0
  64. package/documents/SMART-SKILL-ORCHESTRATION-BLUEPRINT.md +1341 -0
  65. package/documents/business/business-glossary.md +6 -6
  66. package/documents/knowledge-architecture.md +81 -1
  67. package/documents/knowledge-domain.md +4 -3
  68. package/documents/knowledge-overview.md +1 -1
  69. package/documents/knowledge-source-base.md +15 -10
  70. package/package.json +5 -3
  71. package/rules/AGENTS.md +187 -0
  72. package/rules/CONTEXT-GATE.md +362 -0
  73. package/rules/CORE.md +175 -0
  74. package/rules/ERRORS.md +127 -0
  75. package/rules/PHASES.md +156 -0
  76. package/rules/REFERENCE.md +179 -0
  77. package/rules/SKILLS.md +167 -0
  78. package/skills/find-skills/SKILL.md +137 -0
  79. package/rules/ADAPTIVE-EXECUTION.md +0 -271
  80. package/rules/AGENT-RULES.md +0 -285
  81. package/rules/BOOTSTRAP.md +0 -301
  82. package/rules/ERROR-RECOVERY.md +0 -201
  83. package/rules/EXECUTION-PROTOCOL.md +0 -485
  84. package/rules/ORCHESTRATION-LAWS.md +0 -218
  85. package/rules/QUICK-REFERENCE.md +0 -204
  86. package/rules/SKILL-DISCOVERY.md +0 -370
@@ -57,19 +57,19 @@ A **concrete output** produced by an agent during workflow execution. Deliverabl
57
57
 
58
58
  ---
59
59
 
60
- ### Matrix Skill Discovery
60
+ ### Matrix Skill Discovery (HSOL)
61
61
 
62
- A **centralized system** that automatically resolves and injects relevant skills into agents based on their declared profile. Replaces hardcoded skill lists with dynamic resolution.
62
+ A **Hybrid Skill Orchestration Layer (HSOL)** that combines static matrix-skills with dynamic community skills. Skills are resolved by agent profile and request context; dynamic discovery runs only for `hard`/`focus` variants when matrix fitness < 0.8 (blocking when < 0.75 so the current task uses the new skill; async when 0.75–0.8 for recommendations only). See `rules/SKILL-DISCOVERY.md` and `rules/SKILL-ORCHESTRATION.md`.
63
63
 
64
64
  **Resolution Flow**:
65
65
  ```
66
- Agent Profile → _index.yaml → Domain Files → Skill Selection Injection
66
+ Agent Profile → _index.yaml → Domain Files + _dynamic.yaml FitnessInject; optionally discover (find-skills) by variant
67
67
  ```
68
68
 
69
69
  **Benefits**:
70
- - Single source of truth
71
- - Add skill = update 1 file
72
- - Consistent skill-agent mapping
70
+ - Single source of truth (matrix + dynamic manifest)
71
+ - Variant-aware: fast skips discovery; hard/focus use blocking/async by fitness
72
+ - Current task can use newly installed skill when matrix insufficient (< 0.75)
73
73
 
74
74
  ---
75
75
 
@@ -174,7 +174,86 @@ Example:
174
174
  Injects: skills into agent context
175
175
  ```
176
176
 
177
- ### 2.6 Rule Engine
177
+ ### 2.6 Hybrid Skill Orchestration Layer (HSOL) ⚡
178
+
179
+ **NEW (v1.1)**: Intelligent system that bridges static matrix-skills with dynamic community skills via the **find-skills** skill. Discovery runs only for `hard`/`focus` variants; when no variant is set, the router chooses by task assessment.
180
+
181
+ **Dynamic Discovery Interface:**
182
+ - **Skill Path**: `{SKILLS_PATH}/find-skills/SKILL.md`
183
+ - **Browse**: https://skills.sh/
184
+ - **Commands**:
185
+ - `npx skills find [query]` — Search for skills
186
+ - `npx skills add <owner/repo@skill> -g -y` — Install globally
187
+ - `npx skills check` — Check for updates
188
+
189
+ ```
190
+ HSOL Resolution Strategy:
191
+ ┌─────────────────────────────────────────────────────────────────────────┐
192
+ │ SKILL REQUEST │
193
+ │ │ │
194
+ │ ┌───────────────┴───────────────┐ │
195
+ │ ▼ ▼ │
196
+ │ ┌─────────────────┐ ┌─────────────────┐ │
197
+ │ │ MATRIX LOOKUP │ │ DYNAMIC SEARCH │ │
198
+ │ │ (< 10ms) │ │ (find-skills) │ │
199
+ │ │ Synchronous │ │ Non-blocking │ │
200
+ │ └────────┬────────┘ └────────┬────────┘ │
201
+ │ │ │ │
202
+ │ ▼ ▼ │
203
+ │ ┌─────────────────┐ ┌─────────────────┐ │
204
+ │ │ Fitness Score │ │ Fitness Score │ │
205
+ │ │ (Pre-computed) │ │ (Calculated) │ │
206
+ │ └────────┬────────┘ └────────┬────────┘ │
207
+ │ │ │ │
208
+ │ └───────────────┬──────────────┘ │
209
+ │ ▼ │
210
+ │ ┌─────────────────┐ │
211
+ │ │ DECISION ENGINE │ │
212
+ │ │ Apply Formula │ │
213
+ │ └────────┬────────┘ │
214
+ │ │ │
215
+ │ ┌─────────────────────┼─────────────────────┐ │
216
+ │ ▼ ▼ ▼ │
217
+ │ ┌───────────┐ ┌───────────┐ ┌───────────┐ │
218
+ │ │ USE MATRIX│ │ ENHANCE │ │USE DYNAMIC│ │
219
+ │ │ (≥0.80) │ │ (delta) │ │ (better) │ │
220
+ │ └───────────┘ └───────────┘ └───────────┘ │
221
+ └─────────────────────────────────────────────────────────────────────────┘
222
+ ```
223
+
224
+ **Fitness Scoring Formula:**
225
+ ```
226
+ SKILL_FITNESS = (0.35 × SEMANTIC_MATCH) +
227
+ (0.25 × SPECIFICITY) +
228
+ (0.20 × TRUST_SCORE) +
229
+ (0.10 × FRESHNESS) +
230
+ (0.10 × SUCCESS_RATE)
231
+ ```
232
+
233
+ **Decision Thresholds:**
234
+ | Condition | Action |
235
+ |-----------|--------|
236
+ | Matrix fitness ≥ 0.80 | Use matrix skill immediately |
237
+ | Matrix fitness 0.75-0.79 + dynamic superior by ≥0.15 | Consider dynamic enhancement (async) |
238
+ | Matrix fitness < 0.75 | Search dynamic skills (blocking; use for current task) |
239
+ | Dynamic skill superior | Surface as enhancement option |
240
+
241
+ **Trust Progression (Dynamic Skills):**
242
+ ```
243
+ new → evaluating → validated → promoted
244
+ 0.3 0.5 0.7 1.0
245
+ │ │ │
246
+ │ │ └── Promoted to matrix-skills
247
+ │ └── 10+ successful uses, user validation
248
+ └── 3 uses without failure
249
+ ```
250
+
251
+ **Key Files:**
252
+ - `rules/SKILL-ORCHESTRATION.md` — Full protocol
253
+ - `matrix-skills/_dynamic.yaml` — Dynamic skill manifest
254
+ - `matrix-skills/_index.yaml` — HSOL configuration
255
+
256
+ ### 2.7 Rule Engine
178
257
 
179
258
  Enforces orchestration laws and protocols.
180
259
 
@@ -183,6 +262,7 @@ Enforces orchestration laws and protocols.
183
262
  | `ORCHESTRATION-LAWS.md` | 10 inviolable laws | CRITICAL |
184
263
  | `EXECUTION-PROTOCOL.md` | Phase execution details | CRITICAL |
185
264
  | `ADAPTIVE-EXECUTION.md` | Tier 1/2 decisions | CRITICAL |
265
+ | `SKILL-ORCHESTRATION.md` | HSOL decision logic | CRITICAL |
186
266
  | `AGENT-RULES.md` | Agent behavior guidelines | Reference |
187
267
  | `SKILL-DISCOVERY.md` | Matrix resolution algorithm | Reference |
188
268
  | `ERROR-RECOVERY.md` | Error handling protocols | Reference |
@@ -124,11 +124,11 @@ execution-mode: string # "execute" | "router"
124
124
  | Command | Description | Variants | Category |
125
125
  |---------|-------------|----------|----------|
126
126
  | `/cook` | Implement features | `:fast`, `:hard`, `:focus` | development |
127
- | `/code` | Write code snippets | `:fast`, `:hard` | development |
127
+ | `/code` | Write code snippets | `:fast`, `:hard`, `:focus` | development |
128
128
  | `/fix` | Fix bugs and refactor | `:fast`, `:hard`, `:focus` | development |
129
- | `/test` | Generate tests | `:fast`, `:hard` | quality |
129
+ | `/test` | Generate tests | `:fast`, `:hard`, `:focus` | quality |
130
130
  | `/review` | Code review | `:fast`, `:hard` | quality |
131
- | `/debug` | Systematic debugging | `:fast`, `:hard` | quality |
131
+ | `/debug` | Systematic debugging | `:fast`, `:hard`, `:focus` | quality |
132
132
  | `/plan` | Implementation planning | `:fast`, `:hard`, `:focus` | planning |
133
133
  | `/report` | Create/update reports, summaries | `:fast`, `:hard`, `:focus` | documentation |
134
134
  | `/brainstorm` | Requirements discovery | `:fast`, `:hard` | planning |
@@ -144,6 +144,7 @@ execution-mode: string # "execute" | "router"
144
144
  |---------|---------|-------------|---------------|
145
145
  | `:fast` | Quick execution | 2-3 agents | Minimal |
146
146
  | `:hard` | Full workflow | 5-8 agents | All 5 gates |
147
+ | `:focus` | Full workflow with clear context | 5-8 agents | All 5 gates |
147
148
  | `:core` | Core documentation | scouter, docs-manager | — |
148
149
  | `:business` | Business documentation | researcher, business-analyst, docs-manager | — |
149
150
  | `:audit` | Security/compliance audit | security-engineer, docs-manager | — |
@@ -9,7 +9,7 @@
9
9
  | Property | Value |
10
10
  | -------------- | -------------------------------------------------- |
11
11
  | **Name** | Agent Assistant |
12
- | **Version** | 1.0.0 |
12
+ | **Version** | 1.1.0 |
13
13
  | **Type** | Multi-agent orchestration framework |
14
14
  | **Author** | NamCH |
15
15
  | **License** | MIT |
@@ -323,7 +323,7 @@ assets/
323
323
  All tool entry points follow the same pattern:
324
324
 
325
325
  ```markdown
326
- # ⚡ AGENT ASSISTANT v3.0
326
+ # ⚡ AGENT ASSISTANT v2.0
327
327
 
328
328
  > **LOAD**: `{HOME}/.cursor/skills/agent-assistant/rules/BOOTSTRAP.md`
329
329
  > **This file is the ENTRY POINT. BOOTSTRAP.md contains all orchestration rules.**
@@ -386,19 +386,24 @@ node cli/install.js uninstall copilot
386
386
  node cli/install.js list
387
387
  ```
388
388
 
389
- ### 4.2 Matrix Skill Discovery (`matrix-skills/_index.yaml`)
389
+ ### 4.2 Matrix Skill Discovery (HSOL: `matrix-skills/_index.yaml` + `_dynamic.yaml`)
390
390
 
391
- **Purpose**: Central registry for skill resolution.
391
+ **Purpose**: Central registry for skill resolution and HSOL (Hybrid Skill Orchestration Layer). Combines static matrix domains with dynamic skills; discovery runs only for `hard`/`focus` variants when matrix fitness &lt; 0.8 (blocking when &lt; 0.75). See `rules/SKILL-DISCOVERY.md` and `rules/SKILL-ORCHESTRATION.md`.
392
392
 
393
393
  **Key Sections**:
394
394
 
395
395
  ```yaml
396
- version: "1.0"
397
- total_skills: 310
396
+ version: "1.1"
397
+ total_matrix_skills: 310
398
+
399
+ hsol: # HSOL config (discovery, thresholds 0.75/0.8, apply_for_variants: [hard, focus])
400
+ enabled: true
401
+ dynamic_manifest: "_dynamic.yaml"
402
+ discovery: { apply_for_variants: [hard, focus], ... }
403
+ thresholds: { matrix_sufficient: 0.8, matrix_adequate: 0.75, ... }
398
404
 
399
405
  domains: # 19 domain registrations
400
406
  backend: { file: "backend.yaml", ... }
401
- frontend: { file: "frontend.yaml", ... }
402
407
  # ...
403
408
 
404
409
  agent_profiles: # 21 agent-to-domain mappings
@@ -410,7 +415,6 @@ agent_profiles: # 21 agent-to-domain mappings
410
415
 
411
416
  resolution: # Resolution rules
412
417
  precedence: [direct_agent_match, profile_match, domain_inheritance]
413
- wildcards: { "*:orchestration": "...", "backend:*": "..." }
414
418
  thresholds: { minimum_priority: 5, core_priority: 7, critical_priority: 9 }
415
419
  ```
416
420
 
@@ -456,7 +460,8 @@ handoffs: [agent1, agent2, ...]
456
460
 
457
461
  | File | Purpose |
458
462
  |------|---------|
459
- | `_index.yaml` | Central matrix registry |
463
+ | `_index.yaml` | Central matrix registry + HSOL config |
464
+ | `_dynamic.yaml` | Dynamic skill manifest (updated when agents run `npx skills add ... -g -y`) |
460
465
  | `AGENT-TEMPLATE.md` | Agent creation template |
461
466
  | `README.md` | Public documentation |
462
467
  | `LICENSE` | MIT license file |
@@ -473,8 +478,8 @@ handoffs: [agent1, agent2, ...]
473
478
  ```json
474
479
  {
475
480
  "name": "agent-assistant",
476
- "version": "1.0.0",
477
- "description": "Multi-agent orchestration framework for AI coding assistants",
481
+ "version": "1.1.0",
482
+ "description": "Multi-agent orchestration framework for AI coding assistants (with HSOL)",
478
483
  "main": "cli/install.js",
479
484
  "bin": {
480
485
  "agent-assistant": "./cli/install.js"
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@namch/agent-assistant",
3
- "version": "1.0.3",
4
- "description": "Multi-agent orchestration framework for AI coding assistants (Cursor, Copilot, Antigravity, Claude Code).",
3
+ "version": "1.1.0",
4
+ "description": "Multi-agent orchestration framework for AI coding assistants (Cursor, Copilot, Antigravity, Claude Code) with Hybrid Skill Orchestration Layer (HSOL).",
5
5
  "main": "cli/install.js",
6
6
  "bin": {
7
7
  "agent-assistant": "./cli/install.js"
@@ -44,7 +44,9 @@
44
44
  "skills/",
45
45
  "documents/",
46
46
  "code-assistants/",
47
- "LICENSE"
47
+ "LICENSE",
48
+ "README.md",
49
+ "CHANGELOG.md"
48
50
  ],
49
51
  "devDependencies": {
50
52
  "@semantic-release/changelog": "^6.0.3",
@@ -0,0 +1,187 @@
1
+ # 🤖 AGENTS
2
+
3
+ > **LOAD**: When delegating to agents | **PURPOSE**: Agent handling protocol
4
+
5
+ ---
6
+
7
+ ## TIERED EXECUTION
8
+
9
+ ### TIER 1: Sub-agent (MANDATORY when tool exists)
10
+
11
+ ```yaml
12
+ 1. Prepare handoff:
13
+ include: requirements, task, acceptance criteria, constraints
14
+ exclude: internal reasoning, failed attempts
15
+
16
+ 2. Skills analysis: (output required)
17
+ "🎯 Skills Analysis: {simple|complex} → {using X | skipping}"
18
+
19
+ 3. Invoke: runSubagent(agent_name, context)
20
+
21
+ 4. Verify: format matches, criteria met
22
+
23
+ 5. On error: fallback to TIER 2, log reason
24
+ ```
25
+
26
+ ### TIER 2: EMBODY (Fallback only)
27
+
28
+ ```yaml
29
+ permitted_when:
30
+ - Tool Discovery found NO sub-agent tools
31
+ - Sub-agent tool returned system error
32
+
33
+ forbidden_reasons:
34
+ - Task seems "simple"
35
+ - "Save tokens"
36
+ - "Efficiency"
37
+
38
+ execution:
39
+ 1. Log: "⚠️ TIER 2: {reason}"
40
+ 2. READ agent file COMPLETELY
41
+ 3. EXTRACT: Directive, Protocol, Constraints, Format
42
+ 4. ANNOUNCE embodiment (see format below)
43
+ 5. EXECUTE as agent (follow THEIR protocol)
44
+ 6. EXIT embodiment, continue as orchestrator
45
+ ```
46
+
47
+ **Embodiment Announcement Format**:
48
+ ```markdown
49
+ 📋 EMBODIED: `{agent}`
50
+ **Directive**: {core directive verbatim}
51
+ **Protocol**: {thinking protocol summary}
52
+ **Constraints**: {key constraints}
53
+ ```
54
+
55
+ ---
56
+
57
+ ## TOOL DISCOVERY (First delegation only)
58
+
59
+ ```markdown
60
+ ## 🔍 Tool Discovery
61
+ | Check | Result |
62
+ |-------|--------|
63
+ | Sub-agent tool | ✅ / ❌ |
64
+ | Execution tier | TIER 1 / TIER 2 |
65
+ ```
66
+
67
+ **Cache**: Tool discovery result is cached for session. Do not re-check.
68
+
69
+ ---
70
+
71
+ ## CONTEXT MODEL COMPARISON
72
+
73
+ | Aspect | TIER 1: Sub-agent | TIER 2: EMBODY |
74
+ |--------|-------------------|----------------|
75
+ | Priority | ⭐ MANDATORY | 🔄 Fallback |
76
+ | Context | Fresh, isolated | Shared with parent |
77
+ | Quality | ✅ Optimal | ⚠️ Risk of pollution |
78
+ | Parallel | Yes | No (sequential) |
79
+ | Availability | Platform-dependent | Always available |
80
+
81
+ ---
82
+
83
+ ## COMPLETION GUARANTEE
84
+
85
+ ```yaml
86
+ rule: "EVERY delegation request WILL be fulfilled"
87
+
88
+ mechanism:
89
+ - TIER 1 is primary when available
90
+ - TIER 2 is fallback when TIER 1 fails
91
+ - EMBODY always works (read + transform)
92
+
93
+ result:
94
+ - NO task is ever skipped
95
+ - NO delegation ever fails completely
96
+ - System is future-proof
97
+ ```
98
+
99
+ ---
100
+
101
+ ## AGENT CATEGORIES
102
+
103
+ | Category | Agents | Purpose |
104
+ |----------|--------|---------|
105
+ | **meta** | tech-lead, planner | Coordinate, never implement |
106
+ | **execution** | backend-engineer, frontend-engineer, mobile-engineer, game-engineer, database-architect | Implementation |
107
+ | **validation** | tester, reviewer, security-engineer, performance-engineer, debugger | QA |
108
+ | **research** | researcher, scouter, brainstormer, designer | Investigation |
109
+ | **support** | docs-manager, devops-engineer, business-analyst, project-manager, reporter | Support |
110
+
111
+ ---
112
+
113
+ ## TASK → AGENT MAPPING
114
+
115
+ | Task | Agent |
116
+ |------|-------|
117
+ | API, backend logic | `backend-engineer` |
118
+ | UI, components | `frontend-engineer` |
119
+ | Database schema | `database-architect` |
120
+ | Security | `security-engineer` |
121
+ | Testing | `tester` |
122
+ | Code review | `reviewer` |
123
+ | Debugging | `debugger` |
124
+ | Planning | `planner` |
125
+ | Research | `researcher` |
126
+ | Codebase analysis | `scouter` |
127
+ | Documentation | `docs-manager` |
128
+ | Deployment | `devops-engineer` |
129
+ | Reports | `reporter` |
130
+ | Project management | `project-manager` |
131
+ | Business analysis | `business-analyst` |
132
+ | Design | `designer` |
133
+ | Brainstorming | `brainstormer` |
134
+ | Game development | `game-engineer` |
135
+ | Mobile development | `mobile-engineer` |
136
+ | Technical leadership | `tech-lead` |
137
+
138
+ ---
139
+
140
+ ## CONTEXT ISOLATION (Clean Handoffs)
141
+
142
+ ```
143
+ INCLUDE:
144
+ - Original requirements (verbatim)
145
+ - Decisions from prior phases
146
+ - Concrete deliverables
147
+ - Current state
148
+
149
+ EXCLUDE:
150
+ - Internal reasoning
151
+ - Failed attempts
152
+ - Alternatives not selected
153
+ ```
154
+
155
+ ---
156
+
157
+ ## RECURSIVE DELEGATION
158
+
159
+ ```
160
+ IF agent.category == "meta" OR agent.handoffs.length > 0:
161
+ → This is a MANAGER agent
162
+ → MUST delegate to specialists
163
+ → NEVER implement directly
164
+ ```
165
+
166
+ ---
167
+
168
+ ## ANTI-LAZY FALLBACK DETECTION
169
+
170
+ ```yaml
171
+ detection:
172
+ - Choosing TIER 2 without attempting TIER 1
173
+ - Justifying EMBODY with "task is simple"
174
+ - Mentioning "efficiency" when choosing EMBODY
175
+
176
+ correction:
177
+ 1. STOP
178
+ 2. Log: "⚠️ LAZY FALLBACK DETECTED"
179
+ 3. Attempt TIER 1 first
180
+ 4. Only use TIER 2 if TIER 1 actually fails
181
+
182
+ strict_rules:
183
+ ❌ NEVER assess task as "too simple" for sub-agent
184
+ ❌ NEVER prioritize tokens over context isolation
185
+ ✅ ALWAYS use sub-agent when tool exists
186
+ ✅ ALWAYS log sub-agent attempt before any EMBODY
187
+ ```