ai-nexus 1.3.9 → 1.3.10
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/README.ko.md +7 -12
- package/README.md +8 -13
- package/config/hooks/README.md +3 -7
- package/package.json +1 -1
package/README.ko.md
CHANGED
|
@@ -19,14 +19,9 @@ npx ai-nexus install
|
|
|
19
19
|
|
|
20
20
|
## 문제
|
|
21
21
|
|
|
22
|
-
Claude Code에 질문할 때마다 **모든** 룰이
|
|
22
|
+
Claude Code에 질문할 때마다 **모든** 룰이 로드됩니다 — Git 커밋을 물어보는데 React 룰까지, 스타일링을 하는데 보안 룰까지.
|
|
23
23
|
|
|
24
|
-
|
|
25
|
-
Loading rules... 4,300 lines
|
|
26
|
-
토큰 비용: 요청당 ~5,000 토큰
|
|
27
|
-
```
|
|
28
|
-
|
|
29
|
-
Git 커밋에 대해 물어보는데 React 룰까지 로드되는 건 낭비입니다.
|
|
24
|
+
룰을 추가할수록 매 프롬프트마다 낭비되는 토큰이 늘어납니다.
|
|
30
25
|
|
|
31
26
|
## 해결
|
|
32
27
|
|
|
@@ -41,7 +36,7 @@ Semantic Router 활성화:
|
|
|
41
36
|
✗ react.md (건너뜀)
|
|
42
37
|
✗ security.md (건너뜀)
|
|
43
38
|
|
|
44
|
-
|
|
39
|
+
룰을 얼마든지 추가하세요 — 필요한 것만 로딩됩니다.
|
|
45
40
|
```
|
|
46
41
|
|
|
47
42
|
---
|
|
@@ -77,11 +72,11 @@ npx ai-nexus install --rules github.com/your-org/team-rules
|
|
|
77
72
|
|
|
78
73
|
## 지원 도구
|
|
79
74
|
|
|
80
|
-
| 도구 | 동작 방식 | 토큰
|
|
75
|
+
| 도구 | 동작 방식 | 토큰 부담 |
|
|
81
76
|
|------|-----------|-----------|
|
|
82
|
-
| **Claude Code** | 시맨틱 라우터가 프롬프트마다 동적으로 룰 교체 |
|
|
83
|
-
| **Cursor** | `.mdc` description 필드를 통한 시맨틱 서치 |
|
|
84
|
-
| **Codex** | 정적 `AGENTS.md` (동적 로딩 없음) |
|
|
77
|
+
| **Claude Code** | 시맨틱 라우터가 프롬프트마다 동적으로 룰 교체 | 필요한 룰만 로딩 |
|
|
78
|
+
| **Cursor** | `.mdc` description 필드를 통한 시맨틱 서치 | Description 기반 필터링 |
|
|
79
|
+
| **Codex** | 정적 `AGENTS.md` (동적 로딩 없음) | 전체 룰 로딩 |
|
|
85
80
|
|
|
86
81
|
---
|
|
87
82
|
|
package/README.md
CHANGED
|
@@ -19,14 +19,9 @@ npx ai-nexus install
|
|
|
19
19
|
|
|
20
20
|
## The Problem
|
|
21
21
|
|
|
22
|
-
Every time you ask Claude Code a question, it loads **all** your rules
|
|
22
|
+
Every time you ask Claude Code a question, it loads **all** your rules — React rules when you're asking about Git commits, security rules when you're styling a button.
|
|
23
23
|
|
|
24
|
-
|
|
25
|
-
Loading rules... 4,300 lines
|
|
26
|
-
Token cost: ~5,000 tokens per request
|
|
27
|
-
```
|
|
28
|
-
|
|
29
|
-
That's tokens wasted on React rules when you're asking about Git commits.
|
|
24
|
+
The more rules you add, the more tokens get wasted on every single prompt.
|
|
30
25
|
|
|
31
26
|
## The Solution
|
|
32
27
|
|
|
@@ -41,7 +36,7 @@ Semantic Router activates:
|
|
|
41
36
|
✗ react.md (skipped)
|
|
42
37
|
✗ security.md (skipped)
|
|
43
38
|
|
|
44
|
-
|
|
39
|
+
Add as many rules as you want — only the relevant ones are loaded.
|
|
45
40
|
```
|
|
46
41
|
|
|
47
42
|
---
|
|
@@ -77,11 +72,11 @@ npx ai-nexus install --rules github.com/your-org/team-rules
|
|
|
77
72
|
|
|
78
73
|
## Supported Tools
|
|
79
74
|
|
|
80
|
-
| Tool | How it works | Token
|
|
81
|
-
|
|
82
|
-
| **Claude Code** | Semantic Router dynamically swaps rules per prompt |
|
|
83
|
-
| **Cursor** | Semantic Search via `.mdc` description fields |
|
|
84
|
-
| **Codex** | Static `AGENTS.md` (no dynamic loading) |
|
|
75
|
+
| Tool | How it works | Token overhead |
|
|
76
|
+
|------|--------------|----------------|
|
|
77
|
+
| **Claude Code** | Semantic Router dynamically swaps rules per prompt | Only relevant rules loaded |
|
|
78
|
+
| **Cursor** | Semantic Search via `.mdc` description fields | Description-based filtering |
|
|
79
|
+
| **Codex** | Static `AGENTS.md` (no dynamic loading) | All rules loaded |
|
|
85
80
|
|
|
86
81
|
---
|
|
87
82
|
|
package/config/hooks/README.md
CHANGED
|
@@ -18,7 +18,7 @@ The semantic router hook analyzes keywords in prompts to **dynamically activate
|
|
|
18
18
|
↓
|
|
19
19
|
5. Claude Code loads only necessary rules
|
|
20
20
|
↓
|
|
21
|
-
6.
|
|
21
|
+
6. Only relevant rules loaded!
|
|
22
22
|
```
|
|
23
23
|
|
|
24
24
|
## Installation
|
|
@@ -101,10 +101,6 @@ OPENAI_API_KEY=sk-xxx
|
|
|
101
101
|
ANTHROPIC_API_KEY=sk-ant-xxx
|
|
102
102
|
```
|
|
103
103
|
|
|
104
|
-
## Token
|
|
104
|
+
## Token Efficiency
|
|
105
105
|
|
|
106
|
-
|
|
107
|
-
|--------|--------------|------------------|
|
|
108
|
-
| Load all | All rules (15) | ~5000 tokens |
|
|
109
|
-
| Semantic Router | Only needed (2-3) | ~800 tokens |
|
|
110
|
-
| **Savings** | | **~84%** |
|
|
106
|
+
Add as many rules as you need — the Semantic Router loads only the relevant ones per prompt, so token usage stays minimal regardless of how many rules you have.
|