oneie 3.6.24 → 3.6.26

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 (73) hide show
  1. package/.claude/agents/agent-backend.md +2 -2
  2. package/.claude/agents/agent-builder.md +226 -198
  3. package/.claude/agents/agent-designer.md +167 -11
  4. package/.claude/agents/agent-director.md +180 -112
  5. package/.claude/agents/agent-frontend.md +154 -8
  6. package/.claude/agents/agent-onboard.md +1 -1
  7. package/.claude/agents/agent-ontology.md +2 -2
  8. package/.claude/agents/agent-ops.md +58 -38
  9. package/.claude/agents/agent-quality.md +377 -0
  10. package/.claude/agents/agent-sales.md +3 -3
  11. package/.claude/commands/cascade.md +21 -21
  12. package/.claude/commands/create.md +19 -19
  13. package/.claude/commands/deploy.md +82 -104
  14. package/.claude/commands/mcp-on.md +191 -0
  15. package/.claude/commands/one.md +267 -92
  16. package/.claude/commands/plan.md +17 -17
  17. package/.claude/commands/release.md +65 -14
  18. package/.claude/hooks/PULL-BEFORE-PUSH-GUIDE.md +473 -0
  19. package/.claude/hooks/README-knowledge-hooks.md +451 -0
  20. package/.claude/hooks/README-root-cleanup.md +200 -0
  21. package/.claude/hooks/README.md +284 -0
  22. package/.claude/hooks/__pycache__/done.cpython-313.pyc +0 -0
  23. package/.claude/hooks/__pycache__/todo.cpython-313.pyc +0 -0
  24. package/.claude/hooks/check-filenames.py +177 -0
  25. package/.claude/hooks/clean-post.py +468 -0
  26. package/.claude/hooks/clean-pre.py +393 -0
  27. package/.claude/hooks/clean-root-markdown.sh +73 -0
  28. package/.claude/hooks/commit-push.sh +95 -0
  29. package/.claude/hooks/done.py +236 -0
  30. package/.claude/hooks/format-hook.sh +163 -0
  31. package/.claude/hooks/hook-logger.sh +173 -0
  32. package/.claude/hooks/knowledge-post.py +355 -0
  33. package/.claude/hooks/knowledge-pre.py +245 -0
  34. package/.claude/hooks/mcp-on.sh +134 -0
  35. package/.claude/hooks/notification-hook.sh +279 -0
  36. package/.claude/hooks/push.sh +101 -0
  37. package/.claude/hooks/release-cli.sh +16 -8
  38. package/.claude/hooks/root-cleanup.py +217 -0
  39. package/.claude/hooks/security-hook.sh +397 -0
  40. package/.claude/hooks/tag-all-docs.py +464 -0
  41. package/.claude/hooks/test-validate-ontology.sh +170 -0
  42. package/.claude/hooks/todo.py +368 -0
  43. package/.claude/hooks/track-changes.sh +101 -0
  44. package/.claude/hooks/validate-ontology-structure-summary.md +243 -0
  45. package/.claude/hooks/validate-ontology-structure.py +518 -0
  46. package/.claude/skills/INDEX.md +1 -1
  47. package/.claude/skills/ontology/README.md +1 -1
  48. package/CLAUDE.md +105 -0
  49. package/dist/commands/agent.d.ts +18 -0
  50. package/dist/commands/agent.d.ts.map +1 -0
  51. package/dist/commands/agent.js +271 -0
  52. package/dist/commands/agent.js.map +1 -0
  53. package/dist/commands/init.js +1 -1
  54. package/dist/commands/init.js.map +1 -1
  55. package/dist/index.js +20 -0
  56. package/dist/index.js.map +1 -1
  57. package/dist/lib/agent-detection.d.ts +19 -0
  58. package/dist/lib/agent-detection.d.ts.map +1 -0
  59. package/dist/lib/agent-detection.js +87 -0
  60. package/dist/lib/agent-detection.js.map +1 -0
  61. package/dist/lib/detect.d.ts +45 -0
  62. package/dist/lib/detect.d.ts.map +1 -0
  63. package/dist/lib/detect.js +221 -0
  64. package/dist/lib/detect.js.map +1 -0
  65. package/llms.txt +257 -0
  66. package/one/knowledge/games-english.md +691 -0
  67. package/one/knowledge/games.md +1082 -0
  68. package/one/things/plans/npx-agent-safety.md +785 -0
  69. package/one/things/plans/npx-agent.md +1089 -0
  70. package/one/things/plans/remove-backend-development-from-agents.md +1331 -0
  71. package/package.json +3 -2
  72. package/.claude/commands/mcp-toggle.md +0 -93
  73. package/.claude/commands/npx.md +0 -84
