@namch/agent-assistant 1.2.0 β†’ 1.2.2

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 (48) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/README.md +3 -15
  3. package/agents/backend-engineer.md +1 -1
  4. package/agents/brainstormer.md +1 -1
  5. package/agents/business-analyst.md +1 -1
  6. package/agents/database-architect.md +1 -1
  7. package/agents/debugger.md +1 -1
  8. package/agents/designer.md +1 -1
  9. package/agents/devops-engineer.md +1 -1
  10. package/agents/docs-manager.md +1 -1
  11. package/agents/frontend-engineer.md +1 -1
  12. package/agents/game-engineer.md +1 -1
  13. package/agents/mobile-engineer.md +1 -1
  14. package/agents/performance-engineer.md +1 -1
  15. package/agents/planner.md +1 -1
  16. package/agents/project-manager.md +1 -1
  17. package/agents/reporter.md +1 -1
  18. package/agents/researcher.md +1 -1
  19. package/agents/reviewer.md +1 -1
  20. package/agents/scouter.md +1 -1
  21. package/agents/security-engineer.md +1 -1
  22. package/agents/tech-lead.md +1 -1
  23. package/agents/tester.md +1 -1
  24. package/code-assistants/copilot-assistant/agent-assistant.agent.md +0 -25
  25. package/commands/code/focus.md +2 -25
  26. package/commands/code/hard.md +0 -30
  27. package/commands/cook/focus.md +0 -25
  28. package/commands/cook/hard.md +0 -25
  29. package/commands/cook/team.md +0 -26
  30. package/commands/debug/focus.md +0 -48
  31. package/commands/debug/hard.md +0 -71
  32. package/commands/debug/team.md +0 -36
  33. package/commands/design/focus.md +0 -23
  34. package/commands/design/hard.md +0 -85
  35. package/commands/design/team.md +0 -58
  36. package/commands/fix/focus.md +0 -23
  37. package/commands/fix/hard.md +0 -39
  38. package/commands/fix/team.md +0 -25
  39. package/commands/plan/focus.md +0 -53
  40. package/commands/plan/hard.md +0 -56
  41. package/commands/plan/team.md +0 -22
  42. package/commands/report/focus.md +0 -52
  43. package/commands/test/focus.md +0 -23
  44. package/commands/test/hard.md +0 -57
  45. package/commands/test/team.md +0 -7
  46. package/package.json +1 -1
  47. package/rules/TEAMS.md +1 -1
  48. package/rules/CONTEXT-GATE.md +0 -362
