@syntesseraai/opencode-feature-factory 0.6.8 → 0.6.10
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/README.md +24 -17
- package/agents/building.md +28 -541
- package/agents/documenting.md +39 -0
- package/agents/ff-research.md +18 -410
- package/agents/pipeline.md +27 -69
- package/agents/planning.md +28 -350
- package/agents/reviewing.md +27 -475
- package/bin/ff-deploy.js +7 -7
- package/{commands → command}/pipeline/building/breakdown.md +3 -3
- package/{commands → command}/pipeline/building/implement-batch.md +3 -3
- package/command/pipeline/building/run.md +19 -0
- package/{commands → command}/pipeline/building/validate-batch.md +3 -3
- package/{commands → command}/pipeline/complete.md +1 -2
- package/{commands/pipeline/documentation/run-codex.md → command/pipeline/documentation/document.md} +4 -6
- package/{commands → command}/pipeline/documentation/gate.md +3 -4
- package/{commands/pipeline/documentation/run-gemini.md → command/pipeline/documentation/review.md} +3 -3
- package/command/pipeline/documentation/run.md +25 -0
- package/command/pipeline/planning/gate.md +23 -0
- package/command/pipeline/planning/plan.md +25 -0
- package/command/pipeline/planning/run.md +24 -0
- package/command/pipeline/planning/synthesize.md +21 -0
- package/{commands → command}/pipeline/reviewing/gate.md +3 -4
- package/command/pipeline/reviewing/review.md +20 -0
- package/command/pipeline/reviewing/run.md +23 -0
- package/{commands → command}/pipeline/reviewing/synthesize.md +3 -4
- package/{commands → command}/pipeline/reviewing/triage.md +2 -3
- package/command/pipeline/start.md +29 -0
- package/dist/index.d.ts +1 -2
- package/dist/index.js +3 -52
- package/package.json +2 -2
- package/skills/ff-reviewing-architecture/SKILL.md +34 -0
- package/skills/ff-reviewing-code-quality/SKILL.md +34 -0
- package/skills/ff-reviewing-documentation/SKILL.md +34 -0
- package/skills/ff-reviewing-security/SKILL.md +34 -0
- package/agents/ff-acceptance.md +0 -285
- package/agents/ff-building-codex.md +0 -305
- package/agents/ff-building-gemini.md +0 -305
- package/agents/ff-building-opus.md +0 -305
- package/agents/ff-planning-codex.md +0 -335
- package/agents/ff-planning-gemini.md +0 -335
- package/agents/ff-planning-opus.md +0 -335
- package/agents/ff-review.md +0 -288
- package/agents/ff-reviewing-codex.md +0 -259
- package/agents/ff-reviewing-gemini.md +0 -259
- package/agents/ff-reviewing-opus.md +0 -259
- package/agents/ff-security.md +0 -322
- package/agents/ff-validate.md +0 -316
- package/agents/ff-well-architected.md +0 -284
- package/commands/pipeline/building/run.md +0 -19
- package/commands/pipeline/documentation/run.md +0 -27
- package/commands/pipeline/planning/gate.md +0 -22
- package/commands/pipeline/planning/run-codex.md +0 -22
- package/commands/pipeline/planning/run-gemini.md +0 -21
- package/commands/pipeline/planning/run-opus.md +0 -21
- package/commands/pipeline/planning/run.md +0 -25
- package/commands/pipeline/planning/synthesize.md +0 -18
- package/commands/pipeline/reviewing/run-codex.md +0 -12
- package/commands/pipeline/reviewing/run-gemini.md +0 -11
- package/commands/pipeline/reviewing/run-opus.md +0 -11
- package/commands/pipeline/reviewing/run.md +0 -24
- package/commands/pipeline/start.md +0 -22
- package/dist/agent-context.d.ts +0 -57
- package/dist/agent-context.js +0 -282
- package/dist/plugins/ff-agent-context-create-plugin.d.ts +0 -2
- package/dist/plugins/ff-agent-context-create-plugin.js +0 -82
- package/dist/plugins/ff-agent-context-update-plugin.d.ts +0 -2
- package/dist/plugins/ff-agent-context-update-plugin.js +0 -78
- package/dist/plugins/ff-agents-clear-plugin.d.ts +0 -2
- package/dist/plugins/ff-agents-clear-plugin.js +0 -40
- package/dist/plugins/ff-agents-current-plugin.d.ts +0 -2
- package/dist/plugins/ff-agents-current-plugin.js +0 -45
- package/dist/plugins/ff-agents-delete-plugin.d.ts +0 -2
- package/dist/plugins/ff-agents-delete-plugin.js +0 -32
- package/dist/plugins/ff-agents-get-plugin.d.ts +0 -2
- package/dist/plugins/ff-agents-get-plugin.js +0 -32
- package/dist/plugins/ff-agents-list-plugin.d.ts +0 -2
- package/dist/plugins/ff-agents-list-plugin.js +0 -42
- package/dist/plugins/ff-agents-show-plugin.d.ts +0 -2
- package/dist/plugins/ff-agents-show-plugin.js +0 -22
- package/dist/plugins/ff-agents-update-plugin.d.ts +0 -2
- package/dist/plugins/ff-agents-update-plugin.js +0 -32
- package/dist/plugins/ff-plan-create-plugin.d.ts +0 -2
- package/dist/plugins/ff-plan-create-plugin.js +0 -61
- package/dist/plugins/ff-plan-update-plugin.d.ts +0 -2
- package/dist/plugins/ff-plan-update-plugin.js +0 -142
- package/dist/plugins/ff-plans-delete-plugin.d.ts +0 -2
- package/dist/plugins/ff-plans-delete-plugin.js +0 -32
- package/dist/plugins/ff-plans-get-plugin.d.ts +0 -2
- package/dist/plugins/ff-plans-get-plugin.js +0 -32
- package/dist/plugins/ff-plans-list-plugin.d.ts +0 -2
- package/dist/plugins/ff-plans-list-plugin.js +0 -42
- package/dist/plugins/ff-plans-update-plugin.d.ts +0 -2
- package/dist/plugins/ff-plans-update-plugin.js +0 -32
- package/dist/plugins/ff-review-create-plugin.d.ts +0 -2
- package/dist/plugins/ff-review-create-plugin.js +0 -256
- package/dist/plugins/ff-reviews-get-plugin.d.ts +0 -2
- package/dist/plugins/ff-reviews-get-plugin.js +0 -32
- package/dist/plugins/ff-reviews-list-plugin.d.ts +0 -2
- package/dist/plugins/ff-reviews-list-plugin.js +0 -42
- package/dist/plugins/ff-reviews-update-plugin.d.ts +0 -2
- package/dist/plugins/ff-reviews-update-plugin.js +0 -32
- package/skills/ff-context-tracking/SKILL.md +0 -573
- package/skills/ff-delegation/SKILL.md +0 -457
- package/skills/ff-swarm/SKILL.md +0 -209
|
@@ -1,573 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: ff-context-tracking
|
|
3
|
-
description: Critical skill for all agents to track their context, maintain awareness of other agents' activities, and properly clean up agent files when finished. Use this skill to ensure cross-agent visibility and prevent orphaned context files.
|
|
4
|
-
license: MIT
|
|
5
|
-
compatibility: opencode
|
|
6
|
-
metadata:
|
|
7
|
-
audience: all-agents
|
|
8
|
-
category: coordination
|
|
9
|
-
priority: critical
|
|
10
|
-
---
|
|
11
|
-
|
|
12
|
-
# Context Tracking Skill
|
|
13
|
-
|
|
14
|
-
**⚠️ CRITICAL: ALL AGENTS MUST USE THIS SKILL**
|
|
15
|
-
|
|
16
|
-
This skill ensures every agent maintains proper context, stays aware of other agents' activities, and cleans up after completion. Without proper context tracking, agents work in isolation, duplicate effort, and leave orphaned files.
|
|
17
|
-
|
|
18
|
-
## Why Context Tracking Matters
|
|
19
|
-
|
|
20
|
-
### Cross-Agent Visibility
|
|
21
|
-
|
|
22
|
-
- **Know what others are doing** - Check `ff-agents-current()` before starting work
|
|
23
|
-
- **Avoid conflicts** - Don't modify files another agent is working on
|
|
24
|
-
- **Build on findings** - Read other agents' context to leverage their work
|
|
25
|
-
- **Coordinate efforts** - Track parent-child relationships in delegation chains
|
|
26
|
-
|
|
27
|
-
### Accountability
|
|
28
|
-
|
|
29
|
-
- **Track progress** - Context files show what each agent is working on
|
|
30
|
-
- **Debug issues** - When things go wrong, check agent contexts to understand what happened
|
|
31
|
-
- **Audit trail** - Agent contexts provide history of who did what when
|
|
32
|
-
|
|
33
|
-
### Resource Management
|
|
34
|
-
|
|
35
|
-
- **Prevent clutter** - Clean up context files when done
|
|
36
|
-
- **Avoid confusion** - Stale context files mislead about current state
|
|
37
|
-
- **Free resources** - Remove completed agent contexts promptly
|
|
38
|
-
|
|
39
|
-
## When to Use This Skill
|
|
40
|
-
|
|
41
|
-
### REQUIRED - Use at these moments:
|
|
42
|
-
|
|
43
|
-
1. **At START of EVERY task** - Create your context file immediately
|
|
44
|
-
2. **Before DELEGATING** - Check existing agents to avoid conflicts
|
|
45
|
-
3. **When MONITORING** - Check status of delegated agents
|
|
46
|
-
4. **At END of EVERY task** - Clean up your context file
|
|
47
|
-
5. **When TROUBLESHOOTING** - Read other agents' contexts to understand system state
|
|
48
|
-
|
|
49
|
-
### Context File Lifecycle
|
|
50
|
-
|
|
51
|
-
```
|
|
52
|
-
START → Create Context → Work → Update Progress → Complete → Clean Up → END
|
|
53
|
-
↑ ↓
|
|
54
|
-
└────────────────── Monitor Others ←────────────────────────┘
|
|
55
|
-
```
|
|
56
|
-
|
|
57
|
-
## Core Workflow
|
|
58
|
-
|
|
59
|
-
### Step 1: Check Existing Agents (BEFORE Starting)
|
|
60
|
-
|
|
61
|
-
**ALWAYS check what other agents are doing before you start:**
|
|
62
|
-
|
|
63
|
-
```
|
|
64
|
-
ff-agents-current()
|
|
65
|
-
```
|
|
66
|
-
|
|
67
|
-
**Why this matters:**
|
|
68
|
-
|
|
69
|
-
- Avoid working on the same files as another agent
|
|
70
|
-
- Build upon research already completed by @ff-research
|
|
71
|
-
- Don't duplicate security audits already done by @ff-security
|
|
72
|
-
- Coordinate with planning already done by @planning
|
|
73
|
-
|
|
74
|
-
**Example scenarios:**
|
|
75
|
-
|
|
76
|
-
```markdown
|
|
77
|
-
## Scenario 1: @building starting implementation
|
|
78
|
-
|
|
79
|
-
Before writing code:
|
|
80
|
-
|
|
81
|
-
1. ff-agents-current() → Shows @ff-research is active
|
|
82
|
-
2. Read ff-research context → They've researched the API already
|
|
83
|
-
3. Use their findings instead of researching again
|
|
84
|
-
|
|
85
|
-
## Scenario 2: @reviewing starting validation
|
|
86
|
-
|
|
87
|
-
Before reviewing:
|
|
88
|
-
|
|
89
|
-
1. ff-agents-current() → Shows @ff-security completed audit
|
|
90
|
-
2. Read ff-security context → They found 2 vulnerabilities
|
|
91
|
-
3. Focus review on those areas, don't duplicate security work
|
|
92
|
-
```
|
|
93
|
-
|
|
94
|
-
### Step 2: Create Your Context File (IMMEDIATELY)
|
|
95
|
-
|
|
96
|
-
**Every agent MUST create a context file at the start:**
|
|
97
|
-
|
|
98
|
-
```
|
|
99
|
-
ff-agents-update:
|
|
100
|
-
fileName: "{agent-name}-{UUID}.md"
|
|
101
|
-
content: |
|
|
102
|
-
---
|
|
103
|
-
id: "{UUID}"
|
|
104
|
-
agent: "{agent-name}"
|
|
105
|
-
title: "{brief task title}"
|
|
106
|
-
description: "{detailed description}"
|
|
107
|
-
status: "in-progress"
|
|
108
|
-
started: "{ISO timestamp}"
|
|
109
|
-
parent: "{parent UUID or null}"
|
|
110
|
-
delegated_to: []
|
|
111
|
-
---
|
|
112
|
-
|
|
113
|
-
## Task Context
|
|
114
|
-
|
|
115
|
-
{What you're working on and why}
|
|
116
|
-
|
|
117
|
-
## Related Agents
|
|
118
|
-
|
|
119
|
-
{List other agents working on related tasks}
|
|
120
|
-
|
|
121
|
-
## Progress
|
|
122
|
-
|
|
123
|
-
- [x] Context created
|
|
124
|
-
- [ ] Analysis in progress
|
|
125
|
-
- [ ] Findings documented
|
|
126
|
-
|
|
127
|
-
## Notes
|
|
128
|
-
|
|
129
|
-
{Any important observations or decisions}
|
|
130
|
-
```
|
|
131
|
-
|
|
132
|
-
**Required fields:**
|
|
133
|
-
|
|
134
|
-
- `id` - Your unique UUID
|
|
135
|
-
- `agent` - Your agent type (building, planning, ff-security, etc.)
|
|
136
|
-
- `title` - Brief, descriptive title
|
|
137
|
-
- `description` - What you're doing and why
|
|
138
|
-
- `status` - in-progress, completed, delegated, or failed
|
|
139
|
-
- `started` - ISO timestamp
|
|
140
|
-
- `parent` - Parent agent UUID if delegated, otherwise null
|
|
141
|
-
- `delegated_to` - Array of child agent UUIDs
|
|
142
|
-
|
|
143
|
-
### Step 3: Monitor Other Agents (DURING Work)
|
|
144
|
-
|
|
145
|
-
**Check on other agents periodically:**
|
|
146
|
-
|
|
147
|
-
```
|
|
148
|
-
# See all active agents
|
|
149
|
-
ff-agents-current()
|
|
150
|
-
|
|
151
|
-
# Read specific agent's context
|
|
152
|
-
ff-agents-show(id: "{agent-uuid}")
|
|
153
|
-
|
|
154
|
-
# Or read directly
|
|
155
|
-
ff-agents-get:
|
|
156
|
-
fileName: "{agent-name}-{uuid}.md"
|
|
157
|
-
```
|
|
158
|
-
|
|
159
|
-
**When to monitor:**
|
|
160
|
-
|
|
161
|
-
- Before making changes that might conflict with others
|
|
162
|
-
- When waiting for delegated agents to complete
|
|
163
|
-
- When troubleshooting issues that might involve other agents
|
|
164
|
-
- Periodically during long-running tasks
|
|
165
|
-
|
|
166
|
-
### Step 4: Update Your Progress (AS YOU WORK)
|
|
167
|
-
|
|
168
|
-
**Keep your context file current:**
|
|
169
|
-
|
|
170
|
-
```
|
|
171
|
-
ff-agents-update:
|
|
172
|
-
fileName: "{agent-name}-{UUID}.md"
|
|
173
|
-
content: |
|
|
174
|
-
---
|
|
175
|
-
id: "{UUID}"
|
|
176
|
-
agent: "{agent-name}"
|
|
177
|
-
title: "{title}"
|
|
178
|
-
description: "{description}"
|
|
179
|
-
status: "in-progress"
|
|
180
|
-
started: "{timestamp}"
|
|
181
|
-
parent: "{parent}"
|
|
182
|
-
delegated_to: [{child-uuid-1}, {child-uuid-2}]
|
|
183
|
-
---
|
|
184
|
-
|
|
185
|
-
## Task Context
|
|
186
|
-
|
|
187
|
-
{Updated context}
|
|
188
|
-
|
|
189
|
-
## Progress
|
|
190
|
-
|
|
191
|
-
- [x] Context created
|
|
192
|
-
- [x] Analysis complete
|
|
193
|
-
- [in_progress] Writing findings
|
|
194
|
-
- [ ] Final review
|
|
195
|
-
|
|
196
|
-
## Key Findings
|
|
197
|
-
|
|
198
|
-
{Important discoveries as you make them}
|
|
199
|
-
```
|
|
200
|
-
|
|
201
|
-
### Step 5: Mark Complete and Clean Up (AT THE END)
|
|
202
|
-
|
|
203
|
-
**CRITICAL: Always clean up when done:**
|
|
204
|
-
|
|
205
|
-
```
|
|
206
|
-
# Option 1: Clear your specific context
|
|
207
|
-
ff-agents-clear(id: "{your-uuid}")
|
|
208
|
-
|
|
209
|
-
# Option 2: Clear all your session's agents
|
|
210
|
-
ff-agents-clear(sessionID: "{session-id}")
|
|
211
|
-
|
|
212
|
-
# Option 3: If you're the parent, clear all delegated agents too
|
|
213
|
-
ff-agents-clear(agent: "{agent-type}")
|
|
214
|
-
```
|
|
215
|
-
|
|
216
|
-
**When to clean up:**
|
|
217
|
-
|
|
218
|
-
- ✅ Task completed successfully
|
|
219
|
-
- ✅ Task failed but documented why
|
|
220
|
-
- ✅ Task cancelled
|
|
221
|
-
- ✅ Delegated agents have finished and you've read their results
|
|
222
|
-
|
|
223
|
-
**NEVER leave context files behind unless:**
|
|
224
|
-
|
|
225
|
-
- The task is intentionally ongoing (rare)
|
|
226
|
-
- You're explicitly asked to keep context for monitoring
|
|
227
|
-
|
|
228
|
-
## Cross-Agent Awareness Patterns
|
|
229
|
-
|
|
230
|
-
### Pattern 1: Building on Research
|
|
231
|
-
|
|
232
|
-
```markdown
|
|
233
|
-
@building implementing a feature:
|
|
234
|
-
|
|
235
|
-
1. ff-agents-current() → Shows @ff-research active
|
|
236
|
-
2. ff-agents-show(id: "research-uuid") → Read their findings
|
|
237
|
-
3. Use research findings in implementation
|
|
238
|
-
4. No need to duplicate research work
|
|
239
|
-
```
|
|
240
|
-
|
|
241
|
-
### Pattern 2: Coordinated Validation
|
|
242
|
-
|
|
243
|
-
```markdown
|
|
244
|
-
@reviewing performing validation:
|
|
245
|
-
|
|
246
|
-
1. ff-agents-current() → Shows @ff-security and @ff-review completed
|
|
247
|
-
2. Read both contexts to understand what they found
|
|
248
|
-
3. Focus comprehensive review on gaps they might have missed
|
|
249
|
-
4. Aggregate all findings into final report
|
|
250
|
-
```
|
|
251
|
-
|
|
252
|
-
### Pattern 3: Conflict Avoidance
|
|
253
|
-
|
|
254
|
-
```markdown
|
|
255
|
-
@building about to edit a file:
|
|
256
|
-
|
|
257
|
-
1. ff-agents-current() → Shows another @building agent active
|
|
258
|
-
2. Read their context → They're editing the same file
|
|
259
|
-
3. Wait for them to finish OR coordinate changes
|
|
260
|
-
4. Avoid merge conflicts and duplicate work
|
|
261
|
-
```
|
|
262
|
-
|
|
263
|
-
### Pattern 4: Delegation Chain Tracking
|
|
264
|
-
|
|
265
|
-
```markdown
|
|
266
|
-
@planning delegating to multiple agents:
|
|
267
|
-
|
|
268
|
-
1. Create planning context with parent: null
|
|
269
|
-
2. Delegate to @ff-research, @ff-security, @ff-acceptance
|
|
270
|
-
3. Update planning context with delegated_to: [uuid1, uuid2, uuid3]
|
|
271
|
-
4. Each child agent has parent: "planning-uuid"
|
|
272
|
-
5. Monitor all children with ff-agents-current()
|
|
273
|
-
6. When all complete, read all contexts and aggregate
|
|
274
|
-
7. Clear all contexts when done
|
|
275
|
-
```
|
|
276
|
-
|
|
277
|
-
## Context File Structure Standards
|
|
278
|
-
|
|
279
|
-
### Standard Template
|
|
280
|
-
|
|
281
|
-
```markdown
|
|
282
|
-
---
|
|
283
|
-
id: '550e8400-e29b-41d4-a716-446655440000'
|
|
284
|
-
agent: 'building'
|
|
285
|
-
title: 'Implement OAuth Authentication'
|
|
286
|
-
description: 'Building OAuth flow for customer portal login'
|
|
287
|
-
status: 'in-progress'
|
|
288
|
-
started: '2026-02-02T14:30:00Z'
|
|
289
|
-
parent: null
|
|
290
|
-
delegated_to:
|
|
291
|
-
- '6ba7b810-9dad-11d1-80b4-00c04fd430c8'
|
|
292
|
-
- '6ba7b811-9dad-11d1-80b4-00c04fd430c8'
|
|
293
|
-
---
|
|
294
|
-
|
|
295
|
-
## Task Context
|
|
296
|
-
|
|
297
|
-
Implementing Google OAuth authentication for the customer portal.
|
|
298
|
-
Requirements from issue #123:
|
|
299
|
-
|
|
300
|
-
- Support Google OAuth 2.0
|
|
301
|
-
- Store user data in Supabase
|
|
302
|
-
- Handle token refresh
|
|
303
|
-
|
|
304
|
-
## Related Work
|
|
305
|
-
|
|
306
|
-
- @ff-research researched OAuth libraries (completed)
|
|
307
|
-
- @ff-security performed threat model (in-progress)
|
|
308
|
-
|
|
309
|
-
## Progress
|
|
310
|
-
|
|
311
|
-
- [x] Context created
|
|
312
|
-
- [x] Research findings reviewed
|
|
313
|
-
- [in_progress] Implementing auth middleware
|
|
314
|
-
- [ ] Testing OAuth flow
|
|
315
|
-
- [ ] Documentation
|
|
316
|
-
|
|
317
|
-
## Blockers
|
|
318
|
-
|
|
319
|
-
None currently.
|
|
320
|
-
|
|
321
|
-
## Notes
|
|
322
|
-
|
|
323
|
-
Using NextAuth.js based on @ff-research recommendation.
|
|
324
|
-
```
|
|
325
|
-
|
|
326
|
-
### Status Values
|
|
327
|
-
|
|
328
|
-
- `in-progress` - Currently working on this task
|
|
329
|
-
- `completed` - Task finished successfully
|
|
330
|
-
- `delegated` - Task split into sub-tasks assigned to other agents
|
|
331
|
-
- `failed` - Task failed, documented why
|
|
332
|
-
- `blocked` - Task blocked, documented reason
|
|
333
|
-
|
|
334
|
-
## Tools Reference
|
|
335
|
-
|
|
336
|
-
### ff-agents-current
|
|
337
|
-
|
|
338
|
-
List all active agents with their status.
|
|
339
|
-
|
|
340
|
-
**Use when:**
|
|
341
|
-
|
|
342
|
-
- Starting work (check for conflicts)
|
|
343
|
-
- Monitoring delegated agents
|
|
344
|
-
- Troubleshooting issues
|
|
345
|
-
|
|
346
|
-
**Returns:**
|
|
347
|
-
|
|
348
|
-
```json
|
|
349
|
-
{
|
|
350
|
-
"count": 3,
|
|
351
|
-
"agents": [
|
|
352
|
-
{
|
|
353
|
-
"id": "uuid-1",
|
|
354
|
-
"agent": "building",
|
|
355
|
-
"title": "Implement OAuth",
|
|
356
|
-
"status": "in-progress"
|
|
357
|
-
},
|
|
358
|
-
{
|
|
359
|
-
"id": "uuid-2",
|
|
360
|
-
"agent": "ff-research",
|
|
361
|
-
"title": "Research OAuth libraries",
|
|
362
|
-
"status": "completed",
|
|
363
|
-
"parent": "uuid-1"
|
|
364
|
-
}
|
|
365
|
-
]
|
|
366
|
-
}
|
|
367
|
-
```
|
|
368
|
-
|
|
369
|
-
### ff-agents-show
|
|
370
|
-
|
|
371
|
-
Get detailed context for a specific agent by UUID.
|
|
372
|
-
|
|
373
|
-
**Use when:**
|
|
374
|
-
|
|
375
|
-
- You need to read another agent's full context
|
|
376
|
-
- You want to build on their findings
|
|
377
|
-
- You're aggregating results from delegated agents
|
|
378
|
-
|
|
379
|
-
### ff-agents-get
|
|
380
|
-
|
|
381
|
-
Read an agent context file by name.
|
|
382
|
-
|
|
383
|
-
**Use when:**
|
|
384
|
-
|
|
385
|
-
- You know the exact filename
|
|
386
|
-
- You need to read and then update a file
|
|
387
|
-
|
|
388
|
-
### ff-agents-update
|
|
389
|
-
|
|
390
|
-
Create or update your agent context file.
|
|
391
|
-
|
|
392
|
-
**Use when:**
|
|
393
|
-
|
|
394
|
-
- Creating your context at start
|
|
395
|
-
- Updating progress as you work
|
|
396
|
-
- Adding delegated agents
|
|
397
|
-
|
|
398
|
-
### ff-agents-clear
|
|
399
|
-
|
|
400
|
-
Clean up agent context files.
|
|
401
|
-
|
|
402
|
-
**Use when:**
|
|
403
|
-
|
|
404
|
-
- Task completed
|
|
405
|
-
- Task failed/cancelled
|
|
406
|
-
- Cleaning up delegated agents
|
|
407
|
-
|
|
408
|
-
**Options:**
|
|
409
|
-
|
|
410
|
-
- `id` - Clear specific agent by UUID
|
|
411
|
-
- `sessionID` - Clear all agents in a session
|
|
412
|
-
- `agent` - Clear all agents of a specific type
|
|
413
|
-
|
|
414
|
-
## Common Mistakes to Avoid
|
|
415
|
-
|
|
416
|
-
### ❌ Mistake 1: Not Checking Existing Agents
|
|
417
|
-
|
|
418
|
-
**Problem:** Start working without checking what others are doing
|
|
419
|
-
**Impact:** Duplicate work, conflicts, wasted effort
|
|
420
|
-
**Solution:** Always run `ff-agents-current()` first
|
|
421
|
-
|
|
422
|
-
### ❌ Mistake 2: No Context File
|
|
423
|
-
|
|
424
|
-
**Problem:** Work without creating a context file
|
|
425
|
-
**Impact:** Others can't see what you're doing, can't coordinate
|
|
426
|
-
**Solution:** Create context file IMMEDIATELY at start
|
|
427
|
-
|
|
428
|
-
### ❌ Mistake 3: Stale Context
|
|
429
|
-
|
|
430
|
-
**Problem:** Context file says "in-progress" but work is done
|
|
431
|
-
**Impact:** Others think work is still happening, don't build on it
|
|
432
|
-
**Solution:** Update status to "completed" when done
|
|
433
|
-
|
|
434
|
-
### ❌ Mistake 4: Not Cleaning Up
|
|
435
|
-
|
|
436
|
-
**Problem:** Leave context files after completion
|
|
437
|
-
**Impact:** Clutter, confusion about what's active
|
|
438
|
-
**Solution:** Always call `ff-agents-clear()` when done
|
|
439
|
-
|
|
440
|
-
### ❌ Mistake 5: Not Reading Other Contexts
|
|
441
|
-
|
|
442
|
-
**Problem:** Ignore what other agents have found
|
|
443
|
-
**Impact:** Miss important findings, duplicate work
|
|
444
|
-
**Solution:** Read contexts of related agents with `ff-agents-show()`
|
|
445
|
-
|
|
446
|
-
### ❌ Mistake 6: Missing Parent Links
|
|
447
|
-
|
|
448
|
-
**Problem:** Delegated agents don't set parent field
|
|
449
|
-
**Impact:** Can't track delegation chains
|
|
450
|
-
**Solution:** Always set `parent: "{delegator-uuid}"` when delegated
|
|
451
|
-
|
|
452
|
-
## Integration with Other Skills
|
|
453
|
-
|
|
454
|
-
### With ff-delegation
|
|
455
|
-
|
|
456
|
-
- Use context tracking to monitor delegated agents
|
|
457
|
-
- Update `delegated_to` field when delegating
|
|
458
|
-
- Read child agent contexts to aggregate results
|
|
459
|
-
- Clean up all contexts when delegation chain completes
|
|
460
|
-
|
|
461
|
-
### With ff-todo-management
|
|
462
|
-
|
|
463
|
-
- Add "Check existing agents" as first todo item
|
|
464
|
-
- Add "Create context file" as second todo item
|
|
465
|
-
- Add "Clean up context" as final todo item
|
|
466
|
-
- Track progress in both todo list AND context file
|
|
467
|
-
|
|
468
|
-
## Best Practices Summary
|
|
469
|
-
|
|
470
|
-
### DO:
|
|
471
|
-
|
|
472
|
-
✅ **Check existing agents before starting** - `ff-agents-current()`
|
|
473
|
-
✅ **Create context file immediately** - At the very start
|
|
474
|
-
✅ **Update progress regularly** - Keep context current
|
|
475
|
-
✅ **Read other agents' contexts** - Build on their work
|
|
476
|
-
✅ **Set parent when delegated** - Track delegation chains
|
|
477
|
-
✅ **Track delegated agents** - Update `delegated_to` field
|
|
478
|
-
✅ **Clean up when done** - `ff-agents-clear()`
|
|
479
|
-
✅ **Monitor periodically** - Check on delegated agents
|
|
480
|
-
|
|
481
|
-
### DON'T:
|
|
482
|
-
|
|
483
|
-
❌ **Start without checking others** - Risk conflicts
|
|
484
|
-
❌ **Work without context file** - Invisible to others
|
|
485
|
-
❌ **Leave stale contexts** - Confuses others
|
|
486
|
-
❌ **Ignore other agents** - Miss important findings
|
|
487
|
-
❌ **Forget parent links** - Break delegation chains
|
|
488
|
-
❌ **Skip cleanup** - Leave clutter behind
|
|
489
|
-
|
|
490
|
-
## Example: Complete Context Tracking Workflow
|
|
491
|
-
|
|
492
|
-
```markdown
|
|
493
|
-
## @building implementing a feature
|
|
494
|
-
|
|
495
|
-
### Step 1: Check Existing Agents
|
|
496
|
-
|
|
497
|
-
ff-agents-current()
|
|
498
|
-
→ Shows @ff-research completed, @planning completed
|
|
499
|
-
|
|
500
|
-
### Step 2: Read Their Contexts
|
|
501
|
-
|
|
502
|
-
ff-agents-show(id: "research-uuid") → Read research findings
|
|
503
|
-
ff-agents-show(id: "planning-uuid") → Read implementation plan
|
|
504
|
-
|
|
505
|
-
### Step 3: Create My Context
|
|
506
|
-
|
|
507
|
-
ff-agents-update:
|
|
508
|
-
fileName: "building-{my-uuid}.md"
|
|
509
|
-
content: |
|
|
510
|
-
|
|
511
|
-
---
|
|
512
|
-
|
|
513
|
-
id: "{my-uuid}"
|
|
514
|
-
agent: "building"
|
|
515
|
-
title: "Implement OAuth"
|
|
516
|
-
description: "Building based on @ff-research findings and @planning plan"
|
|
517
|
-
status: "in-progress"
|
|
518
|
-
started: "2026-02-02T14:30:00Z"
|
|
519
|
-
parent: null
|
|
520
|
-
delegated_to: []
|
|
521
|
-
|
|
522
|
-
---
|
|
523
|
-
|
|
524
|
-
## Context
|
|
525
|
-
|
|
526
|
-
Building OAuth based on:
|
|
527
|
-
- @ff-research: Use NextAuth.js
|
|
528
|
-
- @planning: 3-step implementation plan
|
|
529
|
-
|
|
530
|
-
### Step 4: Delegate for Parallel Work
|
|
531
|
-
|
|
532
|
-
Generate child UUIDs for @ff-security and @ff-review
|
|
533
|
-
Task(ff-security): "Audit OAuth implementation"
|
|
534
|
-
Task(ff-review): "Review code quality"
|
|
535
|
-
|
|
536
|
-
Update my context:
|
|
537
|
-
ff-agents-update:
|
|
538
|
-
delegated_to: ["security-uuid", "review-uuid"]
|
|
539
|
-
|
|
540
|
-
### Step 5: Monitor Delegated Agents
|
|
541
|
-
|
|
542
|
-
ff-agents-current() → Check if security and review complete
|
|
543
|
-
ff-agents-show(id: "security-uuid") → Read security findings
|
|
544
|
-
ff-agents-show(id: "review-uuid") → Read review findings
|
|
545
|
-
|
|
546
|
-
### Step 6: Complete and Clean Up
|
|
547
|
-
|
|
548
|
-
ff-agents-clear(id: "{my-uuid}")
|
|
549
|
-
ff-agents-clear(id: "{security-uuid}")
|
|
550
|
-
ff-agents-clear(id: "{review-uuid}")
|
|
551
|
-
```
|
|
552
|
-
|
|
553
|
-
## Remember
|
|
554
|
-
|
|
555
|
-
**Context tracking is not optional - it's essential for coordination.**
|
|
556
|
-
|
|
557
|
-
Without it:
|
|
558
|
-
|
|
559
|
-
- Agents work in isolation
|
|
560
|
-
- Effort is duplicated
|
|
561
|
-
- Conflicts arise
|
|
562
|
-
- Files are orphaned
|
|
563
|
-
- Progress is unclear
|
|
564
|
-
|
|
565
|
-
With it:
|
|
566
|
-
|
|
567
|
-
- Agents coordinate effectively
|
|
568
|
-
- Work builds on work
|
|
569
|
-
- Conflicts are avoided
|
|
570
|
-
- Resources are managed
|
|
571
|
-
- Progress is transparent
|
|
572
|
-
|
|
573
|
-
**ALWAYS track your context. ALWAYS clean up when done.**
|