openhermes 2.6.1 → 4.0.0

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 (158) hide show
  1. package/CONTEXT.md +18 -0
  2. package/ETHOS.md +15 -0
  3. package/README.md +135 -292
  4. package/bootstrap.mjs +174 -499
  5. package/harness/agents/openhermes.md +87 -0
  6. package/harness/codex/CONSTITUTION.md +70 -148
  7. package/harness/codex/ROUTING.md +126 -0
  8. package/harness/commands/oh-doctor.md +26 -0
  9. package/harness/instructions/CONVENTIONS.md +206 -206
  10. package/harness/instructions/RUNTIME.md +54 -31
  11. package/harness/skills/oh-builder/SKILL.md +98 -0
  12. package/harness/skills/oh-caveman/SKILL.md +33 -0
  13. package/harness/skills/oh-expert/SKILL.md +121 -0
  14. package/harness/skills/oh-freeze/SKILL.md +28 -0
  15. package/harness/skills/oh-gauntlet/SKILL.md +119 -0
  16. package/harness/skills/oh-grill/SKILL.md +77 -0
  17. package/harness/skills/oh-guard/SKILL.md +33 -0
  18. package/harness/skills/oh-handoff/SKILL.md +33 -0
  19. package/harness/skills/oh-health/SKILL.md +90 -0
  20. package/harness/skills/oh-init/SKILL.md +78 -0
  21. package/harness/skills/oh-investigate/SKILL.md +35 -0
  22. package/harness/skills/oh-issue/SKILL.md +36 -0
  23. package/harness/skills/oh-learn/SKILL.md +28 -0
  24. package/harness/skills/oh-manifest/SKILL.md +84 -0
  25. package/harness/skills/oh-plan-review/SKILL.md +128 -0
  26. package/harness/skills/oh-planner/SKILL.md +157 -0
  27. package/harness/skills/oh-prd/SKILL.md +35 -0
  28. package/harness/skills/oh-retro/SKILL.md +33 -0
  29. package/harness/skills/oh-review/SKILL.md +110 -0
  30. package/harness/skills/oh-security/SKILL.md +110 -0
  31. package/harness/skills/oh-ship/SKILL.md +39 -0
  32. package/harness/skills/oh-skill-craft/SKILL.md +107 -0
  33. package/harness/skills/oh-skills-link/SKILL.md +29 -0
  34. package/harness/skills/oh-skills-list/SKILL.md +31 -0
  35. package/harness/skills/oh-triage/SKILL.md +36 -0
  36. package/index.mjs +3 -58
  37. package/lib/harness-resolver.mjs +77 -0
  38. package/lib/logger.mjs +62 -0
  39. package/package.json +49 -53
  40. package/test/plugins-behavioral.test.mjs +64 -0
  41. package/test/plugins.test.mjs +62 -0
  42. package/autorecall.mjs +0 -237
  43. package/curator.mjs +0 -455
  44. package/harness/commands/build-fix.md +0 -60
  45. package/harness/commands/checkpoint.md +0 -68
  46. package/harness/commands/code-review.md +0 -71
  47. package/harness/commands/doctor.md +0 -42
  48. package/harness/commands/eval.md +0 -89
  49. package/harness/commands/go-build.md +0 -87
  50. package/harness/commands/go-review.md +0 -71
  51. package/harness/commands/harness-audit.md +0 -90
  52. package/harness/commands/learn.md +0 -37
  53. package/harness/commands/loop-start.md +0 -38
  54. package/harness/commands/loop-status.md +0 -30
  55. package/harness/commands/memory-search.md +0 -37
  56. package/harness/commands/model-route.md +0 -32
  57. package/harness/commands/ohc.md +0 -13
  58. package/harness/commands/orchestrate.md +0 -88
  59. package/harness/commands/plan.md +0 -53
  60. package/harness/commands/quality-gate.md +0 -35
  61. package/harness/commands/refactor-clean.md +0 -102
  62. package/harness/commands/rust-build.md +0 -78
  63. package/harness/commands/rust-review.md +0 -65
  64. package/harness/commands/security.md +0 -93
  65. package/harness/commands/setup-pm.md +0 -65
  66. package/harness/commands/skill-create.md +0 -99
  67. package/harness/commands/test-coverage.md +0 -80
  68. package/harness/commands/update-codemaps.md +0 -81
  69. package/harness/commands/update-docs.md +0 -67
  70. package/harness/commands/verify.md +0 -68
  71. package/harness/prompts/architect.txt +0 -189
  72. package/harness/prompts/build-cpp.md +0 -98
  73. package/harness/prompts/build-error-resolver.md +0 -44
  74. package/harness/prompts/build-go.md +0 -340
  75. package/harness/prompts/build-java.md +0 -140
  76. package/harness/prompts/build-kotlin.md +0 -137
  77. package/harness/prompts/build-rust.md +0 -108
  78. package/harness/prompts/code-reviewer.md +0 -40
  79. package/harness/prompts/doc-updater.md +0 -206
  80. package/harness/prompts/docs-lookup.md +0 -71
  81. package/harness/prompts/e2e-runner.txt +0 -317
  82. package/harness/prompts/explore.md +0 -42
  83. package/harness/prompts/harness-optimizer.md +0 -42
  84. package/harness/prompts/loop-operator.md +0 -53
  85. package/harness/prompts/planner.md +0 -37
  86. package/harness/prompts/refactor-cleaner.md +0 -256
  87. package/harness/prompts/review-cpp.md +0 -81
  88. package/harness/prompts/review-database.md +0 -261
  89. package/harness/prompts/review-go.md +0 -257
  90. package/harness/prompts/review-java.md +0 -113
  91. package/harness/prompts/review-kotlin.md +0 -143
  92. package/harness/prompts/review-python.md +0 -101
  93. package/harness/prompts/review-rust.md +0 -77
  94. package/harness/prompts/security-reviewer.md +0 -42
  95. package/harness/prompts/tdd-guide.md +0 -228
  96. package/harness/rules/audit.md +0 -84
  97. package/harness/rules/checkpointing.md +0 -75
  98. package/harness/rules/context-loading.md +0 -33
  99. package/harness/rules/credential-exposure.md +0 -0
  100. package/harness/rules/delegation.md +0 -80
  101. package/harness/rules/handoff.md +0 -267
  102. package/harness/rules/memory-management.md +0 -28
  103. package/harness/rules/precedence.md +0 -52
  104. package/harness/rules/promotion.md +0 -46
  105. package/harness/rules/ranking.md +0 -64
  106. package/harness/rules/retrieval.md +0 -94
  107. package/harness/rules/runtime-guards.md +0 -196
  108. package/harness/rules/self-heal.md +0 -79
  109. package/harness/rules/session-start.md +0 -34
  110. package/harness/rules/skills-management.md +0 -165
  111. package/harness/rules/state-drift.md +0 -192
  112. package/harness/rules/verification.md +0 -88
  113. package/harness/scripts/sync-commands.mjs +0 -259
  114. package/harness/skills/.bundled_manifest +0 -17
  115. package/harness/skills/.usage.json +0 -6
  116. package/harness/skills/api-design/SKILL.md +0 -523
  117. package/harness/skills/backend-patterns/SKILL.md +0 -598
  118. package/harness/skills/coding-standards/SKILL.md +0 -549
  119. package/harness/skills/e2e-testing/SKILL.md +0 -326
  120. package/harness/skills/frontend-patterns/SKILL.md +0 -642
  121. package/harness/skills/frontend-slides/SKILL.md +0 -184
  122. package/harness/skills/security-review/SKILL.md +0 -495
  123. package/harness/skills/strategic-compact/SKILL.md +0 -131
  124. package/harness/skills/tdd-workflow/SKILL.md +0 -463
  125. package/harness/skills/verification-loop/SKILL.md +0 -126
  126. package/lib/ambient-memory.mjs +0 -167
  127. package/lib/handoff.mjs +0 -176
  128. package/lib/hardening.mjs +0 -128
  129. package/lib/memory-tools-plugin.mjs +0 -365
  130. package/lib/ohc/block-sync.mjs +0 -69
  131. package/lib/ohc/compress/search.mjs +0 -152
  132. package/lib/ohc/compress/state.mjs +0 -76
  133. package/lib/ohc/config.mjs +0 -186
  134. package/lib/ohc/message-ids.mjs +0 -168
  135. package/lib/ohc/notify.mjs +0 -154
  136. package/lib/ohc/protected-patterns.mjs +0 -54
  137. package/lib/ohc/prune-apply.mjs +0 -134
  138. package/lib/ohc/pruner.mjs +0 -610
  139. package/lib/ohc/reaper.mjs +0 -70
  140. package/lib/ohc/state.mjs +0 -266
  141. package/lib/ohc/strategies/deduplication.mjs +0 -72
  142. package/lib/ohc/strategies/index.mjs +0 -2
  143. package/lib/ohc/strategies/purge-errors.mjs +0 -43
  144. package/lib/ohc/token-utils.mjs +0 -26
  145. package/lib/ohc/updater.mjs +0 -133
  146. package/lib/paths.mjs +0 -50
  147. package/lib/schema-validator.mjs +0 -77
  148. package/lib/search.mjs +0 -48
  149. package/schemas/audit.schema.json +0 -82
  150. package/schemas/backlog.schema.json +0 -63
  151. package/schemas/checkpoint.schema.json +0 -65
  152. package/schemas/constraint.schema.json +0 -62
  153. package/schemas/decision.schema.json +0 -63
  154. package/schemas/instinct.schema.json +0 -63
  155. package/schemas/loop-state.schema.json +0 -33
  156. package/schemas/mistake.schema.json +0 -64
  157. package/schemas/verification_receipt.schema.json +0 -88
  158. package/skill-builder.mjs +0 -88
