@nemus-cli/nemus 0.2.4 → 0.2.5
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/CHANGELOG.md +24 -1
- package/dist/cli/ai-prompt.js +1 -1
- package/dist/cli/tui.js +1 -1
- package/dist/commands/configure.js +1 -1
- package/dist/commands/ghq-status.js +1 -1
- package/dist/mcp/install.js +12 -12
- package/dist/mcp/server.js +2 -2
- package/dist/pi-extensions/permission-sync.ts.template +1 -1
- package/dist/pi-extensions/permissions-gate.ts.template +1 -1
- package/dist/pi-extensions/pr-fix-trigger.ts.template +2 -2
- package/dist/pi-extensions/review-reminder.ts.template +1 -1
- package/dist/pi-extensions/workspace-input-status.ts.template +3 -3
- package/dist/scripts/workspace-table.py +3 -3
- package/dist/utils/agent-state.js +1 -1
- package/dist/utils/bug-report.js +3 -3
- package/dist/utils/claude-integration.js +8 -8
- package/dist/utils/permission-sync.js +10 -10
- package/dist/utils/pi-extensions.js +5 -5
- package/package.json +1 -1
- package/skills/analyze-deps.md +0 -3
- package/skills/branch-create.md +0 -3
- package/skills/create-workspace.md +0 -11
- package/skills/delete-workspace.md +0 -3
- package/skills/list-org-repos.md +0 -6
- package/skills/list-suites.md +0 -4
- package/skills/list-workspaces.md +0 -7
- package/skills/nemus/SKILL.md +110 -0
- package/skills/{workspace-manager → nemus}/references/ai-prompt.md +0 -6
- package/skills/{workspace-manager → nemus}/references/analyze-deps.md +0 -11
- package/skills/{workspace-manager → nemus}/references/archive-workspace.md +0 -9
- package/skills/{workspace-manager → nemus}/references/branch-create.md +0 -3
- package/skills/{workspace-manager → nemus}/references/branch-merge.md +0 -4
- package/skills/{workspace-manager → nemus}/references/branch-rebase.md +0 -4
- package/skills/{workspace-manager → nemus}/references/cache-clear.md +0 -3
- package/skills/{workspace-manager → nemus}/references/cache-info.md +0 -3
- package/skills/{workspace-manager → nemus}/references/configure-claude.md +0 -3
- package/skills/{workspace-manager → nemus}/references/configure.md +1 -4
- package/skills/{workspace-manager → nemus}/references/create-workspace.md +0 -4
- package/skills/{workspace-manager → nemus}/references/dashboard.md +0 -4
- package/skills/{workspace-manager → nemus}/references/delete-workspace.md +0 -4
- package/skills/{workspace-manager → nemus}/references/generate-docs.md +0 -9
- package/skills/{workspace-manager → nemus}/references/ghq-status.md +0 -5
- package/skills/{workspace-manager → nemus}/references/go.md +0 -4
- package/skills/{workspace-manager → nemus}/references/history.md +1 -5
- package/skills/{workspace-manager → nemus}/references/list-org-repos.md +0 -4
- package/skills/{workspace-manager → nemus}/references/list-suites.md +0 -4
- package/skills/{workspace-manager → nemus}/references/list-workspaces.md +1 -5
- package/skills/{workspace-manager → nemus}/references/mcp.md +3 -8
- package/skills/{workspace-manager → nemus}/references/remove-repo.md +0 -3
- package/skills/{workspace-manager → nemus}/references/run-command.md +1 -5
- package/skills/{workspace-manager → nemus}/references/search-repos.md +0 -4
- package/skills/{workspace-manager → nemus}/references/sessions.md +0 -5
- package/skills/{workspace-manager → nemus}/references/suite-create.md +0 -4
- package/skills/{workspace-manager → nemus}/references/suite-delete.md +0 -3
- package/skills/{workspace-manager → nemus}/references/suite-export.md +0 -4
- package/skills/{workspace-manager → nemus}/references/suite-import.md +0 -4
- package/skills/{workspace-manager → nemus}/references/suite-use.md +0 -4
- package/skills/{workspace-manager → nemus}/references/switch-branch.md +0 -4
- package/skills/{workspace-manager → nemus}/references/update-cache.md +0 -3
- package/skills/{workspace-manager → nemus}/references/update-workspace.md +0 -4
- package/skills/{workspace-manager → nemus}/references/workspace-cleanup.md +0 -4
- package/skills/{workspace-manager → nemus}/references/workspace-diff.md +0 -3
- package/skills/{workspace-manager → nemus}/references/workspace-doctor.md +0 -4
- package/skills/{workspace-manager → nemus}/references/workspace-info.md +0 -3
- package/skills/{workspace-manager → nemus}/references/workspace-status.md +1 -13
- package/skills/{workspace-manager → nemus}/references/workspace-sync.md +0 -4
- package/skills/refresh-workspace-docs.md +6 -78
- package/skills/run-command.md +0 -3
- package/skills/save-context.md +1 -13
- package/skills/search-repos.md +0 -6
- package/skills/snapshot-list.md +0 -3
- package/skills/snapshot-save.md +1 -1
- package/skills/switch-branch.md +0 -3
- package/skills/update-workspace.md +0 -11
- package/skills/workspace-cleanup.md +0 -3
- package/skills/workspace-diff.md +0 -3
- package/skills/workspace-doctor.md +0 -3
- package/skills/workspace-info.md +0 -17
- package/skills/workspace-status.md +0 -6
- package/skills/workspace-sync.md +0 -3
- package/src/cli/ai-prompt.ts +1 -1
- package/src/cli/tui.tsx +1 -1
- package/src/commands/configure.ts +1 -1
- package/src/commands/ghq-status.ts +1 -1
- package/src/mcp/install.ts +12 -12
- package/src/mcp/server.ts +2 -2
- package/src/pi-extensions/permission-sync.ts.template +1 -1
- package/src/pi-extensions/permissions-gate.ts.template +1 -1
- package/src/pi-extensions/pr-fix-trigger.ts.template +2 -2
- package/src/pi-extensions/review-reminder.ts.template +1 -1
- package/src/pi-extensions/workspace-input-status.ts.template +3 -3
- package/src/scripts/workspace-table.py +3 -3
- package/src/utils/agent-state.ts +1 -1
- package/src/utils/bug-report.ts +3 -3
- package/src/utils/claude-integration.ts +8 -8
- package/src/utils/permission-sync.test.ts +4 -4
- package/src/utils/permission-sync.ts +10 -10
- package/src/utils/pi-extensions.test.ts +1 -1
- package/src/utils/pi-extensions.ts +5 -5
- package/src/utils/repo-resolver.test.ts +1 -1
- package/skills/workspace-manager/SKILL.md +0 -201
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: nemus
|
|
3
|
+
description: Manage multi-repo development workspaces — create, sync, branch, diff, clone, archive, analyze dependencies, run commands across repos, check status, clean up, delete, list org repos, search repos, list suites, remove repo, cache, suite management, sessions, history, generate docs, configure, MCP server, AI prompt. Use when working with workspaces, repos, branches, git operations across multiple repos, or the `nemus` CLI tool. NEVER use `git clone` directly — always use `nemus update` to add repos and `nemus create` to create workspaces.
|
|
4
|
+
bashPattern: "\\bnemus\\s+(create|list|update|delete|sync|status|diff|run|go|doctor|analyze-deps|history|cleanup|remove-repo|archive|sessions|generate-docs|configure|configure-claude|ghq-status|tui|dashboard|dash|branch|suite|cache|mcp|--)\\b"
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Nemus
|
|
8
|
+
|
|
9
|
+
Manage multi-repo workspaces with the `nemus` CLI (alias `nem`). Every command has `--help`.
|
|
10
|
+
|
|
11
|
+
> **Rules — do not break these:**
|
|
12
|
+
> - **Never** `git clone` to add a repo or create a workspace — use `nemus create` / `nemus update`. Direct git bypasses workspace metadata and breaks `nemus status`/`sync`.
|
|
13
|
+
> - **Never** `git worktree` for a second checkout — worktrees are invisible to `nemus`. Add another instance with `nemus update --repos <repo>:<suffix>` (clones into `<repo>-<suffix>`, tracked independently).
|
|
14
|
+
> - **Only read code from repos in the CURRENT workspace.** Need another repo? Add it with `nemus update --repos <repo>` and read it here — never read from another workspace or a global clone path (they may be stale/on other branches).
|
|
15
|
+
|
|
16
|
+
## Usage
|
|
17
|
+
|
|
18
|
+
Commands are options-first with an interactive fallback: pass flags to run non-interactively; omit them (with a TTY) to be prompted. `--yes`/`-y` skips confirmations and the post-create agent launch.
|
|
19
|
+
|
|
20
|
+
```bash
|
|
21
|
+
nemus create --workspace payments --repos partnerships-api,payments-db --yes # non-interactive
|
|
22
|
+
nemus create # fully interactive
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
Global flags: `-f/--force-refresh` (skip repo cache), `-y/--yes` (skip prompts), `-V/--version`, `-h/--help`.
|
|
26
|
+
|
|
27
|
+
## Command Reference
|
|
28
|
+
|
|
29
|
+
### Core Workspace Lifecycle
|
|
30
|
+
|
|
31
|
+
| Intent | Reference | CLI | Alias |
|
|
32
|
+
|---|---|---|---|
|
|
33
|
+
| Create new workspace | [create-workspace](references/create-workspace.md) | `nemus create` | `c` |
|
|
34
|
+
| Add repos to workspace | [update-workspace](references/update-workspace.md) | `nemus update` | `u` |
|
|
35
|
+
| Delete workspace permanently | [delete-workspace](references/delete-workspace.md) | `nemus delete` | `d` |
|
|
36
|
+
| Archive / unarchive workspace | [archive-workspace](references/archive-workspace.md) | `nemus archive` | `a` |
|
|
37
|
+
| List all workspaces | [list-workspaces](references/list-workspaces.md) | `nemus list` | `l` |
|
|
38
|
+
| Navigate to workspace | [go](references/go.md) | `nemus go [name]` | — |
|
|
39
|
+
|
|
40
|
+
### Status & Operations
|
|
41
|
+
|
|
42
|
+
| Intent | Reference | CLI | Alias |
|
|
43
|
+
|---|---|---|---|
|
|
44
|
+
| Git status across repos | [workspace-status](references/workspace-status.md) | `nemus status [name]` | `st` |
|
|
45
|
+
| Pull latest (git sync) | [workspace-sync](references/workspace-sync.md) | `nemus sync [name]` | `s` |
|
|
46
|
+
| Show diff summary | [workspace-diff](references/workspace-diff.md) | `nemus diff [name]` | `di` |
|
|
47
|
+
| Run shell command across repos | [run-command](references/run-command.md) | `nemus run [name] <cmd>` | `r` |
|
|
48
|
+
| Health check | [workspace-doctor](references/workspace-doctor.md) | `nemus doctor [name]` | `doc` |
|
|
49
|
+
| Clean node_modules / artifacts | [workspace-cleanup](references/workspace-cleanup.md) | `nemus cleanup <name>` | `cl` |
|
|
50
|
+
| Remove repo from workspace | [remove-repo](references/remove-repo.md) | `nemus remove-repo` | `rr` |
|
|
51
|
+
| Analyze inter-repo deps | [analyze-deps](references/analyze-deps.md) | `nemus analyze-deps [name]` | `ad` |
|
|
52
|
+
| Generate docs for workspace | [generate-docs](references/generate-docs.md) | `nemus generate-docs [name]` | `gd` |
|
|
53
|
+
|
|
54
|
+
### Branch Management
|
|
55
|
+
|
|
56
|
+
| Intent | Reference | CLI |
|
|
57
|
+
|---|---|---|
|
|
58
|
+
| Switch branch across repos | [switch-branch](references/switch-branch.md) | `nemus branch switch` |
|
|
59
|
+
| Create branch across repos | [branch-create](references/branch-create.md) | `nemus branch create` |
|
|
60
|
+
| Merge branches across repos | [branch-merge](references/branch-merge.md) | `nemus branch merge <ws> <src> <tgt>` |
|
|
61
|
+
| Rebase branches across repos | [branch-rebase](references/branch-rebase.md) | `nemus branch rebase <ws> <base>` |
|
|
62
|
+
|
|
63
|
+
### Suites (Reusable Repo Collections)
|
|
64
|
+
|
|
65
|
+
| Intent | Reference | CLI |
|
|
66
|
+
|---|---|---|
|
|
67
|
+
| List saved suites | [list-suites](references/list-suites.md) | `nemus suite list` |
|
|
68
|
+
| Create a suite | [suite-create](references/suite-create.md) | `nemus suite create` |
|
|
69
|
+
| Delete a suite | [suite-delete](references/suite-delete.md) | `nemus suite delete` |
|
|
70
|
+
| Export suite(s) to JSON | [suite-export](references/suite-export.md) | `nemus suite export [file]` |
|
|
71
|
+
| Import suite(s) from JSON | [suite-import](references/suite-import.md) | `nemus suite import <file>` |
|
|
72
|
+
| Create workspace from suite | [suite-use](references/suite-use.md) | `nemus suite use` |
|
|
73
|
+
|
|
74
|
+
### Cache & Repo Discovery
|
|
75
|
+
|
|
76
|
+
| Intent | Reference | CLI |
|
|
77
|
+
|---|---|---|
|
|
78
|
+
| Search org repos | [search-repos](references/search-repos.md) | `nemus cache search <query>` |
|
|
79
|
+
| List all org repos | [list-org-repos](references/list-org-repos.md) | `nemus cache list` |
|
|
80
|
+
| View cache statistics | [cache-info](references/cache-info.md) | `nemus cache info` |
|
|
81
|
+
| Refresh repo cache | [update-cache](references/update-cache.md) | `nemus cache refresh` |
|
|
82
|
+
| Clear cache | [cache-clear](references/cache-clear.md) | `nemus cache clear` |
|
|
83
|
+
|
|
84
|
+
### Sessions & History
|
|
85
|
+
|
|
86
|
+
| Intent | Reference | CLI | Alias |
|
|
87
|
+
|---|---|---|---|
|
|
88
|
+
| Resume Claude session | [sessions](references/sessions.md) | `nemus sessions` | `ses` |
|
|
89
|
+
| Agent management dashboard | [dashboard](references/dashboard.md) | `nemus dashboard` | `dash` |
|
|
90
|
+
| View operation history | [history](references/history.md) | `nemus history` | `h` |
|
|
91
|
+
|
|
92
|
+
### Configuration & MCP
|
|
93
|
+
|
|
94
|
+
| Intent | Reference | CLI |
|
|
95
|
+
|---|---|---|
|
|
96
|
+
| Configure Nemus | [configure](references/configure.md) | `nemus configure` |
|
|
97
|
+
| Configure Claude integration | [configure-claude](references/configure-claude.md) | `nemus configure-claude` |
|
|
98
|
+
| Check ghq status | [ghq-status](references/ghq-status.md) | `nemus ghq-status` |
|
|
99
|
+
| Install / manage MCP server | [mcp](references/mcp.md) | `nemus mcp install\|status\|upgrade\|uninstall` |
|
|
100
|
+
|
|
101
|
+
### AI Assistant & TUI
|
|
102
|
+
|
|
103
|
+
| Intent | Reference | CLI |
|
|
104
|
+
|---|---|---|
|
|
105
|
+
| Natural-language workspace management | [ai-prompt](references/ai-prompt.md) | `nemus -- <prompt>` |
|
|
106
|
+
| Full interactive terminal UI | — | `nemus tui` |
|
|
107
|
+
|
|
108
|
+
## Routing
|
|
109
|
+
|
|
110
|
+
Match the user's intent to a row above and read that reference before running commands. If no reference exists, use `nemus <command> --help`. All repo management must go through `nemus` so metadata and context files stay in sync.
|
|
@@ -32,12 +32,6 @@ nemus -- "Set up a workspace for the billing migration"
|
|
|
32
32
|
- Claude Code CLI must be installed (`claude` command available)
|
|
33
33
|
- MCP server should be installed (`nemus mcp install`)
|
|
34
34
|
|
|
35
|
-
## When to Suggest
|
|
36
|
-
|
|
37
|
-
- User wants to manage workspaces conversationally
|
|
38
|
-
- User describes a complex workspace setup in natural language
|
|
39
|
-
- User is new to the CLI and prefers natural language
|
|
40
|
-
|
|
41
35
|
## Notes
|
|
42
36
|
|
|
43
37
|
- The shell integration treats `nemus --` as a create-like command — if a workspace is created, it auto-CDs into it.
|
|
@@ -32,14 +32,3 @@ nemus analyze-deps
|
|
|
32
32
|
- **Mermaid diagram** — visual dependency graph
|
|
33
33
|
- Optionally saves analysis to workspace metadata
|
|
34
34
|
|
|
35
|
-
## Suggested Follow-ups
|
|
36
|
-
|
|
37
|
-
- Missing dependencies: `nemus update --workspace <name> --repos <missing>` to add them
|
|
38
|
-
- Circular dependencies: explain resolution strategies
|
|
39
|
-
- For documentation: `nemus generate-docs <name>` to include the dependency graph
|
|
40
|
-
|
|
41
|
-
## Success Criteria
|
|
42
|
-
|
|
43
|
-
- Dependency analysis is presented with per-repo dependency lists.
|
|
44
|
-
- Circular dependencies are highlighted if detected.
|
|
45
|
-
- Missing repos are identified.
|
|
@@ -27,12 +27,3 @@ nemus list --archived
|
|
|
27
27
|
| `--yes` | `-y` | Skip confirmation prompt |
|
|
28
28
|
| `--unarchive` | | Restore instead of archive |
|
|
29
29
|
|
|
30
|
-
## When to Suggest
|
|
31
|
-
|
|
32
|
-
- Suggest archiving instead of deleting when the user may need the workspace later.
|
|
33
|
-
- Suggest unarchiving when the user asks about a workspace that was recently archived.
|
|
34
|
-
|
|
35
|
-
## Success Criteria
|
|
36
|
-
|
|
37
|
-
- Workspace is hidden from default `nemus list` results.
|
|
38
|
-
- User is aware of the 30-day auto-delete policy.
|
|
@@ -26,6 +26,3 @@ nemus branch create <workspace> <branch-name> --base <base-branch> --force
|
|
|
26
26
|
|
|
27
27
|
After creation, run `nemus status <name>` to verify all repos are on the new branch.
|
|
28
28
|
|
|
29
|
-
## Success Criteria
|
|
30
|
-
|
|
31
|
-
- New branch is created in all repos and per-repo results are reported.
|
|
@@ -16,7 +16,3 @@ Merge a source branch into a target branch across all repositories in a workspac
|
|
|
16
16
|
|
|
17
17
|
3. If there are merge conflicts, suggest the user resolve them manually in the affected repos.
|
|
18
18
|
|
|
19
|
-
## Success Criteria
|
|
20
|
-
|
|
21
|
-
- Merge is attempted in all repos.
|
|
22
|
-
- Results are reported per repo with success/failure status.
|
|
@@ -16,7 +16,3 @@ Rebase all repositories in a workspace onto a target branch.
|
|
|
16
16
|
|
|
17
17
|
3. If there are rebase conflicts, suggest the user resolve them manually in the affected repos.
|
|
18
18
|
|
|
19
|
-
## Success Criteria
|
|
20
|
-
|
|
21
|
-
- Rebase is attempted in all repos.
|
|
22
|
-
- Results are reported per repo with success/failure status.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Configure
|
|
2
2
|
|
|
3
|
-
Configure
|
|
3
|
+
Configure Nemus global settings interactively.
|
|
4
4
|
|
|
5
5
|
## Instructions
|
|
6
6
|
|
|
@@ -30,6 +30,3 @@ w cfg
|
|
|
30
30
|
- Enabling MCP after disabling it triggers an automatic install.
|
|
31
31
|
- This is interactive-only — there are no non-interactive flags.
|
|
32
32
|
|
|
33
|
-
## Success Criteria
|
|
34
|
-
|
|
35
|
-
- User's settings are saved to `~/.nemus/config.json`.
|
|
@@ -39,7 +39,3 @@ nemus create --workspace payments --repos partnerships-api,payments-db --yes
|
|
|
39
39
|
nemus suite use --suite platform --workspace platform-ws --yes
|
|
40
40
|
```
|
|
41
41
|
|
|
42
|
-
## Success Criteria
|
|
43
|
-
|
|
44
|
-
- Workspace directory exists with all requested repos cloned.
|
|
45
|
-
- User is informed of the workspace path and suggested next steps.
|
|
@@ -55,7 +55,3 @@ Opens a tmux session with a sidebar showing active agents and their status. Agen
|
|
|
55
55
|
- Session resume picker (`s`) with fuzzy search
|
|
56
56
|
- Auto-installs Claude hooks on first run
|
|
57
57
|
|
|
58
|
-
## Success Criteria
|
|
59
|
-
|
|
60
|
-
- Tmux dashboard opens with sidebar and agent panes.
|
|
61
|
-
- Agents can be launched, monitored, focused, zoomed, and killed from the dashboard.
|
|
@@ -27,7 +27,3 @@ Permanently delete one or more workspaces and all their cloned repositories.
|
|
|
27
27
|
| `--workspace <name>` | `-w` | Workspace name(s), comma-separated for multiple |
|
|
28
28
|
| `--yes` | `-y` | Skip confirmation prompt |
|
|
29
29
|
|
|
30
|
-
## Success Criteria
|
|
31
|
-
|
|
32
|
-
- Workspace directory and all cloned repos are removed from disk.
|
|
33
|
-
- User received explicit confirmation before deletion (unless `--yes` was passed).
|
|
@@ -25,12 +25,3 @@ Creates these files in the workspace root:
|
|
|
25
25
|
- `DEPENDENCY-GRAPH.md` — Mermaid diagram of inter-repo dependencies
|
|
26
26
|
- `REPOSITORY-INDEX.md` — Detailed index of all repos
|
|
27
27
|
|
|
28
|
-
## When to Suggest
|
|
29
|
-
|
|
30
|
-
- After creating a workspace with many repos
|
|
31
|
-
- When user wants to understand workspace structure
|
|
32
|
-
- When onboarding someone to a multi-repo project
|
|
33
|
-
|
|
34
|
-
## Success Criteria
|
|
35
|
-
|
|
36
|
-
- All three documentation files are generated in the workspace directory.
|
|
@@ -21,8 +21,3 @@ nemus ghq-status
|
|
|
21
21
|
3. **Subsequent clones**: Much faster (local copy vs network clone)
|
|
22
22
|
4. **Isolation**: Each workspace still gets its own independent clone
|
|
23
23
|
|
|
24
|
-
## When to Suggest
|
|
25
|
-
|
|
26
|
-
- User reports slow workspace creation
|
|
27
|
-
- User asks about optimizing clone performance
|
|
28
|
-
- User asks what ghq is or whether to install it
|
|
@@ -27,7 +27,3 @@ The `nemgo` variant also launches Claude Code automatically if a session exists.
|
|
|
27
27
|
2. The shell integration function reads that file and runs `cd`
|
|
28
28
|
3. If the workspace has an existing Claude session, it resumes it
|
|
29
29
|
|
|
30
|
-
## Success Criteria
|
|
31
|
-
|
|
32
|
-
- The terminal's working directory changes to the workspace path.
|
|
33
|
-
- If a Claude session exists, it resumes automatically (with `nemgo`).
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# History
|
|
2
2
|
|
|
3
|
-
View operation history for
|
|
3
|
+
View operation history for Nemus commands.
|
|
4
4
|
|
|
5
5
|
## Instructions
|
|
6
6
|
|
|
@@ -35,7 +35,3 @@ w h # same as nemus history
|
|
|
35
35
|
w h stats # same as nemus history stats
|
|
36
36
|
```
|
|
37
37
|
|
|
38
|
-
## Success Criteria
|
|
39
|
-
|
|
40
|
-
- History records are displayed in a table with timestamp, command, workspace, duration, and status.
|
|
41
|
-
- Stats show meaningful aggregations.
|
|
@@ -20,7 +20,3 @@ List all organization repositories from GitHub.
|
|
|
20
20
|
|
|
21
21
|
3. If the cache is stale, suggest `nemus cache refresh` to update it.
|
|
22
22
|
|
|
23
|
-
## Success Criteria
|
|
24
|
-
|
|
25
|
-
- All org repos are listed, optionally grouped by prefix.
|
|
26
|
-
- User is guided toward `nemus cache search` if the list is too large to browse.
|
|
@@ -15,7 +15,3 @@ To create a workspace from a suite (non-interactive):
|
|
|
15
15
|
nemus suite use --suite <suite-name> --workspace <workspace-name> --yes
|
|
16
16
|
```
|
|
17
17
|
|
|
18
|
-
## Success Criteria
|
|
19
|
-
|
|
20
|
-
- All available suites are listed with their repo counts and descriptions.
|
|
21
|
-
- User is guided toward `nemus suite use` if they want to create a workspace from a suite.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# List Workspaces
|
|
2
2
|
|
|
3
|
-
List all existing workspaces managed by
|
|
3
|
+
List all existing workspaces managed by Nemus.
|
|
4
4
|
|
|
5
5
|
## Instructions
|
|
6
6
|
|
|
@@ -21,7 +21,3 @@ List all existing workspaces managed by workspace-manager.
|
|
|
21
21
|
|
|
22
22
|
3. If no workspaces exist, suggest creating one with `nemus create`.
|
|
23
23
|
|
|
24
|
-
## Success Criteria
|
|
25
|
-
|
|
26
|
-
- All active workspaces are listed with repo count and creation date.
|
|
27
|
-
- Archived workspaces are shown only when explicitly requested.
|
|
@@ -6,7 +6,7 @@ Manage the MCP (Model Context Protocol) server integration with Claude Code.
|
|
|
6
6
|
|
|
7
7
|
### Install
|
|
8
8
|
|
|
9
|
-
Register the
|
|
9
|
+
Register the Nemus MCP server with Claude Code:
|
|
10
10
|
```bash
|
|
11
11
|
nemus mcp install
|
|
12
12
|
```
|
|
@@ -27,7 +27,7 @@ Update hooks and skills without re-registering the MCP server:
|
|
|
27
27
|
nemus mcp upgrade
|
|
28
28
|
```
|
|
29
29
|
|
|
30
|
-
Use after updating the
|
|
30
|
+
Use after updating the Nemus package.
|
|
31
31
|
|
|
32
32
|
### Status
|
|
33
33
|
|
|
@@ -38,12 +38,7 @@ nemus mcp status
|
|
|
38
38
|
|
|
39
39
|
## What MCP Provides
|
|
40
40
|
|
|
41
|
-
When installed, Claude Code gains access to
|
|
41
|
+
When installed, Claude Code gains access to Nemus tools:
|
|
42
42
|
- `create-workspace`, `list-workspaces`, `workspace-status`, etc.
|
|
43
43
|
- Enables natural language workspace management via `nemus -- <prompt>`
|
|
44
44
|
|
|
45
|
-
## When to Suggest
|
|
46
|
-
|
|
47
|
-
- After installing or upgrading workspace-manager
|
|
48
|
-
- When Claude Code doesn't seem to have workspace tools
|
|
49
|
-
- When `nemus -- <prompt>` fails to find MCP tools
|
|
@@ -21,6 +21,3 @@ Remove a repository instance from a workspace.
|
|
|
21
21
|
| `--repos <dir,...>` | `-r` | Comma-separated directory names to remove |
|
|
22
22
|
| `--yes` | `-y` | Skip confirmation prompt |
|
|
23
23
|
|
|
24
|
-
## Success Criteria
|
|
25
|
-
|
|
26
|
-
- The specified repo directory is removed from the workspace after user confirmation.
|
|
@@ -10,7 +10,7 @@ nemus run <workspace> <command>
|
|
|
10
10
|
|
|
11
11
|
Alias:
|
|
12
12
|
```bash
|
|
13
|
-
|
|
13
|
+
nem r <workspace> <command>
|
|
14
14
|
```
|
|
15
15
|
|
|
16
16
|
Without a workspace name, prompts interactively:
|
|
@@ -38,7 +38,3 @@ Shows per-repo results:
|
|
|
38
38
|
|
|
39
39
|
Exits with code 1 if any repo failed.
|
|
40
40
|
|
|
41
|
-
## Success Criteria
|
|
42
|
-
|
|
43
|
-
- Command is executed in all repos and per-repo success/failure is reported.
|
|
44
|
-
- stdout and stderr from each repo are clearly displayed.
|
|
@@ -18,7 +18,3 @@ Search organization repositories by name or description using fuzzy matching.
|
|
|
18
18
|
- `nemus create` to create a new workspace with selected repos
|
|
19
19
|
- `nemus update` to add repos to an existing workspace
|
|
20
20
|
|
|
21
|
-
## Success Criteria
|
|
22
|
-
|
|
23
|
-
- Matching repos are listed with name, description, and URL.
|
|
24
|
-
- Follow-up action (create or update workspace) is suggested if appropriate.
|
|
@@ -20,8 +20,3 @@ w ses
|
|
|
20
20
|
2. Shows them sorted by last active time
|
|
21
21
|
3. User picks one → terminal CDs to that workspace and resumes the Claude session
|
|
22
22
|
|
|
23
|
-
## When to Suggest
|
|
24
|
-
|
|
25
|
-
- User asks to "continue where I left off"
|
|
26
|
-
- User wants to resume work on a previous workspace
|
|
27
|
-
- User asks about their recent Claude sessions
|
|
@@ -16,7 +16,3 @@ Create a new suite (reusable collection of repositories) that can be used to qui
|
|
|
16
16
|
|
|
17
17
|
3. After creation, confirm with the suite name and repo count.
|
|
18
18
|
|
|
19
|
-
## Success Criteria
|
|
20
|
-
|
|
21
|
-
- Suite is saved with the specified name and repos.
|
|
22
|
-
- Suite appears in `nemus suite list`.
|
|
@@ -13,7 +13,3 @@ Export one or all suites to a JSON file for sharing.
|
|
|
13
13
|
|
|
14
14
|
3. Share the exported file with teammates who can import it with `nemus suite import`.
|
|
15
15
|
|
|
16
|
-
## Success Criteria
|
|
17
|
-
|
|
18
|
-
- JSON file is created with suite data.
|
|
19
|
-
- File can be imported with `nemus suite import`.
|
|
@@ -19,7 +19,3 @@ If some repos fail to switch (due to uncommitted changes), suggest:
|
|
|
19
19
|
- Committing or stashing changes first
|
|
20
20
|
- Using `nemus status <name>` to check the state
|
|
21
21
|
|
|
22
|
-
## Success Criteria
|
|
23
|
-
|
|
24
|
-
- All repos without uncommitted changes are switched to the target branch.
|
|
25
|
-
- Repos that failed to switch are clearly reported with the reason.
|
|
@@ -17,6 +17,3 @@ Force refresh the GitHub repository cache so newly added repos become searchable
|
|
|
17
17
|
|
|
18
18
|
3. Suggest using `nemus cache search <query>` or `nemus cache list` to browse the updated list.
|
|
19
19
|
|
|
20
|
-
## Success Criteria
|
|
21
|
-
|
|
22
|
-
- Cache is refreshed and the updated repo count is reported.
|
|
@@ -44,7 +44,3 @@ instance is tracked independently by `nemus status` and `nemus sync` and is labe
|
|
|
44
44
|
> tracked repo — worktrees are invisible to `nemus status`/`nemus sync`. Use
|
|
45
45
|
> `nemus update --repos <repo>:<suffix>` instead.
|
|
46
46
|
|
|
47
|
-
## Success Criteria
|
|
48
|
-
|
|
49
|
-
- All specified repos are cloned into the workspace.
|
|
50
|
-
- User is informed of any repos skipped due to already existing.
|
|
@@ -27,7 +27,3 @@ nemus cleanup <workspace> --git-clean --yes
|
|
|
27
27
|
|
|
28
28
|
Remind the user they'll need to run `npm install` before building again.
|
|
29
29
|
|
|
30
|
-
## Success Criteria
|
|
31
|
-
|
|
32
|
-
- Selected directories are removed and disk space freed is reported.
|
|
33
|
-
- User is reminded to re-run `npm install` before building.
|
|
@@ -22,6 +22,3 @@ Show diff summary (staged/unstaged file counts, insertions, deletions) for all r
|
|
|
22
22
|
|
|
23
23
|
4. If the user wants full diff content, they can pipe through `less` or redirect to a file.
|
|
24
24
|
|
|
25
|
-
## Success Criteria
|
|
26
|
-
|
|
27
|
-
- Per-repo diff summary is presented with file counts and line statistics.
|
|
@@ -21,7 +21,3 @@ Run comprehensive health checks on a workspace and return a health score (0-100)
|
|
|
21
21
|
- `nemus cleanup` for disk space issues
|
|
22
22
|
- `nemus branch create` or `nemus branch switch` for branch inconsistencies
|
|
23
23
|
|
|
24
|
-
## Success Criteria
|
|
25
|
-
|
|
26
|
-
- Health score and per-check results are clearly presented.
|
|
27
|
-
- Actionable remediation steps are provided for any failures or warnings.
|
|
@@ -28,6 +28,3 @@ There is no dedicated `nemus info` CLI command. To get workspace information, co
|
|
|
28
28
|
|
|
29
29
|
The MCP tool `workspace-info` provides detailed metadata programmatically.
|
|
30
30
|
|
|
31
|
-
## Success Criteria
|
|
32
|
-
|
|
33
|
-
- User gets the workspace information they need through the appropriate command.
|
|
@@ -10,7 +10,7 @@ nemus status <workspace>
|
|
|
10
10
|
|
|
11
11
|
Alias:
|
|
12
12
|
```bash
|
|
13
|
-
|
|
13
|
+
nem st <workspace>
|
|
14
14
|
```
|
|
15
15
|
|
|
16
16
|
Without a workspace name, prompts interactively:
|
|
@@ -29,15 +29,3 @@ Displays a table per repository showing:
|
|
|
29
29
|
|
|
30
30
|
Plus a summary: clean repos, dirty repos, needs push, needs pull.
|
|
31
31
|
|
|
32
|
-
## Suggested Follow-ups
|
|
33
|
-
|
|
34
|
-
Based on the results:
|
|
35
|
-
- Uncommitted changes → suggest `nemus diff <name>` to see details
|
|
36
|
-
- Behind remote → suggest `nemus sync <name>` to pull latest
|
|
37
|
-
- Mixed branches → suggest `nemus branch switch` to align
|
|
38
|
-
- Repos ahead of remote → suggest pushing changes
|
|
39
|
-
|
|
40
|
-
## Success Criteria
|
|
41
|
-
|
|
42
|
-
- Per-repo status is displayed in a clear table.
|
|
43
|
-
- Summary highlights any repos needing attention.
|
|
@@ -20,7 +20,3 @@ Report results per repo:
|
|
|
20
20
|
|
|
21
21
|
If some repos were skipped, suggest committing or stashing changes first, then re-run `nemus sync <name>`.
|
|
22
22
|
|
|
23
|
-
## Success Criteria
|
|
24
|
-
|
|
25
|
-
- All clean repos are pulled to latest.
|
|
26
|
-
- User is informed of any skipped repos with uncommitted changes.
|
|
@@ -5,85 +5,13 @@ description: Refresh the per-repo documentation embedded in a workspace's contex
|
|
|
5
5
|
|
|
6
6
|
# Refresh Workspace Docs
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
embedded into the workspace-level context file (`AGENTS.md` / `.claude.md`)
|
|
10
|
-
under the **Per-Repository Context** section. Those embedded copies are a
|
|
11
|
-
snapshot taken at creation time — they do **not** auto-update when the repo
|
|
12
|
-
later receives new commits that change its README or agent docs.
|
|
13
|
-
|
|
14
|
-
This skill refreshes that embedded content so the agent works from the
|
|
15
|
-
latest per-repo guidance.
|
|
16
|
-
|
|
17
|
-
## When to Use
|
|
18
|
-
|
|
19
|
-
- A workspace was created days/weeks ago and the repos have since changed.
|
|
20
|
-
- A repo's `AGENTS.md` / `CLAUDE.md` / `README.md` was updated upstream and
|
|
21
|
-
you want the workspace context to reflect it.
|
|
22
|
-
- The agent seems to be following outdated repo-specific instructions.
|
|
23
|
-
- After a teammate merges changes to a repo's documentation.
|
|
24
|
-
|
|
25
|
-
## Workflow
|
|
26
|
-
|
|
27
|
-
Two steps: **sync the repos to latest**, then **regenerate the context**.
|
|
28
|
-
|
|
29
|
-
### 1. Pull the latest for every repo in the workspace
|
|
30
|
-
|
|
31
|
-
```bash
|
|
32
|
-
nemus sync <workspace-name>
|
|
33
|
-
```
|
|
34
|
-
|
|
35
|
-
This `git pull`s every repo so their on-disk `README.md`, `AGENTS.md`, and
|
|
36
|
-
`CLAUDE.md` reflect the latest upstream content. (Omit the name to sync the
|
|
37
|
-
current workspace.)
|
|
38
|
-
|
|
39
|
-
### 2. Regenerate the workspace context
|
|
40
|
-
|
|
41
|
-
```bash
|
|
42
|
-
w migrate
|
|
43
|
-
```
|
|
44
|
-
|
|
45
|
-
`nemus migrate` re-reads each repo's context files from disk and **surgically
|
|
46
|
-
updates only the `## Per-Repository Context` section** of the workspace
|
|
47
|
-
`AGENTS.md` / `.claude.md`. Your own notes (the `## Notes` section, saved
|
|
48
|
-
`CONTEXT.md`, etc.) are preserved untouched.
|
|
49
|
-
|
|
50
|
-
Preview what would change first with:
|
|
8
|
+
Each repo's `AGENTS.md`/`CLAUDE.md` is embedded into the workspace context file's `## Per-Repository Context` section at creation time — a snapshot that does **not** auto-update. Refresh it in two steps:
|
|
51
9
|
|
|
52
10
|
```bash
|
|
53
|
-
|
|
11
|
+
nemus sync <workspace> # 1. git pull every repo so on-disk docs are current
|
|
12
|
+
nemus migrate # 2. rebuild the Per-Repository Context section from disk
|
|
54
13
|
```
|
|
55
14
|
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
file, discovered in this priority order (per repo, up to 2 directory levels
|
|
60
|
-
deep for monorepo packages):
|
|
61
|
-
|
|
62
|
-
1. `AGENTS.md`
|
|
63
|
-
2. `.claude.md`
|
|
64
|
-
3. `CLAUDE.md`
|
|
65
|
-
|
|
66
|
-
Each repo's content is embedded with imperative scoping ("You MUST follow
|
|
67
|
-
these rules whenever you work with files inside `<repo>/`") and placed near
|
|
68
|
-
the top of the workspace context file so the agent weights it heavily.
|
|
69
|
-
|
|
70
|
-
## Notes
|
|
71
|
-
|
|
72
|
-
- This only refreshes **embedded** per-repo docs in the workspace context
|
|
73
|
-
file. The repos themselves are updated by `nemus sync` in step 1.
|
|
74
|
-
- `nemus migrate` runs across **all** workspaces. That's safe and idempotent —
|
|
75
|
-
every workspace gets its per-repo section refreshed from current on-disk
|
|
76
|
-
content. Use `--dry-run` first if you want to see scope.
|
|
77
|
-
- If a workspace has no repo-level context files, the section is omitted
|
|
78
|
-
(or removed if it previously existed).
|
|
79
|
-
|
|
80
|
-
## Example
|
|
81
|
-
|
|
82
|
-
```bash
|
|
83
|
-
# Workspace 'payments' was created 3 weeks ago; partnerships-api has since
|
|
84
|
-
# rewritten its AGENTS.md with new Jira board instructions.
|
|
85
|
-
|
|
86
|
-
nemus sync payments # pull latest — partnerships-api/AGENTS.md now current
|
|
87
|
-
w migrate --dry-run # preview: "payments: would embed per-repo context from 4 location(s)"
|
|
88
|
-
w migrate # apply — workspace AGENTS.md now has the new instructions
|
|
89
|
-
```
|
|
15
|
+
- Use `nemus migrate --dry-run` first to preview scope.
|
|
16
|
+
- `nemus migrate` runs across **all** workspaces; it's idempotent and only touches the `## Per-Repository Context` section — your `## Notes` and `CONTEXT.md` are preserved.
|
|
17
|
+
- Per repo it embeds the first of `AGENTS.md` → `.claude.md` → `CLAUDE.md` found (up to 2 dir levels deep). If none exist, the section is omitted.
|