@nemus-cli/nemus 0.2.4 → 0.2.6

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.
Files changed (109) hide show
  1. package/CHANGELOG.md +40 -1
  2. package/assets/README.md +5 -0
  3. package/assets/avatar-500.png +0 -0
  4. package/assets/social-preview.png +0 -0
  5. package/dist/cli/ai-prompt.js +1 -1
  6. package/dist/cli/tui.js +1 -1
  7. package/dist/commands/configure.js +1 -1
  8. package/dist/commands/ghq-status.js +1 -1
  9. package/dist/mcp/install.js +12 -12
  10. package/dist/mcp/server.js +2 -2
  11. package/dist/pi-extensions/permission-sync.ts.template +1 -1
  12. package/dist/pi-extensions/permissions-gate.ts.template +1 -1
  13. package/dist/pi-extensions/pr-fix-trigger.ts.template +2 -2
  14. package/dist/pi-extensions/review-reminder.ts.template +1 -1
  15. package/dist/pi-extensions/workspace-input-status.ts.template +3 -3
  16. package/dist/scripts/workspace-table.py +3 -3
  17. package/dist/utils/agent-state.js +1 -1
  18. package/dist/utils/bug-report.js +3 -3
  19. package/dist/utils/claude-integration.js +8 -8
  20. package/dist/utils/permission-sync.js +10 -10
  21. package/dist/utils/pi-extensions.js +5 -5
  22. package/package.json +1 -1
  23. package/skills/analyze-deps.md +0 -10
  24. package/skills/archive-workspace.md +0 -8
  25. package/skills/branch-create.md +0 -10
  26. package/skills/create-workspace.md +0 -20
  27. package/skills/delete-workspace.md +0 -14
  28. package/skills/list-org-repos.md +0 -13
  29. package/skills/list-suites.md +0 -10
  30. package/skills/list-workspaces.md +0 -14
  31. package/skills/nemus/SKILL.md +110 -0
  32. package/skills/{workspace-manager → nemus}/references/ai-prompt.md +0 -14
  33. package/skills/{workspace-manager → nemus}/references/analyze-deps.md +0 -18
  34. package/skills/nemus/references/archive-workspace.md +22 -0
  35. package/skills/{workspace-manager → nemus}/references/branch-create.md +0 -8
  36. package/skills/{workspace-manager → nemus}/references/branch-merge.md +0 -9
  37. package/skills/{workspace-manager → nemus}/references/branch-rebase.md +0 -9
  38. package/skills/{workspace-manager → nemus}/references/cache-clear.md +0 -8
  39. package/skills/{workspace-manager → nemus}/references/cache-info.md +0 -8
  40. package/skills/{workspace-manager → nemus}/references/configure-claude.md +0 -8
  41. package/skills/{workspace-manager → nemus}/references/configure.md +0 -8
  42. package/skills/{workspace-manager → nemus}/references/create-workspace.md +0 -9
  43. package/skills/{workspace-manager → nemus}/references/dashboard.md +0 -15
  44. package/skills/{workspace-manager → nemus}/references/delete-workspace.md +0 -9
  45. package/skills/{workspace-manager → nemus}/references/generate-docs.md +0 -16
  46. package/skills/{workspace-manager → nemus}/references/ghq-status.md +0 -14
  47. package/skills/{workspace-manager → nemus}/references/go.md +0 -11
  48. package/skills/{workspace-manager → nemus}/references/history.md +0 -17
  49. package/skills/{workspace-manager → nemus}/references/list-org-repos.md +0 -9
  50. package/skills/{workspace-manager → nemus}/references/list-suites.md +0 -9
  51. package/skills/{workspace-manager → nemus}/references/list-workspaces.md +0 -9
  52. package/skills/{workspace-manager → nemus}/references/mcp.md +3 -21
  53. package/skills/{workspace-manager → nemus}/references/remove-repo.md +0 -8
  54. package/skills/{workspace-manager → nemus}/references/run-command.md +1 -10
  55. package/skills/{workspace-manager → nemus}/references/search-repos.md +0 -9
  56. package/skills/{workspace-manager → nemus}/references/sessions.md +0 -12
  57. package/skills/{workspace-manager → nemus}/references/suite-create.md +0 -9
  58. package/skills/{workspace-manager → nemus}/references/suite-delete.md +0 -8
  59. package/skills/{workspace-manager → nemus}/references/suite-export.md +0 -9
  60. package/skills/{workspace-manager → nemus}/references/suite-import.md +0 -9
  61. package/skills/{workspace-manager → nemus}/references/suite-use.md +0 -9
  62. package/skills/{workspace-manager → nemus}/references/switch-branch.md +0 -9
  63. package/skills/{workspace-manager → nemus}/references/update-cache.md +0 -8
  64. package/skills/{workspace-manager → nemus}/references/update-workspace.md +0 -11
  65. package/skills/{workspace-manager → nemus}/references/workspace-cleanup.md +0 -9
  66. package/skills/{workspace-manager → nemus}/references/workspace-diff.md +0 -8
  67. package/skills/{workspace-manager → nemus}/references/workspace-doctor.md +0 -9
  68. package/skills/{workspace-manager → nemus}/references/workspace-info.md +0 -8
  69. package/skills/nemus/references/workspace-status.md +26 -0
  70. package/skills/{workspace-manager → nemus}/references/workspace-sync.md +0 -9
  71. package/skills/refresh-workspace-docs.md +5 -81
  72. package/skills/remove-repo.md +0 -8
  73. package/skills/run-command.md +0 -10
  74. package/skills/save-context.md +1 -25
  75. package/skills/search-repos.md +0 -15
  76. package/skills/snapshot-list.md +0 -10
  77. package/skills/snapshot-save.md +0 -4
  78. package/skills/switch-branch.md +0 -10
  79. package/skills/update-cache.md +0 -8
  80. package/skills/update-workspace.md +0 -24
  81. package/skills/workspace-cleanup.md +0 -10
  82. package/skills/workspace-diff.md +0 -10
  83. package/skills/workspace-doctor.md +0 -10
  84. package/skills/workspace-info.md +0 -26
  85. package/skills/workspace-status.md +0 -13
  86. package/skills/workspace-sync.md +0 -10
  87. package/src/cli/ai-prompt.ts +1 -1
  88. package/src/cli/tui.tsx +1 -1
  89. package/src/commands/configure.ts +1 -1
  90. package/src/commands/ghq-status.ts +1 -1
  91. package/src/mcp/install.ts +12 -12
  92. package/src/mcp/server.ts +2 -2
  93. package/src/pi-extensions/permission-sync.ts.template +1 -1
  94. package/src/pi-extensions/permissions-gate.ts.template +1 -1
  95. package/src/pi-extensions/pr-fix-trigger.ts.template +2 -2
  96. package/src/pi-extensions/review-reminder.ts.template +1 -1
  97. package/src/pi-extensions/workspace-input-status.ts.template +3 -3
  98. package/src/scripts/workspace-table.py +3 -3
  99. package/src/utils/agent-state.ts +1 -1
  100. package/src/utils/bug-report.ts +3 -3
  101. package/src/utils/claude-integration.ts +8 -8
  102. package/src/utils/permission-sync.test.ts +4 -4
  103. package/src/utils/permission-sync.ts +10 -10
  104. package/src/utils/pi-extensions.test.ts +1 -1
  105. package/src/utils/pi-extensions.ts +5 -5
  106. package/src/utils/repo-resolver.test.ts +1 -1
  107. package/skills/workspace-manager/SKILL.md +0 -201
  108. package/skills/workspace-manager/references/archive-workspace.md +0 -38
  109. package/skills/workspace-manager/references/workspace-status.md +0 -43