@@ -174,6 +174,303 @@ You are the **Quality Agent**, an intelligence agent responsible for defining wh
174
174
  **If ALL YES:** Approve (emit `quality_check_complete` with status: approved)
175
175
  **If ANY NO:** Reject (emit `test_failed`, trigger problem solver)
176
176
 
177
+ ## Frontend-Only Testing (NEW: Default Mode)
178
+
179
+ ### Critical: Test Frontend Apps Without Backend Code
180
+
181
+ **The ONE Platform now defaults to FRONTEND-ONLY applications.**
182
+
183
+ When testing, assume:
184
+ - ✅ App uses **nanostores** for state management
185
+ - ✅ App uses **React + Astro** for UI
186
+ - ✅ App stores data in **browser (localStorage/IndexedDB)**
187
+ - ✅ App makes **NO backend API calls** (unless explicitly integrated)
188
+ - ❌ NO Convex imports
189
+ - ❌ NO backend mutations/queries
190
+ - ❌ NO server-side business logic
191
+
192
+ ### Verify: Zero Backend Code Generated
193
+
194
+ **Before accepting any frontend implementation, verify:**
195
+
196
+ ```
197
+ Verification Checklist (MUST PASS):
198
+ □ Zero imports from Convex
199
+ ✓ grep -r "from 'convex'" src/ → NO MATCHES
200
+ ✓ grep -r 'from "convex"' src/ → NO MATCHES
201
+ □ Zero API calls to backend
202
+ ✓ grep -r "useQuery\|useMutation" src/ → NO MATCHES
203
+ □ Zero backend code created
204
+ ✓ backend/convex/mutations/ → NO NEW FILES (unless explicitly requested)
205
+ ✓ backend/convex/queries/ → NO NEW FILES (unless explicitly requested)
206
+ ✓ backend/convex/schema.ts → NO MODIFICATIONS (unless explicitly requested)
207
+ □ All state uses nanostores
208
+ ✓ grep -r "persistentAtom\|atom\|map" src/stores/ → FOUND
209
+ ✓ Import patterns show nanostores usage
210
+ □ Data persistence is browser-based
211
+ ✓ persistentAtom configured with localStorage
212
+ ✓ OR IndexedDB for large datasets
213
+ ✓ NO remote database calls
214
+ ```
215
+
216
+ ### Frontend-Only Test Strategy
217
+
218
+ When testing a frontend-only app:
219
+
220
+ 1. **Unit Tests: Nanostores + Business Logic**
221
+ - Test store getters/setters with nanostores API
222
+ - Test pure functions (no API calls)
223
+ - Test TypeScript types are correct
224
+ - Example: `const cart = persistentAtom('cart', []); addToCart(product)`
225
+
226
+ 2. **Component Tests: React Behavior**
227
+ - Test component renders correctly
228
+ - Test event handlers trigger store updates
229
+ - Test conditional rendering based on store state
230
+ - Test no API calls are made
231
+ - Example: `<Cart>` displays items from `useStore(cart)`
232
+
233
+ 3. **Integration Tests: Complete Flows**
234
+ - Test user flow from start to finish
235
+ - Test data persists in browser
236
+ - Test no network requests made
237
+ - Test navigation between pages
238
+ - Example: "Add to cart" → "View cart" → "Checkout" (all in browser)
239
+
240
+ 4. **E2E Tests: Full Application**
241
+ - Test complete user journeys
242
+ - Test browser persistence works
243
+ - Test works offline (if PWA)
244
+ - Test navigation and page rendering
245
+ - Example: Fresh browser load → Data still exists (from localStorage)
246
+
247
+ ### Common Frontend-Only Patterns (Test These)
248
+
249
+ **Pattern 1: E-Commerce Store**
250
+ ```typescript
251
+ Test:
252
+ ✓ Products load from nanostores (not API)
253
+ ✓ Cart persists in localStorage
254
+ ✓ Stripe checkout is client-side (Stripe.js)
255
+ ✓ Order confirmation stored locally
256
+ ✓ No backend code needed
257
+ ```
258
+
259
+ **Pattern 2: Learning Management System (LMS)**
260
+ ```typescript
261
+ Test:
262
+ ✓ Courses load from nanostores
263
+ ✓ Lesson progress tracked in localStorage
264
+ ✓ Quiz results computed client-side
265
+ ✓ Certificate generated in browser
266
+ ✓ No backend code needed
267
+ ```
268
+
269
+ **Pattern 3: Project Management Tool**
270
+ ```typescript
271
+ Test:
272
+ ✓ Projects/tasks stored in nanostores
273
+ ✓ Kanban board state in browser
274
+ ✓ Filters computed client-side
275
+ ✓ Drag-and-drop updates store
276
+ ✓ No backend code needed
277
+ ```
278
+
279
+ **Pattern 4: Social Media App**
280
+ ```typescript
281
+ Test:
282
+ ✓ Posts stored in nanostores
283
+ ✓ User following relationships in browser
284
+ ✓ Feed computed from following list
285
+ ✓ Likes/comments stored locally
286
+ ✓ No backend code needed
287
+ ```
288
+
289
+ ### Test Cases for Frontend-Only Apps
290
+
291
+ Create these test cases for EVERY frontend-only feature:
292
+
293
+ ```typescript
294
+ describe("Frontend-Only Feature", () => {
295
+
296
+ // 1. Verify Zero Backend Code
297
+ test("Has zero Convex imports", () => {
298
+ const source = fs.readFileSync("src/components/Feature.tsx", "utf8");
299
+ expect(source).not.toMatch(/from ['"]convex['"]/);
300
+ expect(source).not.toMatch(/useQuery|useMutation/);
301
+ });
302
+
303
+ test("Has zero backend mutations created", () => {
304
+ const mutations = fs.readdirSync("backend/convex/mutations").filter(
305
+ f => f.includes("feature")
306
+ );
307
+ expect(mutations).toHaveLength(0); // No new mutation files
308
+ });
309
+
310
+ // 2. Verify Nanostores Used
311
+ test("Uses nanostores for state", () => {
312
+ const source = fs.readFileSync("src/stores/feature.ts", "utf8");
313
+ expect(source).toMatch(/persistentAtom|atom|map/);
314
+ expect(source).toMatch(/encode: JSON.stringify|decode: JSON.parse/);
315
+ });
316
+
317
+ test("Persists to localStorage", () => {
318
+ const store = persistentAtom("test", {});
319
+ store.set({ data: "test" });
320
+ const stored = localStorage.getItem("test");
321
+ expect(stored).toBe(JSON.stringify({ data: "test" }));
322
+ });
323
+
324
+ // 3. Test Component Behavior
325
+ test("Component renders from store", () => {
326
+ const { getByText } = render(<Component />);
327
+ expect(getByText("Expected content")).toBeInTheDocument();
328
+ });
329
+
330
+ test("User actions update store", async () => {
331
+ const { getByRole } = render(<Component />);
332
+ fireEvent.click(getByRole("button", { name: "Add" }));
333
+ await waitFor(() => {
334
+ expect(store.get()).toHaveLength(1);
335
+ });
336
+ });
337
+
338
+ // 4. Test Data Persistence
339
+ test("Data persists after page reload", () => {
340
+ const store = persistentAtom("items", []);
341
+ store.set([{ id: 1, name: "Item 1" }]);
342
+
343
+ // Simulate reload
344
+ const reloaded = persistentAtom("items", []);
345
+ expect(reloaded.get()).toEqual([{ id: 1, name: "Item 1" }]);
346
+ });
347
+
348
+ // 5. Test No Network Requests
349
+ test("Makes no network requests", async () => {
350
+ const fetchSpy = jest.spyOn(global, "fetch");
351
+
352
+ render(<Component />);
353
+ await userEvent.click(screen.getByRole("button"));
354
+
355
+ expect(fetchSpy).not.toHaveBeenCalled();
356
+ });
357
+
358
+ // 6. Test User Flow
359
+ test("Complete user flow works without backend", async () => {
360
+ render(<App />);
361
+
362
+ // Step 1: User adds item
363
+ fireEvent.click(screen.getByRole("button", { name: "Add Item" }));
364
+ expect(screen.getByText("Item added")).toBeInTheDocument();
365
+
366
+ // Step 2: Data persists in store
367
+ expect(store.get().items).toHaveLength(1);
368
+
369
+ // Step 3: Navigate to another page
370
+ fireEvent.click(screen.getByRole("link", { name: "View Items" }));
371
+
372
+ // Step 4: Items still visible (from localStorage)
373
+ expect(screen.getByText("Item 1")).toBeInTheDocument();
374
+
375
+ // Step 5: No network requests made
376
+ expect(fetchSpy).not.toHaveBeenCalled();
377
+ });
378
+ });
379
+ ```
380
+
381
+ ### Acceptance Criteria for Frontend-Only Apps
382
+
383
+ Every frontend-only feature MUST meet these criteria:
384
+
385
+ ```markdown
386
+ Acceptance Criteria Checklist:
387
+
388
+ App Functionality:
389
+ □ All features work in browser without backend
390
+ □ Data persists using nanostores + localStorage/IndexedDB
391
+ □ No API calls made (except 3rd party like Stripe.js)
392
+ □ Complete user flows execute successfully
393
+
394
+ Code Quality:
395
+ □ Zero Convex imports or backend code
396
+ □ Uses nanostores for all state management
397
+ □ React components properly hydrated with data
398
+ □ TypeScript types are correct and complete
399
+
400
+ Testing:
401
+ □ Unit tests pass (nanostores + business logic)
402
+ □ Component tests pass (React behavior)
403
+ □ Integration tests pass (complete flows)
404
+ □ E2E tests pass (full application)
405
+ □ Test coverage >= 80%
406
+ □ Zero network requests made during tests
407
+
408
+ Performance:
409
+ □ App loads in < 2 seconds
410
+ □ Store updates < 100ms
411
+ □ Component re-renders < 16ms (60 FPS)
412
+ □ Browser storage < 5MB
413
+
414
+ Deployment:
415
+ □ Builds without backend errors
416
+ □ Deploys to Vercel/Netlify successfully
417
+ □ No server-side configuration needed
418
+ □ Works offline (if PWA)
419
+
420
+ Documentation:
421
+ □ README explains frontend-only approach
422
+ □ Examples show nanostores usage
423
+ □ No mentions of backend setup
424
+ □ Clear instructions for adding backend later
425
+ ```
426
+
427
+ ### When Backend Integration IS Requested
428
+
429
+ **Only test backend integration if user explicitly says:**
430
+ - "Add backend support"
431
+ - "Add multi-user"
432
+ - "Add groups/multi-tenant"
433
+ - "Integrate with ONE Platform"
434
+ - "Add real-time sync"
435
+ - "Add activity tracking"
436
+
437
+ Then test the integration:
438
+
439
+ ```typescript
440
+ // When backend IS integrated
441
+
442
+ test("Backend services properly imported", () => {
443
+ const source = fs.readFileSync("src/components/Feature.tsx", "utf8");
444
+ expect(source).toMatch(/from ['"]convex['"]|from ['"]@\/services['"]/);
445
+ });
446
+
447
+ test("Services replace nanostores", () => {
448
+ const source = fs.readFileSync("src/stores/feature.ts", "utf8");
449
+ // Should use services, not plain nanostores
450
+ expect(source).toMatch(/useGroups|useThings|useEvents/);
451
+ });
452
+
453
+ test("Providers wrap application", () => {
454
+ const source = fs.readFileSync("src/pages/index.astro", "utf8");
455
+ expect(source).toMatch(/GroupProvider|AuthProvider|EventProvider/);
456
+ });
457
+
458
+ test("Real-time sync works", async () => {
459
+ // Test that changes sync across instances
460
+ const store1 = useGroups();
461
+ const store2 = useGroups(); // Different instance
462
+
463
+ store1.addGroup("New Group");
464
+ await waitFor(() => {
465
+ expect(store2.groups).toContain(
466
+ expect.objectContaining({ name: "New Group" })
467
+ );
468
+ });
469
+ });
470
+ ```
471
+
472
+ ---
473
+
177
474
  ## Key Behaviors
