strray-ai 1.15.39 → 1.18.1

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 (44) hide show
  1. package/dist/AGENTS.md +663 -0
  2. package/dist/CHANGELOG.md +871 -0
  3. package/dist/LICENSE +21 -0
  4. package/dist/README.md +540 -0
  5. package/dist/core/boot-orchestrator.d.ts.map +1 -1
  6. package/dist/core/boot-orchestrator.js +1 -0
  7. package/dist/core/boot-orchestrator.js.map +1 -1
  8. package/dist/core/features-config.d.ts +45 -0
  9. package/dist/core/features-config.d.ts.map +1 -1
  10. package/dist/core/features-config.js.map +1 -1
  11. package/dist/enforcement/enforcer-tools.d.ts.map +1 -1
  12. package/dist/enforcement/enforcer-tools.js +33 -1
  13. package/dist/enforcement/enforcer-tools.js.map +1 -1
  14. package/dist/enforcement/validators/architecture-validators.d.ts +6 -6
  15. package/dist/enforcement/validators/architecture-validators.d.ts.map +1 -1
  16. package/dist/enforcement/validators/architecture-validators.js +93 -16
  17. package/dist/enforcement/validators/architecture-validators.js.map +1 -1
  18. package/dist/enforcement/validators/code-quality-validators.d.ts.map +1 -1
  19. package/dist/enforcement/validators/code-quality-validators.js +23 -2
  20. package/dist/enforcement/validators/code-quality-validators.js.map +1 -1
  21. package/dist/enforcement/validators/testing-validators.d.ts +2 -2
  22. package/dist/enforcement/validators/testing-validators.d.ts.map +1 -1
  23. package/dist/enforcement/validators/testing-validators.js +42 -6
  24. package/dist/enforcement/validators/testing-validators.js.map +1 -1
  25. package/dist/mcps/agent-resolver.d.ts.map +1 -1
  26. package/dist/mcps/agent-resolver.js +7 -6
  27. package/dist/mcps/agent-resolver.js.map +1 -1
  28. package/dist/orchestrator/intelligent-commit-batcher.d.ts +3 -0
  29. package/dist/orchestrator/intelligent-commit-batcher.d.ts.map +1 -1
  30. package/dist/orchestrator/intelligent-commit-batcher.js +29 -6
  31. package/dist/orchestrator/intelligent-commit-batcher.js.map +1 -1
  32. package/dist/processors/implementations/publish-preflight-processor.d.ts +39 -0
  33. package/dist/processors/implementations/publish-preflight-processor.d.ts.map +1 -0
  34. package/dist/processors/implementations/publish-preflight-processor.js +250 -0
  35. package/dist/processors/implementations/publish-preflight-processor.js.map +1 -0
  36. package/dist/processors/processor-manager.d.ts +25 -8
  37. package/dist/processors/processor-manager.d.ts.map +1 -1
  38. package/dist/processors/processor-manager.js +72 -15
  39. package/dist/processors/processor-manager.js.map +1 -1
  40. package/opencode.json +5 -193
  41. package/package.json +3 -2
  42. package/scripts/node/ci-report-generator.mjs +208 -0
  43. package/scripts/node/universal-version-manager.js +3 -3
  44. package/.strray/state/state.json +0 -367
