holycodex 0.2.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.
- package/LICENSE.md +82 -0
- package/README.md +107 -0
- package/THIRD-PARTY-NOTICES.md +7 -0
- package/bin/holycodex.js +2 -0
- package/marketplace.json +12 -0
- package/package.json +59 -0
- package/plugin/.codex-plugin/plugin.json +29 -0
- package/plugin/.mcp.json +8 -0
- package/plugin/agents/explorer.toml +6 -0
- package/plugin/agents/librarian.toml +6 -0
- package/plugin/agents/worker.toml +6 -0
- package/plugin/hooks/hooks.json +93 -0
- package/plugin/runtime/bootstrap.js +23 -0
- package/plugin/runtime/cli.js +233 -0
- package/plugin/runtime/git-bash.js +359 -0
- package/plugin/runtime/lsp.js +3674 -0
- package/plugin/runtime/rules.js +146 -0
- package/plugin/runtime/src-tRIOClWZ.js +209 -0
- package/plugin/skills/ast-grep/LICENSE +21 -0
- package/plugin/skills/ast-grep/SKILL.md +20 -0
- package/plugin/skills/ast-grep/references/cli.md +3 -0
- package/plugin/skills/ast-grep/references/install.md +3 -0
- package/plugin/skills/ast-grep/references/patterns.md +3 -0
- package/plugin/skills/ast-grep/references/pitfalls.md +3 -0
- package/plugin/skills/ast-grep/references/recipes.md +9 -0
- package/plugin/skills/ast-grep/references/sgconfig.md +3 -0
- package/plugin/skills/ast-grep/references/yaml-rules.md +3 -0
- package/plugin/skills/caveman/LICENSE +21 -0
- package/plugin/skills/caveman/SKILL.md +84 -0
- package/plugin/skills/comment-checker/SKILL.md +16 -0
- package/plugin/skills/compress/SKILL.md +26 -0
- package/plugin/skills/debugging/SKILL.md +23 -0
- package/plugin/skills/debugging/references/runtimes/README.md +9 -0
- package/plugin/skills/debugging/references/tools/README.md +8 -0
- package/plugin/skills/define-goal/LICENSE.txt +201 -0
- package/plugin/skills/define-goal/SKILL.md +36 -0
- package/plugin/skills/frontend/ATTRIBUTION.md +218 -0
- package/plugin/skills/frontend/LICENSE-Apache-2.0.txt +201 -0
- package/plugin/skills/frontend/SKILL.md +42 -0
- package/plugin/skills/frontend/references/perfection/README.md +5 -0
- package/plugin/skills/frontend/references/perfection/react-perf-tooling.md +3 -0
- package/plugin/skills/frontend/references/ui-ux-db/README.md +5 -0
- package/plugin/skills/frontend/references/ui-ux-db/data/charts.csv +26 -0
- package/plugin/skills/frontend/references/ui-ux-db/data/colors.csv +162 -0
- package/plugin/skills/frontend/references/ui-ux-db/data/icons.csv +106 -0
- package/plugin/skills/frontend/references/ui-ux-db/data/landing.csv +35 -0
- package/plugin/skills/frontend/references/ui-ux-db/data/products.csv +162 -0
- package/plugin/skills/frontend/references/ui-ux-db/data/react-performance.csv +45 -0
- package/plugin/skills/frontend/references/ui-ux-db/data/stacks/astro.csv +54 -0
- package/plugin/skills/frontend/references/ui-ux-db/data/stacks/flutter.csv +53 -0
- package/plugin/skills/frontend/references/ui-ux-db/data/stacks/html-tailwind.csv +56 -0
- package/plugin/skills/frontend/references/ui-ux-db/data/stacks/jetpack-compose.csv +53 -0
- package/plugin/skills/frontend/references/ui-ux-db/data/stacks/nextjs.csv +53 -0
- package/plugin/skills/frontend/references/ui-ux-db/data/stacks/nuxt-ui.csv +51 -0
- package/plugin/skills/frontend/references/ui-ux-db/data/stacks/nuxtjs.csv +59 -0
- package/plugin/skills/frontend/references/ui-ux-db/data/stacks/react-native.csv +52 -0
- package/plugin/skills/frontend/references/ui-ux-db/data/stacks/react.csv +54 -0
- package/plugin/skills/frontend/references/ui-ux-db/data/stacks/shadcn.csv +61 -0
- package/plugin/skills/frontend/references/ui-ux-db/data/stacks/svelte.csv +54 -0
- package/plugin/skills/frontend/references/ui-ux-db/data/stacks/swiftui.csv +51 -0
- package/plugin/skills/frontend/references/ui-ux-db/data/stacks/vue.csv +50 -0
- package/plugin/skills/frontend/references/ui-ux-db/data/styles.csv +85 -0
- package/plugin/skills/frontend/references/ui-ux-db/data/typography.csv +74 -0
- package/plugin/skills/frontend/references/ui-ux-db/data/ui-reasoning.csv +162 -0
- package/plugin/skills/frontend/references/ui-ux-db/data/ux-guidelines.csv +100 -0
- package/plugin/skills/frontend/references/ui-ux-db/data/web-interface.csv +31 -0
- package/plugin/skills/frontend/references/ui-ux-db/scripts/core.py +262 -0
- package/plugin/skills/frontend/references/ui-ux-db/scripts/design_system.py +1148 -0
- package/plugin/skills/frontend/references/ui-ux-db/scripts/search.py +114 -0
- package/plugin/skills/handoff/SKILL.md +10 -0
- package/plugin/skills/lsp/SKILL.md +35 -0
- package/plugin/skills/lsp-setup/SKILL.md +18 -0
- package/plugin/skills/lsp-setup/scripts/detect-lsp.ts +233 -0
- package/plugin/skills/lsp-setup/scripts/lsp-server-table.ts +188 -0
- package/plugin/skills/lsp-setup/scripts/tsconfig.json +17 -0
- package/plugin/skills/lsp-setup/scripts/verify-lsp.ts +166 -0
- package/plugin/skills/plan/SKILL.md +14 -0
- package/plugin/skills/plan-review/SKILL.md +12 -0
- package/plugin/skills/programming/SKILL.md +35 -0
- package/plugin/skills/programming/references/code-smells.md +3 -0
- package/plugin/skills/programming/references/go/README.md +3 -0
- package/plugin/skills/programming/references/logging.md +3 -0
- package/plugin/skills/programming/references/python/README.md +3 -0
- package/plugin/skills/programming/references/rust/README.md +3 -0
- package/plugin/skills/programming/references/rust-ub/README.md +3 -0
- package/plugin/skills/programming/references/typescript/README.md +3 -0
- package/plugin/skills/refactor/SKILL.md +21 -0
- package/plugin/skills/remove-ai-slops/SKILL.md +20 -0
- package/plugin/skills/rules/SKILL.md +16 -0
- package/plugin/skills/security-research/SKILL.md +38 -0
- package/plugin/skills/tdd/SKILL.md +24 -0
- package/plugin/skills/tdd/mocking.md +60 -0
- package/plugin/skills/tdd/tests.md +77 -0
package/LICENSE.md
ADDED
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
# License
|
|
2
|
+
|
|
3
|
+
Portions of this software are licensed as follows:
|
|
4
|
+
|
|
5
|
+
- All third party components incorporated into the oh-my-opencode Software are licensed under the original license
|
|
6
|
+
provided by the owner of the applicable component.
|
|
7
|
+
- Content outside of the above mentioned files or restrictions is available under the "Sustainable Use
|
|
8
|
+
License" as defined below.
|
|
9
|
+
|
|
10
|
+
## Sustainable Use License
|
|
11
|
+
|
|
12
|
+
Version 1.0
|
|
13
|
+
|
|
14
|
+
### Acceptance
|
|
15
|
+
|
|
16
|
+
By using the software, you agree to all of the terms and conditions below.
|
|
17
|
+
|
|
18
|
+
### Copyright License
|
|
19
|
+
|
|
20
|
+
The licensor grants you a non-exclusive, royalty-free, worldwide, non-sublicensable, non-transferable license
|
|
21
|
+
to use, copy, distribute, make available, and prepare derivative works of the software, in each case subject
|
|
22
|
+
to the limitations below.
|
|
23
|
+
|
|
24
|
+
### Limitations
|
|
25
|
+
|
|
26
|
+
You may use or modify the software only for your own internal business purposes or for non-commercial or
|
|
27
|
+
personal use. You may distribute the software or provide it to others only if you do so free of charge for
|
|
28
|
+
non-commercial purposes. You may not alter, remove, or obscure any licensing, copyright, or other notices of
|
|
29
|
+
the licensor in the software. Any use of the licensor's trademarks is subject to applicable law.
|
|
30
|
+
|
|
31
|
+
### Patents
|
|
32
|
+
|
|
33
|
+
The licensor grants you a license, under any patent claims the licensor can license, or becomes able to
|
|
34
|
+
license, to make, have made, use, sell, offer for sale, import and have imported the software, in each case
|
|
35
|
+
subject to the limitations and conditions in this license. This license does not cover any patent claims that
|
|
36
|
+
you cause to be infringed by modifications or additions to the software. If you or your company make any
|
|
37
|
+
written claim that the software infringes or contributes to infringement of any patent, your patent license
|
|
38
|
+
for the software granted under these terms ends immediately. If your company makes such a claim, your patent
|
|
39
|
+
license ends immediately for work on behalf of your company.
|
|
40
|
+
|
|
41
|
+
### Notices
|
|
42
|
+
|
|
43
|
+
You must ensure that anyone who gets a copy of any part of the software from you also gets a copy of these
|
|
44
|
+
terms. If you modify the software, you must include in any modified copies of the software a prominent notice
|
|
45
|
+
stating that you have modified the software.
|
|
46
|
+
|
|
47
|
+
### No Other Rights
|
|
48
|
+
|
|
49
|
+
These terms do not imply any licenses other than those expressly granted in these terms.
|
|
50
|
+
|
|
51
|
+
### Termination
|
|
52
|
+
|
|
53
|
+
If you use the software in violation of these terms, such use is not licensed, and your license will
|
|
54
|
+
automatically terminate. If the licensor provides you with a notice of your violation, and you cease all
|
|
55
|
+
violation of this license no later than 30 days after you receive that notice, your license will be reinstated
|
|
56
|
+
retroactively. However, if you violate these terms after such reinstatement, any additional violation of these
|
|
57
|
+
terms will cause your license to terminate automatically and permanently.
|
|
58
|
+
|
|
59
|
+
### No Liability
|
|
60
|
+
|
|
61
|
+
As far as the law allows, the software comes as is, without any warranty or condition, and the licensor will
|
|
62
|
+
not be liable to you for any damages arising out of these terms or the use or nature of the software, under
|
|
63
|
+
any kind of legal claim.
|
|
64
|
+
|
|
65
|
+
### Definitions
|
|
66
|
+
|
|
67
|
+
The "licensor" is the entity offering these terms.
|
|
68
|
+
|
|
69
|
+
The "software" is the software the licensor makes available under these terms, including any portion of it.
|
|
70
|
+
|
|
71
|
+
"You" refers to the individual or entity agreeing to these terms.
|
|
72
|
+
|
|
73
|
+
"Your company" is any legal entity, sole proprietorship, or other kind of organization that you work for, plus
|
|
74
|
+
all organizations that have control over, are under the control of, or are under common control with that
|
|
75
|
+
organization. Control means ownership of substantially all the assets of an entity, or the power to direct its
|
|
76
|
+
management and policies by vote, contract, or otherwise. Control can be direct or indirect.
|
|
77
|
+
|
|
78
|
+
"Your license" is the license granted to you for the software under these terms.
|
|
79
|
+
|
|
80
|
+
"Use" means anything you do with the software requiring your license.
|
|
81
|
+
|
|
82
|
+
"Trademark" means trademarks, service marks, and similar rights.
|
package/README.md
ADDED
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
# HolyCodex
|
|
2
|
+
|
|
3
|
+
HolyCodex is a modified, standalone Codex-only hard fork of [oh-my-openagent](https://github.com/code-yeongyu/oh-my-openagent). It keeps the parts that make Codex better at software work, removes the OpenCode runtime and organizational agent machinery, and compresses persistent instructions for lower ChatGPT Plus usage.
|
|
4
|
+
|
|
5
|
+
## What
|
|
6
|
+
|
|
7
|
+
HolyCodex installs one focused Codex toolkit:
|
|
8
|
+
|
|
9
|
+
- 18 on-demand skills for programming, debugging, frontend, LSP, AST search, TDD, security research, planning, handoffs, goal definition, compression, and related workflows.
|
|
10
|
+
- Three optional subagents: `explorer` for internal inspection, `librarian` for external research, and `worker` for bounded implementation.
|
|
11
|
+
- Four MCP defaults: `git_bash`, `lsp`, `grep_app`, and `context7`.
|
|
12
|
+
- Small hooks for readiness, OMO-style intent detection, Windows Git Bash guidance, comment checks, targeted LSP diagnostics, and scoped rules.
|
|
13
|
+
- A Node-compatible installer and prebuilt runtime usable through npm or Bun.
|
|
14
|
+
|
|
15
|
+
The primary agent always owns the task and decisions. Subagents exist only to reduce cost on narrow independent work—not to simulate an organization.
|
|
16
|
+
|
|
17
|
+
## Why
|
|
18
|
+
|
|
19
|
+
Large always-on prompts, agent hierarchies, review loops, and duplicated context consume tokens before useful work begins. HolyCodex takes a smaller approach:
|
|
20
|
+
|
|
21
|
+
- Skills load only when their descriptions match the task.
|
|
22
|
+
- Descriptions explain both what each capability does and when to use it.
|
|
23
|
+
- Rules are path-scoped, size-limited, cached, and deduplicated; `AGENTS.md` is never reinjected.
|
|
24
|
+
- Delegation is capped at two and remains under primary-agent control.
|
|
25
|
+
- Sol and Terra use low or medium reasoning; Luna may also use high.
|
|
26
|
+
- OMO workflows and retained references are rewritten with caveman-style token efficiency.
|
|
27
|
+
- The OMO frontend skill is merged with GPT Taste instead of shipping another overlapping skill.
|
|
28
|
+
|
|
29
|
+
The result aims to keep strong engineering behavior while spending fewer Plus tokens on ceremony and repeated instructions.
|
|
30
|
+
|
|
31
|
+
## How
|
|
32
|
+
|
|
33
|
+
### Install
|
|
34
|
+
|
|
35
|
+
Use either runtime:
|
|
36
|
+
|
|
37
|
+
```sh
|
|
38
|
+
npx holycodex install
|
|
39
|
+
bunx holycodex install
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
Installation is noninteractive. It:
|
|
43
|
+
|
|
44
|
+
1. Backs up every affected existing file or managed cache under the OS temporary directory.
|
|
45
|
+
2. Removes legacy OMO configuration and cache after backup.
|
|
46
|
+
3. Preserves unrelated Codex settings and explicit model or agent preferences.
|
|
47
|
+
4. Installs the HolyCodex marketplace, plugin, agents, skills, hooks, and MCP definitions.
|
|
48
|
+
5. Sets `max_concurrent_threads_per_session = 2` and defaults the root model to GPT-5.6 Sol low only when no root preference exists.
|
|
49
|
+
|
|
50
|
+
Options:
|
|
51
|
+
|
|
52
|
+
```sh
|
|
53
|
+
holycodex install --json
|
|
54
|
+
holycodex install --codex-autonomous
|
|
55
|
+
holycodex --help
|
|
56
|
+
holycodex --version
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
### Cleanup
|
|
60
|
+
|
|
61
|
+
```sh
|
|
62
|
+
npx holycodex cleanup
|
|
63
|
+
# or
|
|
64
|
+
bunx holycodex cleanup
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
Cleanup backs up affected files, removes only HolyCodex-owned configuration and artifacts, and preserves unrelated settings. Install and cleanup are idempotent.
|
|
68
|
+
|
|
69
|
+
### Repository layout
|
|
70
|
+
|
|
71
|
+
- `plugin/skills/` — shipped skill catalogue and on-demand references.
|
|
72
|
+
- `plugin/agents/` — the three cost-focused subagent definitions.
|
|
73
|
+
- `plugin/hooks/` — readiness and lightweight behavior hooks.
|
|
74
|
+
- `plugin/.mcp.json` — local and remote MCP defaults.
|
|
75
|
+
- `plugin/runtime/` — prebuilt Node-compatible CLI, rules, Git Bash, and LSP runtime.
|
|
76
|
+
- `src/` — installer, cleanup, bootstrap, and scoped-rules source.
|
|
77
|
+
- `packages/` — Git Bash and LSP MCP source.
|
|
78
|
+
- `test/` — CLI, lifecycle, catalogue, rules, bootstrap, and MCP tests.
|
|
79
|
+
|
|
80
|
+
### Versioning for maintainers
|
|
81
|
+
|
|
82
|
+
HolyCodex follows [ZeroVer](https://0ver.org/): versions stay below `1.0.0`; fixes increment the third component, while breaking changes increment the second.
|
|
83
|
+
|
|
84
|
+
```sh
|
|
85
|
+
npm run version:check # verify every package/runtime version matches
|
|
86
|
+
npm run version:patch # compatible release: 0.2.0 -> 0.2.1
|
|
87
|
+
npm run version:minor # breaking release: 0.2.7 -> 0.3.0
|
|
88
|
+
npm run version:set -- 0.4.3
|
|
89
|
+
node scripts/version.mjs patch --dry-run
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
The helper updates the root package, plugin manifest, private workspace packages, CLI/cache version, MCP server versions, and pinned tests together. It does not commit, tag, publish, or push. After a bump, review the diff and run the four checks printed by the command.
|
|
93
|
+
|
|
94
|
+
## Thanks
|
|
95
|
+
|
|
96
|
+
HolyCodex exists because of the work of:
|
|
97
|
+
|
|
98
|
+
- [YeonGyu Kim and the oh-my-openagent contributors](https://github.com/code-yeongyu/oh-my-openagent), whose project, history, workflows, and Codex integrations form the foundation of this hard fork.
|
|
99
|
+
- [Julius Brussee and caveman contributors](https://github.com/JuliusBrussee/caveman), for the token-efficient communication approach adapted here.
|
|
100
|
+
- The authors credited in [`plugin/skills/frontend/ATTRIBUTION.md`](plugin/skills/frontend/ATTRIBUTION.md), whose frontend design, performance, and UI/UX resources remain attributed under their original terms.
|
|
101
|
+
- Every upstream library and tool author whose work is preserved in the Git history and third-party notices.
|
|
102
|
+
|
|
103
|
+
## Licenses
|
|
104
|
+
|
|
105
|
+
HolyCodex uses the same [Sustainable Use License 1.0](LICENSE.md) as oh-my-openagent. This is not the MIT License: use and distribution are subject to the limitations in `LICENSE.md`.
|
|
106
|
+
|
|
107
|
+
Third-party components retain their original licenses. Relevant notices and bundled license files are preserved in [THIRD-PARTY-NOTICES.md](THIRD-PARTY-NOTICES.md) and alongside the applicable skills or components.
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
# Third-party notices
|
|
2
|
+
|
|
3
|
+
HolyCodex began as a one-time hard fork of `code-yeongyu/oh-my-openagent` and preserves its Git history. The repository uses the same Sustainable Use License 1.0. Third-party components retain their original licenses.
|
|
4
|
+
|
|
5
|
+
The caveman communication concept is adapted from `juliusbrussee/caveman`, with attribution preserved here. Copyright belongs to its authors and contributors; used under its published license.
|
|
6
|
+
|
|
7
|
+
The bundled LSP runtime at `plugin/runtime/lsp.js` is derived from `code-yeongyu/oh-my-openagent`'s `lsp-tools-mcp`. Copyright (c) 2026 Yeongyu Kim; used under the MIT License preserved at `plugin/runtime/LICENSE-LSP-MIT.txt`.
|
package/bin/holycodex.js
ADDED
package/marketplace.json
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "holycodex",
|
|
3
|
+
"interface": { "displayName": "HolyCodex" },
|
|
4
|
+
"plugins": [
|
|
5
|
+
{
|
|
6
|
+
"name": "holycodex",
|
|
7
|
+
"source": "./plugin",
|
|
8
|
+
"category": "Developer Tools",
|
|
9
|
+
"policy": { "installation": "AVAILABLE", "authentication": "ON_INSTALL" }
|
|
10
|
+
}
|
|
11
|
+
]
|
|
12
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "holycodex",
|
|
3
|
+
"version": "0.2.1",
|
|
4
|
+
"description": "Lean Codex-only agent toolkit for ChatGPT Plus",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"agents",
|
|
7
|
+
"chatgpt",
|
|
8
|
+
"codex",
|
|
9
|
+
"mcp"
|
|
10
|
+
],
|
|
11
|
+
"homepage": "https://github.com/davidbasilefilho/holycodex#readme",
|
|
12
|
+
"bugs": {
|
|
13
|
+
"url": "https://github.com/davidbasilefilho/holycodex/issues"
|
|
14
|
+
},
|
|
15
|
+
"license": "SUL-1.0",
|
|
16
|
+
"author": "David Basile Filho",
|
|
17
|
+
"repository": {
|
|
18
|
+
"type": "git",
|
|
19
|
+
"url": "git+https://github.com/davidbasilefilho/holycodex.git"
|
|
20
|
+
},
|
|
21
|
+
"bin": {
|
|
22
|
+
"holycodex": "bin/holycodex.js"
|
|
23
|
+
},
|
|
24
|
+
"workspaces": [
|
|
25
|
+
"packages/git-bash-mcp",
|
|
26
|
+
"packages/lsp-core",
|
|
27
|
+
"packages/lsp-daemon",
|
|
28
|
+
"packages/mcp-stdio-core"
|
|
29
|
+
],
|
|
30
|
+
"files": [
|
|
31
|
+
"bin",
|
|
32
|
+
"plugin",
|
|
33
|
+
"marketplace.json",
|
|
34
|
+
"LICENSE.md",
|
|
35
|
+
"THIRD-PARTY-NOTICES.md"
|
|
36
|
+
],
|
|
37
|
+
"type": "module",
|
|
38
|
+
"scripts": {
|
|
39
|
+
"check": "vp check",
|
|
40
|
+
"test": "vp test",
|
|
41
|
+
"build": "vp build",
|
|
42
|
+
"prepack": "vp build",
|
|
43
|
+
"version:check": "node scripts/version.mjs check",
|
|
44
|
+
"version:patch": "node scripts/version.mjs patch",
|
|
45
|
+
"version:minor": "node scripts/version.mjs minor",
|
|
46
|
+
"version:set": "node scripts/version.mjs"
|
|
47
|
+
},
|
|
48
|
+
"devDependencies": {
|
|
49
|
+
"@types/node": "^24.0.0",
|
|
50
|
+
"typescript": "^6.0.0",
|
|
51
|
+
"vite": "^7.0.0",
|
|
52
|
+
"vite-plus": "^0.1.24",
|
|
53
|
+
"vitest": "^4.0.0"
|
|
54
|
+
},
|
|
55
|
+
"engines": {
|
|
56
|
+
"node": ">=20"
|
|
57
|
+
},
|
|
58
|
+
"packageManager": "pnpm@11.12.0"
|
|
59
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "holycodex",
|
|
3
|
+
"version": "0.2.1",
|
|
4
|
+
"description": "Lean Codex-only agents, skills, hooks, and MCP defaults.",
|
|
5
|
+
"author": {
|
|
6
|
+
"name": "David Basile Filho",
|
|
7
|
+
"url": "https://github.com/davidbasilefilho"
|
|
8
|
+
},
|
|
9
|
+
"homepage": "https://github.com/davidbasilefilho/holycodex",
|
|
10
|
+
"repository": "https://github.com/davidbasilefilho/holycodex",
|
|
11
|
+
"license": "SUL-1.0",
|
|
12
|
+
"skills": "./skills/",
|
|
13
|
+
"hooks": [
|
|
14
|
+
"./hooks/hooks.json"
|
|
15
|
+
],
|
|
16
|
+
"mcpServers": "./.mcp.json",
|
|
17
|
+
"interface": {
|
|
18
|
+
"displayName": "HolyCodex",
|
|
19
|
+
"shortDescription": "Codex agents, routed skills, scoped rules, Git Bash, LSP, code search, and docs lookup.",
|
|
20
|
+
"longDescription": "Use HolyCodex agents only for narrow delegated exploration, research, or isolated implementation. Skills declare their own triggers. Use git_bash for reliable Windows shell execution, lsp for semantic diagnostics and navigation, grep_app for public code examples, and context7 for current library documentation.",
|
|
21
|
+
"developerName": "David Basile Filho",
|
|
22
|
+
"category": "Developer Tools",
|
|
23
|
+
"capabilities": [
|
|
24
|
+
"Hooks",
|
|
25
|
+
"MCP Tools",
|
|
26
|
+
"Code Intelligence"
|
|
27
|
+
]
|
|
28
|
+
}
|
|
29
|
+
}
|
package/plugin/.mcp.json
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
{
|
|
2
|
+
"mcpServers": {
|
|
3
|
+
"git_bash": { "command": "node", "args": ["runtime/git-bash.js", "mcp"], "cwd": "." },
|
|
4
|
+
"lsp": { "command": "node", "args": ["runtime/lsp.js", "mcp"], "cwd": "." },
|
|
5
|
+
"grep_app": { "url": "https://mcp.grep.app" },
|
|
6
|
+
"context7": { "url": "https://mcp.context7.com/mcp" }
|
|
7
|
+
}
|
|
8
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
description = "Read-only internal repository explorer. Use for a narrow unfamiliar codebase question needing exact files, symbols, history, or diagnostics before implementation."
|
|
2
|
+
model = "gpt-5.6-luna"
|
|
3
|
+
model_reasoning_effort = "low"
|
|
4
|
+
developer_instructions = """
|
|
5
|
+
Inspect assigned internal area only. Use the git_bash MCP for every shell command. Read-only: search, read, diagnostics, history. No edit, install, external write, or subagent. Do not broaden scope. Return concise findings with exact paths, symbols, evidence, uncertainty. Stop when assigned question answered.
|
|
6
|
+
"""
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
description = "Read-only external-source researcher. Use when current primary documentation, standards, versions, or cited evidence must be verified outside the repository."
|
|
2
|
+
model = "gpt-5.6-luna"
|
|
3
|
+
model_reasoning_effort = "low"
|
|
4
|
+
developer_instructions = """
|
|
5
|
+
Research assigned external sources only. Use the git_bash MCP for every shell command. Read-only. Prefer primary current sources. No implementation, external write, or subagent. Do not broaden query. Return concise claim, citation, version/date, conflict, uncertainty. Stop when assigned question answered.
|
|
6
|
+
"""
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
description = "Isolated implementation worker. Use only for a bounded independent change with explicit files and acceptance criteria when delegation materially helps."
|
|
2
|
+
model = "gpt-5.6-luna"
|
|
3
|
+
model_reasoning_effort = "medium"
|
|
4
|
+
developer_instructions = """
|
|
5
|
+
Implement only explicit files, scope, acceptance criteria. Use the git_bash MCP for every shell command. Preserve architecture, API, behavior, naming, style. Smallest correct change. No speculative cleanup, abstraction, dependency, docs, or subagent. Respect user work. Run smallest targeted proof. Return changed paths, checks, blocker.
|
|
6
|
+
"""
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
{
|
|
2
|
+
"hooks": {
|
|
3
|
+
"SessionStart": [
|
|
4
|
+
{
|
|
5
|
+
"matcher": "*",
|
|
6
|
+
"hooks": [
|
|
7
|
+
{
|
|
8
|
+
"type": "prompt",
|
|
9
|
+
"prompt": "HolyCodex default: first state `I detect [intent type] - [reason]. [What I'm doing now].` This commits same-turn follow-through. Answer/review/diagnose/plan requests inspect and report; build/fix requests implement and verify. Status reports then continues active work. Work direct by default. Batch discovery. Always use the enabled git_bash MCP for shell commands. Use update_plan for multi-step work. Primary agent keeps control. Subagents only reduce cost; never simulate an organization. Max two narrow independent subagents; never recursive, duplicate, or full-history fork. Preserve user changes. Smallest root fix. Personally exercise artifact through matching surface. After three materially different failures, stop editing and ask one precise question. Load only path-relevant deduplicated rules; never reinject AGENTS.md. Sol/Terra allow low or medium reasoning; Luna allows low, medium, high. Final leads with result and proof."
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"type": "command",
|
|
13
|
+
"command": "node \"${PLUGIN_ROOT}/runtime/bootstrap.js\"",
|
|
14
|
+
"timeout": 10,
|
|
15
|
+
"statusMessage": "HolyCodex: checking readiness"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"type": "command",
|
|
19
|
+
"command": "node \"${PLUGIN_ROOT}/runtime/rules.js\"",
|
|
20
|
+
"timeout": 10,
|
|
21
|
+
"statusMessage": "HolyCodex: loading scoped rules"
|
|
22
|
+
}
|
|
23
|
+
]
|
|
24
|
+
}
|
|
25
|
+
],
|
|
26
|
+
"UserPromptSubmit": [
|
|
27
|
+
{
|
|
28
|
+
"matcher": "*",
|
|
29
|
+
"hooks": [
|
|
30
|
+
{
|
|
31
|
+
"type": "command",
|
|
32
|
+
"command": "node \"${PLUGIN_ROOT}/runtime/rules.js\"",
|
|
33
|
+
"timeout": 10,
|
|
34
|
+
"statusMessage": "HolyCodex: loading scoped rules"
|
|
35
|
+
}
|
|
36
|
+
]
|
|
37
|
+
}
|
|
38
|
+
],
|
|
39
|
+
"PreToolUse": [
|
|
40
|
+
{
|
|
41
|
+
"matcher": "exec_command",
|
|
42
|
+
"hooks": [
|
|
43
|
+
{ "type": "prompt", "prompt": "Use the enabled git_bash MCP for every shell command." }
|
|
44
|
+
]
|
|
45
|
+
}
|
|
46
|
+
],
|
|
47
|
+
"PostToolUse": [
|
|
48
|
+
{
|
|
49
|
+
"matcher": "apply_patch|Write|Edit",
|
|
50
|
+
"hooks": [
|
|
51
|
+
{
|
|
52
|
+
"type": "prompt",
|
|
53
|
+
"prompt": "Check new comments. Remove stale, redundant, or narrative comments; preserve required directives and rationale."
|
|
54
|
+
}
|
|
55
|
+
]
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"matcher": "apply_patch|Write|Edit",
|
|
59
|
+
"hooks": [
|
|
60
|
+
{
|
|
61
|
+
"type": "prompt",
|
|
62
|
+
"prompt": "Run targeted LSP diagnostics for edited supported files only."
|
|
63
|
+
}
|
|
64
|
+
]
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"matcher": "^apply_patch$",
|
|
68
|
+
"hooks": [
|
|
69
|
+
{
|
|
70
|
+
"type": "command",
|
|
71
|
+
"command": "node \"${PLUGIN_ROOT}/runtime/rules.js\"",
|
|
72
|
+
"timeout": 10,
|
|
73
|
+
"statusMessage": "HolyCodex: matching scoped rules"
|
|
74
|
+
}
|
|
75
|
+
]
|
|
76
|
+
}
|
|
77
|
+
],
|
|
78
|
+
"PostCompact": [
|
|
79
|
+
{
|
|
80
|
+
"matcher": "*",
|
|
81
|
+
"hooks": [
|
|
82
|
+
{ "type": "prompt", "prompt": "Reset scoped rule and LSP diagnostic caches." },
|
|
83
|
+
{
|
|
84
|
+
"type": "command",
|
|
85
|
+
"command": "node \"${PLUGIN_ROOT}/runtime/rules.js\"",
|
|
86
|
+
"timeout": 10,
|
|
87
|
+
"statusMessage": "HolyCodex: resetting scoped rule cache"
|
|
88
|
+
}
|
|
89
|
+
]
|
|
90
|
+
}
|
|
91
|
+
]
|
|
92
|
+
}
|
|
93
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { access } from "node:fs/promises";
|
|
2
|
+
import { join } from "node:path";
|
|
3
|
+
//#region src/bootstrap.ts
|
|
4
|
+
var REQUIRED = [
|
|
5
|
+
"git-bash.js",
|
|
6
|
+
"lsp.js",
|
|
7
|
+
"rules.js"
|
|
8
|
+
];
|
|
9
|
+
async function readinessContext(pluginRoot) {
|
|
10
|
+
const missing = [];
|
|
11
|
+
for (const file of REQUIRED) try {
|
|
12
|
+
await access(join(pluginRoot, "runtime", file));
|
|
13
|
+
} catch (error) {
|
|
14
|
+
if (error instanceof Error && "code" in error && error.code === "ENOENT") missing.push(file);
|
|
15
|
+
else throw error;
|
|
16
|
+
}
|
|
17
|
+
return missing.length === 0 ? "" : `HolyCodex incomplete: missing runtime/${missing.join(", runtime/")}. Reinstall HolyCodex before using its local MCPs or hooks.`;
|
|
18
|
+
}
|
|
19
|
+
//#endregion
|
|
20
|
+
//#region src/bootstrap-cli.ts
|
|
21
|
+
var context = await readinessContext(process.env.PLUGIN_ROOT ?? process.cwd());
|
|
22
|
+
if (context.length > 0) process.stdout.write(`${JSON.stringify({ additionalContext: context })}\n`);
|
|
23
|
+
//#endregion
|