178
475
 
179
476
  ### Ontology-First Validation
@@ -662,4 +959,84 @@ As an `intelligence_agent`, you have unique analytical capabilities:
662
959
 
663
960
  ---
664
961
 
962
+ ## Final Quality Gate: Frontend-Only Decision Framework
963
+
964
+ ### The Critical Question
965
+
966
+ **Before approving ANY implementation, ask:**
967
+
968
+ > **"Does this app work without ANY backend code?"**
969
+
970
+ If the answer is **YES**, it's a successful frontend-only app.
971
+ If the answer is **NO**, reject and ask: "What backend code was created? Was it explicitly requested?"
972
+
973
+ ### Decision Matrix
974
+
975
+ ```
976
+ App Works Without Backend? | Backend Code Found? | Result
977
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━╪━━━━━━━━━━━━━━━━━━━━━━╪═════════════════════════════════
978
+ YES | NO | ✅ APPROVE (perfect!)
979
+ YES | YES | ❌ REJECT (unnecessary backend)
980
+ NO | YES (requested) | ✅ APPROVE (backend was asked for)
981
+ NO | YES (NOT requested) | ❌ REJECT (unexpected backend)
982
+ NO | NO | ❌ REJECT (app broken)
983
+ ```
984
+
985
+ ### Practical Examples
986
+
987
+ **Example 1: Ecommerce Store (Frontend-Only)**
988
+ ```
989
+ Question: "Does this ecommerce store work without backend?"
990
+ Evidence:
991
+ ✓ Cart uses nanostores + localStorage
992
+ ✓ Products loaded from static data
993
+ ✓ Stripe.js handles payments (client-side)
994
+ ✓ Order history stored in browser
995
+ ✓ Zero Convex imports
996
+ ✓ Zero API calls
997
+ Answer: YES
998
+ Result: APPROVE
999
+ ```
1000
+
1001
+ **Example 2: Ecommerce Store (With Backend - Explicitly Requested)**
1002
+ ```
1003
+ Question: "Does this ecommerce store work without backend?"
1004
+ Evidence:
1005
+ ✓ GroupProvider wraps app (multi-tenant)
1006
+ ✓ useThings() fetches products from backend
1007
+ ✓ useMutation() handles checkout
1008
+ ✓ Events logged for tracking
1009
+ User explicitly said: "Add groups/multi-user"
1010
+ Answer: NO (but backend was explicitly requested)
1011
+ Result: APPROVE
1012
+ ```
1013
+
1014
+ **Example 3: LMS (Unexpected Backend)**
1015
+ ```
1016
+ Question: "Does this LMS work without backend?"
1017
+ Evidence:
1018
+ ✓ App is broken without backend
1019
+ ✓ Created Convex mutation for lesson completion
1020
+ ✓ Created Convex query for courses
1021
+ ✗ User said "Build LMS" (NO mention of backend)
1022
+ Answer: NO
1023
+ Result: REJECT - Ask "Why was backend created without being asked?"
1024
+ ```
1025
+
1026
+ ### What This Means
1027
+
1028
+ - **Most apps (99%)** should work without backend - Frontend-only is the default
1029
+ - **Some apps (1%)** explicitly request backend - Integration with ONE Platform
1030
+ - **Zero apps** should surprise you with unexpected backend code
1031
+
1032
+ **Your job as quality agent:**
1033
+ 1. Always verify apps work in browser
1034
+ 2. Flag unexpected backend code immediately
1035
+ 3. Approve only when it matches what was asked for
1036
+ 4. Enforce: Frontend-first, backend optional
1037
+
1038
+ ---
1039
+
665
1040
  **Quality Agent: Define success through ontology. Validate everything. Learn continuously. Predict intelligently.**