@@ -1,35 +1,23 @@
1
1
  # MCP Server
2
2
 
3
- Manage the MCP (Model Context Protocol) server integration with Claude Code.
4
-
5
- ## Commands
6
-
7
- ### Install
8
-
9
- Register the workspace-manager MCP server with Claude Code:
3
+ Register the Nemus MCP server with Claude Code:
10
4
  ```bash
11
5
  nemus mcp install
12
6
  ```
13
7
 
14
8
  This also installs shell integration, permission sync hooks, and workspace skills.
15
9
 
16
- ### Uninstall
17
-
18
10
  Remove the MCP server registration:
19
11
  ```bash
20
12
  nemus mcp uninstall
21
13
  ```
22
14
 
23
- ### Upgrade
24
-
25
15
  Update hooks and skills without re-registering the MCP server:
26
16
  ```bash
27
17
  nemus mcp upgrade
28
18
  ```
29
19
 
30
- Use after updating the workspace-manager package.
31
-
32
- ### Status
20
+ Use after updating the Nemus package.
33
21
 
34
22
  Check if the MCP server is registered:
35
23
  ```bash
@@ -38,12 +26,6 @@ nemus mcp status
38
26
 
39
27
  ## What MCP Provides
40
28
 
41
- When installed, Claude Code gains access to workspace-manager tools:
29
+ When installed, Claude Code gains access to Nemus tools:
42
30
  - `create-workspace`, `list-workspaces`, `workspace-status`, etc.
43
31
  - Enables natural language workspace management via `nemus -- <prompt>`
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
@@ -1,9 +1,5 @@
1
1
  # Remove Repo
2
2
 
3
- Remove a repository instance from a workspace.
4
-
5
- ## Instructions
6
-
7
3
  1. Warn the user about any uncommitted changes before removing.
8
4
 
9
5
  2. Run the command:
@@ -20,7 +16,3 @@ Remove a repository instance from a workspace.
20
16
  | `--workspace <name>` | `-w` | Target workspace |
21
17
  | `--repos <dir,...>` | `-r` | Comma-separated directory names to remove |
22
18
  | `--yes` | `-y` | Skip confirmation prompt |
23
-
24
- ## Success Criteria
25
-
26
- - The specified repo directory is removed from the workspace after user confirmation.
@@ -1,16 +1,12 @@
1
1
  # Run Command
2
2
 
3
- Run a shell command across all repositories in a workspace (3 concurrent, 5 minute timeout per repo).
4
-
5
- ## Instructions
6
-
7
3
  ```bash
