@nemus-cli/nemus 0.2.1

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 (320) hide show
  1. package/CHANGELOG.md +86 -0
  2. package/LICENSE +21 -0
  3. package/README.md +275 -0
  4. package/assets/README.md +53 -0
  5. package/assets/banner.png +0 -0
  6. package/assets/banner.svg +66 -0
  7. package/assets/favicon-32.png +0 -0
  8. package/assets/favicon-64.png +0 -0
  9. package/assets/icon-256.png +0 -0
  10. package/assets/icon.svg +23 -0
  11. package/assets/logo-256.png +0 -0
  12. package/assets/logo-512.png +0 -0
  13. package/assets/logo-wordmark.svg +35 -0
  14. package/assets/logo.svg +32 -0
  15. package/bin/workspace.js +130 -0
  16. package/dist/cli/ai-prompt.js +421 -0
  17. package/dist/cli/dashboard/AgentList.js +61 -0
  18. package/dist/cli/dashboard/DashboardSidebar.js +280 -0
  19. package/dist/cli/dashboard/HelpFooter.js +73 -0
  20. package/dist/cli/dashboard/StatusBadge.js +50 -0
  21. package/dist/cli/dashboard/index.js +11 -0
  22. package/dist/cli/dashboard/types.js +2 -0
  23. package/dist/cli/tui.js +48 -0
  24. package/dist/commands/ai-prompt.js +22 -0
  25. package/dist/commands/analyze-deps.js +138 -0
  26. package/dist/commands/archive.js +113 -0
  27. package/dist/commands/branch/create.js +119 -0
  28. package/dist/commands/branch/index.js +104 -0
  29. package/dist/commands/branch/merge.js +90 -0
  30. package/dist/commands/branch/rebase.js +84 -0
  31. package/dist/commands/branch/switch.js +165 -0
  32. package/dist/commands/cache/index.js +80 -0
  33. package/dist/commands/cache/manager.js +198 -0
  34. package/dist/commands/cleanup.js +153 -0
  35. package/dist/commands/configure-claude.js +55 -0
  36. package/dist/commands/configure.js +231 -0
  37. package/dist/commands/create.js +204 -0
  38. package/dist/commands/dashboard/hook-handler.js +162 -0
  39. package/dist/commands/dashboard/index.js +258 -0
  40. package/dist/commands/dashboard/launcher.js +40 -0
  41. package/dist/commands/dashboard/session-picker.js +106 -0
  42. package/dist/commands/dashboard/sidebar.js +39 -0
  43. package/dist/commands/dashboard/workspace-picker.js +95 -0
  44. package/dist/commands/delete.js +194 -0
  45. package/dist/commands/deprecated-aliases.js +44 -0
  46. package/dist/commands/diff.js +129 -0
  47. package/dist/commands/doctor.js +141 -0
  48. package/dist/commands/generate-docs.js +77 -0
  49. package/dist/commands/ghq-status.js +72 -0
  50. package/dist/commands/go.js +154 -0
  51. package/dist/commands/history.js +124 -0
  52. package/dist/commands/list.js +191 -0
  53. package/dist/commands/mcp/index.js +69 -0
  54. package/dist/commands/migrate.js +296 -0
  55. package/dist/commands/remove-repo.js +217 -0
  56. package/dist/commands/report-bug.js +112 -0
  57. package/dist/commands/run.js +147 -0
  58. package/dist/commands/save-context.js +171 -0
  59. package/dist/commands/sessions.js +129 -0
  60. package/dist/commands/status.js +138 -0
  61. package/dist/commands/suite/create.js +212 -0
  62. package/dist/commands/suite/delete.js +64 -0
  63. package/dist/commands/suite/export.js +126 -0
  64. package/dist/commands/suite/import.js +128 -0
  65. package/dist/commands/suite/index.js +94 -0
  66. package/dist/commands/suite/list.js +49 -0
  67. package/dist/commands/suite/use.js +227 -0
  68. package/dist/commands/sync.js +117 -0
  69. package/dist/commands/update.js +203 -0
  70. package/dist/mcp/install.js +550 -0
  71. package/dist/mcp/server.js +398 -0
  72. package/dist/mcp/tools.js +922 -0
  73. package/dist/pi-extensions/permission-sync.ts.template +41 -0
  74. package/dist/pi-extensions/permissions-gate.ts.template +69 -0
  75. package/dist/pi-extensions/pr-fix-trigger.ts.template +124 -0
  76. package/dist/pi-extensions/review-reminder.ts.template +58 -0
  77. package/dist/pi-extensions/workspace-input-status.ts.template +919 -0
  78. package/dist/program.js +136 -0
  79. package/dist/scripts/workspace-table.py +394 -0
  80. package/dist/types/dashboard.js +11 -0
  81. package/dist/types/index.js +2 -0
  82. package/dist/utils/agent-config.js +263 -0
  83. package/dist/utils/agent-state.js +178 -0
  84. package/dist/utils/banner.js +24 -0
  85. package/dist/utils/branch-operations.js +232 -0
  86. package/dist/utils/bug-report.js +355 -0
  87. package/dist/utils/cache.js +168 -0
  88. package/dist/utils/claude-integration.js +617 -0
  89. package/dist/utils/claude-sessions.js +260 -0
  90. package/dist/utils/cleanup-operations.js +120 -0
  91. package/dist/utils/colors.js +26 -0
  92. package/dist/utils/command-helpers.js +44 -0
  93. package/dist/utils/config.js +150 -0
  94. package/dist/utils/context-file.js +33 -0
  95. package/dist/utils/dashboard-hooks.js +172 -0
  96. package/dist/utils/dependency-analyzer.js +234 -0
  97. package/dist/utils/diff-operations.js +80 -0
  98. package/dist/utils/doc-generator.js +184 -0
  99. package/dist/utils/ghq-integration.js +332 -0
  100. package/dist/utils/git-operations.js +237 -0
  101. package/dist/utils/git-status.js +187 -0
  102. package/dist/utils/github.js +68 -0
  103. package/dist/utils/health-checks.js +345 -0
  104. package/dist/utils/history.js +150 -0
  105. package/dist/utils/hooks.js +100 -0
  106. package/dist/utils/logger.js +40 -0
  107. package/dist/utils/permission-sync.js +681 -0
  108. package/dist/utils/pi-extensions.js +224 -0
  109. package/dist/utils/progress.js +92 -0
  110. package/dist/utils/prompts.js +279 -0
  111. package/dist/utils/repo-resolver.js +260 -0
  112. package/dist/utils/retry.js +65 -0
  113. package/dist/utils/run-operations.js +30 -0
  114. package/dist/utils/suite.js +159 -0
  115. package/dist/utils/sync-operations.js +107 -0
  116. package/dist/utils/tmux-dashboard.js +184 -0
  117. package/dist/utils/validation.js +153 -0
  118. package/dist/utils/version-check.js +121 -0
  119. package/dist/utils/workspace-meta.js +185 -0
  120. package/install-shell-integration.sh +532 -0
  121. package/install.sh +401 -0
  122. package/package.json +90 -0
  123. package/remove-shell-block.awk +44 -0
  124. package/scripts/postinstall.js +85 -0
  125. package/skills/analyze-deps.md +23 -0
  126. package/skills/archive-workspace.md +26 -0
  127. package/skills/branch-create.md +18 -0
  128. package/skills/create-workspace.md +39 -0
  129. package/skills/delete-workspace.md +37 -0
  130. package/skills/list-org-repos.md +26 -0
  131. package/skills/list-suites.md +24 -0
  132. package/skills/list-workspaces.md +27 -0
  133. package/skills/refresh-workspace-docs.md +89 -0
  134. package/skills/remove-repo.md +25 -0
  135. package/skills/run-command.md +23 -0
  136. package/skills/save-context.md +68 -0
  137. package/skills/search-repos.md +31 -0
  138. package/skills/snapshot-list.md +18 -0
  139. package/skills/snapshot-save.md +12 -0
  140. package/skills/switch-branch.md +18 -0
  141. package/skills/update-cache.md +21 -0
  142. package/skills/update-workspace.md +66 -0
  143. package/skills/workspace-cleanup.md +18 -0
  144. package/skills/workspace-diff.md +23 -0
  145. package/skills/workspace-doctor.md +23 -0
  146. package/skills/workspace-info.md +45 -0
  147. package/skills/workspace-manager/SKILL.md +201 -0
  148. package/skills/workspace-manager/references/ai-prompt.md +44 -0
  149. package/skills/workspace-manager/references/analyze-deps.md +45 -0
  150. package/skills/workspace-manager/references/archive-workspace.md +38 -0
  151. package/skills/workspace-manager/references/branch-create.md +31 -0
  152. package/skills/workspace-manager/references/branch-merge.md +22 -0
  153. package/skills/workspace-manager/references/branch-rebase.md +22 -0
  154. package/skills/workspace-manager/references/cache-clear.md +18 -0
  155. package/skills/workspace-manager/references/cache-info.md +22 -0
  156. package/skills/workspace-manager/references/configure-claude.md +31 -0
  157. package/skills/workspace-manager/references/configure.md +35 -0
  158. package/skills/workspace-manager/references/create-workspace.md +45 -0
  159. package/skills/workspace-manager/references/dashboard.md +61 -0
  160. package/skills/workspace-manager/references/delete-workspace.md +33 -0
  161. package/skills/workspace-manager/references/generate-docs.md +36 -0
  162. package/skills/workspace-manager/references/ghq-status.md +28 -0
  163. package/skills/workspace-manager/references/go.md +33 -0
  164. package/skills/workspace-manager/references/history.md +41 -0
  165. package/skills/workspace-manager/references/list-org-repos.md +26 -0
  166. package/skills/workspace-manager/references/list-suites.md +21 -0
  167. package/skills/workspace-manager/references/list-workspaces.md +27 -0
  168. package/skills/workspace-manager/references/mcp.md +49 -0
  169. package/skills/workspace-manager/references/remove-repo.md +26 -0
  170. package/skills/workspace-manager/references/run-command.md +44 -0
  171. package/skills/workspace-manager/references/search-repos.md +24 -0
  172. package/skills/workspace-manager/references/sessions.md +27 -0
  173. package/skills/workspace-manager/references/suite-create.md +22 -0
  174. package/skills/workspace-manager/references/suite-delete.md +21 -0
  175. package/skills/workspace-manager/references/suite-export.md +19 -0
  176. package/skills/workspace-manager/references/suite-import.md +19 -0
  177. package/skills/workspace-manager/references/suite-use.md +27 -0
  178. package/skills/workspace-manager/references/switch-branch.md +25 -0
  179. package/skills/workspace-manager/references/update-cache.md +22 -0
  180. package/skills/workspace-manager/references/update-workspace.md +50 -0
  181. package/skills/workspace-manager/references/workspace-cleanup.md +33 -0
  182. package/skills/workspace-manager/references/workspace-diff.md +27 -0
  183. package/skills/workspace-manager/references/workspace-doctor.md +27 -0
  184. package/skills/workspace-manager/references/workspace-info.md +33 -0
  185. package/skills/workspace-manager/references/workspace-status.md +43 -0
  186. package/skills/workspace-manager/references/workspace-sync.md +26 -0
  187. package/skills/workspace-status.md +26 -0
  188. package/skills/workspace-sync.md +23 -0
  189. package/src/cli/ai-prompt.test.ts +667 -0
  190. package/src/cli/ai-prompt.ts +421 -0
  191. package/src/cli/dashboard/AgentList.tsx +44 -0
  192. package/src/cli/dashboard/DashboardSidebar.tsx +291 -0
  193. package/src/cli/dashboard/HelpFooter.tsx +22 -0
  194. package/src/cli/dashboard/StatusBadge.tsx +23 -0
  195. package/src/cli/dashboard/index.ts +5 -0
  196. package/src/cli/dashboard/types.ts +16 -0
  197. package/src/cli/tui.tsx +51 -0
  198. package/src/cli/workspace-cli.test.ts +30 -0
  199. package/src/commands/ai-prompt.ts +21 -0
  200. package/src/commands/analyze-deps.ts +119 -0
  201. package/src/commands/archive.ts +114 -0
  202. package/src/commands/branch/create.ts +94 -0
  203. package/src/commands/branch/index.ts +74 -0
  204. package/src/commands/branch/merge.ts +61 -0
  205. package/src/commands/branch/rebase.ts +54 -0
  206. package/src/commands/branch/switch.ts +150 -0
  207. package/src/commands/cache/index.ts +51 -0
  208. package/src/commands/cache/manager.ts +168 -0
  209. package/src/commands/cleanup.ts +132 -0
  210. package/src/commands/configure-claude.ts +55 -0
  211. package/src/commands/configure.ts +204 -0
  212. package/src/commands/create.ts +196 -0
  213. package/src/commands/dashboard/hook-handler.ts +138 -0
  214. package/src/commands/dashboard/index.ts +248 -0
  215. package/src/commands/dashboard/launcher.ts +42 -0
  216. package/src/commands/dashboard/session-picker.ts +73 -0
  217. package/src/commands/dashboard/sidebar.js +39 -0
  218. package/src/commands/dashboard/workspace-picker.ts +62 -0
  219. package/src/commands/delete.test.ts +250 -0
  220. package/src/commands/delete.ts +171 -0
  221. package/src/commands/deprecated-aliases.ts +55 -0
  222. package/src/commands/diff.ts +106 -0
  223. package/src/commands/doctor.ts +110 -0
  224. package/src/commands/generate-docs.ts +45 -0
  225. package/src/commands/ghq-status.ts +70 -0
  226. package/src/commands/go.ts +125 -0
  227. package/src/commands/history.ts +136 -0
  228. package/src/commands/list.test.ts +219 -0
  229. package/src/commands/list.ts +176 -0
  230. package/src/commands/mcp/index.ts +39 -0
  231. package/src/commands/migrate.ts +277 -0
  232. package/src/commands/remove-repo.ts +194 -0
  233. package/src/commands/report-bug.ts +88 -0
  234. package/src/commands/run.ts +125 -0
  235. package/src/commands/save-context.test.ts +113 -0
  236. package/src/commands/save-context.ts +141 -0
  237. package/src/commands/sessions.ts +99 -0
  238. package/src/commands/status.ts +111 -0
  239. package/src/commands/suite/create.ts +240 -0
  240. package/src/commands/suite/delete.ts +65 -0
  241. package/src/commands/suite/export.ts +97 -0
  242. package/src/commands/suite/import.ts +100 -0
  243. package/src/commands/suite/index.ts +66 -0
  244. package/src/commands/suite/list.ts +54 -0
  245. package/src/commands/suite/use.ts +232 -0
  246. package/src/commands/sync.ts +97 -0
  247. package/src/commands/update.ts +197 -0
  248. package/src/mcp/install.ts +529 -0
  249. package/src/mcp/server.ts +579 -0
  250. package/src/mcp/tools.test.ts +545 -0
  251. package/src/mcp/tools.ts +1019 -0
  252. package/src/mcp/update-workspace.test.ts +220 -0
  253. package/src/pi-extensions/permission-sync.ts.template +41 -0
  254. package/src/pi-extensions/permissions-gate.ts.template +69 -0
  255. package/src/pi-extensions/pr-fix-trigger.ts.template +124 -0
  256. package/src/pi-extensions/review-reminder.ts.template +58 -0
  257. package/src/pi-extensions/workspace-input-status.ts.template +919 -0
  258. package/src/program.ts +112 -0
  259. package/src/scripts/workspace-table.py +394 -0
  260. package/src/types/dashboard.ts +29 -0
  261. package/src/types/index.ts +109 -0
  262. package/src/types/ink.d.ts +171 -0
  263. package/src/utils/agent-config.test.ts +303 -0
  264. package/src/utils/agent-config.ts +264 -0
  265. package/src/utils/agent-state.test.ts +166 -0
  266. package/src/utils/agent-state.ts +135 -0
  267. package/src/utils/banner.ts +24 -0
  268. package/src/utils/branch-operations.ts +237 -0
  269. package/src/utils/bug-report.test.ts +174 -0
  270. package/src/utils/bug-report.ts +355 -0
  271. package/src/utils/cache.ts +150 -0
  272. package/src/utils/claude-integration.test.ts +381 -0
  273. package/src/utils/claude-integration.ts +649 -0
  274. package/src/utils/claude-sessions.test.ts +262 -0
  275. package/src/utils/claude-sessions.ts +251 -0
  276. package/src/utils/cleanup-operations.ts +94 -0
  277. package/src/utils/colors.ts +25 -0
  278. package/src/utils/command-helpers.ts +46 -0
  279. package/src/utils/config.test.ts +203 -0
  280. package/src/utils/config.ts +133 -0
  281. package/src/utils/context-file.ts +36 -0
  282. package/src/utils/dashboard-hooks.test.ts +168 -0
  283. package/src/utils/dashboard-hooks.ts +163 -0
  284. package/src/utils/dependency-analyzer.ts +243 -0
  285. package/src/utils/diff-operations.ts +59 -0
  286. package/src/utils/doc-generator.ts +187 -0
  287. package/src/utils/ghq-integration.test.ts +195 -0
  288. package/src/utils/ghq-integration.ts +317 -0
  289. package/src/utils/git-operations.test.ts +265 -0
  290. package/src/utils/git-operations.ts +233 -0
  291. package/src/utils/git-status.ts +171 -0
  292. package/src/utils/github.ts +74 -0
  293. package/src/utils/health-checks.ts +359 -0
  294. package/src/utils/history.ts +140 -0
  295. package/src/utils/hooks.ts +92 -0
  296. package/src/utils/logger.ts +37 -0
  297. package/src/utils/permission-sync.test.ts +593 -0
  298. package/src/utils/permission-sync.ts +720 -0
  299. package/src/utils/pi-extensions.test.ts +182 -0
  300. package/src/utils/pi-extensions.ts +226 -0
  301. package/src/utils/progress.ts +73 -0
  302. package/src/utils/prompts.test.ts +169 -0
  303. package/src/utils/prompts.ts +296 -0
  304. package/src/utils/repo-resolver.test.ts +313 -0
  305. package/src/utils/repo-resolver.ts +294 -0
  306. package/src/utils/retry.test.ts +124 -0
  307. package/src/utils/retry.ts +85 -0
  308. package/src/utils/run-operations.ts +38 -0
  309. package/src/utils/suite.test.ts +256 -0
  310. package/src/utils/suite.ts +144 -0
  311. package/src/utils/sync-operations.ts +87 -0
  312. package/src/utils/tmux-dashboard.ts +193 -0
  313. package/src/utils/validation.test.ts +139 -0
  314. package/src/utils/validation.ts +128 -0
  315. package/src/utils/version-check.test.ts +108 -0
  316. package/src/utils/version-check.ts +96 -0
  317. package/src/utils/workspace-meta.ts +173 -0
  318. package/sync-permissions.sh +137 -0
  319. package/tsconfig.json +20 -0
  320. package/uninstall.sh +162 -0