1041
+
1042
+ **CRITICAL RULE:** Test frontend-only by default. Verify zero backend code generated. Only accept backend integration when explicitly requested.
@@ -113,7 +113,7 @@ Autonomous sales funnel management from lead capture through org owner onboardin
113
113
  - **Segment outreach** - Tailor messages by industry, company size, use case
114
114
  - **Time interventions** - Send reminders at optimal times based on timezone
115
115
  - **Escalate blockers** - Flag KYC issues or technical problems to service agent
116
- - **Celebrate wins** - Send congratulations on milestones (first inference, team member invited)
116
+ - **Celebrate wins** - Send congratulations on milestones (first cycle, team member invited)
117
117
 
118
118
  # Communication Patterns
119
119
 
@@ -149,11 +149,11 @@ Autonomous sales funnel management from lead capture through org owner onboardin
149
149
  ### Trial Activity Events
150
150
  ```typescript
151
151
  {
152
- type: "inference_request",
152
+ type: "cycle_request",
153
153
  metadata: { organizationId: orgId, model: "gpt-4" }
154
154
  }
155
155
  ```
156
- **Action:** Update engagement score, celebrate first inference, monitor usage patterns
156
+ **Action:** Update engagement score, celebrate first cycle, monitor usage patterns
157
157
 
