claude-nexus 0.26.2 → 0.26.4
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/.claude-plugin/marketplace.json +1 -1
- package/.claude-plugin/plugin.json +1 -1
- package/VERSION +1 -1
- package/hooks/hooks.json +32 -0
- package/package.json +2 -2
- package/skills/nx-init/SKILL.md +20 -16
- package/skills/nx-plan/SKILL.md +3 -3
- package/skills/nx-run/SKILL.md +3 -3
- package/skills/nx-sync/SKILL.md +1 -2
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.26.
|
|
1
|
+
0.26.4
|
package/hooks/hooks.json
CHANGED
|
@@ -79,6 +79,38 @@
|
|
|
79
79
|
]
|
|
80
80
|
}
|
|
81
81
|
],
|
|
82
|
+
"PostToolUse": [
|
|
83
|
+
{
|
|
84
|
+
"matcher": "Edit",
|
|
85
|
+
"hooks": [
|
|
86
|
+
{
|
|
87
|
+
"type": "command",
|
|
88
|
+
"command": "node \"$CLAUDE_PLUGIN_ROOT\"/scripts/gate.cjs",
|
|
89
|
+
"timeout": 5
|
|
90
|
+
}
|
|
91
|
+
]
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"matcher": "Write",
|
|
95
|
+
"hooks": [
|
|
96
|
+
{
|
|
97
|
+
"type": "command",
|
|
98
|
+
"command": "node \"$CLAUDE_PLUGIN_ROOT\"/scripts/gate.cjs",
|
|
99
|
+
"timeout": 5
|
|
100
|
+
}
|
|
101
|
+
]
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"matcher": "NotebookEdit",
|
|
105
|
+
"hooks": [
|
|
106
|
+
{
|
|
107
|
+
"type": "command",
|
|
108
|
+
"command": "node \"$CLAUDE_PLUGIN_ROOT\"/scripts/gate.cjs",
|
|
109
|
+
"timeout": 5
|
|
110
|
+
}
|
|
111
|
+
]
|
|
112
|
+
}
|
|
113
|
+
],
|
|
82
114
|
"Stop": [
|
|
83
115
|
{
|
|
84
116
|
"matcher": "*",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "claude-nexus",
|
|
3
|
-
"version": "0.26.
|
|
3
|
+
"version": "0.26.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Agent orchestration plugin for Claude Code — optimized context injection per role",
|
|
6
6
|
"author": "kih",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"@types/node": "^25.5.0",
|
|
40
40
|
"esbuild": "^0.25.0",
|
|
41
41
|
"typescript": "^5.8.0",
|
|
42
|
-
"@moreih29/nexus-core": "^0.
|
|
42
|
+
"@moreih29/nexus-core": "^0.9.0",
|
|
43
43
|
"yaml": "^2"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
package/skills/nx-init/SKILL.md
CHANGED
|
@@ -24,9 +24,9 @@ Scans the project and builds Nexus knowledge in the flat .nexus/ structure. On f
|
|
|
24
24
|
|
|
25
25
|
## Trigger
|
|
26
26
|
|
|
27
|
-
-
|
|
28
|
-
-
|
|
29
|
-
-
|
|
27
|
+
- Manual trigger — full onboarding (or resume). See harness docs: slash_command_display.
|
|
28
|
+
- Manual trigger with `--reset` flag — back up existing `.nexus/` knowledge and re-onboard. See harness docs: slash_command_display.
|
|
29
|
+
- Manual trigger with `--reset --cleanup` flags — show backup list + selective deletion. See harness docs: slash_command_display.
|
|
30
30
|
|
|
31
31
|
---
|
|
32
32
|
|
|
@@ -59,9 +59,7 @@ Show backup directory list, let user select backups to delete.
|
|
|
59
59
|
```
|
|
60
60
|
IF --reset --cleanup flag:
|
|
61
61
|
Show list of .nexus/bak.*/ directories
|
|
62
|
-
Prompt user with options (
|
|
63
|
-
question: "Select a backup to delete (or cancel)"
|
|
64
|
-
options: [...backup list..., { label: "Cancel", description: "Exit without changes" }]
|
|
62
|
+
Prompt user with options via `AskUserQuestion({ question: "Select a backup to delete (or cancel)", options: [<backup list...>, {label: Cancel, description: "Exit without changes"}] })`.
|
|
65
63
|
Delete selected backup and exit
|
|
66
64
|
|
|
67
65
|
ELSE IF --reset flag:
|
|
@@ -170,15 +168,7 @@ On completion: "context knowledge N files generated"
|
|
|
170
168
|
Check whether team custom rules are needed.
|
|
171
169
|
|
|
172
170
|
```
|
|
173
|
-
|
|
174
|
-
questions: [{
|
|
175
|
-
question: "Do you want to set up development rules now?",
|
|
176
|
-
options: [
|
|
177
|
-
{ label: "Set up", description: "Coding conventions, test policy, commit rules, etc." },
|
|
178
|
-
{ label: "Skip", description: "Can be added later via [rule] tag" }
|
|
179
|
-
]
|
|
180
|
-
}]
|
|
181
|
-
})
|
|
171
|
+
AskUserQuestion({ question: "Do you want to set up development rules now?", options: [{label: "Set up", description: "Coding conventions, test policy, commit rules, etc."}, {label: Skip, description: "Can be added later via [rule] tag"}] })
|
|
182
172
|
```
|
|
183
173
|
|
|
184
174
|
If "Set up": present a draft based on scan results → user confirms → save via the harness's file-creation primitive to `.nexus/rules/{topic}.md`.
|
|
@@ -200,7 +190,7 @@ Output a summary of the onboarding results.
|
|
|
200
190
|
### Next Steps
|
|
201
191
|
- [plan] — research, analyze, and plan before execution
|
|
202
192
|
- [run] — execute from a plan
|
|
203
|
-
-
|
|
193
|
+
- Manual re-run trigger with `--reset` flag — re-run onboarding (existing knowledge will be backed up). See harness docs: slash_command_display.
|
|
204
194
|
```
|
|
205
195
|
|
|
206
196
|
|
|
@@ -212,3 +202,17 @@ The "instruction file" in Claude Code is **CLAUDE.md** at the project root.
|
|
|
212
202
|
- Project-specific content goes inside `<!-- PROJECT:START -->` / `<!-- PROJECT:END -->` markers.
|
|
213
203
|
- The Nexus agent orchestration section is auto-managed inside `<!-- NEXUS:START -->` / `<!-- NEXUS:END -->` markers — do not edit manually.
|
|
214
204
|
- If CLAUDE.md does not exist, create it with the PROJECT markers.
|
|
205
|
+
|
|
206
|
+
|
|
207
|
+
---
|
|
208
|
+
|
|
209
|
+
### Slash Command Display (Claude Code)
|
|
210
|
+
|
|
211
|
+
Claude Code invokes skills via the `/claude-nexus:<skill-id>` slash form.
|
|
212
|
+
|
|
213
|
+
- Typed by the user in the CLI: `/claude-nexus:nx-init`, `/claude-nexus:nx-setup`
|
|
214
|
+
- Programmatic entry from another skill: `Skill({ skill: "claude-nexus:<skill-id>", args: "<optional>" })`
|
|
215
|
+
- Tag-triggered entry (for skills with a `triggers` entry): the trigger tag (e.g. `[plan]`, `[run]`, `[sync]`) dispatches via gate.ts without requiring the slash form
|
|
216
|
+
- `manual_only: true` skills (e.g. `nx-init`) expose only the slash form — no tag trigger
|
|
217
|
+
|
|
218
|
+
When docs reference a skill to the user, prefer the slash form. When a skill dispatches another skill internally, prefer the `Skill` tool with the `claude-nexus:` prefix.
|
package/skills/nx-plan/SKILL.md
CHANGED
|
@@ -42,7 +42,7 @@ Facilitate structured multi-perspective analysis using subagents to decompose is
|
|
|
42
42
|
|
|
43
43
|
## Auto Mode (`[plan:auto]`)
|
|
44
44
|
|
|
45
|
-
When triggered with `[plan:auto]` or invoked via `Skill({ args: "auto" })`, run the full planning process **without user interaction**:
|
|
45
|
+
When triggered with `[plan:auto]` or invoked via `Skill({ skill: "claude-nexus:nx-plan", args: "auto" })`, run the full planning process **without user interaction**:
|
|
46
46
|
|
|
47
47
|
1. **Research** — spawn researcher+Explore subagents (same as interactive)
|
|
48
48
|
2. **Issue derivation** — Lead identifies issues from research
|
|
@@ -100,8 +100,8 @@ Understand code, core knowledge, and prior decisions before forming a planning a
|
|
|
100
100
|
|
|
101
101
|
| Scenario | Approach |
|
|
102
102
|
|----------|----------|
|
|
103
|
-
| Codebase orientation |
|
|
104
|
-
| External research needed |
|
|
103
|
+
| Codebase orientation | `Agent({ subagent_type: "Explore", prompt: "<file/code search task>" })` for codebase exploration |
|
|
104
|
+
| External research needed | `Agent({ subagent_type: "claude-nexus:researcher", prompt: "<research question>" })` for web search |
|
|
105
105
|
| Both codebase and external | Spawn Explore + Researcher in parallel |
|
|
106
106
|
|
|
107
107
|
- NEVER call `nx_plan_start` before research is complete.
|
package/skills/nx-run/SKILL.md
CHANGED
|
@@ -38,9 +38,9 @@ Execution norm that Lead follows when the user invokes the [run] tag. Composes s
|
|
|
38
38
|
|
|
39
39
|
Register tasks for visual progress tracking (Ctrl+T):
|
|
40
40
|
|
|
41
|
-
- **≤ 10 tasks**: `TaskCreate` per task
|
|
42
|
-
- **> 10 tasks**: group by `plan_issue`, `TaskCreate` per group
|
|
43
|
-
-
|
|
41
|
+
- **≤ 10 tasks**: `TaskCreate({ subject: "<per-task label>" })` per task
|
|
42
|
+
- **> 10 tasks**: group by `plan_issue`, `TaskCreate({ subject: "<group label>" })` per group
|
|
43
|
+
- Update the registered entry via `TaskUpdate({ taskId: <id>, status: "in_progress" })` / `TaskUpdate({ taskId: <id>, status: "completed" })` as execution proceeds
|
|
44
44
|
- **Skip only if**: non-TTY environment (VSCode, headless)
|
|
45
45
|
- **Known issue**: TUI may freeze during auto-compact (#27919) — task data on disk remains correct
|
|
46
46
|
|
package/skills/nx-sync/SKILL.md
CHANGED
|
@@ -51,8 +51,7 @@ Only update files where a concrete change is detected. If no staleness is found,
|
|
|
51
51
|
Spawn Writer agent to update affected context documents:
|
|
52
52
|
|
|
53
53
|
```
|
|
54
|
-
Agent({ subagent_type: "claude-nexus:writer", name: "writer-sync-context",
|
|
55
|
-
prompt: "Update .nexus/context/ documents based on the following changes. Read current files with the harness's file-reading primitive, then write updates with the harness's file-creation primitive. Changes: {change_manifest}" })
|
|
54
|
+
Agent({ subagent_type: "claude-nexus:writer", name: "writer-sync-context", prompt: "Update .nexus/context/ documents based on the following changes. Read current files with the harness's file-reading primitive, then write updates with the harness's file-creation primitive. Changes: {change_manifest}" })
|
|
56
55
|
```
|
|
57
56
|
|
|
58
57
|
The Writer agent:
|