8
4
  nemus run <workspace> <command>
9
5
  ```
10
6
 
11
7
  Alias:
12
8
  ```bash
13
- w r <workspace> <command>
9
+ nem r <workspace> <command>
14
10
  ```
15
11
 
16
12
  Without a workspace name, prompts interactively:
@@ -37,8 +33,3 @@ Shows per-repo results:
37
33
  - Summary count of successes and failures
38
34
 
39
35
  Exits with code 1 if any repo failed.
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.
@@ -1,9 +1,5 @@
1
1
  # Search Repos
2
2
 
3
- Search organization repositories by name or description using fuzzy matching.
4
-
5
- ## Instructions
6
-
7
3
  1. Run:
8
4
  ```bash
9
5
  nemus cache search <query>
@@ -17,8 +13,3 @@ Search organization repositories by name or description using fuzzy matching.
17
13
  3. If the user is looking for repos to add to a workspace, suggest:
18
14
  - `nemus create` to create a new workspace with selected repos
19
15
  - `nemus update` to add repos to an existing workspace
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.
@@ -1,9 +1,5 @@
1
1
  # Sessions
2
2
 
3
- Pick a workspace with an active Claude Code session and resume it.
4
-
5
- ## Instructions
6
-
7
3
  Interactive only — displays a fuzzy-searchable list of workspaces with sessions:
8
4
  ```bash
9
5
  nemus sessions
@@ -14,14 +10,6 @@ Alias:
14
10
  w ses
15
11
  ```
16
12
 
17
- ## How It Works
18
-
19
13
  1. Scans for Claude Code sessions across all workspaces
20
14
  2. Shows them sorted by last active time
21
15
  3. User picks one → terminal CDs to that workspace and resumes the Claude session
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
@@ -1,9 +1,5 @@
1
1
  # Suite Create
2
2
 
3
- Create a new suite (reusable collection of repositories) that can be used to quickly set up workspaces.
4
-
5
- ## Instructions
6
-
7
3
  1. In interactive mode:
8
4
  ```bash
9
5
  nemus suite create
@@ -15,8 +11,3 @@ Create a new suite (reusable collection of repositories) that can be used to qui
15
11
  ```
16
12
 
17
13
  3. After creation, confirm with the suite name and repo count.
18
-
19
- ## Success Criteria
20
-
21
- - Suite is saved with the specified name and repos.
22
- - Suite appears in `nemus suite list`.
@@ -1,9 +1,5 @@
1
1
  # Suite Delete
2
2
 
3
- Delete a saved suite.
4
-
5
- ## Instructions
6
-
7
3
  1. In interactive mode:
8
4
  ```bash
9
5
  nemus suite delete
@@ -15,7 +11,3 @@ Delete a saved suite.
15
11
  ```
16
12
 
17
13
  3. Confirm deletion.
18
-
19
- ## Success Criteria
20
-
21
- - Suite is removed and no longer appears in `nemus suite list`.
@@ -1,9 +1,5 @@
1
1
  # Suite Export
2
2
 
3
- Export one or all suites to a JSON file for sharing.
4
-
5
- ## Instructions
6
-
7
3
  1. Export all suites:
8
4
  ```bash
9
5
  nemus suite export ./suites.json
@@ -12,8 +8,3 @@ Export one or all suites to a JSON file for sharing.
12
8
  2. In interactive mode, you'll be prompted to choose a single suite or all.
13
9
 
14
10
  3. Share the exported file with teammates who can import it with `nemus suite import`.
15
-
16
- ## Success Criteria
17
-
18
- - JSON file is created with suite data.
19
- - File can be imported with `nemus suite import`.
@@ -1,9 +1,5 @@
1
1
  # Suite Import
2
2
 
3
- Import suites from a JSON file (exported by `nemus suite export`).
4
-
5
- ## Instructions
6
-
7
3
  1. Run:
8
4
  ```bash
9
5
  nemus suite import <file-path>
@@ -12,8 +8,3 @@ Import suites from a JSON file (exported by `nemus suite export`).
12
8
  2. Existing suites with the same name will be skipped by default.
13
9
 
14
10
  3. After import, verify with `nemus suite list`.
15
-
16
- ## Success Criteria
17
-
18
- - Suites from the file are imported.
19
- - Imported suites appear in `nemus suite list`.
@@ -1,9 +1,5 @@
1
1
  # Suite Use
2
2
 
3
- Create a new workspace from a saved suite.
4
-
5
- ## Instructions
6
-
7
3
  1. In interactive mode:
8
4
  ```bash
9
5
  nemus suite use
@@ -20,8 +16,3 @@ Create a new workspace from a saved suite.
20
16
  - Set up Claude Code integration
21
17
 
22
18
  4. After creation, suggest `nemus status <workspace>` to verify.
23
-
24
- ## Success Criteria
25
-
26
- - Workspace is created with all suite repos cloned.
27
- - Post-clone hooks (if any) are executed.
@@ -1,9 +1,5 @@
1
1
  # Switch Branch
2
2
 
3
- Switch all repositories in a workspace to a specified branch.
4
-
5
- ## Instructions
6
-
7
3
  ```bash
8
4
  nemus branch switch --workspace <name> --branch <branch-name>
9
5
  ```
@@ -18,8 +14,3 @@ nemus branch switch --workspace <name> --branch <branch-name>
18
14
  If some repos fail to switch (due to uncommitted changes), suggest:
19
15
  - Committing or stashing changes first
20
16
  - Using `nemus status <name>` to check the state
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.
@@ -1,9 +1,5 @@
1
1
  # Update Cache
2
2
 
3
- Force refresh the GitHub repository cache so newly added repos become searchable.
4
-
5
- ## Instructions
6
-
7
3
  1. Run:
8
4
  ```bash
9
5
  nemus cache refresh
@@ -16,7 +12,3 @@ Force refresh the GitHub repository cache so newly added repos become searchable
16
12
  2. Report the result (number of repos cached, etc.).
17
13
 
18
14
  3. Suggest using `nemus cache search <query>` or `nemus cache list` to browse the updated list.