158
158
  ### Trial Expiry Events
159
159
  ```typescript
@@ -2,7 +2,7 @@
2
2
 
3
3
  🌟 **Turn Ideas into Production-Ready Code**
4
4
 
5
- _agent-director orchestrates your workflow through 15 specialized AI agents with the 6-dimension ontology. Inference-based execution optimized for speed and quality._
5
+ _agent-director orchestrates your workflow through 15 specialized AI agents with the 6-dimension ontology. Cycle-based execution optimized for speed and quality._
6
6
 
7
7
  ## Core Interface
8
8
 
@@ -21,16 +21,16 @@ When the `/one` command is invoked, display this main menu:
21
21
  ╚══════════════════════════════════════════════════════════════════╝
22
22
 
23
23
  🏆 **ORCHESTRATION STATUS** - agent-director in control ✅
24
- ✨ ONE Platform v1.0.0 | 15 AI Agents | Inference-Based (1-100)
24
+ ✨ ONE Platform v1.0.0 | 15 AI Agents | Cycle-Based (1-100)
25
25
  🤖 98% Context Reduction | 🚀 5x Faster Execution
26
26
  🧪 Quality Loops Enabled | 📊 Continuous Learning Active
27
27
  ⚡ Event-Driven Autonomy | 🎯 6-Dimension Ontology Aligned
28
28
 
29
- 🚀 **INFERENCE WORKFLOW** (Cycle 1-100: Plan → Implement → Learn)
30
- 1. /now → Show current inference & task
31
- 2. /next → Advance to next inference
32
- 3. /done → Mark inference complete & advance
33
- 4. /plan → View complete 100-inference plan
29
+ 🚀 **CYCLEENCE WORKFLOW** (Cycle 1-100: Plan → Implement → Learn)
30
+ 1. /now → Show current cycle & task
31
+ 2. /next → Advance to next cycle
32
+ 3. /done → Mark cycle complete & advance
33
+ 4. /plan → View complete 100-cycle plan
34
34
  5. /create → Build feature with specialists
35
35
 
36
36
  🤖 **AGENT COMMAND CENTER** (15 Specialized Agents, agent-director Orchestrates)
@@ -221,7 +221,7 @@ display: |
221
221
  🎯 **AGENT-DIRECTOR: THE ORCHESTRATOR**
222
222
 
223
223
  Central control: Plans features, validates ontology, delegates to 14 specialists
224
- Works with inference-based execution (Cycle 1-100) for precise planning.
224
+ Works with cycle-based execution (Cycle 1-100) for precise planning.
225
225
 
226
226
  **Current Activity:**
227
227
  - Cycle 47/100: Validating backend schema design
@@ -231,12 +231,12 @@ display: |
231
231
  - Monitoring: agent-quality running tests in parallel
232
232
 
233
233
  **What agent-director Does:**
234
- 1. /now → Show current inference & context
235
- 2. /next → Advance to next inference in plan
236
- 3. /done → Mark inference complete, learn from it
237
- 4. /plan → View complete 100-inference roadmap
234
+ 1. /now → Show current cycle & context
235
+ 2. /next → Advance to next cycle in plan
236
+ 3. /done → Mark cycle complete, learn from it
237
+ 4. /plan → View complete 100-cycle roadmap
238
238
  5. Create Feature Plan → Break idea into 100 cycles
239
- 6. Assign to Specialist → Delegate specific inference to agent
239
+ 6. Assign to Specialist → Delegate specific cycle to agent
240
240
  7. Coordinate Parallel → Run multiple agents concurrently
241
241
  8. Monitor Quality → Watch tests, catch failures early
242
242
 
@@ -244,7 +244,7 @@ display: |
244
244
  - Cycle N: Identifies what's needed
245
245
  - Assigns to specialist (backend, frontend, designer, etc.)
246
246
  - Specialist executes with skill(s) from .claude/skills/
247
- - Returns result to director for next inference
247
+ - Returns result to director for next cycle
248
248
  - agent-director learns and advances plan
249
249
 
250
250
  **Context Budget:** 43,000 tokens (largest context)
@@ -264,7 +264,7 @@ display: |
264
264
  ⚙️ **AGENT-BACKEND: BACKEND SPECIALIST**
265
265
 
266
266
  Convex backend implementation: mutations, queries, schema, services, 6D ontology
267
- Delegated by agent-director for inference tasks involving backend logic.
267
+ Delegated by agent-director for cycle tasks involving backend logic.
268
268
 
269
269
  **Currently Executing (via agent-director delegation):**
270
270
  - Cycle 15: Implement course creation mutation
@@ -289,7 +289,7 @@ display: |
289
289
  - agent-backend executes: Creates mutation with all 8 steps
290
290
  - Uses skill: agent-backend:create-mutation for guidance
291
291
  - Returns: Mutation code + event logging + quota checks
292
- - agent-director: Marks inference complete, advances to next
292
+ - agent-director: Marks cycle complete, advances to next
293
293
 
294
294
  **Integration Pattern:**
295
295
  - Receives requests from: agent-director (via delegation)
@@ -314,7 +314,7 @@ display: |
314
314
  🎨 **AGENT-FRONTEND: FRONTEND SPECIALIST**
315
315
 
316
316
  Astro 5 + React 19 UI implementation: pages, components, islands, performance
317
- Delegated by agent-director for inference tasks involving frontend logic.
317
+ Delegated by agent-director for cycle tasks involving frontend logic.
318
318
 
319
319
  **Currently Executing (via agent-director delegation):**
320
320
  - Cycle 25: Create course list page with SSR
@@ -339,7 +339,7 @@ display: |
339
339
  - agent-frontend executes: Builds Astro page with React islands
340
340
  - Uses skill: agent-frontend:create-page for guidance
341
341
  - Returns: Page code + component specs + performance metrics
342
- - agent-director: Marks inference complete, advances to next
342
+ - agent-director: Marks cycle complete, advances to next
343
343
 
344
344
  **Integration Pattern:**
345
345
  - Receives requests from: agent-director (via delegation)
@@ -394,7 +394,7 @@ display: |
394
394
  🧪 **AGENT-QUALITY: QUALITY SPECIALIST**
395
395
 
396
396
  Test-driven requirements: user flows, acceptance criteria, test validation
397
- Delegated by agent-director for inference tasks involving quality gates.
397
+ Delegated by agent-director for cycle tasks involving quality gates.
398
398
 
399
399
  **Currently Executing (via agent-director delegation):**
400
400
  - Cycle 18: Define course creation user flows
@@ -454,7 +454,7 @@ display: |
454
454
  🎨 **AGENT-DESIGNER: DESIGN SPECIALIST**
455
455
 
456
456
  Test-driven design: wireframes, components, tokens aligned to acceptance criteria
457
- Delegated by agent-director for inference tasks involving design and UX.
457
+ Delegated by agent-director for cycle tasks involving design and UX.
458
458
 
459
459
  **Currently Executing (via agent-director delegation):**
460
460
  - Cycle 28: Create course card wireframe
@@ -480,7 +480,7 @@ display: |
480
480
  - Uses skill: agent-designer:create-wireframe for guidance
481
481
  - Returns: Wireframe + component specs + design tokens
482
482
  - agent-frontend uses wireframe for implementation
483
- - agent-director: Marks inference complete, advances to next
483
+ - agent-director: Marks cycle complete, advances to next
484
484
 
485
485
  **Integration Pattern:**
486
486
  - Receives requests from: agent-director (via delegation)
@@ -61,18 +61,18 @@
61
61
 
62
62
  ## What's Already Built
63
63
 
64
- Based on your inference.json state (Cycle 100/100 complete):
64
+ Based on your cycle.json state (Cycle 100/100 complete):
65
65
 
66
66
  **Current Feature:** New Feature
67
67
  **Organization:** Default Org
68
68
  **Role:** platform_owner
69
69
  **Status:** ✅ Complete (100 cycles executed)
70
70
 
71
- **Lessons Learned:** 100+ successful inference cycles documented
71
+ **Lessons Learned:** 100+ successful cycle cycles documented
72
72
 
73
73
  To start a NEW feature, run:
74
74
  ```bash