@@ -1,362 +0,0 @@
1
- # πŸ›‘οΈ CONTEXT GATE PROTOCOL
2
-
3
- > **PURPOSE**: Prevent "context rot" by clearing noisy planning/debugging history before implementation.
4
- >
5
- > Long-running sessions fill context with noise that degrades code generation quality.
6
- > This protocol acts as a mandatory "firewall" between Planning and Implementation phases.
7
-
8
- ---
9
-
10
- ## πŸ”€ EXECUTION MODES
11
-
12
- This file defines TWO execution modes for Context Gate:
13
-
14
- | Mode | When | Behavior |
15
- |------|------|----------|
16
- | **FOCUS** | Focus variants (`:focus`) | **AUTOMATIC** - No user prompt, force clear |
17
- | **HARD** | Hard variants (`:hard`) | **CHOICE** - Present 3 options to user |
18
-
19
- ---
20
-
21
- ## πŸ”’ FOCUS MODE β€” Automatic Context Optimization
22
-
23
- > **TRIGGER**: After Planning phase completes in `:focus` variants
24
- > **BEHAVIOR**: Automatically clear context WITHOUT user prompt
25
-
26
- ### EXECUTION SEQUENCE
27
-
28
- ```yaml
29
- focus_mode_execution:
30
- when: "After Phase 3 (Planning) or equivalent phase completes"
31
-
32
- steps:
33
- 1. ANNOUNCE: |
34
- ## πŸ›‘οΈ Strict Context Gate β€” Automatic
35
-
36
- βœ… **Plan Complete**: [Plan file path]
37
- πŸ”’ **Focus Mode**: Automatically clearing context for implementation.
38
-
39
- ⚑ Executing: **Clear context & Auto-Implement**...
40
-
41
- 2. CONTEXT_DIRECTIVE: |
42
- ╔══════════════════════════════════════════════════════════════════╗
43
- β•‘ β›” MANDATORY CONTEXT RESET β€” FOCUS MODE β•‘
44
- ╠══════════════════════════════════════════════════════════════════╣
45
- β•‘ IGNORE: All previous chat messages, reasoning chains, β•‘
46
- β•‘ brainstorming discussions, research explorations, β•‘
47
- β•‘ rejected alternatives, and intermediate thinking. β•‘
48
- β•‘ β•‘
49
- β•‘ SOLE SOURCE OF TRUTH: Plan file in ./reports/ β•‘
50
- β•‘ β•‘
51
- β•‘ PROCEED: Begin Implementation phase with FRESH context mindset. β•‘
52
- β•‘ Treat this as a NEW conversation starting from Plan. β•‘
53
- β•šβ•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•
54
-
55
- 3. RELOAD_ESSENTIAL_CONTEXT: |
56
- ## πŸ“₯ Essential Context Reload
57
-
58
- Read Plan file and extract these sections for implementation context:
59
-
60
- 1️⃣ **USER REQUEST (VERBATIM)**:
61
- - Extract from Plan header: `## πŸ“Œ User Request (VERBATIM)`
62
- - This is the ORIGINAL user intent to verify against
63
-
64
- 2️⃣ **ACCEPTANCE CRITERIA**:
65
- - Extract from Plan header: `## 🎯 Acceptance Criteria`
66
- - These are the checkpoints that MUST pass for completion
67
-
68
- 3️⃣ **IMPLEMENTATION PLAN**:
69
- - Full plan content from `./reports/plans/PLAN-{task}.md`
70
- - This is the SOLE SOURCE OF TRUTH for what to build
71
-
72
- 4️⃣ **REMAINING PHASES**:
73
- - Extract from command file (e.g., Phase 4 β†’ 5 β†’ 6)
74
-
75
- 5️⃣ **IMPLEMENTATION RULES** (Summary):
76
- - Follow plan EXACTLY - no deviation without re-planning
77
- - Verify each step against acceptance criteria
78
- - Mark checkpoints as complete: `- [ ]` β†’ `- [x]`
79
-
80
- 4. OUTPUT_POST_STATUS: |
81
- πŸ”’ **Context Gate Passed**
82
-
83
- ## βœ… Reloaded:
84
- - User request (verbatim from plan header)
85
- - Acceptance criteria (verification checkpoints)
86
- - Implementation plan (sole source of truth)
87
- - Remaining phases workflow
88
- - Implementation rules summary
89
-
90
- ## ❌ Discarded:
91
- - Brainstorming discussions
92
- - Research explorations
93
- - Rejected alternatives
94
- - Chat history noise
95
-
96
- Mode: Fresh implementation start
97
-
98
- Proceeding to Implementation...
99
-
100
- 5. PROCEED: Start next phase immediately (no waiting)
101
- ```
102
-
103
- ### VARIANT-SPECIFIC ADJUSTMENTS
104
-
105
- ```yaml
106
- debug_focus_variant:
107
- # Debug doesn't implement, it hands off to fix
108
- reload_type: "OUTPUT_ESSENTIAL_CONTEXT"
109
- output_sections:
110
- 1. USER REQUEST (VERBATIM)
111
- 2. ROOT CAUSE SUMMARY
112
- 3. FIX STRATEGY
113
- 4. ACCEPTANCE CRITERIA
114
- handoff: "Ready for `/fix:focus` implementation"
115
-
116
- design_focus_variant:
117
- # Design continues to review phase, not implementation
118
- remaining_phases: "Phase 5 (Design Review) β†’ Implementation Handoff"
119
- rules_summary: "Verify design meets original user request"
120
-
121
- test_focus_variant:
122
- # Test uses strategy instead of plan
123
- plan_source: "Finalized test strategy from Phase 1"
124
- acceptance_source: "If Plan exists: Extract from ./reports/plans/"
125
- ```
126
-
127
- ---
128
-
129
- ## βš™οΈ HARD MODE β€” User Choice Context Optimization
130
-
131
- > **TRIGGER**: After Planning phase completes in `:hard` variants
132
- > **BEHAVIOR**: Present 3 options to user, WAIT for selection
133
-
134
- ### EXECUTION SEQUENCE
135
-
136
- ```yaml
137
- hard_mode_execution:
138
- when: "After Phase 3 (Planning) or equivalent phase completes"
139
-
140
- steps:
141
- 1. PRESENT_OPTIONS: |
142
- ## πŸ›‘οΈ Context Optimization Checkpoint
143
-
144
- **Planning Complete** β€” Plan file created at: [Plan file path]
145
-
146
- **Choose how to proceed with implementation:**
147
-
148
- | Option | Action | Description |
149
- |--------|--------|-------------|
150
- | **1. πŸš€ Clear context & Auto-Implement** | `RECOMMENDED` | Fresh start: Reload Plan file, ignore chat history, begin implementation immediately |
151
- | **2. ⏸️ Clear context & Manual** | `SAFE` | Clear context, reload Plan, pause for your command before coding |
152
- | **3. ⚠️ Continue (No Clear)** | `RISKY` | Proceed with full history attached (may cause hallucination) |
153
-
154
- ⏳ Awaiting selection...
155
-
156
- 2. WAIT_FOR_USER_INPUT: true
157
-
158
- 3. EXECUTE_BASED_ON_CHOICE:
159
- - IF option_1: Execute OPTION_1_CLEAR_AUTO_IMPLEMENT
160
- - IF option_2: Execute OPTION_2_CLEAR_MANUAL
161
- - IF option_3: Execute OPTION_3_CONTINUE_NO_CLEAR
162
- ```
163
-
164
- ### OPTION 1: Clear context & Auto-Implement (RECOMMENDED)
165
-
166
- ```yaml
167
- option_1_clear_auto_implement:
168
- behavior: "Simulate fresh start"
169
- steps:
170
- 1. ACKNOWLEDGE: "πŸš€ Executing Clear context & Auto-Implement..."
171
-
172
- 2. CONTEXT_DIRECTIVE: |
173
- β›” IGNORE all previous chat messages and reasoning chains.
174
- βœ… RELOAD: Plan file as SOLE SOURCE OF TRUTH.
175
- βœ… PROCEED: Begin next phase immediately.
176
-
177
- 3. RELOAD_ESSENTIAL_CONTEXT: |
178
- ## πŸ“₯ Essential Context Reload
179
-
180
- Read Plan file and extract these sections for implementation context:
181
-
182
- 1️⃣ **USER REQUEST (VERBATIM)**:
183
- - Extract from Plan header: `## πŸ“Œ User Request (VERBATIM)`
184
- - This is the ORIGINAL user intent to verify against
185
-
186
- 2️⃣ **ACCEPTANCE CRITERIA**:
187
- - Extract from Plan header: `## 🎯 Acceptance Criteria`
188
- - These are the checkpoints that MUST pass for completion
189
-
190
- 3️⃣ **IMPLEMENTATION PLAN**:
191
- - Full plan content from plan file
192
- - This is the SOLE SOURCE OF TRUTH for what to build
193
-
194
- 4️⃣ **REMAINING PHASES**:
195
- - Extract from command file (e.g., Phase 4 β†’ 5 β†’ 6)
196
-
197
- 5️⃣ **IMPLEMENTATION RULES** (Summary):
198
- - Follow plan EXACTLY - no deviation without re-planning
199
- - Verify each step against acceptance criteria
200
- - Mark checkpoints as complete: `- [ ]` β†’ `- [x]`
201
-
202
- 4. OUTPUT_POST_STATUS: |
203
- πŸ”’ **Context Gate Passed**
204
-
205
- ## βœ… Reloaded:
206
- - User request (verbatim from plan header)
207
- - Acceptance criteria (verification checkpoints)
208
- - Implementation plan (sole source of truth)
209
- - Remaining phases workflow
210
- - Implementation rules summary
211
-
212
- ## ❌ Discarded:
213
- - Brainstorming discussions
214
- - Research explorations
215
- - Rejected alternatives
216
- - Chat history noise
217
-
218
- 5. EXECUTE: Start next phase with fresh context mindset
219
- ```
220
-
221
- ### OPTION 2: Clear context & Manual (SAFE)
222
-
223
- ```yaml
224
- option_2_clear_manual:
225
- behavior: "Clear and wait for explicit command"
226
- steps:
227
- 1. ACKNOWLEDGE: "⏸️ Context cleared. Plan reloaded."
228
-
229
- 2. CONTEXT_DIRECTIVE: |
230
- β›” IGNORE all previous chat messages and reasoning chains.
231
- βœ… RELOAD: Plan file as SOLE SOURCE OF TRUTH.
232
-
233
- 3. RELOAD_ESSENTIAL_CONTEXT: |
234
- (Same 5-step structure as option_1)
235
-
236
- 4. OUTPUT_STATUS: |
237
- πŸ”’ **Context Cleared**
238
-
239
- ## βœ… Loaded:
240
- - User request from plan header
241
- - Acceptance criteria
242
- - Full implementation plan
243
- - Remaining phases: [list phases]
244
-
245
- Ready for implementation. Type `/continue` or give specific instructions.
246
-
247
- 5. WAIT: For user command before proceeding
248
- ```
249
-
250
- ### OPTION 3: Continue (No Clear) β€” RISKY
251
-
252
- ```yaml
253
- option_3_continue_no_clear:
254
- behavior: "Proceed with caution - context rot risk"
255
- steps:
256
- 1. WARN: "⚠️ Continuing with full history. Higher hallucination risk."
257
-
258
- 2. PROCEED: Continue to next phase with existing context
259
-
260
- 3. MONITOR: Watch for signs of context confusion
261
- ```
262
-
263
- ### VARIANT-SPECIFIC ADJUSTMENTS
264
-
265
- ```yaml
266
- debug_hard_variant:
267
- # Debug outputs for fix handoff, doesn't implement
268
- option_1:
269
- reload_type: "OUTPUT_ESSENTIAL_CONTEXT"
270
- output_sections:
271
- 1. USER REQUEST (VERBATIM)
272
- 2. ROOT CAUSE SUMMARY
273
- 3. FIX STRATEGY
274
- 4. ACCEPTANCE CRITERIA
275
- final_output: "Run `/fix:hard` to implement with clean context."
276
-
277
- design_hard_variant:
278
- # Design continues to review phase
279
- remaining_phases: "Phase 5 (Design Review) β†’ Implementation Handoff"
280
- rules_summary: "Verify design meets original user request"
281
-
282
- test_hard_variant:
283
- # Test uses strategy instead of plan
284
- plan_source: "Finalized test strategy from Phase 1"
285
- acceptance_source: "If Plan exists: Extract from ./reports/plans/"
286
- ```
287
-
288
- ---
289
-
290
- ## ⚠️ ENFORCEMENT MECHANISM
291
-
292
- ### BLOCKING RULES
293
-
294
- ```yaml
295
- enforcement:
296
- rule: "Context Gate is MANDATORY. Cannot skip or bypass."
297
-
298
- timing: |
299
- TRIGGER at exact phase boundary:
300
- - After Phase 3 (Planning) completes
301
- - Before Phase 4 (Implementation) begins
302
-
303
- verification: |
304
- Command file MUST include this checkpoint at phase boundary.
305
- AI MUST execute gate before proceeding to implementation.
306
-
307
- anti_skip_protection: |
308
- 1. Gate appears in SEQUENTIAL execution flow
309
- 2. Gate blocks next phase until completion
310
- 3. Commands MUST reference this file with LOAD directive
311
- ```
312
-
313
- ### LOAD DIRECTIVE FORMAT
314
-
315
- Commands MUST include this at Context Gate checkpoint:
316
-
317
- ```markdown
318
- ## πŸ›‘οΈ CONTEXT GATE CHECKPOINT
319
-
320
- > **β›” BLOCKING**: Load Context Gate protocol NOW before proceeding.
321
- >
322
- > **LOAD**: `rules/CONTEXT-GATE.md` β€” Follow protocol for your variant (FOCUS or HARD mode)
323
-
324
- [Execute Context Gate per loaded protocol]
325
- ```
326
-
327
- ---
328
-
329
- ## πŸ“Š VARIANT MAPPING
330
-
331
- | Command Variant | Mode | Trigger Phase | Behavior |
332
- |-----------------|------|---------------|----------|
333
- | `/code:focus` | FOCUS | After Phase 3 (Planning) | Auto clear β†’ Implementation |
334
- | `/code:hard` | HARD | After Phase 3 (Planning) | User choice β†’ Implementation |
335
- | `/cook:focus` | FOCUS | After Phase 3 (Planning) | Auto clear β†’ Implementation |
336
- | `/cook:hard` | HARD | After Phase 3 (Planning) | User choice β†’ Implementation |
337
- | `/fix:focus` | FOCUS | After Phase 3 (Fix Planning) | Auto clear β†’ Implementation |
338
- | `/fix:hard` | HARD | After Phase 3 (Fix Planning) | User choice β†’ Implementation |
339
- | `/debug:focus` | FOCUS | After Phase 4 (Solution Design) | Auto clear β†’ Fix Handoff |
340
- | `/debug:hard` | HARD | After Phase 4 (Solution Design) | User choice β†’ Fix Handoff |
341
- | `/design:focus` | FOCUS | After Phase 4 (Design Creation) | Auto clear β†’ Design Review |
342
- | `/design:hard` | HARD | After Phase 4 (Design Creation) | User choice β†’ Design Review |
343
- | `/test:focus` | FOCUS | After Phase 1 (Test Strategy) | Auto clear β†’ Test Execution |
344
- | `/test:hard` | HARD | After Phase 1 (Test Strategy) | User choice β†’ Test Execution |
345
-
346
- ---
347
-
348
- ## 🎯 VERIFICATION CHECKLIST
349
-
350
- Before proceeding from Context Gate:
351
-
352
- ```
353
- β–‘ Context directive issued
354
- β–‘ Essential context reloaded (5 sections)
355
- β–‘ Post-gate status displayed
356
- β–‘ User request preserved
357
- β–‘ Acceptance criteria extracted
358
- β–‘ Implementation rules summarized
359
- β–‘ Chat history discarded
360
- ```
361
-
362
- **NO SILENT SKIPS. CONTEXT GATE IS MANDATORY.**