@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.
- package/CHANGELOG.md +14 -0
- package/README.md +3 -15
- package/agents/backend-engineer.md +1 -1
- package/agents/brainstormer.md +1 -1
- package/agents/business-analyst.md +1 -1
- package/agents/database-architect.md +1 -1
- package/agents/debugger.md +1 -1
- package/agents/designer.md +1 -1
- package/agents/devops-engineer.md +1 -1
- package/agents/docs-manager.md +1 -1
- package/agents/frontend-engineer.md +1 -1
- package/agents/game-engineer.md +1 -1
- package/agents/mobile-engineer.md +1 -1
- package/agents/performance-engineer.md +1 -1
- package/agents/planner.md +1 -1
- package/agents/project-manager.md +1 -1
- package/agents/reporter.md +1 -1
- package/agents/researcher.md +1 -1
- package/agents/reviewer.md +1 -1
- package/agents/scouter.md +1 -1
- package/agents/security-engineer.md +1 -1
- package/agents/tech-lead.md +1 -1
- package/agents/tester.md +1 -1
- package/code-assistants/copilot-assistant/agent-assistant.agent.md +0 -25
- package/commands/code/focus.md +2 -25
- package/commands/code/hard.md +0 -30
- package/commands/cook/focus.md +0 -25
- package/commands/cook/hard.md +0 -25
- package/commands/cook/team.md +0 -26
- package/commands/debug/focus.md +0 -48
- package/commands/debug/hard.md +0 -71
- package/commands/debug/team.md +0 -36
- package/commands/design/focus.md +0 -23
- package/commands/design/hard.md +0 -85
- package/commands/design/team.md +0 -58
- package/commands/fix/focus.md +0 -23
- package/commands/fix/hard.md +0 -39
- package/commands/fix/team.md +0 -25
- package/commands/plan/focus.md +0 -53
- package/commands/plan/hard.md +0 -56
- package/commands/plan/team.md +0 -22
- package/commands/report/focus.md +0 -52
- package/commands/test/focus.md +0 -23
- package/commands/test/hard.md +0 -57
- package/commands/test/team.md +0 -7
- package/package.json +1 -1
- package/rules/TEAMS.md +1 -1
- package/rules/CONTEXT-GATE.md +0 -362
package/rules/CONTEXT-GATE.md
DELETED
|
@@ -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.**
|