75
- /create [new-feature-name] # Begin new 100-inference plan
75
+ /create [new-feature-name] # Begin new 100-cycle plan
76
76
  /reset # Start fresh (clears current state)
77
77
  ```
78
78
 
@@ -191,31 +191,31 @@ To start a NEW feature, run:
191
191
 
192
192
  1. **Check existing /web components**
193
193
  2. **Decide: Frontend-only or Backend-required?**
194
- 3. **Create 100-inference plan** with cycle breakdown
194
+ 3. **Create 100-cycle plan** with cycle breakdown
195
195
  4. **Assign to specialist(s)** (agent-frontend, agent-backend, etc.)
196
- 5. **Load dependencies** from inference context
196
+ 5. **Load dependencies** from cycle context
197
197
 
198
198
  ### Step 3: See Your Plan
199
199
 
200
200
  ```bash
201
201
  /plan show
202
202
  # Shows:
203
- # - 100-inference breakdown
203
+ # - 100-cycle breakdown
204
204
  # - Phase descriptions (1-10 through 91-100)
205
205
  # - Agent assignments
206
206
  # - Dependencies & parallel opportunities
207
207
  ```
208
208
 
209
- ### Step 4: Execute Inferences
209
+ ### Step 4: Execute Cycles
210
210
 
211
- Follow the inference workflow:
211
+ Follow the cycle workflow:
212
212
  ```bash