package/dist/AGENTS.md ADDED
@@ -0,0 +1,663 @@
1
+ # StringRay Agents
2
+
3
+ Quick reference for StringRay AI orchestration framework.
4
+
5
+ ## What is StringRay?
6
+
7
+ StringRay provides intelligent multi-agent orchestration with automatic delegation and Codex compliance validation. Agents operate via OpenCode plugin injection - no manual setup needed.
8
+
9
+ ## How StringRay Works
10
+
11
+ StringRay provides intelligent multi-agent orchestration with automatic delegation and Codex compliance validation. Agents operate via OpenCode plugin injection - no manual setup needed.
12
+
13
+ ### Basic Operation
14
+
15
+ 1. **Install**: Run `npx strray-ai install` to configure agents in your project
16
+ 2. **Invoke**: Use `@agent-name` syntax in prompts or code comments (e.g., `@architect design this API`)
17
+ 3. **Automatic Routing**: StringRay automatically routes tasks to the appropriate agent based on complexity
18
+ 4. **Agent Modes**: Agents can be `primary` (main coordinator) or `subagent` (specialized helper)
19
+
20
+ ### Where to Find Reflections
21
+
22
+ Deep reflection documents capture development journeys and lessons learned:
23
+ - **Location**: `docs/reflections/` (main) and `docs/reflections/deep/` (detailed)
24
+ - **Examples**: `kernel-v2.0-skill-system-fix-journey.md`, `typescript-build-fix-journey-2026-03-09.md`, `stringray-framework-deep-reflection-v1.4.21.md`
25
+
26
+ These documents capture:
27
+ - Technical challenges encountered and solved
28
+ - Architectural decisions made
29
+ - Lessons learned for future development
30
+ - Best practices established
31
+
32
+ ### File Organization Guidelines
33
+
34
+ **IMPORTANT**: Save all generated files to their proper directories. Do NOT save to root.
35
+
36
+ | File Type | Save To | Example |
37
+ |-----------|---------|---------|
38
+ | **Reflections** | `docs/reflections/` or `docs/reflections/deep/` | `docs/reflections/my-fix-reflection.md` |
39
+ | **Logs** | `logs/` | `logs/framework/activity.log` |
40
+ | **Scripts** | `scripts/` or `scripts/bash/` | `scripts/bash/my-script.sh` |
41
+ | **Test Files** | `src/__tests__/` | `src/__tests__/unit/my-test.test.ts` |
42
+ | **Source Code** | `src/` | `src/my-module.ts` |
43
+ | **Config** | `config/` or `.opencode/strray/` | `.opencode/strray/config.json` |
44
+
45
+ **Never save to root** - Root directory is for essential files only:
46
+ - `README.md`, `CHANGELOG.md`, `package.json`, `tsconfig.json`
47
+
48
+ ### Logging Guidelines
49
+
50
+ **IMPORTANT**: Never use `console.log`, `console.warn`, or `console.error`. Use the framework logger instead.
51
+
52
+ | Use This | Not This |
53
+ |----------|-----------|
54
+ | `frameworkLogger.log(module, event, 'info', { data })` | `console.log()` |
55
+ | `frameworkLogger.log(module, event, 'error', { error })` | `console.error()` |
56
+ | `frameworkLogger.log(module, event, 'warning', { warning })` | `console.warn()` |
57
+
58
+ **Why**: Console statements bleed through to OpenCode console and create noise. Framework logger is structured and filtered.
59
+
60
+ **Example**:
61
+ ```typescript
62
+ // WRONG ❌
63
+ console.log("Starting process");
64
+
65
+ // CORRECT ✅
66
+ import { frameworkLogger } from "../core/framework-logger.js";
67
+ frameworkLogger.log("my-module", "process-start", "info", { message: "Starting process" });
68
+ ```
69
+
70
+ Reflection Template Paths
71
+
72
+ StringRay uses **two reflection folders** for different purposes:
73
+
74
+ #### Option 1: Standard Reflections (`docs/reflections/`)
75
+ **When to use:** Single-session work, specific bug fixes, targeted implementations
76
+ - **Template:** `docs/reflections/TEMPLATE.md` (442 lines)
77
+ - **Naming:** `{topic}-reflection.md` or `{topic}-YYYY-MM-DD.md`
78
+ - **Length:** 1,000-5,000 lines
79
+ - **Format:** 11 structured sections (Executive Summary, Dichotomy, Counterfactual, etc.)
80
+
81
+ **Examples:**
82
+ - `docs/reflections/deployment-crisis-v12x-reflection.md`
83
+ - `docs/reflections/kernel-confidence-fix.md`
84
+
85
+ #### Option 2: Deep Reflections (`docs/reflections/deep/`)
86
+ **When to use:** Multi-session journeys, complex investigations, architectural transformations
87
+ - **Template:** `docs/reflections/deep/TEMPLATE.md` (NEW - 300 lines)
88
+ - **Naming:** `{topic}-journey-YYYY-MM-DD.md` or `DEEP_REFLECTION_{topic}.md`
89
+ - **Length:** 10,000+ lines
90
+ - **Format:** Narrative journey with session chronology, investigation narrative, technical deep dives
91
+
92
+ **Examples:**
93
+ - `docs/reflections/deep/kernel-journey-2026-03-09.md`
94
+ - `docs/reflections/deep/AGENTS-consumer-documentation-strategy-journey-2026-03-09.md`
95
+
96
+ #### Quick Decision Guide
97
+
98
+ | Scenario | Use |
99
+ |----------|------|
100
+ | Fixed a bug in one session | `docs/reflections/` |
101
+ | Investigated something complex over multiple days | `docs/reflections/deep/` |
102
+ | Single architectural change | `docs/reflections/` |
103
+ | System-wide transformation | `docs/reflections/deep/` |
104
+ | Quick learning/insight | `docs/reflections/` |
105
+ | Deep investigation with many discoveries | `docs/reflections/deep/` |
106
+
107
+ ### Storyteller Skill (formerly @storyteller agent)
108
+
109
+ The storyteller is now a **skill** (not an agent) so it runs with full session context. Invoke it by asking for a reflection/narrative in your current session:
110
+
111
+ | Type | Description | Template Path | How to Invoke |
112
+ |------|-------------|---------------|---------------|
113
+ | `reflection` | Technical deep reflections on development process | `docs/reflections/TEMPLATE.md` | "write a reflection about X" |
114
+ | `saga` | Long-form technical saga spanning multiple sessions | `docs/reflections/deep/SAGA_TEMPLATE.md` | "write a saga about X" |
115
+ | `journey` | Investigation/learning journey | `docs/reflections/JOURNEY_TEMPLATE.md` | "write a journey about X" |
116
+ | `narrative` | Technical narrative - telling the story of code | `docs/reflections/NARRATIVE_TEMPLATE.md` | "write a narrative about X" |
117
+ | `deep reflection` | Extended narrative with emotional journey | `docs/reflections/deep/TEMPLATE.md` | "write a deep reflection about X" |
118
+
119
+ **Why a skill?** As an agent, @storyteller spawned fresh with zero context and wasted tokens reconstructing what just happened. As a skill, it uses the conversation you are already in -- the LLM knows exactly what occurred.
120
+
121
+ ## Available Agents
122
+
123
+ | Agent | Purpose | Invoke |
124
+ |-------|---------|--------|
125
+ | `@enforcer` | Codex compliance & error prevention | `@enforcer analyze this code` |
126
+ | `@orchestrator` | Complex multi-step task coordination | `@orchestrator implement feature` |
127
+ | `@architect` | System design & technical decisions | `@architect design API` |
128
+ | `@security-auditor` | Vulnerability detection | `@security-auditor scan` |
129
+ | `@code-reviewer` | Quality assessment | `@code-reviewer review PR` |
130
+ | `@refactorer` | Technical debt elimination | `@refactorer optimize code` |
131
+ | `@testing-lead` | Testing strategy | `@testing-lead plan tests` |
132
+ | `@bug-triage-specialist` | Error investigation | `@bug-triage-specialist debug error` |
133
+ | `@researcher` | Codebase exploration | `@researcher find implementation` |
134
+
135
+
136
+ ## Available Skills
137
+
138
+ StringRay ships with 30 framework skills and provides a registry of 10 curated community sources.
139
+
140
+ **Manage skills:**
141
+ ```bash
142
+ npx strray-ai skill:install # Show starter packs + available sources
143
+ npx strray-ai skill:install <name> # Install from registry
144
+ npx strray-ai skill:registry list # Show all registry sources
145
+ npx strray-ai antigravity status # Show installed skills
146
+ ```
147
+
148
+ **License files:** `licenses/skills/LICENSE.<source-name>`
149
+
150
+ ## Complexity Routing
151
+
152
+ StringRay automatically routes tasks based on complexity:
153
+
154
+ - **Simple (≤15)**: Single agent
155
+ - **Moderate (≤25)**: Single agent with tools
156
+ - **Complex (≤50)**: Multi-agent coordination
157
+ - **Enterprise (>50)**: Orchestrator-led team
158
+
159
+ ## CLI Commands
160
+
161
+ ```bash
162
+ npx strray-ai install # Install and configure
163
+ npx strray-ai status # Check configuration
164
+ npx strray-ai health # Health check
165
+ npx strray-ai validate # Validate installation
166
+ npx strray-ai capabilities # Show all features
167
+ npx strray-ai report # Generate reports
168
+ npx strray-ai analytics # Pattern analytics
169
+
170
+ npm run test:pipelines # Pipeline integration tests
171
+ ```
172
+
173
+ ## Features.json Configuration
174
+
175
+ StringRay uses `.opencode/strray/features.json` for feature flags and settings:
176
+
177
+ ### Location
178
+ - **Path**: `.opencode/strray/features.json`
179
+ - **Consumer Path**: When installed as npm package, loaded from `node_modules/strray-ai/.opencode/strray/features.json`
180
+
181
+ ### Key Features
182
+ - `token_optimization` - Context token management
183
+ - `model_routing` - AI model routing
184
+ - `batch_operations` - File batch processing
185
+ - `multi_agent_orchestration` - Agent coordination
186
+ - `autonomous_reporting` - Automatic reporting
187
+ - `activity_logging` - Activity logging configuration
188
+ - `security` - Security settings
189
+ - `performance_monitoring` - Performance tracking
190
+
191
+ ### Modifying Features
192
+ To modify features in consumer installations:
193
+ ```bash
194
+ # View current features
195
+ cat .opencode/strray/features.json
196
+
197
+ # Set feature via CLI
198
+ npx strray-ai config set --feature token_optimization.enabled --value false
199
+ ```
200
+
201
+ ### .opencode/strray Directory
202
+
203
+ The `.opencode/strray/` directory contains core framework configuration:
204
+
205
+ | File | Purpose |
206
+ |------|---------|
207
+ | `codex.json` | Universal Development Codex (60 error prevention terms) |
208
+ | `features.json` | Feature flags and settings |
209
+ | `config.json` | Framework configuration |
210
+ | `agents_template.md` | Agent architecture templates |
211
+ | `routing-mappings.json` | Agent routing configurations |
212
+ | `workflow_state.json` | Runtime workflow state |
213
+
214
+ ## Agent Discovery & Capabilities
215
+
216
+ ### First-Time Agent Context
217
+
218
+ When agents are first spawned:
219
+ - **Zero Context**: Agents start with minimal initial context
220
+ - **Discovery Happens**: Agents discover available tools through MCP servers
221
+ - **State Builds**: Over time, agents build comprehensive knowledge graph
222
+
223
+ ### Static vs Dynamic Discovery
224
+
225
+ **Static Discovery** (Immediate):
226
+ - Source: `.opencode/agents/` directory
227
+ - Speed: Fast - scans local directory
228
+ - Scope: Only locally configured agents
229
+
230
+ **Dynamic Discovery** (After Startup):
231
+ - Source: MCP Protocol via `mcp-client.ts`
232
+ - Process: Loads config → Connects to servers → Lists tools → Makes available
233
+ - Scope: Full agent capabilities with MCP server tools
234
+
235
+ ### Access & Permissions Pipeline
236
+
237
+ **Load Priority**:
238
+ 1. Development: `node_modules/strray-ai/dist/` (most current)
239
+ 2. Consumer: Falls back to `dist/` directory
240
+ 3. Configuration: `.opencode/strray/features.json`
241
+
242
+ **Spawn Authorization**:
243
+ - Only main orchestrator can spawn agents
244
+ - Subagents cannot spawn other agents
245
+ - Workers cannot spawn agents directly
246
+
247
+ ## Activity Log & Reporting
248
+
249
+ ### Activity Logging
250
+
251
+ **Location**: `.opencode/logs/` directory
252
+ - **File Format**: `strray-plugin-YYYY-MM-DD.log`
253
+ - **Enabled by**: `activity_logging` feature in features.json
254
+
255
+ ### Report Generation
256
+
257
+ **CLI Command**:
258
+ ```bash
259
+ # Generate daily report
260
+ npx strray-ai report --daily
261
+
262
+ # Generate performance report
263
+ npx strray-ai report --performance
264
+
265
+ # Generate compliance report
266
+ npx strray-ai report --compliance
267
+ ```
268
+
269
+ **Report Types**:
270
+ - Daily reports: Agent invocations, task completions
271
+ - Performance reports: Response times, resource usage
272
+ - Compliance reports: Codex violations, agent performance
273
+
274
+ ## Skill Scripts & Agent Registry
275
+
276
+ ### Agent Registry
277
+
278
+ **Location**: `scripts/node/agent-registry.js`
279
+ - **Purpose**: Register new custom agents
280
+ - **Usage**: Add to `.opencode/agents/` and auto-discovered
281
+
282
+ ### Custom Skills
283
+
284
+ **Adding Custom Agents**:
285
+ 1. Create skill file in `.opencode/agents/`
286
+ 2. Export handler function
287
+ 3. Auto-available to agents
288
+
289
+ **Example**:
290
+ ```javascript
291
+ // .opencode/agents/my-custom-skill.js
292
+ module.exports = async (context, tool) => {
293
+ return { result: "Skill executed", data: {} };
294
+ };
295
+ ```
296
+
297
+ ## Codex
298
+
299
+ StringRay enforces Universal Development Codex (60 terms) for systematic error prevention. See [.opencode/strray/codex.json](https://github.com/htafolla/stringray/blob/master/.opencode/strray/codex.json) for full reference.
300
+
301
+ ## Configuration Files Reference
302
+
303
+ StringRay uses multiple configuration files to control behavior:
304
+
305
+ ### Main Configuration Files
306
+
307
+ | File | Purpose | Key Settings |
308
+ |------|---------|--------------|
309
+ | `.opencode/opencode.json` | Main framework config | mode, plugins, paths |
310
+ | `.opencode/strray/features.json` | Feature flags | enabled/disabled features |
311
+ | `.opencode/agents/` | Custom agent configs | agent-specific settings |
312
+ | `.opencode/strray/codex.json` | Codex terms | 60 error prevention rules |
313
+
314
+ ### Configuration Hierarchy
315
+
316
+ ```
317
+ 1. .opencode/opencode.json # Highest priority - project overrides
318
+ 2. .opencode/strray/features.json # Feature flags
319
+ 3. node_modules/strray-ai/.opencode/ # Package defaults (lowest)
320
+ ```
321
+
322
+ ### Environment Variables
323
+
324
+ ```bash
325
+ # Optional overrides
326
+ STRRAY_MODE=development # or 'consumer'
327
+ STRRAY_LOG_LEVEL=info # debug, info, warn, error
328
+ STRRAY_CONFIG_PATH=.opencode/ # Custom config directory
329
+ STRRAY_NO_TELEMETRY=1 # Disable analytics
330
+ ```
331
+
332
+ ## Integration Points
333
+
334
+ ### Git Hooks Integration
335
+
336
+ StringRay integrates with Git hooks for automated validation:
337
+
338
+ ```bash
339
+ # Install Git hooks
340
+ npx strray-ai install --hooks
341
+
342
+ # Hooks available:
343
+ # - pre-commit: TypeScript check, linting, Codex validation
344
+ # - post-commit: Activity logging, analytics
345
+ # - pre-push: Full validation suite
346
+ ```
347
+
348
+ **Manual Hook Setup** (if not using --hooks):
349
+ ```bash
350
+ # .git/hooks/pre-commit
351
+ #!/bin/bash
352
+ npx strray-ai validate --pre-commit
353
+
354
+ # .git/hooks/post-commit
355
+ #!/bin/bash
356
+ npx strray-ai report --auto
357
+ ```
358
+
359
+ ### CI/CD Pipeline Integration
360
+
361
+ **GitHub Actions Example**:
362
+ ```yaml
363
+ - name: StringRay Validation
364
+ run: |
365
+ npx strray-ai validate
366
+ npx strray-ai report --ci
367
+ ```
368
+
369
+ **GitLab CI Example**:
370
+ ```yaml
371
+ strray-validate:
372
+ script:
373
+ - npx strray-ai validate
374
+ - npx strray-ai report --ci
375
+ ```
376
+
377
+ ### MCP Server Configuration
378
+
379
+ MCP (Model Context Protocol) servers extend agent capabilities:
380
+
381
+ ```bash
382
+ # List available MCP servers
383
+ npx strray-ai capabilities --mcp
384
+
385
+ # MCP server types:
386
+ # - knowledge-skills/ # Domain-specific skills
387
+ # - framework-help.server.ts # Framework utilities
388
+ # - orchestrator.server.ts # Task orchestration
389
+ ```
390
+
391
+ ### Marketplace Plugin Installation
392
+
393
+ ```bash
394
+ # Search for plugins
395
+ npx strray-ai marketplace search <keyword>
396
+
397
+ # Install plugin
398
+ npx strray-ai marketplace install <plugin-name>
399
+
400
+ # List installed plugins
401
+ npx strray-ai marketplace list
402
+ ```
403
+
404
+ ## Tuning & Optimization
405
+
406
+ ### Complexity Calibration
407
+
408
+ StringRay uses complexity scoring to route tasks to appropriate agents:
409
+
410
+ ```bash
411
+ # Calibrate complexity scoring
412
+
413
+ # View current complexity settings
414
+ cat .opencode/strray/features.json | jq '.complexity'
415
+ ```
416
+
417
+ **Complexity Factors**:
418
+ - File count and size
419
+ - Import dependencies
420
+ - Test coverage percentage
421
+ - Code duplication
422
+ - Architectural patterns
423
+
424
+ ### Performance Tuning
425
+
426
+ **Memory Management**:
427
+ ```bash
428
+ # View memory settings
429
+ cat .opencode/strray/features.json | jq '.memory'
430
+
431
+ # Key settings:
432
+ # - memory_threshold_mb: Emergency cleanup trigger (default: 80MB)
433
+ # - gc_interval_ms: Garbage collection frequency
434
+ # - cache_size: Agent state cache limit
435
+ ```
436
+
437
+ **Token Optimization**:
438
+ ```bash
439
+ # Configure token limits
440
+ npx strray-ai config set --feature token_optimization.max_context_tokens --value 8000
441
+ npx strray-ai config set --feature token_optimization.compression_enabled --value true
442
+ ```
443
+
444
+ ### Agent Spawn Limits
445
+
446
+ Control how agents are spawned and coordinated:
447
+
448
+ ```json
449
+ // In features.json
450
+ {
451
+ "agent_spawn": {
452
+ "max_concurrent": 8,
453
+ "max_per_type": 3,
454
+ "spawn_cooldown_ms": 500,
455
+ "rate_limit_per_minute": 20
456
+ }
457
+ }
458
+ ```
459
+
460
+ ## CLI Command Details
461
+
462
+ ### Core Commands
463
+
464
+ | Command | Description | Common Use |
465
+ |---------|-------------|------------|
466
+ | `npx strray-ai install` | Install and configure framework | Initial setup |
467
+ | `npx strray-ai status` | Show current configuration status | Debug setup issues |
468
+ | `npx strray-ai health` | Run health check | Verify installation |
469
+ | `npx strray-ai validate` | Run full validation suite | Pre-commit validation |
470
+ | `npx strray-ai capabilities` | List all available features | Discover capabilities |
471
+ | `npx strray-ai report` | Generate analytics reports | Review performance |
472
+ | `npx strray-ai analytics` | View pattern analytics | Understand agent behavior |
473
+ | `npx strray-ai config` | Manage configuration | Tune settings |
474
+
475
+ ### Configuration Commands
476
+
477
+ ```bash
478
+ # Get a specific config value
479
+ npx strray-ai config get --feature activity_logging.enabled
480
+
481
+ # Set a config value
482
+ npx strray-ai config set --feature token_optimization.enabled --value false
483
+
484
+ # Reset to defaults
485
+ npx strray-ai config reset
486
+
487
+ # Export current config
488
+ npx strray-ai config export > strray-config.json
489
+ ```
490
+
491
+ ### Report Commands
492
+
493
+ ```bash
494
+ # Daily summary report
495
+ npx strray-ai report --daily
496
+
497
+ # Performance analysis
498
+ npx strray-ai report --performance
499
+
500
+ # Compliance report (Codex violations)
501
+ npx strray-ai report --compliance
502
+
503
+ # Session report
504
+ npx strray-ai report --session
505
+
506
+ # Generate CI-friendly report
507
+ npx strray-ai report --ci --output json
508
+ ```
509
+
510
+ ## Common Agent Workflows
511
+
512
+ ### Invoking Agents
513
+
514
+ **Basic Invocation**:
515
+ ```bash
516
+ # In code comment or prompt
517
+ @architect design a REST API for user management
518
+
519
+ @enforcer analyze this code for security issues
520
+
521
+ @testing-lead create tests for authentication module
522
+ ```
523
+
524
+ **Chaining Agents**:
525
+ ```
526
+ @orchestrator implement feature:user-authentication
527
+ → Spawns @architect → @testing-lead → @code-reviewer
528
+ ```
529
+
530
+ ### Agent Selection Guide
531
+
532
+ | Task Type | Primary Agent | Supporting Agents |
533
+ |-----------|---------------|-------------------|
534
+ | New feature | @orchestrator | @architect, @testing-lead |
535
+ | Bug fix | @bug-triage-specialist | @enforcer, @code-reviewer |
536
+ | Refactor | @refactorer | @architect, @testing-lead |
537
+ | Security audit | @security-auditor | @enforcer |
538
+ | Code review | @code-reviewer | @enforcer |
539
+ | Research | @researcher | @architect |
540
+
541
+ ### Session Management
542
+
543
+ **Start a Session**:
544
+ ```bash
545
+ # Sessions are automatic - invoke agent to start
546
+ @orchestrator implement login feature
547
+ ```
548
+
549
+ **View Active Sessions**:
550
+ ```bash
551
+ # Active sessions shown in status
552
+ npx strray-ai status
553
+ ```
554
+
555
+ **End a Session**:
556
+ ```bash
557
+ # Sessions auto-end after inactivity timeout
558
+ # Or manually via:
559
+ npx strray-ai session end <session-id>
560
+ ```
561
+
562
+ ### Error Recovery
563
+
564
+ **Common Error Patterns**:
565
+
566
+ 1. **Agent Spawn Failure**
567
+ ```bash
568
+ # Check spawn limits
569
+ npx strray-ai status | grep -A5 "spawn"
570
+
571
+ # Solution: Wait for cooldown or increase limit
572
+ npx strray-ai config set --feature agent_spawn.max_concurrent --value 10
573
+ ```
574
+
575
+ 2. **Memory Exhaustion**
576
+ ```bash
577
+ # Check memory settings
578
+ npx strray-ai health
579
+
580
+ # Solution: Clear cache
581
+ npx strray-ai session clear-cache
582
+ ```
583
+
584
+ 3. **Validation Failures**
585
+ ```bash
586
+ # Run detailed validation
587
+ npx strray-ai validate --detailed
588
+
589
+ # View specific failures
590
+ npx strray-ai report --compliance --detailed
591
+ ```
592
+
593
+ ## Troubleshooting Guide
594
+
595
+ ### Quick Diagnostics
596
+
597
+ ```bash
598
+ # Full health check
599
+ npx strray-ai health
600
+
601
+ # Validate installation
602
+ npx strray-ai validate
603
+
604
+ # View recent activity
605
+ ls -la .opencode/logs/
606
+ cat .opencode/logs/strray-plugin-$(date +%Y-%m-%d).log | tail -50
607
+
608
+ # Check configuration
609
+ npx strray-ai status
610
+ ```
611
+
612
+ ### Common Issues
613
+
614
+ | Issue | Symptom | Solution |
615
+ |-------|---------|----------|
616
+ | Agents not spawning | Timeout on @invoke | Run `npx strray-ai health` |
617
+ | Validation failures | Pre-commit blocks | Run `npx strray-ai validate --fix` |
618
+ | Memory issues | Slow performance | `npx strray-ai session clear-cache` |
619
+ | Config not loading | Settings ignored | Check `.opencode/opencode.json` syntax |
620
+ | MCP servers unavailable | Tools missing | `npx strray-ai capabilities --mcp` |
621
+
622
+ ### Getting Help
623
+
624
+ ```bash
625
+ # Framework help
626
+ npx strray-ai help
627
+
628
+ # View capabilities
629
+ npx strray-ai capabilities
630
+
631
+ # Check version
632
+ npx strray-ai --version
633
+ ```
634
+
635
+ ## Framework Configuration Limits
636
+
637
+ ### Consumer Environment Limitations
638
+
639
+ - **Features.json**: Automatically loaded from package, not project root
640
+ - **Codex Version**: Frozen at v1.7.5 in consumer mode (stable)
641
+ - **Plugin Behavior**: Reduced functionality in consumer mode:
642
+ - No dynamic codex term enrichment
643
+ - Fixed codex version
644
+ - No MCP server discovery
645
+ - No real-time tool discovery
646
+
647
+ ### Development vs Consumer
648
+
649
+ | Aspect | Development | Consumer |
650
+ |--------|-----------|----------|
651
+ | Features | Full (latest) | Optimized (stable) |
652
+ | Codex | Latest terms | v1.7.5 fallback |
653
+ | Discovery | Dynamic (MCP) | Static only |
654
+ | Hot Reload | Yes | No |
655
+
656
+ ## Documentation
657
+
658
+ - [Full Documentation](https://github.com/htafolla/stringray)
659
+ - [Configuration Guide](https://github.com/htafolla/stringray/blob/master/docs/CONFIGURATION.md)
660
+ - [Troubleshooting](https://github.com/htafolla/stringray/blob/master/docs/TROUBLESHOOTING.md)
661
+
662
+ ---
663
+ **Version**: 1.15.0 | [GitHub](https://github.com/htafolla/stringray)