@@ -0,0 +1,201 @@
1
+ ---
2
+ name: workspace-manager
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
+ # Workspace Manager
8
+
9
+ > **CRITICAL — Read before taking any action:**
10
+ > - **NEVER** run `git clone` directly to add a repository to a workspace.
11
+ > - **NEVER** run `git clone` directly to create a workspace.
12
+ > - **NEVER** use `git worktree` to get a second checkout of a tracked repo — worktrees are invisible to `nemus status`/`nemus sync`. Add another instance with `nemus update --repos <repo>:<suffix>` instead.
13
+ > - **ONLY read code from repos in the CURRENT workspace.** If you need to read or reference code from a repo that isn't in the current workspace, add it with `nemus update --workspace <current> --repos <repo> --yes` and read it there. **NEVER** read that repo's code from another workspace, a global ghq/clone path, or anywhere outside the current workspace — other workspaces may be on different branches or stale, and reading them silently breaks context isolation.
14
+ > - **ALWAYS** use `nemus update --workspace <name> --repos <repo> --yes` to add repos.
15
+ > - To add the **same repo more than once** (e.g. a second branch checkout), use `nemus update --workspace <name> --repos <repo>:<suffix> --yes` — it clones into `<repo>-<suffix>` and is tracked independently.
16
+ > - **ALWAYS** use `nemus create --workspace <name> --repos <repos> --yes` to create workspaces.
17
+ > - Direct git operations bypass workspace metadata, break `nemus status`/`nemus sync`, and leave context files stale.
18
+
19
+ Manage multi-repo development workspaces using the `nemus` CLI tool (alias: `nem`).
20
+
21
+ All commands support `--help` for detailed usage. The CLI uses Commander.js — every command has auto-generated help at root, command, and subcommand levels.
22
+
23
+ ## Global Flags
24
+
25
+ These flags work on any command:
26
+
27
+ | Flag | Short | Description |
28
+ |---|---|---|
29
+ | `--force-refresh` | `-f` | Force refresh GitHub repos (skip cache) |
30
+ | `--yes` | `-y` | Skip all confirmation prompts |
31
+ | `--version` | `-V` | Print version number |
32
+ | `--help` | `-h` | Show help for any command |
33
+
34
+ ## Non-Interactive Usage (for agents/scripts)
35
+
36
+ Every command can be run fully non-interactively by providing all required options as flags. When a required value (like workspace name) is missing and there's no TTY, the command will error with a usage hint.
37
+
38
+ Pattern: **options-first with interactive fallback**.
39
+ - If a flag is provided, it's used directly.
40
+ - If a flag is omitted and a TTY is available, Inquirer prompts the user.
41
+ - `--yes` / `-y` skips all confirmation prompts, and — for commands that create a workspace (`create`, `suite use`) — also skips auto-launching the AI agent afterward in the shell integration, so the command returns immediately instead of dropping into an interactive `claude`/`pi`/`opencode` session.
42
+
43
+ ```bash
44
+ # Fully non-interactive
45
+ nemus create --workspace payments --repos partnerships-api,payments-db --yes
46
+
47
+ # Partially interactive (prompts for repos)
48
+ nemus create --workspace payments
49
+
50
+ # Fully interactive (prompts for everything)
51
+ nemus create
52
+ ```
53
+
54
+ ## Command Aliases
55
+
56
+ | Command | Alias(es) | Command | Alias(es) |
57
+ |---------|-----------|---------|-----------|
58
+ | `create` | `c` | `diff` | `di` |
59
+ | `list` | `l` | `run` | `r` |
60
+ | `update` | `u` | `archive` | `a` |
61
+ | `delete` | `d`, `del` | `sessions` | `ses` |
62
+ | `sync` | `s` | `cleanup` | `cl` |
63
+ | `status` | `st` | `remove-repo` | `rr` |
64
+ | `doctor` | `doc` | `generate-docs` | `gd` |
65
+ | `analyze-deps` | `ad` | `configure` | `cfg` |
66
+ | `history` | `h` | `configure-claude` | `cc` |
67
+ | `dashboard` | `dash` | | |
68
+
69
+ ## Quick Start
70
+
71
+ | What you want to do | Reference | CLI Command |
72
+ |---|---|---|
73
+ | Create a workspace | [create-workspace](references/create-workspace.md) | `nemus create` |
74
+ | Add repos to workspace | [update-workspace](references/update-workspace.md) | `nemus update` |
75
+ | Check git status | [workspace-status](references/workspace-status.md) | `nemus status <name>` |
76
+ | Pull latest changes | [workspace-sync](references/workspace-sync.md) | `nemus sync <name>` |
77
+ | List all workspaces | [list-workspaces](references/list-workspaces.md) | `nemus list` |
78
+ | Navigate to workspace | [go](references/go.md) | `nemus go <name>` or `nemgo <name>` |
79
+ | Search for repos | [search-repos](references/search-repos.md) | `nemus cache search <query>` |
80
+ | Resume Claude session | [sessions](references/sessions.md) | `nemus sessions` |
81
+
82
+ ## Command Reference
83
+
84
+ ### Core Workspace Lifecycle
85
+
86
+ | Intent | Reference | CLI | Alias |
87
+ |---|---|---|---|
88
+ | Create new workspace | [create-workspace](references/create-workspace.md) | `nemus create` | `c` |
89
+ | Add repos to workspace | [update-workspace](references/update-workspace.md) | `nemus update` | `u` |
90
+ | Delete workspace permanently | [delete-workspace](references/delete-workspace.md) | `nemus delete` | `d` |
91
+ | Archive / unarchive workspace | [archive-workspace](references/archive-workspace.md) | `nemus archive` | `a` |
92
+ | List all workspaces | [list-workspaces](references/list-workspaces.md) | `nemus list` | `l` |
93
+ | Navigate to workspace | [go](references/go.md) | `nemus go [name]` | — |
94
+
95
+ ### Status & Operations
96
+
97
+ | Intent | Reference | CLI | Alias |
98
+ |---|---|---|---|
99
+ | Git status across repos | [workspace-status](references/workspace-status.md) | `nemus status [name]` | `st` |
100
+ | Pull latest (git sync) | [workspace-sync](references/workspace-sync.md) | `nemus sync [name]` | `s` |
101
+ | Show diff summary | [workspace-diff](references/workspace-diff.md) | `nemus diff [name]` | `di` |
102
+ | Run shell command across repos | [run-command](references/run-command.md) | `nemus run [name] <cmd>` | `r` |
103
+ | Health check | [workspace-doctor](references/workspace-doctor.md) | `nemus doctor [name]` | `doc` |
104
+ | Clean node_modules / artifacts | [workspace-cleanup](references/workspace-cleanup.md) | `nemus cleanup <name>` | `cl` |
105
+ | Remove repo from workspace | [remove-repo](references/remove-repo.md) | `nemus remove-repo` | `rr` |
106
+ | Analyze inter-repo deps | [analyze-deps](references/analyze-deps.md) | `nemus analyze-deps [name]` | `ad` |
107
+ | Generate docs for workspace | [generate-docs](references/generate-docs.md) | `nemus generate-docs [name]` | `gd` |
108
+
109
+ ### Branch Management
110
+
111
+ | Intent | Reference | CLI |
112
+ |---|---|---|
113
+ | Switch branch across repos | [switch-branch](references/switch-branch.md) | `nemus branch switch` |
114
+ | Create branch across repos | [branch-create](references/branch-create.md) | `nemus branch create` |
115
+ | Merge branches across repos | [branch-merge](references/branch-merge.md) | `nemus branch merge <ws> <src> <tgt>` |
116
+ | Rebase branches across repos | [branch-rebase](references/branch-rebase.md) | `nemus branch rebase <ws> <base>` |
117
+
118
+ ### Suites (Reusable Repo Collections)
119
+
120
+ | Intent | Reference | CLI |
121
+ |---|---|---|
122
+ | List saved suites | [list-suites](references/list-suites.md) | `nemus suite list` |
123
+ | Create a suite | [suite-create](references/suite-create.md) | `nemus suite create` |
124
+ | Delete a suite | [suite-delete](references/suite-delete.md) | `nemus suite delete` |
125
+ | Export suite(s) to JSON | [suite-export](references/suite-export.md) | `nemus suite export [file]` |
126
+ | Import suite(s) from JSON | [suite-import](references/suite-import.md) | `nemus suite import <file>` |
127
+ | Create workspace from suite | [suite-use](references/suite-use.md) | `nemus suite use` |
128
+
129
+ ### Cache & Repo Discovery
130
+
131
+ | Intent | Reference | CLI |
132
+ |---|---|---|
133
+ | Search org repos | [search-repos](references/search-repos.md) | `nemus cache search <query>` |
134
+ | List all org repos | [list-org-repos](references/list-org-repos.md) | `nemus cache list` |
135
+ | View cache statistics | [cache-info](references/cache-info.md) | `nemus cache info` |
136
+ | Refresh repo cache | [update-cache](references/update-cache.md) | `nemus cache refresh` |
137
+ | Clear cache | [cache-clear](references/cache-clear.md) | `nemus cache clear` |
138
+
139
+ ### Sessions & History
140
+
141
+ | Intent | Reference | CLI | Alias |
142
+ |---|---|---|---|
143
+ | Resume Claude session | [sessions](references/sessions.md) | `nemus sessions` | `ses` |
144
+ | Agent management dashboard | [dashboard](references/dashboard.md) | `nemus dashboard` | `dash` |
145
+ | View operation history | [history](references/history.md) | `nemus history` | `h` |
146
+ | View history statistics | [history](references/history.md) | `nemus history stats` | — |
147
+ | Clear history | [history](references/history.md) | `nemus history clear` | — |
148
+
149
+ ### Configuration
150
+
151
+ | Intent | Reference | CLI | Alias |
152
+ |---|---|---|---|
153
+ | Configure workspace manager | [configure](references/configure.md) | `nemus configure` | `cfg` |
154
+ | Configure Claude integration | [configure-claude](references/configure-claude.md) | `nemus configure-claude` | `cc` |
155
+ | Check ghq status | [ghq-status](references/ghq-status.md) | `nemus ghq-status` | — |
156
+
157
+ ### MCP Server
158
+
159
+ | Intent | Reference | CLI |
160
+ |---|---|---|
161
+ | Install MCP server | [mcp](references/mcp.md) | `nemus mcp install` |
162
+ | Uninstall MCP server | [mcp](references/mcp.md) | `nemus mcp uninstall` |
163
+ | Upgrade MCP hooks/skills | [mcp](references/mcp.md) | `nemus mcp upgrade` |
164
+ | Check MCP status | [mcp](references/mcp.md) | `nemus mcp status` |
165
+
166
+ ### AI Assistant
167
+
168
+ | Intent | Reference | CLI |
169
+ |---|---|---|
170
+ | Natural language workspace management | [ai-prompt](references/ai-prompt.md) | `nemus -- <prompt>` |
171
+
172
+ ### Interactive TUI
173
+
174
+ | Intent | CLI |
175
+ |---|---|
176
+ | Launch full interactive terminal UI | `nemus tui` |
177
+
178
+ ## Routing
179
+
180
+ When the user's intent matches a row above, read the corresponding reference file for step-by-step instructions before running any CLI command. If no reference file exists for a command, use `nemus <command> --help` to get usage details.
181
+
182
+ > **Reminder**: Do not use bare `git clone`, `git pull`, or other git commands to manage workspace repos.
183
+ > All repo management **must** go through `nemus` commands so that workspace metadata and context files stay in sync.
184
+
185
+ ## Deprecated Aliases
186
+
187
+ These still work but print a deprecation warning. Use the modern form instead:
188
+
189
+ | Old | New |
190
+ |-----|-----|
191
+ | `nemus sc` | `nemus suite create` |
192
+ | `nemus sls` | `nemus suite list` |
193
+ | `nemus sd` | `nemus suite delete` |
194
+ | `nemus se` | `nemus suite export` |
195
+ | `nemus si` | `nemus suite import` |
196
+ | `nemus fs` | `nemus suite use` |
197
+ | `nemus sb` | `nemus branch switch` |
198
+ | `nemus bc` | `nemus branch create` |
199
+ | `nemus bm` | `nemus branch merge` |
200
+ | `nemus br` | `nemus branch rebase` |
201
+ | `nemus uc` | `nemus cache refresh` |
@@ -0,0 +1,44 @@
1
+ # AI Prompt
2
+
3
+ Use natural language to manage workspaces via Claude Code with MCP tools.
4
+
5
+ ## Instructions
6
+
7
+ ```bash
8
+ nemus -- <prompt>
9
+ ```
10
+
11
+ The `--` separates the workspace command from the natural language prompt.
12
+
13
+ ## Examples
14
+
15
+ ```bash
16
+ nemus -- "Create a workspace with all payments repos"
17
+ nemus -- "What workspaces do I have?"
18
+ nemus -- "Add payments-db to my payments workspace"
19
+ nemus -- "Show me the status of my platform workspace"
20
+ nemus -- "Set up a workspace for the billing migration"
21
+ ```
22
+
23
+ ## How It Works
24
+
25
+ 1. Launches Claude Code CLI with a system prompt describing all available MCP tools
26
+ 2. Claude interprets the natural language request
27
+ 3. Claude uses MCP tools (create-workspace, search-repos, etc.) to fulfill the request
28
+ 4. Results are presented conversationally
29
+
30
+ ## Prerequisites
31
+
32
+ - Claude Code CLI must be installed (`claude` command available)
33
+ - MCP server should be installed (`nemus mcp install`)
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
+ ## Notes
42
+
43
+ - The shell integration treats `nemus --` as a create-like command — if a workspace is created, it auto-CDs into it.
44
+ - This is interactive-only and requires a TTY.
@@ -0,0 +1,45 @@
1
+ # Analyze Dependencies
2
+
3
+ Analyze inter-repository dependencies within a workspace and detect circular dependencies.
4
+
5
+ ## Instructions
6
+
7
+ ```bash
8
+ nemus analyze-deps <workspace>
9
+ ```
10
+
11
+ Alias:
12
+ ```bash
13
+ w ad <workspace>
14
+ ```
15
+
16
+ Without a workspace name, prompts interactively:
17
+ ```bash
18
+ nemus analyze-deps
19
+ ```
20
+
21
+ ## What It Analyzes
22
+
23
+ - `package.json` dependencies (npm packages that match workspace repo names)
24
+ - `Dockerfile` references
25
+ - `docker-compose.yml` service references
26
+
27
+ ## Output
28
+
29
+ - **Dependency graph** — which repos depend on which
30
+ - **Circular dependencies** — cycles detected with explanation
31
+ - **Missing dependencies** — repos referenced but not in the workspace
32
+ - **Mermaid diagram** — visual dependency graph
33
+ - Optionally saves analysis to workspace metadata
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.
@@ -0,0 +1,38 @@
1
+ # Archive Workspace
2
+
3
+ Archive a workspace to hide it from default listings. Archived workspaces auto-delete after 30 days.
4
+
5
+ ## Instructions
6
+
7
+ ### Archive
8
+ ```bash
9
+ nemus archive --workspace <name> --yes
10
+ ```
11
+
12
+ ### Unarchive
13
+ ```bash
14
+ nemus archive --unarchive --workspace <name> --yes
15
+ ```
16
+
17
+ To list archived workspaces first:
18
+ ```bash
19
+ nemus list --archived
20
+ ```
21
+
22
+ ## Flags
23
+
24
+ | Flag | Short | Description |
25
+ |---|---|---|
26
+ | `--workspace <name>` | `-w` | Workspace name(s), comma-separated for multiple |
27
+ | `--yes` | `-y` | Skip confirmation prompt |
28
+ | `--unarchive` | | Restore instead of archive |
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.
@@ -0,0 +1,31 @@
1
+ # Branch Create
2
+
3
+ Create a new branch across all repositories in a workspace.
4
+
5
+ ## Instructions
6
+
7
+ ```bash
8
+ nemus branch create --workspace <name> --branch <branch-name>
9
+ nemus branch create --workspace <name> --branch <branch-name> --base <base-branch>
10
+ ```
11
+
12
+ Or with positional args (legacy):
13
+ ```bash
14
+ nemus branch create <workspace> <branch-name>
15
+ nemus branch create <workspace> <branch-name> --base <base-branch> --force
16
+ ```
17
+
18
+ ## Flags
19
+
20
+ | Flag | Short | Description |
21
+ |---|---|---|
22
+ | `--workspace <name>` | `-w` | Target workspace |
23
+ | `--branch <name>` | `-b` | New branch name |
24
+ | `--base <branch>` | | Base branch to create from (default: current branch) |
25
+ | `--force` | | Force create even if branch exists |
26
+
27
+ After creation, run `nemus status <name>` to verify all repos are on the new branch.
28
+
29
+ ## Success Criteria
30
+
31
+ - New branch is created in all repos and per-repo results are reported.
@@ -0,0 +1,22 @@
1
+ # Branch Merge
2
+
3
+ Merge a source branch into a target branch across all repositories in a workspace.
4
+
5
+ ## Instructions
6
+
7
+ 1. Run:
8
+ ```bash
9
+ nemus branch merge <workspace> <source-branch> <target-branch> [--no-ff|--ff-only|--squash]
10
+ ```
11
+
12
+ 2. Present results per repo:
13
+ - Which repos merged successfully
14
+ - Which repos failed (e.g., conflicts)
15
+ - Summary count
16
+
17
+ 3. If there are merge conflicts, suggest the user resolve them manually in the affected repos.
18
+
19
+ ## Success Criteria
20
+
21
+ - Merge is attempted in all repos.
22
+ - Results are reported per repo with success/failure status.
@@ -0,0 +1,22 @@
1
+ # Branch Rebase
2
+
3
+ Rebase all repositories in a workspace onto a target branch.
4
+
5
+ ## Instructions
6
+
7
+ 1. Run:
8
+ ```bash
9
+ nemus branch rebase <workspace> <target-branch>
10
+ ```
11
+
12
+ 2. Present results per repo:
13
+ - Which repos rebased successfully
14
+ - Which repos failed (e.g., conflicts)
15
+ - Summary count
16
+
17
+ 3. If there are rebase conflicts, suggest the user resolve them manually in the affected repos.
18
+
19
+ ## Success Criteria
20
+
21
+ - Rebase is attempted in all repos.
22
+ - Results are reported per repo with success/failure status.
@@ -0,0 +1,18 @@
1
+ # Cache Clear
2
+
3
+ Clear the local GitHub repository cache. A new cache will be created automatically on next fetch.
4
+
5
+ ## Instructions
6
+
7
+ 1. Run:
8
+ ```bash
9
+ nemus cache clear
10
+ ```
11
+
12
+ 2. Confirm the cache was cleared.
13
+
14
+ 3. Suggest `nemus cache refresh` if the user wants to immediately rebuild the cache.
15
+
16
+ ## Success Criteria
17
+
18
+ - Cache is cleared successfully.
@@ -0,0 +1,22 @@
1
+ # Cache Info
2
+
3
+ View cache statistics including repo count, age, and size.
4
+
5
+ ## Instructions
6
+
7
+ 1. Run:
8
+ ```bash
9
+ nemus cache info
10
+ ```
11
+
12
+ 2. Report:
13
+ - Whether cache exists
14
+ - Number of cached repositories
15
+ - Last updated time
16
+ - Cache size
17
+
18
+ 3. If cache is stale or missing, suggest `nemus cache refresh`.
19
+
20
+ ## Success Criteria
21
+
22
+ - Cache statistics are displayed.
@@ -0,0 +1,31 @@
1
+ # Configure Claude
2
+
3
+ Configure Claude Code integration settings.
4
+
5
+ ## Instructions
6
+
7
+ ```bash
8
+ nemus configure-claude
9
+ ```
10
+
11
+ Alias:
12
+ ```bash
13
+ w cc
14
+ ```
15
+
16
+ ## Settings
17
+
18
+ | Setting | Description | Default |
19
+ |---|---|---|
20
+ | Auto-launch Claude | Launch Claude Code after workspace creation | `true` |
21
+ | Generate context | Create `.claude.md` context file in workspaces | `true` |
22
+
23
+ ## Notes
24
+
25
+ - This is interactive-only — there are no non-interactive flags.
26
+ - The `.claude.md` file provides workspace context to Claude Code sessions.
27
+ - Auto-launch requires the Claude Code CLI to be installed.
28
+
29
+ ## Success Criteria
30
+
31
+ - Claude integration settings are updated.
@@ -0,0 +1,35 @@
1
+ # Configure
2
+
3
+ Configure workspace-manager global settings interactively.
4
+
5
+ ## Instructions
6
+
7
+ ```bash
8
+ nemus configure
9
+ ```
10
+
11
+ Alias:
12
+ ```bash
13
+ w cfg
14
+ ```
15
+
16
+ ## Settings
17
+
18
+ | Setting | Description | Default |
19
+ |---|---|---|
20
+ | Workspaces directory | Where workspaces are stored | `~/workspaces` |
21
+ | GitHub organization | Org to fetch repos from | `your-org` |
22
+ | Clone protocol | SSH or HTTPS | `ssh` |
23
+ | Auto-launch Claude | Launch Claude after workspace creation | `true` |
24
+ | Generate .claude.md | Create context file in workspaces | `true` |
25
+ | MCP server | Install MCP server for Claude integration | `true` |
26
+
27
+ ## Notes
28
+
29
+ - Changing the GitHub org clears the repo cache automatically.
30
+ - Enabling MCP after disabling it triggers an automatic install.
31
+ - This is interactive-only — there are no non-interactive flags.
32
+
33
+ ## Success Criteria
34
+
35
+ - User's settings are saved to `~/.workspace-manager-cache/config.json`.
@@ -0,0 +1,45 @@
1
+ # Create Workspace
2
+
3
+ Create a new workspace with specified repositories.
4
+
5
+ ## Instructions
6
+
7
+ 1. If the user hasn't specified which repos they want, help them discover repos:
8
+ - Run `nemus cache search <query>` to search by name or description.
9
+ - Run `nemus cache list` to browse all available repos.
10
+ - Run `nemus suite list` to see pre-defined repo collections.
11
+
12
+ 2. Run the command with flags (non-interactive):
13
+ ```bash
14
+ nemus create --workspace <name> --repos <r1,r2,...> --yes
15
+ ```
16
+
17
+ Or interactively (no flags needed — CLI will prompt):
18
+ ```bash
19
+ nemus create
20
+ ```
21
+
22
+ 3. After creation, suggest next steps:
23
+ - `nemgo <name>` to navigate to the workspace (requires shell integration)
24
+ - Run `nemus status <name>` to check the initial state
25
+ - Run `nemus sync <name>` to pull latest changes
26
+
27
+ ## Flags
28
+
29
+ | Flag | Short | Description |
30
+ |---|---|---|
31
+ | `--workspace <name>` | `-w` | Workspace name |
32
+ | `--repos <r1,r2,...>` | `-r` | Comma-separated repo names |
33
+ | `--yes` | `-y` | Skip confirmation prompt; also skips auto-launching the AI agent afterward, so the command is safe to run as a one-shot/non-interactive call |
34
+
35
+ ## Examples
36
+
37
+ ```bash
38
+ nemus create --workspace payments --repos partnerships-api,payments-db --yes
39
+ nemus suite use --suite platform --workspace platform-ws --yes
40
+ ```
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.
@@ -0,0 +1,61 @@
1
+ # Dashboard
2
+
3
+ Launch a tmux-based multi-agent management dashboard for monitoring and controlling Claude agents across workspaces.
4
+
5
+ ## Instructions
6
+
7
+ ```bash
8
+ nemus dashboard
9
+ nemus dash
10
+ ```
11
+
12
+ Opens a tmux session with a sidebar showing active agents and their status. Agent panes are on the right.
13
+
14
+ ## Options
15
+
16
+ | Flag | Description |
17
+ |---|---|
18
+ | `--install-hooks` | Install Claude status hooks without launching dashboard |
19
+ | `--uninstall-hooks` | Remove dashboard hooks from Claude settings |
20
+ | `--list` | List running agents as JSON (non-interactive) |
21
+ | `--status` | Show agent status summary (non-interactive) |
22
+ | `--kill <sessionId>` | Kill agent by session ID (non-interactive) |
23
+ | `--launch <workspace>` | Launch agent in workspace (non-interactive) |
24
+
25
+ ## Keyboard Shortcuts (sidebar)
26
+
27
+ | Key | Action |
28
+ |---|---|
29
+ | `↑` / `↓` | Select agent |
30
+ | `f` / `Enter` | Focus selected agent pane |
31
+ | `z` | Toggle zoom on selected agent (hides others) |
32
+ | `x` | Kill selected agent |
33
+ | `n` | Launch new agent (workspace picker) |
34
+ | `s` | Resume a previous Claude session |
35
+ | `r` | Reset layout |
36
+ | `q` | Detach — agents keep running in background |
37
+ | `Q` | Quit all — kills session and all agents |
38
+
39
+ ## From any agent pane
40
+
41
+ | Key | Action |
42
+ |---|---|
43
+ | `prefix+M` | Return to sidebar / reset layout |
44
+
45
+ ## Prerequisites
46
+
47
+ - `tmux` must be installed (`brew install tmux`)
48
+ - Claude CLI must be available for agent launching
49
+
50
+ ## Features
51
+
52
+ - Real-time agent status via Claude Code hooks (idle/working/waiting/stopped)
53
+ - Session persistence: `q` detaches, `nemus dash` reconnects
54
+ - Zoom mode: selected agent takes full right side, others hidden
55
+ - Session resume picker (`s`) with fuzzy search
56
+ - Auto-installs Claude hooks on first run
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.
@@ -0,0 +1,33 @@
1
+ # Delete Workspace
2
+
3
+ Permanently delete one or more workspaces and all their cloned repositories.
4
+
5
+ ## Instructions
6
+
7
+ 1. **Confirm with the user before deleting.** This is a destructive, irreversible operation.
8
+
9
+ 2. Warn the user about any uncommitted changes — run `nemus status <name>` to check first.
10
+
11
+ 3. Run the command:
12
+ ```bash
13
+ nemus delete --workspace <name> --yes
14
+ ```
15
+
16
+ For multiple workspaces (comma-separated):
17
+ ```bash
18
+ nemus delete --workspace <name1>,<name2> --yes
19
+ ```
20
+
21
+ 4. Consider suggesting `nemus archive --workspace <name> --yes` as an alternative.
22
+
23
+ ## Flags
24
+
25
+ | Flag | Short | Description |
26
+ |---|---|---|
27
+ | `--workspace <name>` | `-w` | Workspace name(s), comma-separated for multiple |
28
+ | `--yes` | `-y` | Skip confirmation prompt |
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).