19
-
20
- ## Success Criteria
21
-
22
- - Cache is refreshed and the updated repo count is reported.
@@ -1,9 +1,5 @@
1
1
  # Update Workspace
2
2
 
3
- Add more repositories to an existing workspace.
4
-
5
- ## Instructions
6
-
7
3
  1. Run the command with flags (non-interactive):
8
4
  ```bash
9
5
  nemus update --workspace <name> --repos <r1,r2,...>
@@ -23,8 +19,6 @@ Add more repositories to an existing workspace.
23
19
  | `--workspace <name>` | `-w` | Target workspace |
24
20
  | `--repos <r1,r2,...>` | `-r` | Comma-separated repo names to add. Use `repo:suffix` to add the same repo again under a separate folder. |
25
21
 
26
- ## Adding the same repo more than once (instances)
27
-
28
22
  The same repository can live in a workspace multiple times under different
29
23
  folders — useful for comparing branches/versions side by side, or keeping a
30
24
  second checkout instead of a `git worktree` (which `nemus status`/`nemus sync` do NOT
@@ -43,8 +37,3 @@ instance is tracked independently by `nemus status` and `nemus sync` and is labe
43
37
  > Do NOT use `git worktree` inside a workspace to get a second checkout of a
44
38
  > tracked repo — worktrees are invisible to `nemus status`/`nemus sync`. Use
45
39
  > `nemus update --repos <repo>:<suffix>` instead.
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.
@@ -1,9 +1,5 @@
1
1
  # Workspace Cleanup
2
2
 
3
- Remove node_modules and build artifacts from all repos in a workspace to free disk space.
4
-
5
- ## Instructions
6
-
7
3
  ```bash
8
4
  nemus cleanup <workspace> --all --yes
9
5
  ```
@@ -26,8 +22,3 @@ nemus cleanup <workspace> --git-clean --yes
26
22
  | `--yes` / `-y` | Skip confirmation prompt |
27
23
 
28
24
  Remind the user they'll need to run `npm install` before building again.
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.
@@ -1,9 +1,5 @@
1
1
  # Workspace Diff
2
2
 
3
- Show diff summary (staged/unstaged file counts, insertions, deletions) for all repos in a workspace.
4
-
5
- ## Instructions
6
-
7
3
  1. If no workspace is specified, run `nemus list` and ask which one.
8
4
 
9
5
  2. Run:
@@ -21,7 +17,3 @@ Show diff summary (staged/unstaged file counts, insertions, deletions) for all r
21
17
  - Which files changed
22
18
 
23
19
  4. If the user wants full diff content, they can pipe through `less` or redirect to a file.
24
-
25
- ## Success Criteria
26
-
27
- - Per-repo diff summary is presented with file counts and line statistics.
@@ -1,9 +1,5 @@
1
1
  # Workspace Doctor
2
2
 
3
- Run comprehensive health checks on a workspace and return a health score (0-100).
4
-
5
- ## Instructions
6
-
7
3
  1. If no workspace is specified, run `nemus list` and ask which one.
8
4
 
9
5
  2. Run:
@@ -20,8 +16,3 @@ Run comprehensive health checks on a workspace and return a health score (0-100)
20
16
  - `nemus sync` for outdated repos
21
17
  - `nemus cleanup` for disk space issues
22
18
  - `nemus branch create` or `nemus branch switch` for branch inconsistencies
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.
@@ -1,9 +1,5 @@
1
1
  # Workspace Info
2
2
 
3
- Get detailed metadata for a workspace including all repository info and status.
4
-
5
- ## Instructions
6
-
7
3
  There is no dedicated `nemus info` CLI command. To get workspace information, combine:
8
4
 
9
5
  1. **List workspaces** to see all available:
@@ -27,7 +23,3 @@ There is no dedicated `nemus info` CLI command. To get workspace information, co
27
23
  ```
28
24
 
29
25
  The MCP tool `workspace-info` provides detailed metadata programmatically.