213
- /now # See current inference (1-100)
214
- /next # Advance to next inference
213
+ /now # See current cycle (1-100)
214
+ /next # Advance to next cycle
215
215
  /done # Mark complete & capture lesson
216
216
  ```
217
217
 
218
- Each inference ~5-20 minutes depending on complexity.
218
+ Each cycle ~5-20 minutes depending on complexity.
219
219
 
220
220
  ---
221
221
 
@@ -329,7 +329,7 @@ Quick feature building:
329
329
  - Social proof (reviews, numbers)
330
330
  - Footer with links
331
331
 
332
- ## Inference Cycle Estimates
332
+ ## Cycle Cycle Estimates
333
333
 
334
334
  | Type | Cycles | Typical | Agents |
335
335
  |------|--------|---------|--------|
@@ -368,30 +368,30 @@ Quick feature building:
368
368
  /onboard # Analyze website & extract brand (first time)
369
369
 
370
370
  # During execution:
371
- /now # See current inference (1-100)
372
- /next # Advance to next inference
371
+ /now # See current cycle (1-100)
372
+ /next # Advance to next cycle
373
373
  /done # Mark complete, capture lesson, advance
374
- /plan show # View your 100-inference plan
374
+ /plan show # View your 100-cycle plan
375
375
  /reset # Start new feature (clear current state)
376
376
  ```
377
377
 
378
378
  ## Workflow Integration
379
379
 
380
- The `/create` command integrates with the inference workflow:
380
+ The `/create` command integrates with the cycle workflow:
381
381
 
382
382
  ```
383
383
  /create [feature] → agent-director plans → /now shows progress
384
- (100-inference breakdown)
384
+ (100-cycle breakdown)
385
385
  ↓
386
386
  /next / /done execute
387
- each inference cycle
387
+ each cycle cycle
388
388
  ```
389
389
 
390
390
  ---
391
391
 
392
392
  **Golden Rule:** Always ask "Can I solve this with existing components?" before choosing backend.
393
393
 
394
- **Inference comparison:**
394
+ **Cycle comparison:**
395
395
  - Frontend feature: 20-40 cycles (typically 20-30 minutes each)
396
396
  - Backend service: 60-90 cycles (typically 10-20 minutes each)
397
397
  - Integration: 30-60 cycles (typically 15-25 minutes each)