oh-my-customcodex 0.1.6 → 0.1.7
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.md +5 -4
- package/dist/cli/index.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/templates/.claude/skills/token-efficiency-audit/SKILL.md +147 -0
- package/templates/CLAUDE.md +2 -2
- package/templates/CLAUDE.md.en +2 -2
- package/templates/CLAUDE.md.ko +2 -2
- package/templates/guides/cc-token-saver/README.md +9 -0
- package/templates/guides/claude-code/13-cli-flags.md +1 -0
- package/templates/guides/claude-code/14-token-efficiency.md +73 -0
- package/templates/guides/claude-code/index.yaml +5 -0
- package/templates/manifest.json +3 -3
package/README.md
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
|
|
14
14
|
**[한국어 문서 (Korean)](./README_ko.md)**
|
|
15
15
|
|
|
16
|
-
48 agents.
|
|
16
|
+
48 agents. 108 skills. 22 rules. One command.
|
|
17
17
|
|
|
18
18
|
```bash
|
|
19
19
|
npm install -g oh-my-customcodex && cd your-project && omcodex init
|
|
@@ -132,7 +132,7 @@ Each agent declares its tools, model, memory scope, and limitations in YAML fron
|
|
|
132
132
|
|
|
133
133
|
---
|
|
134
134
|
|
|
135
|
-
### Skills (
|
|
135
|
+
### Skills (108)
|
|
136
136
|
|
|
137
137
|
| Category | Count | Includes |
|
|
138
138
|
|----------|-------|----------|
|
|
@@ -140,7 +140,7 @@ Each agent declares its tools, model, memory scope, and limitations in YAML fron
|
|
|
140
140
|
| Routing | 4 | secretary, dev-lead, de-lead, qa-lead |
|
|
141
141
|
| Workflow | 13 | structured-dev-cycle, deep-plan, research, evaluator-optimizer, dag-orchestration, worker-reviewer-pipeline, reasoning-sandwich, pipeline, and more |
|
|
142
142
|
| Development | 9 | dev-review, dev-refactor, analysis, create-agent, intent-detection, web-design-guidelines, omcodex:takeover, skill-extractor, idea |
|
|
143
|
-
| Operations |
|
|
143
|
+
| Operations | 10 | update-docs, audit-agents, sauron-watch, monitoring-setup, token-efficiency-audit, fix-refs, release-notes, and more |
|
|
144
144
|
| Memory | 3 | memory-save, memory-recall, memory-management |
|
|
145
145
|
| Package | 3 | npm-publish, npm-version, npm-audit |
|
|
146
146
|
| Optimization | 3 | optimize-analyze, optimize-bundle, optimize-report |
|
|
@@ -205,6 +205,7 @@ All commands are invoked inside the oh-my-customcodex GPT Codex + OMX session.
|
|
|
205
205
|
| `/memory-save` | Save session context |
|
|
206
206
|
| `/memory-recall` | Search and recall memories |
|
|
207
207
|
| `/omcodex:monitoring-setup` | OTel monitoring toggle |
|
|
208
|
+
| `/token-efficiency-audit` | Audit and tune token-efficiency settings |
|
|
208
209
|
| `/omcodex:loop` | Auto-continue background agent workflows (3-continue safety limit) |
|
|
209
210
|
| `/omcodex:lists` | Show all commands |
|
|
210
211
|
| `/omcodex:status` | System health check |
|
|
@@ -273,7 +274,7 @@ your-project/
|
|
|
273
274
|
├── AGENTS.md # Entry point
|
|
274
275
|
├── .codex/
|
|
275
276
|
│ ├── agents/ # 48 agent definitions
|
|
276
|
-
│ ├── skills/ #
|
|
277
|
+
│ ├── skills/ # 108 skill modules
|
|
277
278
|
│ ├── rules/ # 22 governance rules (R000-R021)
|
|
278
279
|
│ ├── hooks/ # 15 lifecycle hook scripts
|
|
279
280
|
│ ├── schemas/ # Tool input validation schemas
|
package/dist/cli/index.js
CHANGED
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: token-efficiency-audit
|
|
3
|
+
description: Audit and tune Claude/Codex settings for lower token usage without changing code
|
|
4
|
+
scope: package
|
|
5
|
+
argument-hint: "[audit|apply-interactive|apply-ci|status]"
|
|
6
|
+
user-invocable: true
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# Token Efficiency Audit
|
|
10
|
+
|
|
11
|
+
Audit and tune Claude Code / Codex configuration for better token efficiency.
|
|
12
|
+
|
|
13
|
+
This skill is for configuration-level optimization, not runtime behavior shaping. It complements:
|
|
14
|
+
|
|
15
|
+
- `guides/cc-token-saver/README.md` for plugin-level token protection
|
|
16
|
+
- R013 ecomode for runtime compression
|
|
17
|
+
- `omcodex:monitoring-setup` for telemetry and usage visibility
|
|
18
|
+
|
|
19
|
+
## Modes
|
|
20
|
+
|
|
21
|
+
### `audit` (default)
|
|
22
|
+
|
|
23
|
+
Inspect the current token-efficiency posture without changing files.
|
|
24
|
+
|
|
25
|
+
Check these sources when they exist:
|
|
26
|
+
|
|
27
|
+
- `.codex/settings.local.json`
|
|
28
|
+
- `.codex/settings.json`
|
|
29
|
+
- `~/.codex/config.toml`
|
|
30
|
+
- shell startup files such as `~/.zshrc`, `~/.bashrc`, `~/.bash_profile`
|
|
31
|
+
|
|
32
|
+
Audit for:
|
|
33
|
+
|
|
34
|
+
- Claude-side knobs
|
|
35
|
+
- `includeGitInstructions`
|
|
36
|
+
- `autoConnectIde`
|
|
37
|
+
- output caps such as `BASH_MAX_OUTPUT_LENGTH`
|
|
38
|
+
- file-read / MCP output token caps
|
|
39
|
+
- Codex-side knobs
|
|
40
|
+
- `features.apps`
|
|
41
|
+
- `web_search`
|
|
42
|
+
- `tool_output_token_limit`
|
|
43
|
+
- worker-only flags that should not be silently enabled in normal interactive sessions
|
|
44
|
+
|
|
45
|
+
Report:
|
|
46
|
+
|
|
47
|
+
1. current settings found
|
|
48
|
+
2. low-risk improvements
|
|
49
|
+
3. high-risk / CI-only improvements
|
|
50
|
+
4. expected tradeoffs
|
|
51
|
+
|
|
52
|
+
### `status`
|
|
53
|
+
|
|
54
|
+
Summarize the current posture in a compact status report:
|
|
55
|
+
|
|
56
|
+
- configuration files found
|
|
57
|
+
- safe interactive settings present / missing
|
|
58
|
+
- CI-only settings present / missing
|
|
59
|
+
- main token-risk hotspots
|
|
60
|
+
|
|
61
|
+
### `apply-interactive`
|
|
62
|
+
|
|
63
|
+
Apply only low-risk settings suitable for human interactive sessions.
|
|
64
|
+
|
|
65
|
+
Preferred targets:
|
|
66
|
+
|
|
67
|
+
- `.codex/settings.local.json` for session-local settings
|
|
68
|
+
- user shell rc files only when environment variables are the right fit
|
|
69
|
+
|
|
70
|
+
Safe defaults to consider:
|
|
71
|
+
|
|
72
|
+
- disable unnecessary git instruction injection when not needed
|
|
73
|
+
- disable unnecessary IDE auto-connect when not needed
|
|
74
|
+
- set sane output ceilings to reduce runaway tool output without over-truncating
|
|
75
|
+
- reduce Codex tool output limits to a practical level
|
|
76
|
+
- disable unneeded app surfaces when they are not part of the user workflow
|
|
77
|
+
|
|
78
|
+
Guardrails:
|
|
79
|
+
|
|
80
|
+
- preserve existing user config
|
|
81
|
+
- never overwrite unrelated settings
|
|
82
|
+
- do not apply CI-only flags here
|
|
83
|
+
- explain tradeoffs before writing
|
|
84
|
+
|
|
85
|
+
### `apply-ci`
|
|
86
|
+
|
|
87
|
+
Apply stronger settings for non-interactive worker / CI contexts.
|
|
88
|
+
|
|
89
|
+
This mode is intentionally stricter and must call out risk clearly.
|
|
90
|
+
|
|
91
|
+
Examples of CI-only candidates:
|
|
92
|
+
|
|
93
|
+
- disable auto-memory features
|
|
94
|
+
- disable built-in agent surfaces not needed for batch execution
|
|
95
|
+
- disable nonessential MCP / app surfaces
|
|
96
|
+
- tighten output limits more aggressively than interactive mode
|
|
97
|
+
|
|
98
|
+
Required warning:
|
|
99
|
+
|
|
100
|
+
- these settings can reduce convenience or disable important harness behaviors
|
|
101
|
+
- they should be scoped to CI/worker environments, not broad local defaults
|
|
102
|
+
|
|
103
|
+
## Output Contract
|
|
104
|
+
|
|
105
|
+
### Audit / Status
|
|
106
|
+
|
|
107
|
+
```text
|
|
108
|
+
[Token Efficiency]
|
|
109
|
+
|
|
110
|
+
Mode: audit|status
|
|
111
|
+
Posture: good|mixed|wasteful
|
|
112
|
+
|
|
113
|
+
Safe interactive wins:
|
|
114
|
+
- ...
|
|
115
|
+
|
|
116
|
+
CI-only wins:
|
|
117
|
+
- ...
|
|
118
|
+
|
|
119
|
+
Watchouts:
|
|
120
|
+
- ...
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
### Apply Modes
|
|
124
|
+
|
|
125
|
+
```text
|
|
126
|
+
[Token Efficiency]
|
|
127
|
+
|
|
128
|
+
Mode: apply-interactive|apply-ci
|
|
129
|
+
Files updated:
|
|
130
|
+
- ...
|
|
131
|
+
|
|
132
|
+
Settings applied:
|
|
133
|
+
- ...
|
|
134
|
+
|
|
135
|
+
Tradeoffs:
|
|
136
|
+
- ...
|
|
137
|
+
|
|
138
|
+
Rollback:
|
|
139
|
+
- restore prior values from git diff / file backup
|
|
140
|
+
```
|
|
141
|
+
|
|
142
|
+
## Heuristics
|
|
143
|
+
|
|
144
|
+
- Prefer smaller, reversible config edits over broad environment mutation
|
|
145
|
+
- Keep interactive and CI profiles separate
|
|
146
|
+
- Do not set output limits so low that users trigger repeated re-runs and spend more tokens overall
|
|
147
|
+
- When uncertain, recommend `audit` first and `apply-*` second
|
package/templates/CLAUDE.md
CHANGED
|
@@ -104,7 +104,7 @@ oh-my-customcodex로 구동됩니다.
|
|
|
104
104
|
| 릴리즈 | `/pipeline auto-dev`, `/omcodex-release-notes`, `/release-plan` | 자동 개발, 릴리즈 노트 |
|
|
105
105
|
| 리서치 | `/research`, `/scout`, `/deep-plan`, `/omcodex:agora` | 병렬 분석, URL 평가, 연구 계획 |
|
|
106
106
|
| 메모리 | `/memory-save`, `/memory-recall` | 세션 메모리 관리 |
|
|
107
|
-
| 시스템 | `/omcodex:lists`, `/omcodex:status`, `/omcodex:help` | 전체 목록, 상태, 도움말 |
|
|
107
|
+
| 시스템 | `/token-efficiency-audit`, `/omcodex:lists`, `/omcodex:status`, `/omcodex:help` | 토큰 효율 감사, 전체 목록, 상태, 도움말 |
|
|
108
108
|
|
|
109
109
|
> 전체 커맨드 목록 (60+ 커맨드): `/omcodex:lists` 실행
|
|
110
110
|
|
|
@@ -115,7 +115,7 @@ project/
|
|
|
115
115
|
+-- AGENTS.md # 진입점
|
|
116
116
|
+-- .codex/
|
|
117
117
|
| +-- agents/ # 서브에이전트 정의 (48 파일)
|
|
118
|
-
| +-- skills/ # 스킬 (
|
|
118
|
+
| +-- skills/ # 스킬 (108 디렉토리)
|
|
119
119
|
| +-- rules/ # 전역 규칙 (R000-R022)
|
|
120
120
|
| +-- hooks/ # 훅 스크립트 (보안, 검증, HUD)
|
|
121
121
|
| +-- contexts/ # 컨텍스트 파일 (ecomode)
|
package/templates/CLAUDE.md.en
CHANGED
|
@@ -107,6 +107,7 @@ NO EXCEPTIONS. NO EXCUSES.
|
|
|
107
107
|
| `/memory-save` | Save session context to omx-memory |
|
|
108
108
|
| `/memory-recall` | Search and recall memories |
|
|
109
109
|
| `/omcodex:monitoring-setup` | Enable/disable OTel console monitoring |
|
|
110
|
+
| `/token-efficiency-audit` | Audit and tune token-efficiency settings |
|
|
110
111
|
| `/omcodex:npm-publish` | Publish package to npm registry |
|
|
111
112
|
| `/omcodex:npm-version` | Manage semantic versions |
|
|
112
113
|
| `/omcodex:npm-audit` | Audit dependencies |
|
|
@@ -130,7 +131,7 @@ project/
|
|
|
130
131
|
+-- AGENTS.md # Entry point
|
|
131
132
|
+-- .codex/
|
|
132
133
|
| +-- agents/ # Subagent definitions (48 files)
|
|
133
|
-
| +-- skills/ # Skills (
|
|
134
|
+
| +-- skills/ # Skills (108 directories)
|
|
134
135
|
| +-- rules/ # Global rules (22 files)
|
|
135
136
|
| +-- hooks/ # Hook scripts (security, validation, HUD)
|
|
136
137
|
| +-- contexts/ # Context files (4 files)
|
|
@@ -174,7 +175,6 @@ This is the core oh-my-customcodex philosophy: **"No expert? CREATE one, connect
|
|
|
174
175
|
| QA Team | 3 | qa-planner, qa-writer, qa-engineer |
|
|
175
176
|
| Manager | 6 | mgr-creator, mgr-updater, mgr-supplier, mgr-gitnerd, mgr-sauron, mgr-claude-code-bible |
|
|
176
177
|
| System | 3 | sys-memory-keeper, sys-naggy, wiki-curator |
|
|
177
|
-
| Auxiliary | 1 | slack-cli-expert |
|
|
178
178
|
| **Total** | **48** | |
|
|
179
179
|
|
|
180
180
|
## Agent Teams (MUST when enabled)
|
package/templates/CLAUDE.md.ko
CHANGED
|
@@ -107,6 +107,7 @@ oh-my-customcodex로 구동됩니다.
|
|
|
107
107
|
| `/memory-save` | 세션 컨텍스트를 omx-memory에 저장 |
|
|
108
108
|
| `/memory-recall` | 메모리 검색 및 리콜 |
|
|
109
109
|
| `/omcodex:monitoring-setup` | OTel 콘솔 모니터링 활성화/비활성화 |
|
|
110
|
+
| `/token-efficiency-audit` | 토큰 효율 설정 감사 및 조정 |
|
|
110
111
|
| `/omcodex:npm-publish` | npm 레지스트리에 패키지 배포 |
|
|
111
112
|
| `/omcodex:npm-version` | 시맨틱 버전 관리 |
|
|
112
113
|
| `/omcodex:npm-audit` | 의존성 감사 |
|
|
@@ -130,7 +131,7 @@ project/
|
|
|
130
131
|
+-- AGENTS.md # 진입점
|
|
131
132
|
+-- .codex/
|
|
132
133
|
| +-- agents/ # 서브에이전트 정의 (48 파일)
|
|
133
|
-
| +-- skills/ # 스킬 (
|
|
134
|
+
| +-- skills/ # 스킬 (108 디렉토리)
|
|
134
135
|
| +-- rules/ # 전역 규칙 (22 파일)
|
|
135
136
|
| +-- hooks/ # 훅 스크립트 (보안, 검증, HUD)
|
|
136
137
|
| +-- contexts/ # 컨텍스트 파일 (4 파일)
|
|
@@ -174,7 +175,6 @@ project/
|
|
|
174
175
|
| QA Team | 3 | qa-planner, qa-writer, qa-engineer |
|
|
175
176
|
| Manager | 6 | mgr-creator, mgr-updater, mgr-supplier, mgr-gitnerd, mgr-sauron, mgr-claude-code-bible |
|
|
176
177
|
| System | 3 | sys-memory-keeper, sys-naggy, wiki-curator |
|
|
177
|
-
| 보조 | 1 | slack-cli-expert |
|
|
178
178
|
| **총계** | **48** | |
|
|
179
179
|
|
|
180
180
|
## Agent Teams (MUST when enabled)
|
|
@@ -61,6 +61,15 @@ These two components solve different problems and can run simultaneously:
|
|
|
61
61
|
|
|
62
62
|
**No conflict** — Token Guardian fires on idle time, R013 fires on context percentage. Both warnings are useful.
|
|
63
63
|
|
|
64
|
+
## Layer 3 Cross-Reference
|
|
65
|
+
|
|
66
|
+
`cc-token-saver` is Layer 1 of the token-efficiency stack. For settings-level optimization before the session starts, use `/token-efficiency-audit`.
|
|
67
|
+
|
|
68
|
+
See also:
|
|
69
|
+
|
|
70
|
+
- `guides/claude-code/14-token-efficiency.md`
|
|
71
|
+
- `/token-efficiency-audit audit`
|
|
72
|
+
|
|
64
73
|
## Usage Scenarios
|
|
65
74
|
|
|
66
75
|
### `/continue` — Zero-cost context restore
|
|
@@ -149,3 +149,4 @@ claude auto-mode critique # Review auto mode decisions
|
|
|
149
149
|
- [Monitoring Guide](10-monitoring.md) — OTel metrics and events
|
|
150
150
|
- [Sub-agents Guide](11-sub-agents.md) — Agent spawning and coordination
|
|
151
151
|
- [Workflow Patterns](12-workflow-patterns.md) — Workflow automation
|
|
152
|
+
- [Token Efficiency Layers](14-token-efficiency.md) — plugin/runtime/settings optimization stack
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
# Token Efficiency Layers
|
|
2
|
+
|
|
3
|
+
Token efficiency in oh-my-customcodex has three layers. They solve different problems and should not be mixed together blindly.
|
|
4
|
+
|
|
5
|
+
## Layer 1: Plugin-Level Protection
|
|
6
|
+
|
|
7
|
+
Use `cc-token-saver` when you want cache- and resume-oriented protection:
|
|
8
|
+
|
|
9
|
+
- Token Guardian for prompt-cache expiry awareness
|
|
10
|
+
- `/continue` for low-cost session resumption
|
|
11
|
+
- usage dashboards and rate-limit reporting
|
|
12
|
+
|
|
13
|
+
This layer is documented in `guides/cc-token-saver/README.md`.
|
|
14
|
+
|
|
15
|
+
## Layer 2: Runtime Compression
|
|
16
|
+
|
|
17
|
+
Use R013 ecomode and existing runtime guards when you want to compress active-session behavior:
|
|
18
|
+
|
|
19
|
+
- shorter outputs
|
|
20
|
+
- tighter budget awareness
|
|
21
|
+
- safer handling of long-running, batch, or parallel tasks
|
|
22
|
+
|
|
23
|
+
This layer changes how the session behaves while work is running.
|
|
24
|
+
|
|
25
|
+
## Layer 3: Settings-Level Optimization
|
|
26
|
+
|
|
27
|
+
Use `/token-efficiency-audit` when you want configuration-level changes before the session burns tokens.
|
|
28
|
+
|
|
29
|
+
Typical settings-level levers:
|
|
30
|
+
|
|
31
|
+
### Claude-side
|
|
32
|
+
|
|
33
|
+
- `includeGitInstructions`
|
|
34
|
+
- `autoConnectIde`
|
|
35
|
+
- output ceilings such as `BASH_MAX_OUTPUT_LENGTH`
|
|
36
|
+
- file-read / MCP output token caps
|
|
37
|
+
|
|
38
|
+
### Codex-side
|
|
39
|
+
|
|
40
|
+
- `features.apps`
|
|
41
|
+
- `web_search`
|
|
42
|
+
- `tool_output_token_limit`
|
|
43
|
+
|
|
44
|
+
### CI / Worker-only
|
|
45
|
+
|
|
46
|
+
- disable convenience features that are useful for humans but wasteful in headless runs
|
|
47
|
+
- apply stronger output ceilings than interactive defaults
|
|
48
|
+
|
|
49
|
+
## Recommended Usage
|
|
50
|
+
|
|
51
|
+
| Goal | Best layer |
|
|
52
|
+
|------|------------|
|
|
53
|
+
| Protect cache value across pauses | Layer 1 |
|
|
54
|
+
| Compress runtime behavior in large sessions | Layer 2 |
|
|
55
|
+
| Reduce baseline token spend from configuration | Layer 3 |
|
|
56
|
+
|
|
57
|
+
Use layers together, but keep responsibilities separate:
|
|
58
|
+
|
|
59
|
+
- plugin layer for cache and resume
|
|
60
|
+
- runtime layer for in-session behavior
|
|
61
|
+
- settings layer for pre-session defaults
|
|
62
|
+
|
|
63
|
+
## Tradeoffs
|
|
64
|
+
|
|
65
|
+
| Lever | Benefit | Risk |
|
|
66
|
+
|-------|---------|------|
|
|
67
|
+
| lower output limits | prevents runaway logs | too low causes repeated reruns and extra token spend |
|
|
68
|
+
| disable auto-connect / extra surfaces | less idle context and less noise | may remove convenience features users expect |
|
|
69
|
+
| aggressive CI-only flags | efficient headless execution | can weaken local interactive ergonomics if applied too broadly |
|
|
70
|
+
|
|
71
|
+
## Rule of Thumb
|
|
72
|
+
|
|
73
|
+
Start with `audit`, then apply only the smallest reversible setting changes that address your dominant cost source.
|
package/templates/manifest.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.1.
|
|
3
|
-
"lastUpdated": "2026-04-
|
|
2
|
+
"version": "0.1.7",
|
|
3
|
+
"lastUpdated": "2026-04-19T08:21:30.000Z",
|
|
4
4
|
"components": [
|
|
5
5
|
{
|
|
6
6
|
"name": "rules",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"name": "skills",
|
|
19
19
|
"path": ".codex/skills",
|
|
20
20
|
"description": "Reusable skill modules (includes slash commands)",
|
|
21
|
-
"files":
|
|
21
|
+
"files": 108
|
|
22
22
|
},
|
|
23
23
|
{
|
|
24
24
|
"name": "guides",
|