30
-
31
- ## Success Criteria
32
-
33
- - User gets the workspace information they need through the appropriate command.
@@ -0,0 +1,26 @@
1
+ # Workspace Status
2
+
3
+ ```bash
4
+ nemus status <workspace>
5
+ ```
6
+
7
+ Alias:
8
+ ```bash
9
+ nem st <workspace>
10
+ ```
11
+
12
+ Without a workspace name, prompts interactively:
13
+ ```bash
14
+ nemus status
15
+ ```
16
+
17
+ ## Output
18
+
19
+ Displays a table per repository showing:
20
+ - **Repo name**
21
+ - **Branch** (with detached HEAD warning)
22
+ - **Status** — clean ✓ or modified/untracked count
23
+ - **Ahead/Behind** — commits ahead/behind remote
24
+ - **Modified files** count
25
+
26
+ Plus a summary: clean repos, dirty repos, needs push, needs pull.
@@ -1,9 +1,5 @@
1
1
  # Workspace Sync
2
2
 
3
- Pull latest changes for all repositories in a workspace. Skips repos with uncommitted changes.
4
-
5
- ## Instructions
6
-
7
3
  ```bash
8
4
  nemus sync <workspace>
9
5
  ```
@@ -19,8 +15,3 @@ Report results per repo:
19
15
  - Any repos that failed
20
16
 
21
17
  If some repos were skipped, suggest committing or stashing changes first, then re-run `nemus sync <name>`.
22
-
23
- ## Success Criteria
24
-
25
- - All clean repos are pulled to latest.
26
- - User is informed of any skipped repos with uncommitted changes.
@@ -3,87 +3,11 @@ name: refresh-workspace-docs
3
3
  description: Refresh the per-repo documentation embedded in a workspace's context file (AGENTS.md / .claude.md). Use when a workspace was created a while ago and its repos have since received updates to their README, AGENTS.md, or CLAUDE.md files, so the embedded copies in the workspace context are stale.
4
4
  ---
5
5
 
6
- # Refresh Workspace Docs
7
-
8
- When a workspace is created, each repo's own `AGENTS.md` / `CLAUDE.md` is
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:
51
-
52
6
  ```bash
53
- w migrate --dry-run
7
+ nemus sync <workspace> # 1. git pull every repo so on-disk docs are current
8
+ nemus migrate # 2. rebuild the Per-Repository Context section from disk
54
9
  ```
55
10
 
56
- ## What Gets Refreshed
57
-
58
- The `## Per-Repository Context` section is rebuilt from each repo's context
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
- ```
11
+ - Use `nemus migrate --dry-run` first to preview scope.
12
+ - `nemus migrate` runs across **all** workspaces; it's idempotent and only touches the `## Per-Repository Context` section — your `## Notes` and `CONTEXT.md` are preserved.
13
+ - 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.
@@ -3,12 +3,6 @@ name: remove-repo
3
3
  description: Remove a repository from a workspace
4
4
  ---
5
5
 
6
- # Remove Repo
7
-
8
- Remove a repository from a workspace.
9
-
10
- ## Running
11
-
12
6
  ```bash
13
7
  nemus remove-repo --workspace <name> --repo <repo-name> --yes
14
8
  ```
@@ -18,8 +12,6 @@ Or interactively:
18
12
  nemus remove-repo
19
13
  ```
20
14
 
21
- ## Important Notes
22
-
23
15
  - This removes the repo directory from the workspace
24
16
  - The repo is not deleted from GitHub, only removed locally
25
17
  - The workspace metadata is updated to reflect the removal
@@ -3,12 +3,6 @@ name: run-command
3
3
  description: Run a shell command across all repos in a workspace
4
4
  ---
5
5
 
6
- # Run Command
7
-
8
- Run a shell command across all repos in a workspace.
9
-
10
- ## Running
11
-
12
6
  ```bash
13
7
  nemus run <workspace-name> "<command>"
14
8
  ```
@@ -17,7 +11,3 @@ Example:
17
11
  ```bash
18
12
  nemus run my-workspace "git log --oneline -5"
