oh-my-codex-cli 0.1.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.
- package/.agent/skills/agent-kb/HOW_TO_USE.md +428 -0
- package/.agent/skills/agent-kb/README.md +46 -0
- package/.agent/skills/agent-kb/SKILL.md +128 -0
- package/.agent/skills/agent-kb/references/intelligent-analysis-explained.md +333 -0
- package/.agent/skills/agent-kb/references/query-optimization.md +225 -0
- package/.agent/skills/aireview/SKILL.md +704 -0
- package/.agent/skills/analyze/SKILL.md +81 -0
- package/.agent/skills/architect-planner/HOW_TO_USE.md +238 -0
- package/.agent/skills/architect-planner/README.md +41 -0
- package/.agent/skills/architect-planner/SKILL.md +539 -0
- package/.agent/skills/auto-mbti/SKILL.md +291 -0
- package/.agent/skills/autopilot/SKILL.md +222 -0
- package/.agent/skills/backend-patterns/SKILL.md +602 -0
- package/.agent/skills/bdd-generator/README.md +78 -0
- package/.agent/skills/bdd-generator/SKILL.md +436 -0
- package/.agent/skills/brainstorming/HOW_TO_USE.md +289 -0
- package/.agent/skills/brainstorming/README.md +41 -0
- package/.agent/skills/brainstorming/SKILL.md +165 -0
- package/.agent/skills/build-fix/SKILL.md +190 -0
- package/.agent/skills/cancel/SKILL.md +658 -0
- package/.agent/skills/checkpoint/SKILL.md +94 -0
- package/.agent/skills/code-review/SKILL.md +273 -0
- package/.agent/skills/coding-standards/SKILL.md +535 -0
- package/.agent/skills/conductor/SKILL.md +128 -0
- package/.agent/skills/conductor/commands/conductor/implement.toml +358 -0
- package/.agent/skills/conductor/commands/conductor/newTrack.toml +142 -0
- package/.agent/skills/conductor/commands/conductor/revert.toml +123 -0
- package/.agent/skills/conductor/commands/conductor/setup.toml +429 -0
- package/.agent/skills/conductor/commands/conductor/status.toml +57 -0
- package/.agent/skills/conductor/scripts/install.sh +89 -0
- package/.agent/skills/conductor/templates/code_styleguides/csharp.md +115 -0
- package/.agent/skills/conductor/templates/code_styleguides/dart.md +238 -0
- package/.agent/skills/conductor/templates/code_styleguides/general.md +23 -0
- package/.agent/skills/conductor/templates/code_styleguides/go.md +48 -0
- package/.agent/skills/conductor/templates/code_styleguides/html-css.md +49 -0
- package/.agent/skills/conductor/templates/code_styleguides/javascript.md +51 -0
- package/.agent/skills/conductor/templates/code_styleguides/python.md +37 -0
- package/.agent/skills/conductor/templates/code_styleguides/typescript.md +43 -0
- package/.agent/skills/conductor/templates/rules/README.md +23 -0
- package/.agent/skills/conductor/templates/rules/agents.md +49 -0
- package/.agent/skills/conductor/templates/rules/coding-style.md +70 -0
- package/.agent/skills/conductor/templates/rules/dev.md +20 -0
- package/.agent/skills/conductor/templates/rules/git-workflow.md +45 -0
- package/.agent/skills/conductor/templates/rules/hooks.md +6 -0
- package/.agent/skills/conductor/templates/rules/patterns.md +55 -0
- package/.agent/skills/conductor/templates/rules/performance.md +47 -0
- package/.agent/skills/conductor/templates/rules/research.md +26 -0
- package/.agent/skills/conductor/templates/rules/review.md +22 -0
- package/.agent/skills/conductor/templates/rules/security.md +36 -0
- package/.agent/skills/conductor/templates/rules/testing.md +30 -0
- package/.agent/skills/conductor/templates/workflow.md +333 -0
- package/.agent/skills/consensus/HOW_TO_USE.md +191 -0
- package/.agent/skills/consensus/README.md +41 -0
- package/.agent/skills/consensus/SKILL.md +317 -0
- package/.agent/skills/content-research-writer/SKILL.md +537 -0
- package/.agent/skills/debug-analysis/SKILL.md +331 -0
- package/.agent/skills/deepinit/SKILL.md +347 -0
- package/.agent/skills/deepsearch/SKILL.md +56 -0
- package/.agent/skills/doctor/SKILL.md +158 -0
- package/.agent/skills/drawio/EXAMPLES.md +382 -0
- package/.agent/skills/drawio/QUICK_START.md +237 -0
- package/.agent/skills/drawio/README.md +315 -0
- package/.agent/skills/drawio/SETUP_GUIDE.md +254 -0
- package/.agent/skills/drawio/SKILL.md +1176 -0
- package/.agent/skills/e2e/SKILL.md +396 -0
- package/.agent/skills/ecomode/SKILL.md +160 -0
- package/.agent/skills/electron-driver/SKILL.md +144 -0
- package/.agent/skills/electron-driver/scripts/driver-template.js +71 -0
- package/.agent/skills/eval/SKILL.md +140 -0
- package/.agent/skills/eval-harness/SKILL.md +242 -0
- package/.agent/skills/evolve/SKILL.md +213 -0
- package/.agent/skills/frontend-design/SKILL.md +42 -0
- package/.agent/skills/frontend-patterns/SKILL.md +646 -0
- package/.agent/skills/frontend-ui-ux/SKILL.md +70 -0
- package/.agent/skills/git-master/SKILL.md +75 -0
- package/.agent/skills/help/SKILL.md +89 -0
- package/.agent/skills/iterative-retrieval/SKILL.md +217 -0
- package/.agent/skills/local-skills-setup/SKILL.md +483 -0
- package/.agent/skills/log-analyzer/SKILL.md +187 -0
- package/.agent/skills/mcp-setup/SKILL.md +226 -0
- package/.agent/skills/multi-model-research/HOW_TO_USE.md +614 -0
- package/.agent/skills/multi-model-research/README.md +233 -0
- package/.agent/skills/multi-model-research/SKILL.md +541 -0
- package/.agent/skills/multi-model-research/references/troubleshooting.md +415 -0
- package/.agent/skills/note/SKILL.md +80 -0
- package/.agent/skills/omc-setup/SKILL.md +219 -0
- package/.agent/skills/orchestrate/SKILL.md +620 -0
- package/.agent/skills/patent-workflow/IMPLEMENTATION_SUMMARY.md +500 -0
- package/.agent/skills/patent-workflow/README.md +455 -0
- package/.agent/skills/patent-workflow/SKILL.md +1036 -0
- package/.agent/skills/patent-workflow/tools/irr_checker.py +260 -0
- package/.agent/skills/patent-workflow/tools/sample_terminology.json +49 -0
- package/.agent/skills/patent-workflow/tools/term_checker.py +355 -0
- package/.agent/skills/pattern-recognition/SKILL.md +792 -0
- package/.agent/skills/pipeline/SKILL.md +448 -0
- package/.agent/skills/plan/SKILL.md +309 -0
- package/.agent/skills/planning-methodology/SKILL.md +370 -0
- package/.agent/skills/planning-with-files/SKILL.md +210 -0
- package/.agent/skills/planning-with-files/examples.md +202 -0
- package/.agent/skills/planning-with-files/reference.md +218 -0
- package/.agent/skills/planning-with-files/scripts/check-complete.ps1 +42 -0
- package/.agent/skills/planning-with-files/scripts/check-complete.sh +44 -0
- package/.agent/skills/planning-with-files/scripts/init-session.ps1 +120 -0
- package/.agent/skills/planning-with-files/scripts/init-session.sh +120 -0
- package/.agent/skills/planning-with-files/scripts/session-catchup.py +208 -0
- package/.agent/skills/planning-with-files/templates/findings.md +95 -0
- package/.agent/skills/planning-with-files/templates/progress.md +114 -0
- package/.agent/skills/planning-with-files/templates/task_plan.md +132 -0
- package/.agent/skills/project-analyze/CLAUDE.md +18 -0
- package/.agent/skills/project-analyze/HOW_TO_USE.md +145 -0
- package/.agent/skills/project-analyze/README.md +42 -0
- package/.agent/skills/project-analyze/SKILL.md +289 -0
- package/.agent/skills/project-analyze/SKILL.md.backup +287 -0
- package/.agent/skills/project-analyze/SKILL.md.backup_20260105_093646 +287 -0
- package/.agent/skills/project-analyze/assets/analysis-report-template.md +433 -0
- package/.agent/skills/project-analyze/references/analysis-patterns.md +422 -0
- package/.agent/skills/project-analyze/references/projectmind-explained.md +535 -0
- package/.agent/skills/project-session-manager/SKILL.md +428 -0
- package/.agent/skills/project-session-manager/lib/config.sh +86 -0
- package/.agent/skills/project-session-manager/lib/parse.sh +121 -0
- package/.agent/skills/project-session-manager/lib/session.sh +132 -0
- package/.agent/skills/project-session-manager/lib/tmux.sh +103 -0
- package/.agent/skills/project-session-manager/lib/worktree.sh +171 -0
- package/.agent/skills/project-session-manager/psm.sh +629 -0
- package/.agent/skills/project-session-manager/templates/feature.md +56 -0
- package/.agent/skills/project-session-manager/templates/issue-fix.md +57 -0
- package/.agent/skills/project-session-manager/templates/pr-review.md +65 -0
- package/.agent/skills/project-session-manager/templates/projects.json +19 -0
- package/.agent/skills/quality-check/HOW_TO_USE.md +171 -0
- package/.agent/skills/quality-check/README.md +50 -0
- package/.agent/skills/quality-check/SKILL.md +240 -0
- package/.agent/skills/quality-check/SKILL.md.backup +238 -0
- package/.agent/skills/quality-check/SKILL.md.backup_20260105_093646 +238 -0
- package/.agent/skills/quality-check/assets/quality-report-template.md +437 -0
- package/.agent/skills/quality-check/references/refactoring-patterns.md +550 -0
- package/.agent/skills/quality-check/references/scoring-criteria.md +454 -0
- package/.agent/skills/quality-validation/SKILL.md +519 -0
- package/.agent/skills/quality-validation/SKILL.md.backup +573 -0
- package/.agent/skills/quality-validation/SKILL.md.backup_20260105_093646 +573 -0
- package/.agent/skills/ralph/SKILL.md +236 -0
- package/.agent/skills/ralph-init/SKILL.md +78 -0
- package/.agent/skills/ralplan/SKILL.md +58 -0
- package/.agent/skills/refactor-clean/SKILL.md +49 -0
- package/.agent/skills/release/SKILL.md +84 -0
- package/.agent/skills/research/SKILL.md +526 -0
- package/.agent/skills/research-methodology/SKILL.md +268 -0
- package/.agent/skills/review/SKILL.md +53 -0
- package/.agent/skills/security-review/SKILL.md +509 -0
- package/.agent/skills/security-review/cloud-infrastructure-security.md +361 -0
- package/.agent/skills/setup-pm/SKILL.md +102 -0
- package/.agent/skills/skill/SKILL.md +424 -0
- package/.agent/skills/skill-create/SKILL.md +209 -0
- package/.agent/skills/skill-debugger/HOW_TO_USE.md +244 -0
- package/.agent/skills/skill-debugger/README.md +44 -0
- package/.agent/skills/skill-debugger/SKILL.md +326 -0
- package/.agent/skills/skill-debugger/diagnostic_checklist.md +115 -0
- package/.agent/skills/skill-development/SKILL.md +661 -0
- package/.agent/skills/skill-development/references/skill-creator-original.md +209 -0
- package/.agent/skills/skill-doc-generator/README.md +37 -0
- package/.agent/skills/skill-doc-generator/SKILL.md +331 -0
- package/.agent/skills/skill-quality-analyzer/HOW_TO_USE.md +243 -0
- package/.agent/skills/skill-quality-analyzer/README.md +61 -0
- package/.agent/skills/skill-quality-analyzer/SKILL.md +247 -0
- package/.agent/skills/skill-quality-analyzer/analyzer.py +209 -0
- package/.agent/skills/skill-quality-analyzer/expected_output.json +81 -0
- package/.agent/skills/skill-quality-analyzer/sample_input.json +9 -0
- package/.agent/skills/skill-tester/README.md +46 -0
- package/.agent/skills/skill-tester/SKILL.md +345 -0
- package/.agent/skills/start-dev/SKILL.md +701 -0
- package/.agent/skills/swarm/SKILL.md +691 -0
- package/.agent/skills/task-kb-lookup/SKILL.md +211 -0
- package/.agent/skills/task-kb-record/SKILL.md +417 -0
- package/.agent/skills/tdd/SKILL.md +446 -0
- package/.agent/skills/tdd-generator/DEMO.md +516 -0
- package/.agent/skills/tdd-generator/README.md +89 -0
- package/.agent/skills/tdd-generator/SKILL.md +278 -0
- package/.agent/skills/tdd-workflow/SKILL.md +424 -0
- package/.agent/skills/test-coverage/SKILL.md +48 -0
- package/.agent/skills/thinkdeep/HOW_TO_USE.md +183 -0
- package/.agent/skills/thinkdeep/README.md +41 -0
- package/.agent/skills/thinkdeep/SKILL.md +343 -0
- package/.agent/skills/ui-ux-pro-max/SKILL.md +228 -0
- package/.agent/skills/ui-ux-pro-max/data/charts.csv +26 -0
- package/.agent/skills/ui-ux-pro-max/data/colors.csv +97 -0
- package/.agent/skills/ui-ux-pro-max/data/landing.csv +31 -0
- package/.agent/skills/ui-ux-pro-max/data/products.csv +97 -0
- package/.agent/skills/ui-ux-pro-max/data/prompts.csv +24 -0
- package/.agent/skills/ui-ux-pro-max/data/stacks/flutter.csv +53 -0
- package/.agent/skills/ui-ux-pro-max/data/stacks/html-tailwind.csv +56 -0
- package/.agent/skills/ui-ux-pro-max/data/stacks/nextjs.csv +53 -0
- package/.agent/skills/ui-ux-pro-max/data/stacks/react-native.csv +52 -0
- package/.agent/skills/ui-ux-pro-max/data/stacks/react.csv +54 -0
- package/.agent/skills/ui-ux-pro-max/data/stacks/svelte.csv +54 -0
- package/.agent/skills/ui-ux-pro-max/data/stacks/swiftui.csv +51 -0
- package/.agent/skills/ui-ux-pro-max/data/stacks/vue.csv +50 -0
- package/.agent/skills/ui-ux-pro-max/data/styles.csv +59 -0
- package/.agent/skills/ui-ux-pro-max/data/typography.csv +58 -0
- package/.agent/skills/ui-ux-pro-max/data/ux-guidelines.csv +100 -0
- package/.agent/skills/ui-ux-pro-max/scripts/core.py +236 -0
- package/.agent/skills/ui-ux-pro-max/scripts/search.py +61 -0
- package/.agent/skills/ultrapilot/SKILL.md +647 -0
- package/.agent/skills/ultraqa/SKILL.md +152 -0
- package/.agent/skills/ultrawork/SKILL.md +123 -0
- package/.agent/skills/update-codemaps/SKILL.md +38 -0
- package/.agent/skills/update-docs/SKILL.md +52 -0
- package/.agent/skills/verification-loop/SKILL.md +140 -0
- package/.agent/skills/verify/SKILL.md +80 -0
- package/.agent/skills/writer-memory/SKILL.md +459 -0
- package/.agent/skills/writer-memory/lib/character-tracker.ts +338 -0
- package/.agent/skills/writer-memory/lib/memory-manager.ts +804 -0
- package/.agent/skills/writer-memory/lib/relationship-graph.ts +400 -0
- package/.agent/skills/writer-memory/lib/scene-organizer.ts +544 -0
- package/.agent/skills/writer-memory/lib/synopsis-builder.ts +339 -0
- package/.agent/skills/writer-memory/templates/synopsis-template.md +46 -0
- package/.governance/skill-lint.allowlist +4 -0
- package/.governance/skill-llm.allowlist +4 -0
- package/AGENTS.md +59 -0
- package/LICENSE +21 -0
- package/README.md +169 -0
- package/README.zh.md +145 -0
- package/bin/omcodex.js +8 -0
- package/commands/conductor/implement.toml +358 -0
- package/commands/conductor/newTrack.toml +142 -0
- package/commands/conductor/revert.toml +123 -0
- package/commands/conductor/setup.toml +429 -0
- package/commands/conductor/status.toml +57 -0
- package/docs/ALIGNMENT.md +40 -0
- package/docs/CODEX.md +133 -0
- package/docs/NOTIFY.md +81 -0
- package/docs/SKILL_GOVERNANCE.md +72 -0
- package/docs/SKILL_GOVERNANCE_FRAMEWORK.md +182 -0
- package/docs/SKILL_GOVERNANCE_FRAMEWORK.zh.md +170 -0
- package/package.json +50 -0
- package/prompts/architect.md +105 -0
- package/prompts/executor.md +134 -0
- package/prompts/planner.md +113 -0
- package/scripts/check-skill-governance.sh +84 -0
- package/scripts/check-skill-llm-governance.js +302 -0
- package/scripts/eval-skills.js +217 -0
- package/scripts/generate-catalog-docs.js +95 -0
- package/scripts/generate-codex-mcp-config.sh +22 -0
- package/scripts/install-codex-force.sh +5 -0
- package/scripts/install-codex-incremental.sh +5 -0
- package/scripts/install-codex.sh +79 -0
- package/scripts/notify-dispatch.js +15 -0
- package/scripts/setup-package-manager.js +137 -0
- package/src/catalog/generated/public-catalog.json +547 -0
- package/src/catalog/manifest.json +542 -0
- package/src/catalog/reader.js +43 -0
- package/src/catalog/schema.js +79 -0
- package/src/cli/doctor.js +62 -0
- package/src/cli/index.js +85 -0
- package/src/cli/notify.js +127 -0
- package/src/cli/route.js +43 -0
- package/src/cli/setup.js +155 -0
- package/src/cli/team.js +125 -0
- package/src/config/generator.js +119 -0
- package/src/mcp/memory-server.js +241 -0
- package/src/mcp/state-server.js +112 -0
- package/src/mcp/trace-server.js +168 -0
- package/src/notify/dispatch.js +74 -0
- package/src/notify/extensibility/dispatcher.js +113 -0
- package/src/notify/extensibility/events.js +15 -0
- package/src/notify/extensibility/loader.js +54 -0
- package/src/router/skill-router.js +90 -0
- package/src/team/auto-advance.js +72 -0
- package/src/team/orchestrator.js +82 -0
- package/src/team/state-store.js +33 -0
- package/src/utils/paths.js +33 -0
- package/templates/AGENTS.md +15 -0
- package/templates/catalog-manifest.json +542 -0
- package/templates/code_styleguides/csharp.md +115 -0
- package/templates/code_styleguides/dart.md +238 -0
- package/templates/code_styleguides/general.md +23 -0
- package/templates/code_styleguides/go.md +48 -0
- package/templates/code_styleguides/html-css.md +49 -0
- package/templates/code_styleguides/javascript.md +51 -0
- package/templates/code_styleguides/python.md +37 -0
- package/templates/code_styleguides/typescript.md +43 -0
- package/templates/rules/README.md +23 -0
- package/templates/rules/agents.md +49 -0
- package/templates/rules/coding-style.md +70 -0
- package/templates/rules/dev.md +20 -0
- package/templates/rules/git-workflow.md +45 -0
- package/templates/rules/notify.md +6 -0
- package/templates/rules/patterns.md +55 -0
- package/templates/rules/performance.md +47 -0
- package/templates/rules/research.md +26 -0
- package/templates/rules/review.md +22 -0
- package/templates/rules/security.md +36 -0
- package/templates/rules/testing.md +30 -0
- package/templates/workflow.md +333 -0
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: git-master
|
|
3
|
+
description: Git expert for atomic commits, rebasing, and history management with style detection
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Git Master Skill
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
## Native Subagent Protocol (Codex)
|
|
10
|
+
|
|
11
|
+
Codex supports native subagents. Delegate with `spawn_agent`, coordinate with `send_input`, collect via `wait`, and clean up with `close_agent`.
|
|
12
|
+
|
|
13
|
+
Execution preference:
|
|
14
|
+
1. Use native subagents first for independent workstreams (parallel when possible).
|
|
15
|
+
2. Merge results in main thread and run final verification.
|
|
16
|
+
3. Fallback only when delegation is blocked: use the `[ANALYST]`/`[ARCHITECT]`/`[EXECUTOR]`/`[REVIEWER]` structure in a single response.
|
|
17
|
+
|
|
18
|
+
Minimal orchestration pattern:
|
|
19
|
+
```text
|
|
20
|
+
spawn_agent -> send_input (optional) -> wait -> close_agent
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
> Codex invocation: use `$git-master ...` or `git-master: ...`
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
You are a Git expert combining three specializations:
|
|
27
|
+
1. **Commit Architect**: Atomic commits, dependency ordering, style detection
|
|
28
|
+
2. **Rebase Surgeon**: History rewriting, conflict resolution, branch cleanup
|
|
29
|
+
3. **History Archaeologist**: Finding when/where specific changes were introduced
|
|
30
|
+
|
|
31
|
+
## Core Principle: Multiple Commits by Default
|
|
32
|
+
|
|
33
|
+
**ONE COMMIT = AUTOMATIC FAILURE**
|
|
34
|
+
|
|
35
|
+
Hard rules:
|
|
36
|
+
- 3+ files changed -> MUST be 2+ commits
|
|
37
|
+
- 5+ files changed -> MUST be 3+ commits
|
|
38
|
+
- 10+ files changed -> MUST be 5+ commits
|
|
39
|
+
|
|
40
|
+
## Style Detection (First Step)
|
|
41
|
+
|
|
42
|
+
Before committing, analyze the last 30 commits:
|
|
43
|
+
```bash
|
|
44
|
+
git log -30 --oneline
|
|
45
|
+
git log -30 --pretty=format:"%s"
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
Detect:
|
|
49
|
+
- **Language**: Korean vs English (use majority)
|
|
50
|
+
- **Style**: SEMANTIC (feat:, fix:) vs PLAIN vs SHORT
|
|
51
|
+
|
|
52
|
+
## Commit Splitting Rules
|
|
53
|
+
|
|
54
|
+
| Criterion | Action |
|
|
55
|
+
|-----------|--------|
|
|
56
|
+
| Different directories/modules | SPLIT |
|
|
57
|
+
| Different component types | SPLIT |
|
|
58
|
+
| Can be reverted independently | SPLIT |
|
|
59
|
+
| Different concerns (UI/logic/config/test) | SPLIT |
|
|
60
|
+
| New file vs modification | SPLIT |
|
|
61
|
+
|
|
62
|
+
## History Search Commands
|
|
63
|
+
|
|
64
|
+
| Goal | Command |
|
|
65
|
+
|------|---------|
|
|
66
|
+
| When was "X" added? | `git log -S "X" --oneline` |
|
|
67
|
+
| What commits touched "X"? | `git log -G "X" --oneline` |
|
|
68
|
+
| Who wrote line N? | `git blame -L N,N file.py` |
|
|
69
|
+
| When did bug start? | `git bisect start && git bisect bad && git bisect good <tag>` |
|
|
70
|
+
|
|
71
|
+
## Rebase Safety
|
|
72
|
+
|
|
73
|
+
- **NEVER** rebase main/master
|
|
74
|
+
- Use `--force-with-lease` (never `--force`)
|
|
75
|
+
- Stash dirty files before rebasing
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: help
|
|
3
|
+
description: Guide on using oh-my-codex skills
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# How OMC Works
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
## Native Subagent Protocol (Codex)
|
|
10
|
+
|
|
11
|
+
Codex supports native subagents. Delegate with `spawn_agent`, coordinate with `send_input`, collect via `wait`, and clean up with `close_agent`.
|
|
12
|
+
|
|
13
|
+
Execution preference:
|
|
14
|
+
1. Use native subagents first for independent workstreams (parallel when possible).
|
|
15
|
+
2. Merge results in main thread and run final verification.
|
|
16
|
+
3. Fallback only when delegation is blocked: use the `[ANALYST]`/`[ARCHITECT]`/`[EXECUTOR]`/`[REVIEWER]` structure in a single response.
|
|
17
|
+
|
|
18
|
+
Minimal orchestration pattern:
|
|
19
|
+
```text
|
|
20
|
+
spawn_agent -> send_input (optional) -> wait -> close_agent
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
> Codex invocation: use `$help ...` or `help: ...`
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
**You don't need to learn any commands!** OMC enhances Codex with intelligent behaviors that activate automatically.
|
|
27
|
+
|
|
28
|
+
## What Happens Automatically
|
|
29
|
+
|
|
30
|
+
| When You... | I Automatically... |
|
|
31
|
+
|-------------|-------------------|
|
|
32
|
+
| Give me a complex task | Parallelize and delegate to specialist agents |
|
|
33
|
+
| Ask me to plan something | Start a planning interview |
|
|
34
|
+
| Need something done completely | Persist until verified complete |
|
|
35
|
+
| Work on UI/frontend | Activate design sensibility |
|
|
36
|
+
| Say "stop" or "cancel" | Intelligently stop current operation |
|
|
37
|
+
|
|
38
|
+
## Magic Keywords (Optional Shortcuts)
|
|
39
|
+
|
|
40
|
+
You can include these words naturally in your request for explicit control:
|
|
41
|
+
|
|
42
|
+
| Keyword | Effect | Example |
|
|
43
|
+
|---------|--------|---------|
|
|
44
|
+
| **ralph** | Persistence mode | "ralph: fix all the bugs" |
|
|
45
|
+
| **ralplan** | Iterative planning | "ralplan this feature" |
|
|
46
|
+
| **ulw** | Max parallelism | "ulw refactor the API" |
|
|
47
|
+
| **plan** | Planning interview | "plan the new endpoints" |
|
|
48
|
+
|
|
49
|
+
**ralph includes ultrawork:** When you activate ralph mode, it automatically includes ultrawork's parallel execution. No need to combine keywords.
|
|
50
|
+
|
|
51
|
+
## Stopping Things
|
|
52
|
+
|
|
53
|
+
Just say:
|
|
54
|
+
- "stop"
|
|
55
|
+
- "cancel"
|
|
56
|
+
- "abort"
|
|
57
|
+
|
|
58
|
+
I'll figure out what to stop based on context.
|
|
59
|
+
|
|
60
|
+
## First Time Setup
|
|
61
|
+
|
|
62
|
+
If you haven't configured OMC yet:
|
|
63
|
+
|
|
64
|
+
```
|
|
65
|
+
$omc-setup
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
This is the **only command** you need to know. It downloads the configuration and you're done.
|
|
69
|
+
|
|
70
|
+
## 0.9+ Quick Tips
|
|
71
|
+
|
|
72
|
+
- Use `/apps` to browse available connectors and insert app prompts quickly.
|
|
73
|
+
- If prompted for tool approvals, use "allow and remember" for trusted tools to reduce repeated confirmations.
|
|
74
|
+
- Use `/debug-config` to inspect active config, skills paths, and runtime settings when behavior looks wrong.
|
|
75
|
+
|
|
76
|
+
## For 2.x Users
|
|
77
|
+
|
|
78
|
+
Your old commands still work! `$ralph`, `$ultrawork`, `$plan`, etc. all function exactly as before.
|
|
79
|
+
|
|
80
|
+
But now you don't NEED them - everything is automatic.
|
|
81
|
+
|
|
82
|
+
## Need More Help?
|
|
83
|
+
|
|
84
|
+
- **README**: https://github.com/Yeachan-Heo/oh-my-codex
|
|
85
|
+
- **Issues**: https://github.com/Yeachan-Heo/oh-my-codex/issues
|
|
86
|
+
|
|
87
|
+
---
|
|
88
|
+
|
|
89
|
+
*Version: 3.5.5*
|
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: iterative-retrieval
|
|
3
|
+
description: Pattern for progressively refining context retrieval to solve the subagent context problem
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Iterative Retrieval Pattern
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
## Native Subagent Protocol (Codex)
|
|
10
|
+
|
|
11
|
+
Codex supports native subagents. Delegate with `spawn_agent`, coordinate with `send_input`, collect via `wait`, and clean up with `close_agent`.
|
|
12
|
+
|
|
13
|
+
Execution preference:
|
|
14
|
+
1. Use native subagents first for independent workstreams (parallel when possible).
|
|
15
|
+
2. Merge results in main thread and run final verification.
|
|
16
|
+
3. Fallback only when delegation is blocked: use the `[ANALYST]`/`[ARCHITECT]`/`[EXECUTOR]`/`[REVIEWER]` structure in a single response.
|
|
17
|
+
|
|
18
|
+
Minimal orchestration pattern:
|
|
19
|
+
```text
|
|
20
|
+
spawn_agent -> send_input (optional) -> wait -> close_agent
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
Solves the "context problem" in multi-agent workflows where subagents don't know what context they need until they start working.
|
|
24
|
+
|
|
25
|
+
## The Problem
|
|
26
|
+
|
|
27
|
+
Subagents are spawned with limited context. They don't know:
|
|
28
|
+
- Which files contain relevant code
|
|
29
|
+
- What patterns exist in the codebase
|
|
30
|
+
- What terminology the project uses
|
|
31
|
+
|
|
32
|
+
Standard approaches fail:
|
|
33
|
+
- **Send everything**: Exceeds context limits
|
|
34
|
+
- **Send nothing**: Agent lacks critical information
|
|
35
|
+
- **Guess what's needed**: Often wrong
|
|
36
|
+
|
|
37
|
+
## The Solution: Iterative Retrieval
|
|
38
|
+
|
|
39
|
+
A 4-phase loop that progressively refines context:
|
|
40
|
+
|
|
41
|
+
```
|
|
42
|
+
┌─────────────────────────────────────────────┐
|
|
43
|
+
│ │
|
|
44
|
+
│ ┌──────────┐ ┌──────────┐ │
|
|
45
|
+
│ │ DISPATCH │─────▶│ EVALUATE │ │
|
|
46
|
+
│ └──────────┘ └──────────┘ │
|
|
47
|
+
│ ▲ │ │
|
|
48
|
+
│ │ ▼ │
|
|
49
|
+
│ ┌──────────┐ ┌──────────┐ │
|
|
50
|
+
│ │ LOOP │◀─────│ REFINE │ │
|
|
51
|
+
│ └──────────┘ └──────────┘ │
|
|
52
|
+
│ │
|
|
53
|
+
│ Max 3 cycles, then proceed │
|
|
54
|
+
└─────────────────────────────────────────────┘
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
### Phase 1: DISPATCH
|
|
58
|
+
|
|
59
|
+
Initial broad query to gather candidate files:
|
|
60
|
+
|
|
61
|
+
```javascript
|
|
62
|
+
// Start with high-level intent
|
|
63
|
+
const initialQuery = {
|
|
64
|
+
patterns: ['src/**/*.ts', 'lib/**/*.ts'],
|
|
65
|
+
keywords: ['authentication', 'user', 'session'],
|
|
66
|
+
excludes: ['*.test.ts', '*.spec.ts']
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
// Dispatch to retrieval agent
|
|
70
|
+
const candidates = await retrieveFiles(initialQuery);
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
### Phase 2: EVALUATE
|
|
74
|
+
|
|
75
|
+
Assess retrieved content for relevance:
|
|
76
|
+
|
|
77
|
+
```javascript
|
|
78
|
+
function evaluateRelevance(files, task) {
|
|
79
|
+
return files.map(file => ({
|
|
80
|
+
path: file.path,
|
|
81
|
+
relevance: scoreRelevance(file.content, task),
|
|
82
|
+
reason: explainRelevance(file.content, task),
|
|
83
|
+
missingContext: identifyGaps(file.content, task)
|
|
84
|
+
}));
|
|
85
|
+
}
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
Scoring criteria:
|
|
89
|
+
- **High (0.8-1.0)**: Directly implements target functionality
|
|
90
|
+
- **Medium (0.5-0.7)**: Contains related patterns or types
|
|
91
|
+
- **Low (0.2-0.4)**: Tangentially related
|
|
92
|
+
- **None (0-0.2)**: Not relevant, exclude
|
|
93
|
+
|
|
94
|
+
### Phase 3: REFINE
|
|
95
|
+
|
|
96
|
+
Update search criteria based on evaluation:
|
|
97
|
+
|
|
98
|
+
```javascript
|
|
99
|
+
function refineQuery(evaluation, previousQuery) {
|
|
100
|
+
return {
|
|
101
|
+
// Add new patterns discovered in high-relevance files
|
|
102
|
+
patterns: [...previousQuery.patterns, ...extractPatterns(evaluation)],
|
|
103
|
+
|
|
104
|
+
// Add terminology found in codebase
|
|
105
|
+
keywords: [...previousQuery.keywords, ...extractKeywords(evaluation)],
|
|
106
|
+
|
|
107
|
+
// Exclude confirmed irrelevant paths
|
|
108
|
+
excludes: [...previousQuery.excludes, ...evaluation
|
|
109
|
+
.filter(e => e.relevance < 0.2)
|
|
110
|
+
.map(e => e.path)
|
|
111
|
+
],
|
|
112
|
+
|
|
113
|
+
// Target specific gaps
|
|
114
|
+
focusAreas: evaluation
|
|
115
|
+
.flatMap(e => e.missingContext)
|
|
116
|
+
.filter(unique)
|
|
117
|
+
};
|
|
118
|
+
}
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
### Phase 4: LOOP
|
|
122
|
+
|
|
123
|
+
Repeat with refined criteria (max 3 cycles):
|
|
124
|
+
|
|
125
|
+
```javascript
|
|
126
|
+
async function iterativeRetrieve(task, maxCycles = 3) {
|
|
127
|
+
let query = createInitialQuery(task);
|
|
128
|
+
let bestContext = [];
|
|
129
|
+
|
|
130
|
+
for (let cycle = 0; cycle < maxCycles; cycle++) {
|
|
131
|
+
const candidates = await retrieveFiles(query);
|
|
132
|
+
const evaluation = evaluateRelevance(candidates, task);
|
|
133
|
+
|
|
134
|
+
// Check if we have sufficient context
|
|
135
|
+
const highRelevance = evaluation.filter(e => e.relevance >= 0.7);
|
|
136
|
+
if (highRelevance.length >= 3 && !hasCriticalGaps(evaluation)) {
|
|
137
|
+
return highRelevance;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
// Refine and continue
|
|
141
|
+
query = refineQuery(evaluation, query);
|
|
142
|
+
bestContext = mergeContext(bestContext, highRelevance);
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
return bestContext;
|
|
146
|
+
}
|
|
147
|
+
```
|
|
148
|
+
|
|
149
|
+
## Practical Examples
|
|
150
|
+
|
|
151
|
+
### Example 1: Bug Fix Context
|
|
152
|
+
|
|
153
|
+
```
|
|
154
|
+
Task: "Fix the authentication token expiry bug"
|
|
155
|
+
|
|
156
|
+
Cycle 1:
|
|
157
|
+
DISPATCH: Search for "token", "auth", "expiry" in src/**
|
|
158
|
+
EVALUATE: Found auth.ts (0.9), tokens.ts (0.8), user.ts (0.3)
|
|
159
|
+
REFINE: Add "refresh", "jwt" keywords; exclude user.ts
|
|
160
|
+
|
|
161
|
+
Cycle 2:
|
|
162
|
+
DISPATCH: Search refined terms
|
|
163
|
+
EVALUATE: Found session-manager.ts (0.95), jwt-utils.ts (0.85)
|
|
164
|
+
REFINE: Sufficient context (2 high-relevance files)
|
|
165
|
+
|
|
166
|
+
Result: auth.ts, tokens.ts, session-manager.ts, jwt-utils.ts
|
|
167
|
+
```
|
|
168
|
+
|
|
169
|
+
### Example 2: Feature Implementation
|
|
170
|
+
|
|
171
|
+
```
|
|
172
|
+
Task: "Add rate limiting to API endpoints"
|
|
173
|
+
|
|
174
|
+
Cycle 1:
|
|
175
|
+
DISPATCH: Search "rate", "limit", "api" in routes/**
|
|
176
|
+
EVALUATE: No matches - codebase uses "throttle" terminology
|
|
177
|
+
REFINE: Add "throttle", "middleware" keywords
|
|
178
|
+
|
|
179
|
+
Cycle 2:
|
|
180
|
+
DISPATCH: Search refined terms
|
|
181
|
+
EVALUATE: Found throttle.ts (0.9), middleware/index.ts (0.7)
|
|
182
|
+
REFINE: Need router patterns
|
|
183
|
+
|
|
184
|
+
Cycle 3:
|
|
185
|
+
DISPATCH: Search "router", "express" patterns
|
|
186
|
+
EVALUATE: Found router-setup.ts (0.8)
|
|
187
|
+
REFINE: Sufficient context
|
|
188
|
+
|
|
189
|
+
Result: throttle.ts, middleware/index.ts, router-setup.ts
|
|
190
|
+
```
|
|
191
|
+
|
|
192
|
+
## Integration with Agents
|
|
193
|
+
|
|
194
|
+
Use in agent prompts:
|
|
195
|
+
|
|
196
|
+
```markdown
|
|
197
|
+
When retrieving context for this task:
|
|
198
|
+
1. Start with broad keyword search
|
|
199
|
+
2. Evaluate each file's relevance (0-1 scale)
|
|
200
|
+
3. Identify what context is still missing
|
|
201
|
+
4. Refine search criteria and repeat (max 3 cycles)
|
|
202
|
+
5. Return files with relevance >= 0.7
|
|
203
|
+
```
|
|
204
|
+
|
|
205
|
+
## Best Practices
|
|
206
|
+
|
|
207
|
+
1. **Start broad, narrow progressively** - Don't over-specify initial queries
|
|
208
|
+
2. **Learn codebase terminology** - First cycle often reveals naming conventions
|
|
209
|
+
3. **Track what's missing** - Explicit gap identification drives refinement
|
|
210
|
+
4. **Stop at "good enough"** - 3 high-relevance files beats 10 mediocre ones
|
|
211
|
+
5. **Exclude confidently** - Low-relevance files won't become relevant
|
|
212
|
+
|
|
213
|
+
## Related
|
|
214
|
+
|
|
215
|
+
- [The Longform Guide](https://x.com/affaanmustafa/status/2014040193557471352) - Subagent orchestration section
|
|
216
|
+
- `continuous-learning` skill - For patterns that improve over time
|
|
217
|
+
- Agent definitions in `~/.codex/agents/` (if present)
|