@@ -1,89 +0,0 @@
1
- ---
2
- description: Run evaluation against acceptance criteria
3
- agent: planner
4
- subtask: true
5
- ---
6
-
7
- # Eval Command
8
-
9
- Evaluate implementation against acceptance criteria: $ARGUMENTS
10
-
11
- ## Your Task
12
-
13
- Run structured evaluation to verify the implementation meets requirements.
14
-
15
- ## Evaluation Framework
16
-
17
- ### Grader Types
18
-
19
- 1. **Binary Grader** - Pass/Fail
20
- - Does it work? Yes/No
21
- - Good for: feature completion, bug fixes
22
-
23
- 2. **Scalar Grader** - Score 0-100
24
- - How well does it work?
25
- - Good for: performance, quality metrics
26
-
27
- 3. **Rubric Grader** - Category scores
28
- - Multiple dimensions evaluated
29
- - Good for: comprehensive review
30
-
31
- ## Evaluation Process
32
-
33
- ### Step 1: Define Criteria
34
-
35
- ```
36
- Acceptance Criteria:
37
- 1. [Criterion 1] - [weight]
38
- 2. [Criterion 2] - [weight]
39
- 3. [Criterion 3] - [weight]
40
- ```
41
-
42
- ### Step 2: Run Tests
43
-
44
- For each criterion:
45
- - Execute relevant test
46
- - Collect evidence
47
- - Score result
48
-
49
- ### Step 3: Calculate Score
50
-
51
- ```
52
- Final Score = Σ (criterion_score × weight) / total_weight
53
- ```
54
-
55
- ### Step 4: Report
56
-
57
- ## Evaluation Report
58
-
59
- ### Overall: [PASS/FAIL] (Score: X/100)
60
-
61
- ### Criterion Breakdown
62
-
63
- | Criterion | Score | Weight | Weighted |
64
- |-----------|-------|--------|----------|
65
- | [Criterion 1] | X/10 | 30% | X |
66
- | [Criterion 2] | X/10 | 40% | X |
67
- | [Criterion 3] | X/10 | 30% | X |
68
-
69
- ### Evidence
70
-
71
- **Criterion 1: [Name]**
72
- - Test: [what was tested]
73
- - Result: [outcome]
74
- - Evidence: [screenshot, log, output]
75
-
76
- ### Recommendations
77
-
78
- [If not passing, what needs to change]
79
-
80
- ## Pass@K Metrics
81
-
82
- For non-deterministic evaluations:
83
- - Run K times
84
- - Calculate pass rate
85
- - Report: "Pass@K = X/K"
86
-
87
- ---
88
-
89
- **TIP**: Use eval for acceptance testing before marking features complete.
@@ -1,87 +0,0 @@
1
- ---
2
- description: Fix Go build and vet errors
3
- agent: build-go
4
- subtask: true
5
- ---
6
-
7
- # Go Build Command
8
-
9
- Fix Go build, vet, and compilation errors: $ARGUMENTS
10
-
11
- ## Your Task
12
-
13
- 1. **Run go build**: `go build ./...`
14
- 2. **Run go vet**: `go vet ./...`
15
- 3. **Fix errors** one by one
16
- 4. **Verify fixes** don't introduce new errors
17
-
18
- ## Common Go Errors
19
-
20
- ### Import Errors
21
- ```
22
- imported and not used: "package"
23
- ```
24
- **Fix**: Remove unused import or use `_` prefix
25
-
26
- ### Type Errors
27
- ```
28
- cannot use x (type T) as type U
29
- ```
30
- **Fix**: Add type conversion or fix type definition
31
-
32
- ### Undefined Errors
33
- ```
34
- undefined: identifier
35
- ```
36
- **Fix**: Import package, define variable, or fix typo
37
-
38
- ### Vet Errors
39
- ```
40
- printf: call has arguments but no formatting directives
41
- ```
42
- **Fix**: Add format directive or remove arguments
43
-
44
- ## Fix Order
45
-
46
- 1. **Import errors** - Fix or remove imports
47
- 2. **Type definitions** - Ensure types exist
48
- 3. **Function signatures** - Match parameters
49
- 4. **Vet warnings** - Address static analysis
50
-
51
- ## Build Commands
52
-
53
- ```bash
54
- # Build all packages
55
- go build ./...
56
-
57
- # Build with race detector
58
- go build -race ./...
59
-
60
- # Build for specific OS/arch
61
- GOOS=linux GOARCH=amd64 go build ./...
62
-
63
- # Run go vet
64
- go vet ./...
65
-
66
- # Run staticcheck
67
- staticcheck ./...
68
-
69
- # Format code
70
- gofmt -w .
71
-
72
- # Tidy dependencies
73
- go mod tidy
74
- ```
75
-
76
- ## Verification
77
-
78
- After fixes:
79
- ```bash
80
- go build ./... # Should succeed
81
- go vet ./... # Should have no warnings
82
- go test ./... # Tests should pass
83
- ```
84
-
85
- ---
86
-
87
- **IMPORTANT**: Fix errors only. No refactoring, no improvements. Get the build green with minimal changes.
@@ -1,71 +0,0 @@
1
- ---
2
- description: Go code review for idiomatic patterns
3
- agent: review-go
4
- subtask: true
5
- ---
6
-
7
- # Go Review Command
8
-
9
- Review Go code for idiomatic patterns and best practices: $ARGUMENTS
10
-
11
- ## Your Task
12
-
13
- 1. **Analyze Go code** for idioms and patterns
14
- 2. **Check concurrency** - goroutines, channels, mutexes
15
- 3. **Review error handling** - proper error wrapping
16
- 4. **Verify performance** - allocations, bottlenecks
17
-
18
- ## Review Checklist
19
-
20
- ### Idiomatic Go
21
- - [ ] Package naming (lowercase, no underscores)
22
- - [ ] Variable naming (camelCase, short)
23
- - [ ] Interface naming (ends with -er)
24
- - [ ] Error naming (starts with Err)
25
-
26
- ### Error Handling
27
- - [ ] Errors are checked, not ignored
28
- - [ ] Errors wrapped with context (`fmt.Errorf("...: %w", err)`)
29
- - [ ] Sentinel errors used appropriately
30
- - [ ] Custom error types when needed
31
-
32
- ### Concurrency
33
- - [ ] Goroutines properly managed
34
- - [ ] Channels buffered appropriately
35
- - [ ] No data races (use `-race` flag)
36
- - [ ] Context passed for cancellation
37
- - [ ] WaitGroups used correctly
38
-
39
- ### Performance
40
- - [ ] Avoid unnecessary allocations
41
- - [ ] Use `sync.Pool` for frequent allocations
42
- - [ ] Prefer value receivers for small structs
43
- - [ ] Buffer I/O operations
44
-
45
- ### Code Organization
46
- - [ ] Small, focused packages
47
- - [ ] Clear dependency direction
48
- - [ ] Internal packages for private code
49
- - [ ] Godoc comments on exports
50
-
51
- ## Report Format
52
-
53
- ### Idiomatic Issues
54
- - [file:line] Issue description
55
- Suggestion: How to fix
56
-
57
- ### Error Handling Issues
58
- - [file:line] Issue description
59
- Suggestion: How to fix
60
-
61
- ### Concurrency Issues
62
- - [file:line] Issue description
63
- Suggestion: How to fix
64
-
65
- ### Performance Issues
66
- - [file:line] Issue description
67
- Suggestion: How to fix
68
-
69
- ---
70
-
71
- **TIP**: Run `go vet` and `staticcheck` for additional automated checks.
@@ -1,90 +0,0 @@
1
- ---
2
- description: Run a self-evaluation audit of the OpenHermes harness
3
- agent: harness-optimizer
4
- subtask: true
5
- ---
6
-
7
- # Harness Audit Command
8
-
9
- Run a self-evaluation audit of the OpenHermes harness and return a prioritized scorecard.
10
-
11
- ## Usage
12
-
13
- `/harness-audit [scope] [--format text|json] [--root path]`
14
-
15
- - `scope` (optional): `repo` (default), `hooks`, `skills`, `commands`, `agents`
16
- - `--format`: output style (`text` default, `json` for automation)
17
- - `--root`: audit a specific path instead of the current working directory
18
-
19
- ## Self-Evaluation Checklist
20
-
21
- Evaluate each category by inspecting the harness files directly. No external script needed.
22
-
23
- ### 1. Tool Coverage (0-10)
24
- - [ ] Commands exist for all subagent types
25
- - [ ] Each command has correct frontmatter (description, agent, subtask)
26
- - [ ] Agent mapping table is complete and accurate
27
- - [ ] Language-specific agents exist (Go, Rust)
28
- - [ ] All command files are discoverable
29
-
30
- ### 2. Context Efficiency (0-10)
31
- - [ ] Commands are concise (under 100 lines each)
32
- - [ ] No redundant or overlapping command content
33
- - [ ] Delegation instructions are clear
34
- - [ ] Subagent handoffs minimize context overhead
35
- - [ ] Templates provide structured output formats
36
-
37
- ### 3. Quality Gates (0-10)
38
- - [ ] verify.md has comprehensive checklist
39
- - [ ] quality-gate.md covers lint/type/build
40
- - [ ] test-coverage.md has meaningful targets
41
- - [ ] eval.md has structured scoring framework
42
- - [ ] checkpoint.md enables state tracking
43
-
44
- ### 4. Memory Persistence (0-10)
45
- - [ ] Memory tools documented (ohc_save/ohc_get/ohc_list/ohc_latest/ohc_search)
46
- - [ ] Checkpoint command references memory persistence
47
- - [ ] Mistake/audit logging workflow documented
48
- - [ ] Recall cache strategy defined
49
-
50
- ### 5. Eval Coverage (0-10)
51
- - [ ] eval.md supports binary/scalar/rubric grading
52
- - [ ] Acceptance criteria framework in place
53
- - [ ] Pass@K metrics for non-deterministic evals
54
- - [ ] Evaluation report format defined
55
-
56
- ### 6. Security Guardrails (0-10)
57
- - [ ] verify.md includes security checklist items
58
- - [ ] No hardcoded secrets guidance present
59
- - [ ] Input validation guidance included
60
- - [ ] SQL injection / XSS risks addressed
61
-
62
- ### 7. Cost Efficiency (0-10)
63
- - [ ] model-route.md has budget tiers
64
- - [ ] Model routing heuristic defined
65
- - [ ] Subagent usage reduces main-context tokens
66
- - [ ] Compression workflow documented
67
-
68
- ## Output Contract
69
-
70
- Return:
71
-
72
- 1. `overall_score` out of `max_score` (70 for `repo`; smaller for scoped audits)
73
- 2. Category scores and concrete findings
74
- 3. Failed checks with exact file paths
75
- 4. Top 3 actions to improve
76
- 5. Suggested commands to apply next
77
-
78
- ## Example Result
79
-
80
- ```text
81
- Harness Audit (repo): 66/70
82
- - Tool Coverage: 10/10 (10/10 pts)
83
- - Context Efficiency: 9/10 (9/10 pts)
84
- - Quality Gates: 10/10 (10/10 pts)
85
-
86
- Top 3 Actions:
87
- 1) [Security Guardrails] Add preflight security guard instructions in verify.md.
88
- 2) [Tool Coverage] Ensure all subagent types have corresponding command files.
89
- 3) [Eval Coverage] Add evaluation templates and examples.
90
- ```
@@ -1,37 +0,0 @@
1
- ---
2
- description: Create a new skill from recent work patterns
3
- agent: OpenHermes
4
- subtask: true
5
- ---
6
-
7
- # Learn Command
8
-
9
- Create a new reusable skill from recent work patterns. $ARGUMENTS
10
-
11
- ## Your Task
12
-
13
- 1. **Search backlog** for pending skill candidates:
14
- - Use `ohc_search` with query="skill-candidate" classes=["backlog"]
15
- - If $ARGUMENTS is non-empty, narrow search to that topic
16
- 2. **Analyze the candidate** — what pattern did the session reveal?
17
- 3. **Create the skill**:
18
- - Load the skill-creator skill: `skill({ name: "skill-creator" })`
19
- - Follow its instructions to create a new SKILL.md
20
- - Target: `%USERPROFILE%\.config\opencode\skills\<name>\SKILL.md`
21
- - Naming: lowercase, hyphenated, descriptive
22
- 4. **Close the backlog entry**: `ohc_save(class="backlog", id="<candidate-id>", data={..., status:"closed"})`
23
- 5. **Report**: What skill was created, where, and what it does
24
-
25
- ## Skill Requirements
26
-
27
- - name: lowercase-hyphenated, 1-64 chars
28
- - description: 1-1024 chars, specific enough for agent to know when to load
29
- - Must include frontmatter with name + description
30
- - Must include: what it does, when to use it, step-by-step workflow
31
-
32
- ## Report Format
33
-
34
- **Skill Created**: `<name>`
35
- **Path**: `%USERPROFILE%\.config\opencode\skills\<name>\SKILL.md`
36
- **Purpose**: [one-line summary]
37
- **Trigger words**: [when agent should load this skill]
@@ -1,38 +0,0 @@
1
- ---
2
- description: Start a managed autonomous loop pattern with safety defaults
3
- agent: loop-operator
4
- subtask: true
5
- ---
6
-
7
- # Loop Start Command
8
-
9
- Start a managed autonomous loop pattern with safety defaults.
10
-
11
- ## Usage
12
-
13
- `/loop-start [pattern] [--mode safe|fast]`
14
-
15
- - `pattern`: `sequential`, `continuous-pr`, `rfc-dag`, `infinite`
16
- - `--mode`:
17
- - `safe` (default): strict quality gates and checkpoints
18
- - `fast`: reduced gates for speed
19
-
20
- ## Flow
21
-
22
- 1. Confirm repository state and branch strategy.
23
- 2. Select loop pattern and model tier strategy.
24
- 3. Enable required hooks/profile for the chosen mode.
25
- 4. Create loop plan and write runbook under `.opencode/plans/`.
26
- 5. Print commands to start and monitor the loop.
27
-
28
- ## Required Safety Checks
29
-
30
- - Verify tests pass before first loop iteration.
31
- - Ensure `OH_HOOK_PROFILE` is not disabled globally.
32
- - Ensure loop has explicit stop condition.
33
-
34
- ## Arguments
35
-
36
- $ARGUMENTS:
37
- - `<pattern>` optional (`sequential|continuous-pr|rfc-dag|infinite`)
38
- - `--mode safe|fast` optional
@@ -1,30 +0,0 @@
1
- ---
2
- description: Inspect active loop state, progress, and failure signals
3
- agent: OpenHermes
4
- subtask: true
5
- ---
6
-
7
- # Loop Status Command
8
-
9
- Inspect active loop state, progress, and failure signals.
10
-
11
- ## Usage
12
-
13
- `/loop-status [--watch]`
14
-
15
- ## What to Report
16
-
17
- - active loop pattern
18
- - current phase and last successful checkpoint
19
- - failing checks (if any)
20
- - estimated time/cost drift
21
- - recommended intervention (continue/pause/stop)
22
-
23
- ## Watch Mode
24
-
25
- When `--watch` is present, refresh status periodically and surface state changes.
26
-
27
- ## Arguments
28
-
29
- $ARGUMENTS:
30
- - `--watch` optional
@@ -1,37 +0,0 @@
1
- ---
2
- description: Search openhermes memory with LLM summarization
3
- agent: OpenHermes
4
- subtask: true
5
- ---
6
-
7
- # Memory Search Command
8
-
9
- Search openhermes memory for: $ARGUMENTS
10
-
11
- ## Your Task
12
-
13
- 1. Call `ohc_search` with query="$ARGUMENTS" to get raw results
14
- 2. Summarize the top 5 results with natural language interpretation
15
- 3. Highlight patterns, recurring themes, and actionable insights
16
- 4. Return a structured report
17
-
18
- ## Report Format
19
-
20
- ### Search: "$ARGUMENTS"
21
-
22
- **Top results** (by relevance score):
23
-
24
- | # | Class | Summary | Score |
25
- |---|-------|---------|-------|
26
-
27
- ### Key Patterns
28
-
29
- [Extract 2-3 patterns from the results]
30
-
31
- ### Actionable Insights
32
-
33
- - [What should be done based on these findings]
34
-
35
- ### Recommended Next Query
36
-
37
- [Suggest a follow-up ohc_search query for deeper exploration]
@@ -1,32 +0,0 @@
1
- ---
2
- description: Recommend optimal model tier for the current task
3
- agent: OpenHermes
4
- subtask: true
5
- ---
6
-
7
- # Model Route Command
8
-
9
- Recommend the best model tier for the current task by complexity and budget.
10
-
11
- ## Usage
12
-
13
- `/model-route [task-description] [--budget low|med|high]`
14
-
15
- ## Routing Heuristic
16
-
17
- - `haiku`: deterministic, low-risk mechanical changes
18
- - `sonnet`: default for implementation and refactors
19
- - `opus`: architecture, deep review, ambiguous requirements
20
-
21
- ## Required Output
22
-
23
- - recommended model
24
- - confidence level
25
- - why this model fits
26
- - fallback model if first attempt fails
27
-
28
- ## Arguments
29
-
30
- $ARGUMENTS:
31
- - `[task-description]` optional free-text
32
- - `--budget low|med|high` optional
@@ -1,13 +0,0 @@
1
- ---
2
- description: OHC context management: /ohc status, /ohc compress [focus]
3
- agent: OpenHermes
4
- subtask: true
5
- ---
6
-
7
- # Ohc Command
8
-
9
- OHC context management — hook-handled.
10
-
11
- Run `/ohc status` to check context usage, `/ohc compress [targetTokens] [focus]` to free space.
12
-
13
- $ARGUMENTS
@@ -1,88 +0,0 @@
1
- ---
2
- description: Orchestrate multiple agents for complex tasks
3
- agent: planner
4
- subtask: true
5
- ---
6
-
7
- # Orchestrate Command
8
-
9
- Orchestrate multiple specialized agents for this complex task: $ARGUMENTS
10
-
11
- ## Your Task
12
-
13
- 1. **Analyze task complexity** and break into subtasks
14
- 2. **Identify optimal agents** for each subtask
15
- 3. **Create execution plan** with dependencies
16
- 4. **Coordinate execution** - parallel where possible
17
- 5. **Synthesize results** into unified output
18
-
19
- ## Available Agents
20
-
21
- | Agent | Specialty | Use For |
22
- |-------|-----------|---------|
23
- | planner | Implementation planning | Complex feature design |
24
- | architect | System design | Architectural decisions |
25
- | code-reviewer | Code quality | Review changes |
26
- | security-reviewer | Security analysis | Vulnerability detection |
27
- | tdd-guide | Test-driven dev | Feature implementation |
28
- | build-error-resolver | Build fixes | TypeScript/build errors |
29
- | e2e-runner | E2E testing | User flow testing |
30
- | doc-updater | Documentation | Updating docs |
31
- | refactor-cleaner | Code cleanup | Dead code removal |
32
- | review-go | Go code | Go-specific review |
33
- | build-go | Go builds | Go build errors |
34
- | review-database | Database | Query optimization |
35
-
36
- ## Orchestration Patterns
37
-
38
- ### Sequential Execution
39
- ```
40
- planner → tdd-guide → code-reviewer → security-reviewer
41
- ```
42
- Use when: Later tasks depend on earlier results
43
-
44
- ### Parallel Execution
45
- ```
46
- ┌→ security-reviewer
47
- planner →├→ code-reviewer
48
- └→ architect
49
- ```
50
- Use when: Tasks are independent
51
-
52
- ### Fan-Out/Fan-In
53
- ```
54
- ┌→ agent-1 ─┐
55
- planner →├→ agent-2 ─┼→ synthesizer
56
- └→ agent-3 ─┘
57
- ```
58
- Use when: Multiple perspectives needed
59
-
60
- ## Execution Plan Format
61
-
62
- ### Phase 1: [Name]
63
- - Agent: [agent-name]
64
- - Task: [specific task]
65
- - Depends on: [none or previous phase]
66
-
67
- ### Phase 2: [Name] (parallel)
68
- - Agent A: [agent-name]
69
- - Task: [specific task]
70
- - Agent B: [agent-name]
71
- - Task: [specific task]
72
- - Depends on: Phase 1
73
-
74
- ### Phase 3: Synthesis
75
- - Combine results from Phase 2
76
- - Generate unified output
77
-
78
- ## Coordination Rules
79
-
80
- 1. **Plan before execute** - Create full execution plan first
81
- 2. **Minimize handoffs** - Reduce context switching
82
- 3. **Parallelize when possible** - Independent tasks in parallel
83
- 4. **Clear boundaries** - Each agent has specific scope
84
- 5. **Single source of truth** - One agent owns each artifact
85
-
86
- ---
87
-
88
- **NOTE**: Complex tasks benefit from multi-agent orchestration. Simple tasks should use single agents directly.
@@ -1,53 +0,0 @@
1
- ---
2
- description: Create implementation plan with risk assessment
3
- agent: planner
4
- subtask: true
5
- ---
6
-
7
- # Plan Command
8
-
9
- Create a detailed implementation plan for: $ARGUMENTS
10
-
11
- ## Project context
12
-
13
- !git branch --show-current 2>&1 && echo "---" && git log --oneline -20 2>&1 || echo "No git repo"
14
-
15
- ## Your Task
16
-
17
- 1. **Restate Requirements** - Clarify what needs to be built
18
- 2. **Identify Risks** - Surface potential issues, blockers, and dependencies
19
- 3. **Create Step Plan** - Break down implementation into phases
20
- 4. **Wait for Confirmation** - MUST receive user approval before proceeding
21
-
22
- ## Output Format
23
-
24
- ### Requirements Restatement
25
- [Clear, concise restatement of what will be built]
26
-
27
- ### Implementation Phases
28
- [Phase 1: Description]
29
- - Step 1.1
30
- - Step 1.2
31
- ...
32
-
33
- [Phase 2: Description]
34
- - Step 2.1
35
- - Step 2.2
36
- ...
37
-
38
- ### Dependencies
39
- [List external dependencies, APIs, services needed]
40
-
41
- ### Risks
42
- - HIGH: [Critical risks that could block implementation]
43
- - MEDIUM: [Moderate risks to address]
44
- - LOW: [Minor concerns]
45
-
46
- ### Estimated Complexity
47
- [HIGH/MEDIUM/LOW with time estimates]
48
-
49
- **WAITING FOR CONFIRMATION**: Proceed with this plan? (yes/no/modify)
50
-
51
- ---
52
-
53
- **CRITICAL**: Do NOT write any code until the user explicitly confirms with "yes", "proceed", or similar affirmative response.
@@ -1,35 +0,0 @@
1
- ---
2
- description: Run quality pipeline on demand for a file or project scope
3
- agent: OpenHermes
4
- subtask: true
5
- ---
6
-
7
- # Quality Gate Command
8
-
9
- Run the quality pipeline on demand for a file or project scope.
10
-
11
- ## Usage
12
-
13
- `/quality-gate [path|.] [--fix] [--strict]`
14
-
15
- - default target: current directory (`.`)
16
- - `--fix`: allow auto-format/fix where configured
17
- - `--strict`: fail on warnings where supported
18
-
19
- ## Pipeline
20
-
21
- 1. Detect language/tooling for target.
22
- 2. Run formatter checks.
23
- 3. Run lint/type checks when available.
24
- 4. Produce a concise remediation list.
25
-
26
- ## Notes
27
-
28
- This command mirrors hook behavior but is operator-invoked.
29
-
30
- ## Arguments
31
-
32
- $ARGUMENTS:
33
- - `[path|.]` optional target path
34
- - `--fix` optional
35
- - `--strict` optional