19
13
  ```
20
-
21
- ## Presenting Results
22
-
23
- Report the output from each repo, clearly labeling which output comes from which repo.
@@ -3,26 +3,16 @@ name: save-context
3
3
  description: Save progress summary to workspace (persists across /clear and session restarts). Use when you want to preserve important context, findings, or progress before clearing conversation history.
4
4
  ---
5
5
 
6
- # Save Context
7
-
8
- Save a progress summary or important context to the workspace. This persists in `CONTEXT.md` and survives `/clear`, session restarts, and agent switches.
9
-
10
- ## When to Use
11
-
12
6
  - Before `/clear` to preserve progress
13
7
  - After completing a significant milestone
14
8
  - To leave notes for the next session
15
9
  - When switching between tasks in the same workspace
16
10
 
17
- ## Using the MCP Tool (Claude Code)
18
-
19
- Call `mcp__workspace-manager__save-context` with:
11
+ Call `mcp__nemus__save-context` with:
20
12
  - `workspace` (string): the workspace name
21
13
  - `content` (string): markdown content to save
22
14
  - `append` (boolean, optional): true to append, false to replace (default: false)
23
15
 
24
- ## Using the CLI (any agent)
25
-
26
16
  ```bash
27
17
  # Replace existing context
28
18
  nemus save-context -m "Completed auth refactor. Next: update payment service endpoints."
@@ -37,8 +27,6 @@ nemus save-context -f progress-notes.md
37
27
  echo "summary here" | nemus save-context
38
28
  ```
39
29
 
40
- ## What to Save
41
-
42
30
  Good context summaries include:
43
31
  - **What was done** — completed tasks, merged PRs
44
32
  - **Current state** — what's working, what's broken
@@ -49,20 +37,8 @@ Good context summaries include:
49
37
  ## Example
50
38
 
51
39
  ```markdown
52
- ## Progress
53
-
54
- - Refactored auth service to use JWT tokens (PR #42 merged)
55
- - Updated partnerships-api to call new auth endpoints
56
- - Fixed rate limiting bug in payment-gateway
57
-
58
40
  ## Current State
59
41
 
60
42
  All services passing CI. Auth migration is complete for internal services.
61
43
  External API consumers still use legacy tokens (tracked in JIRA PAY-123).
62
-
63
- ## Next Steps
64
-
65
- 1. Migrate external consumers to JWT (need coordination with partners team)
66
- 2. Add monitoring dashboard for token refresh failures
67
- 3. Remove legacy token support after 30-day deprecation window
68
44
  ```
@@ -3,29 +3,14 @@ name: search-repos
3
3
  description: Search org repositories by name or description
4
4
  ---
5
5
 
6
- # Search Repos
7
-
8
- Search for repositories in the GitHub organization.
9
-
10
- ## Searching
11
-
12
6
  ```bash
13
7
  nemus cache search <keyword>
14
8
  ```
15
9
 
16
10
  This searches the cached list of org repos by name. Results show repo name and description.
17
11
 
18
- ## If Cache is Empty
19
-
20
12
  ```bash
21
13
  nemus cache refresh
22
14
  ```
23
15
 
24
16
  Then search again.
25
-
26
- ## Presenting Results
27
-
28
- Show matching repos with their names and descriptions. If the user wants to add repos to a workspace, suggest:
29
- ```bash
30
- nemus update --workspace <name> --repos <repo1,repo2> --yes
31
- ```
@@ -3,16 +3,6 @@ name: snapshot-list
3
3
  description: List all saved workspace snapshots
4
4
  ---
5
5
 
6
- # Snapshot List
7
-
8
- List all saved workspace snapshots.
9
-
10
- ## Running
11
-
12
6
  ```bash
13
7
  nemus history
14
8
  ```
15
-
16
- ## Presenting Results
17
-
18
- Show snapshot entries with timestamps and operation types.
@@ -3,10 +3,6 @@ name: snapshot-save
3
3
  description: Save a snapshot of the current workspace state
4
4
  ---
5
5
 
6
- # Snapshot Save
7
-
8
- Snapshots are automatically saved by workspace-manager operations (create, update, delete, etc.). There is no separate snapshot command — the history command shows past operations:
9
-
10
6
  ```bash
11
7
  nemus history
12
8
  ```