@alucify/cli 0.6.5 → 0.7.0

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 (202) hide show
  1. package/dist/cli.js +1590 -1061
  2. package/dist/docs/help/cli/_meta.json +1 -0
  3. package/dist/docs/help/cli/authentication.md +70 -0
  4. package/dist/docs/help/cli/automation.md +72 -0
  5. package/dist/docs/help/cli/commands/_meta.json +1 -0
  6. package/dist/docs/help/cli/commands/add-spec.md +49 -0
  7. package/dist/docs/help/cli/commands/analyze-code.md +54 -0
  8. package/dist/docs/help/cli/commands/analyze-progress.md +73 -0
  9. package/dist/docs/help/cli/commands/analyze-specs.md +60 -0
  10. package/dist/docs/help/cli/commands/capture-intent.md +56 -0
  11. package/dist/docs/help/cli/commands/check.md +49 -0
  12. package/dist/docs/help/cli/commands/context.md +52 -0
  13. package/dist/docs/help/cli/commands/continue.md +40 -0
  14. package/dist/docs/help/cli/commands/enable-disable.md +53 -0
  15. package/dist/docs/help/cli/commands/help.md +30 -0
  16. package/dist/docs/help/cli/commands/mcp-install.md +54 -0
  17. package/dist/docs/help/cli/commands/plan.md +43 -0
  18. package/dist/docs/help/cli/commands/progress.md +58 -0
  19. package/dist/docs/help/cli/commands/status.md +50 -0
  20. package/dist/docs/help/cli/commands/ui.md +50 -0
  21. package/dist/docs/help/cli/commands/usage.md +65 -0
  22. package/dist/docs/help/cli/commands/version.md +66 -0
  23. package/dist/docs/help/cli/installation.md +70 -0
  24. package/dist/docs/help/cli/quickstart.md +75 -0
  25. package/dist/docs/help/cli/ui/_meta.json +1 -0
  26. package/dist/docs/help/cli/ui/ai-coding-risks-tab.md +46 -0
  27. package/dist/docs/help/cli/ui/appgraph-visualizer-tab.md +54 -0
  28. package/dist/docs/help/cli/ui/artifacts-sidebar.md +53 -0
  29. package/dist/docs/help/cli/ui/chat-panel.md +56 -0
  30. package/dist/docs/help/cli/ui/code-analysis-tab.md +36 -0
  31. package/dist/docs/help/cli/ui/dashboard.md +44 -0
  32. package/dist/docs/help/cli/ui/launching.md +46 -0
  33. package/dist/docs/help/cli/ui/requirements-progress-tab.md +49 -0
  34. package/dist/docs/help/cli/ui/settings-tab.md +52 -0
  35. package/dist/docs/help/cli/ui/tech-debt-tab.md +29 -0
  36. package/dist/docs/help/cli/ui/token-usage-tab.md +46 -0
  37. package/dist/docs/help/concepts/_meta.json +1 -0
  38. package/dist/docs/help/concepts/ai-coding-risks.md +50 -0
  39. package/dist/docs/help/concepts/ai-readiness.md +34 -0
  40. package/dist/docs/help/concepts/analysis-modes.md +66 -0
  41. package/dist/docs/help/concepts/appgraph.md +56 -0
  42. package/dist/docs/help/concepts/artifacts-and-specs.md +46 -0
  43. package/dist/docs/help/concepts/authentication-modes.md +68 -0
  44. package/dist/docs/help/concepts/blast-radius.md +37 -0
  45. package/dist/docs/help/concepts/chat-refinement.md +40 -0
  46. package/dist/docs/help/concepts/congruency-coverage-completeness.md +50 -0
  47. package/dist/docs/help/concepts/implementation-progress.md +44 -0
  48. package/dist/docs/help/concepts/intent-capture.md +46 -0
  49. package/dist/docs/help/concepts/tech-debt-analysis.md +65 -0
  50. package/dist/docs/help/concepts/token-usage.md +70 -0
  51. package/dist/docs/help/concepts/versions-and-snapshots.md +57 -0
  52. package/dist/docs/help/concepts/workflow-overview.md +40 -0
  53. package/dist/docs/help/desktop/_meta.json +1 -0
  54. package/dist/docs/help/desktop/installation.md +56 -0
  55. package/dist/docs/help/desktop/keyboard-shortcuts.md +47 -0
  56. package/dist/docs/help/desktop/menu-bar.md +47 -0
  57. package/dist/docs/help/desktop/notifications.md +44 -0
  58. package/dist/docs/help/desktop/quickstart.md +43 -0
  59. package/dist/docs/help/desktop/switching-workspaces.md +39 -0
  60. package/dist/docs/help/desktop/workspace-picker.md +38 -0
  61. package/dist/docs/help/extension/_meta.json +1 -0
  62. package/dist/docs/help/extension/authentication/_meta.json +1 -0
  63. package/dist/docs/help/extension/authentication/api-key-setup.md +47 -0
  64. package/dist/docs/help/extension/authentication/claude-code-setup.md +43 -0
  65. package/dist/docs/help/extension/authentication/signing-in.md +36 -0
  66. package/dist/docs/help/extension/authentication/switching-auth-modes.md +28 -0
  67. package/dist/docs/help/extension/chat/_meta.json +1 -0
  68. package/dist/docs/help/extension/chat/asking-about-your-project.md +39 -0
  69. package/dist/docs/help/extension/code-analysis/_meta.json +1 -0
  70. package/dist/docs/help/extension/code-analysis/analysis-modes.md +63 -0
  71. package/dist/docs/help/extension/code-analysis/running-code-analysis.md +54 -0
  72. package/dist/docs/help/extension/code-analysis/understanding-ai-coding-risks.md +75 -0
  73. package/dist/docs/help/extension/code-analysis/understanding-tech-debt-analysis.md +90 -0
  74. package/dist/docs/help/extension/code-analysis/understanding-the-code-analysis-tab.md +49 -0
  75. package/dist/docs/help/extension/dev-progress/_meta.json +1 -0
  76. package/dist/docs/help/extension/dev-progress/analyzing-commits.md +56 -0
  77. package/dist/docs/help/extension/dev-progress/understanding-the-dev-progress-tab.md +40 -0
  78. package/dist/docs/help/extension/installation.md +34 -0
  79. package/dist/docs/help/extension/intent-capture/_meta.json +1 -0
  80. package/dist/docs/help/extension/intent-capture/enabling-intent-capture.md +40 -0
  81. package/dist/docs/help/extension/intent-capture/understanding-intent-capture.md +40 -0
  82. package/dist/docs/help/extension/quickstart.md +60 -0
  83. package/dist/docs/help/extension/resetting-analysis.md +46 -0
  84. package/dist/docs/help/extension/settings/_meta.json +1 -0
  85. package/dist/docs/help/extension/settings/notification-preferences.md +38 -0
  86. package/dist/docs/help/extension/settings/telemetry.md +45 -0
  87. package/dist/docs/help/extension/spec-analysis/_meta.json +1 -0
  88. package/dist/docs/help/extension/spec-analysis/adding-specs.md +40 -0
  89. package/dist/docs/help/extension/spec-analysis/analyzing-specs.md +60 -0
  90. package/dist/docs/help/extension/spec-analysis/auditing-specs.md +30 -0
  91. package/dist/docs/help/extension/spec-analysis/filtering-and-browsing-specs.md +43 -0
  92. package/dist/docs/help/extension/spec-analysis/generating-specs.md +47 -0
  93. package/dist/docs/help/extension/spec-analysis/refining-specs.md +53 -0
  94. package/dist/docs/help/extension/spec-analysis/understanding-the-spec-analysis-tab.md +55 -0
  95. package/dist/docs/help/extension/token-usage/_meta.json +1 -0
  96. package/dist/docs/help/extension/token-usage/understanding-token-usage.md +64 -0
  97. package/dist/docs/help/extension/token-usage/viewing-token-usage.md +63 -0
  98. package/dist/docs/help/faq.md +128 -0
  99. package/dist/docs/help/getting-started/_meta.json +1 -0
  100. package/dist/docs/help/getting-started/choosing-a-ui.md +60 -0
  101. package/dist/docs/help/getting-started/first-analysis.md +86 -0
  102. package/dist/docs/help/getting-started/installation.md +65 -0
  103. package/dist/docs/help/getting-started/key-concepts.md +73 -0
  104. package/dist/docs/help/getting-started/supported-project-types.md +65 -0
  105. package/dist/docs/help/getting-started/system-requirements.md +61 -0
  106. package/dist/docs/help/integrations/_meta.json +1 -0
  107. package/dist/docs/help/integrations/ci-cd.md +95 -0
  108. package/dist/docs/help/integrations/claude-code-hooks.md +54 -0
  109. package/dist/docs/help/integrations/claude-code.md +123 -0
  110. package/dist/docs/help/integrations/git-hooks.md +64 -0
  111. package/dist/docs/help/mcp-server/_meta.json +1 -0
  112. package/dist/docs/help/mcp-server/quickstart.md +59 -0
  113. package/dist/docs/help/mcp-server/resources/_meta.json +1 -0
  114. package/dist/docs/help/mcp-server/resources/terminology-resource.md +74 -0
  115. package/dist/docs/help/mcp-server/setup.md +75 -0
  116. package/dist/docs/help/mcp-server/tools/_meta.json +1 -0
  117. package/dist/docs/help/mcp-server/tools/coverage-gaps.md +58 -0
  118. package/dist/docs/help/mcp-server/tools/find-similar-context.md +65 -0
  119. package/dist/docs/help/mcp-server/tools/get-analysis.md +54 -0
  120. package/dist/docs/help/mcp-server/tools/get-details.md +48 -0
  121. package/dist/docs/help/mcp-server/tools/impact-analysis.md +49 -0
  122. package/dist/docs/help/mcp-server/tools/implementation-tasks.md +68 -0
  123. package/dist/docs/help/mcp-server/tools/link-node.md +51 -0
  124. package/dist/docs/help/mcp-server/tools/query.md +53 -0
  125. package/dist/docs/help/mcp-server/tools/tools-reference.md +63 -0
  126. package/dist/docs/help/mcp-server/tools/verify-plan.md +82 -0
  127. package/dist/docs/help/mcp-server/tools/version-diff.md +42 -0
  128. package/dist/docs/help/mcp-server/using-with-claude-code.md +72 -0
  129. package/dist/docs/help/reference/_meta.json +1 -0
  130. package/dist/docs/help/reference/alucify-directory.md +86 -0
  131. package/dist/docs/help/reference/file-types-and-formats.md +76 -0
  132. package/dist/docs/help/reference/glossary.md +60 -0
  133. package/dist/docs/help/reference/how-claude-code-integration-works.md +123 -0
  134. package/dist/docs/help/reference/ui-parity-matrix.md +121 -0
  135. package/dist/docs/help/vscode/_meta.json +1 -0
  136. package/dist/docs/help/vscode/advanced/_meta.json +1 -0
  137. package/dist/docs/help/vscode/advanced/congruency-analysis.md +32 -0
  138. package/dist/docs/help/vscode/advanced/coverage-analysis.md +31 -0
  139. package/dist/docs/help/vscode/advanced/developer-mode.md +34 -0
  140. package/dist/docs/help/vscode/advanced/findings-synthesis.md +27 -0
  141. package/dist/docs/help/vscode/advanced/impact-analysis.md +31 -0
  142. package/dist/docs/help/vscode/advanced/reset-extension.md +39 -0
  143. package/dist/docs/help/vscode/appgraph-visualizer/_meta.json +1 -0
  144. package/dist/docs/help/vscode/appgraph-visualizer/filtering-and-search.md +63 -0
  145. package/dist/docs/help/vscode/appgraph-visualizer/navigating-the-graph.md +34 -0
  146. package/dist/docs/help/vscode/appgraph-visualizer/node-details.md +49 -0
  147. package/dist/docs/help/vscode/appgraph-visualizer/opening-the-visualizer.md +33 -0
  148. package/dist/docs/help/vscode/authentication/_meta.json +1 -0
  149. package/dist/docs/help/vscode/authentication/api-key-setup.md +47 -0
  150. package/dist/docs/help/vscode/authentication/claude-code-setup.md +43 -0
  151. package/dist/docs/help/vscode/authentication/signing-in.md +36 -0
  152. package/dist/docs/help/vscode/authentication/switching-auth-modes.md +28 -0
  153. package/dist/docs/help/vscode/chat/_meta.json +1 -0
  154. package/dist/docs/help/vscode/chat/asking-about-your-project.md +39 -0
  155. package/dist/docs/help/vscode/chat/generating-artifacts-in-chat.md +53 -0
  156. package/dist/docs/help/vscode/chat/refining-specs-in-chat.md +47 -0
  157. package/dist/docs/help/vscode/code-analysis/_meta.json +1 -0
  158. package/dist/docs/help/vscode/code-analysis/ai-coding-risks-panel.md +42 -0
  159. package/dist/docs/help/vscode/code-analysis/project-analysis-panel.md +46 -0
  160. package/dist/docs/help/vscode/code-analysis/running-code-analysis.md +54 -0
  161. package/dist/docs/help/vscode/code-analysis/tech-debt-panel.md +27 -0
  162. package/dist/docs/help/vscode/command-palette.md +83 -0
  163. package/dist/docs/help/vscode/dev-progress/_meta.json +1 -0
  164. package/dist/docs/help/vscode/dev-progress/analyzing-commits.md +56 -0
  165. package/dist/docs/help/vscode/dev-progress/progress-panel-actions.md +56 -0
  166. package/dist/docs/help/vscode/dev-progress/understanding-the-dev-progress-tab.md +40 -0
  167. package/dist/docs/help/vscode/installation.md +34 -0
  168. package/dist/docs/help/vscode/intent-capture/_meta.json +1 -0
  169. package/dist/docs/help/vscode/intent-capture/analyzing-intent.md +49 -0
  170. package/dist/docs/help/vscode/intent-capture/enabling-intent-capture.md +40 -0
  171. package/dist/docs/help/vscode/quickstart.md +60 -0
  172. package/dist/docs/help/vscode/resetting-analysis.md +46 -0
  173. package/dist/docs/help/vscode/settings/_meta.json +1 -0
  174. package/dist/docs/help/vscode/settings/advanced-mode.md +53 -0
  175. package/dist/docs/help/vscode/settings/all-settings.md +66 -0
  176. package/dist/docs/help/vscode/settings/auto-analyze-specs.md +43 -0
  177. package/dist/docs/help/vscode/settings/notification-preferences.md +38 -0
  178. package/dist/docs/help/vscode/settings/telemetry.md +45 -0
  179. package/dist/docs/help/vscode/spec-analysis/_meta.json +1 -0
  180. package/dist/docs/help/vscode/spec-analysis/adding-specs.md +40 -0
  181. package/dist/docs/help/vscode/spec-analysis/analyzing-specs.md +60 -0
  182. package/dist/docs/help/vscode/spec-analysis/auditing-specs.md +30 -0
  183. package/dist/docs/help/vscode/spec-analysis/filtering-and-browsing-specs.md +43 -0
  184. package/dist/docs/help/vscode/spec-analysis/generating-specs.md +47 -0
  185. package/dist/docs/help/vscode/spec-analysis/refining-specs.md +53 -0
  186. package/dist/docs/help/vscode/spec-analysis/specifications-panel.md +46 -0
  187. package/dist/docs/help/vscode/status-bar.md +44 -0
  188. package/dist/docs/help/vscode/token-usage/_meta.json +1 -0
  189. package/dist/docs/help/vscode/token-usage/viewing-token-usage.md +63 -0
  190. package/dist/docs/help/vscode/versions/_meta.json +1 -0
  191. package/dist/docs/help/vscode/versions/comparing-versions.md +47 -0
  192. package/dist/docs/help/vscode/versions/deleting-versions.md +44 -0
  193. package/dist/docs/help/vscode/versions/switching-versions.md +43 -0
  194. package/dist/docs/help/vscode/workflow-controls.md +49 -0
  195. package/dist/docs/help/what-is-alucify.md +56 -0
  196. package/dist/mcp-server-vendored.js +28 -28
  197. package/dist/web/app.css +38 -0
  198. package/dist/web/app.js +671 -0
  199. package/dist/web/favicon.png +0 -0
  200. package/dist/web/favicon.svg +7 -0
  201. package/dist/web/index.html +15 -0
  202. package/package.json +1 -1
@@ -0,0 +1 @@
1
+ { "title": "CLI & Web UI", "order": 3 }
@@ -0,0 +1,70 @@
1
+ ---
2
+ order: 3
3
+ title: "CLI Authentication"
4
+ description: "How to authenticate the CLI with an Anthropic API key or Claude Code subscription."
5
+ ---
6
+
7
+ # CLI Authentication
8
+
9
+ The CLI supports two authentication modes. For a full comparison of the modes and when to pick each, see [Authentication Modes](../concepts/authentication-modes.md).
10
+
11
+ ## Default: Claude Code Subscription
12
+
13
+ ```bash
14
+ alucify analyze-code
15
+ ```
16
+
17
+ Requires the Claude Code CLI installed (`claude` on your PATH) and an active subscription. Run `claude` once to ensure it's authenticated.
18
+
19
+ Explicit form:
20
+ ```bash
21
+ alucify analyze-code --auth claudeCode
22
+ ```
23
+
24
+ ## API Key
25
+
26
+ ```bash
27
+ alucify analyze-code --auth apiKey --api-key sk-ant-your-key-here
28
+ ```
29
+
30
+ Billed to your Anthropic Console account.
31
+
32
+ Or set an environment variable to avoid passing the flag every time:
33
+ ```bash
34
+ export ALUCIFY_AUTH_MODE=apiKey
35
+ export ANTHROPIC_API_KEY=sk-ant-...
36
+ alucify analyze-code
37
+ ```
38
+
39
+ ## Which Commands Need AI?
40
+
41
+ Not all commands use AI:
42
+
43
+ | Command | Needs AI? | Notes |
44
+ |---|---|---|
45
+ | `analyze-code` | Only in Balanced / Quality modes | Speed mode is free |
46
+ | `analyze-specs` | Only in Balanced / Quality modes | Speed mode is free |
47
+ | `analyze-progress` | Yes | Always uses AI |
48
+ | `add-spec` | No | File copy only |
49
+ | `status`, `progress`, `version`, `usage`, `check`, `context` | No | Reads local data |
50
+ | `enable`, `disable`, `mcp-install` | No | Configures integration |
51
+ | `plan`, `continue` | Via Claude Code | Launches Claude Code |
52
+ | `help` | No | — |
53
+
54
+ ## Speed Mode Is Free
55
+
56
+ ```bash
57
+ alucify analyze-code --mode catalog
58
+ ```
59
+
60
+ No AI calls, no authentication required.
61
+
62
+ ## Credentials on Disk
63
+
64
+ - **API key** — stored in `~/.alucify/credentials.json` (chmod 600) after first explicit use
65
+ - **Claude Code subscription** — inherited from Claude Code's own credential store at `~/.claude/`
66
+
67
+ Clear credentials:
68
+ ```bash
69
+ rm ~/.alucify/credentials.json
70
+ ```
@@ -0,0 +1,72 @@
1
+ ---
2
+ order: 6
3
+ title: "Automation & Scripting"
4
+ description: "Using the CLI in git hooks, CI/CD, and custom scripts."
5
+ ---
6
+
7
+ # Automation & Scripting
8
+
9
+ The CLI is designed to be scripted. All commands that produce reports accept `--json` for machine-readable output, and exit codes are consistent for gating builds.
10
+
11
+ ## Exit Codes
12
+
13
+ - `0` — success (including pre-commit hook runs, which always exit 0 to avoid blocking commits)
14
+ - `1` — runtime error (network failure, bad arguments, missing prerequisites)
15
+
16
+ Quality signals like "risks found" or "coverage below threshold" are **not** surfaced via exit codes — read them from `alucify status --json` and gate your own script's exit on them.
17
+
18
+ ## JSON Output
19
+
20
+ Commands with structured output support `--json`:
21
+
22
+ ```bash
23
+ alucify status --json
24
+ alucify progress --json
25
+ alucify usage --json
26
+ alucify version --json
27
+ alucify check --staged
28
+ alucify context --json
29
+ ```
30
+
31
+ JSON is streamed line-by-line for commands that emit progress events, and emitted as a single object for one-shot reports. Pipe into `jq` or any JSON tool.
32
+
33
+ ## Git Hooks
34
+
35
+ Running [`alucify enable`](commands/enable-disable.md) installs:
36
+
37
+ - **pre-commit** — runs [`alucify check --staged`](commands/check.md) with a ≤15s timeout. Blocks the commit only if a hard failure occurs; otherwise non-blocking.
38
+ - **post-commit** — runs [`alucify analyze-progress`](commands/analyze-progress.md) asynchronously in the background.
39
+
40
+ To install manually without `enable`, copy the scripts from `.alucify/hooks/` into `.git/hooks/`. See [Git Hooks](../integrations/git-hooks.md).
41
+
42
+ ## CI/CD
43
+
44
+ See [CI/CD Integration](../integrations/ci-cd.md) for patterns:
45
+ - Gate PRs on congruency or coverage thresholds
46
+ - Post risk summaries to PR comments
47
+ - Track token spend per build
48
+
49
+ Quick example:
50
+
51
+ ```yaml
52
+ # .github/workflows/alucify.yml
53
+ - run: npm install -g @alucify/cli
54
+ - run: alucify analyze-code --mode catalog
55
+ - run: alucify analyze-specs --mode catalog
56
+ - run: alucify status --json > alucify-status.json
57
+ ```
58
+
59
+ ## Scheduled Jobs
60
+
61
+ For teams wanting periodic re-analysis:
62
+
63
+ ```bash
64
+ # nightly re-baseline in Balanced mode
65
+ 0 2 * * * cd /path/to/project && alucify analyze-code --mode fast
66
+ ```
67
+
68
+ Combine with commit hooks for continuous state: hooks keep the AppGraph current per-commit, while scheduled runs refresh the deeper analyses.
69
+
70
+ ## Scripting Claude Code Handoff
71
+
72
+ You can invoke [`alucify plan`](commands/plan.md) or [`alucify continue`](commands/continue.md) from scripts. Both launch Claude Code non-interactively and pass the current analysis state as context.
@@ -0,0 +1 @@
1
+ { "title": "Commands", "order": 4 }
@@ -0,0 +1,49 @@
1
+ ---
2
+ order: 3
3
+ title: "alucify add-spec"
4
+ description: "Add specification artifacts (PRDs, requirements, design files) to your project."
5
+ ---
6
+
7
+ # alucify add-spec
8
+
9
+ Imports specification files into your project for analysis. Files are copied into `.alucify/artifacts/`.
10
+
11
+ ## Usage
12
+
13
+ ```bash
14
+ alucify add-spec <file-path> [<file-path> ...]
15
+ ```
16
+
17
+ ## Arguments
18
+
19
+ | Argument | Description | Required |
20
+ |----------|-------------|----------|
21
+ | `<file-path>` | Path to a specification file. Multiple paths accepted. | Yes (at least one) |
22
+
23
+ ## Supported File Types
24
+
25
+ Any file type — PDFs, Markdown, plain text, images, JSON, YAML, code files, and more. See [Supported Project Types](../../getting-started/supported-project-types.md) for the full list.
26
+
27
+ ## Examples
28
+
29
+ ```bash
30
+ # Add a single spec
31
+ alucify add-spec ~/specs/requirements.pdf
32
+
33
+ # Add multiple specs at once
34
+ alucify add-spec docs/api-spec.md docs/data-model.md docs/wireframes.png
35
+
36
+ # Add all markdown files in a directory
37
+ alucify add-spec docs/specs/*.md
38
+ ```
39
+
40
+ ## What Happens
41
+
42
+ - Each file is copied into `.alucify/artifacts/`
43
+ - Original filenames are preserved
44
+ - No processing occurs — files are staged for the next `analyze-specs` run
45
+ - Adding more files later is safe; existing files are not affected
46
+
47
+ ## Next Steps
48
+
49
+ After adding specs, run `alucify analyze-specs` to compare them against your codebase.
@@ -0,0 +1,54 @@
1
+ ---
2
+ order: 1
3
+ title: "alucify analyze-code"
4
+ description: "Extract a baseline analysis from your project source code."
5
+ ---
6
+
7
+ # alucify analyze-code
8
+
9
+ Scans your codebase to build a structured understanding of your project — its screens, logic, data models, and how they connect.
10
+
11
+ ## Usage
12
+
13
+ ```bash
14
+ alucify analyze-code [options]
15
+ ```
16
+
17
+ ## Options
18
+
19
+ | Flag | Description | Default |
20
+ |------|-------------|---------|
21
+ | `--mode <catalog\|fast\|full>` | Analysis depth | `catalog` |
22
+ | `--auth <apiKey\|claudeCode>` | Authentication mode | `claudeCode` |
23
+ | `--api-key <key>` | Anthropic API key (required when `--auth apiKey`) | — |
24
+
25
+ ## Analysis Modes
26
+
27
+ - **`catalog`** (Speed) — Mechanical analysis only. Uses AST parsing and static analysis. **No AI calls, no cost.** Usually 5–10 minutes.
28
+ - **`fast`** (Balanced) — Adds AI-powered classification using Claude Sonnet. Usually 15–60 minutes.
29
+ - **`full`** (Quality) — Comprehensive AI analysis using Claude Opus. Usually 45–90 minutes.
30
+
31
+ ## Examples
32
+
33
+ ```bash
34
+ # Free mechanical analysis (default)
35
+ alucify analyze-code
36
+
37
+ # AI-powered analysis with Claude Code subscription
38
+ alucify analyze-code --mode fast
39
+
40
+ # AI-powered analysis with API key
41
+ alucify analyze-code --mode full --auth apiKey --api-key sk-ant-...
42
+ ```
43
+
44
+ ## Output
45
+
46
+ Creates `.alucify/appgraph-baseline.json` — the baseline model of your codebase.
47
+
48
+ ## What It Detects
49
+
50
+ - **Interfaces** — Screens, UI components, API endpoints
51
+ - **Logic** — Services, workflows, handlers, business logic
52
+ - **Schemas** — Data models, database schemas, type definitions
53
+ - **Dependencies** — How components relate to each other
54
+ - **Tech stack** — Frameworks and languages in use
@@ -0,0 +1,73 @@
1
+ ---
2
+ order: 4
3
+ title: "alucify analyze-progress"
4
+ description: "Analyze git commits to track implementation progress against your specs."
5
+ ---
6
+
7
+ # alucify analyze-progress
8
+
9
+ Analyzes your git commits (and uncommitted changes) to track which requirements have been implemented, are in progress, or are still planned.
10
+
11
+ ## Usage
12
+
13
+ ```bash
14
+ alucify analyze-progress [options]
15
+ ```
16
+
17
+ ## Options
18
+
19
+ | Flag | Description | Default |
20
+ |------|-------------|---------|
21
+ | `--commit <hash>` | Analyze a specific commit only | All commits since last checkpoint |
22
+ | `--pre-commit` | Run in pre-commit hook mode (staged files, synchronous) | — |
23
+ | `--timeout <ms>` | Timeout for pre-commit analysis in milliseconds | 15000 |
24
+
25
+ ## Prerequisites
26
+
27
+ - A project with spec analysis results (run `analyze-code` and `analyze-specs` first)
28
+ - Git commits to analyze
29
+
30
+ ## Examples
31
+
32
+ ```bash
33
+ # Analyze all new commits since last checkpoint
34
+ alucify analyze-progress
35
+
36
+ # Analyze a specific commit
37
+ alucify analyze-progress --commit abc1234
38
+
39
+ # Pre-commit hook mode (called by the git hook, not typically run manually)
40
+ alucify analyze-progress --pre-commit --timeout 15000
41
+ ```
42
+
43
+ ## What It Does
44
+
45
+ 1. Reads your git history since the last analyzed checkpoint
46
+ 2. Maps file changes to project components
47
+ 3. Classifies changes as implementations, partial implementations, or tests
48
+ 4. Updates implementation statuses (Planned → In Progress → Implemented → Tested)
49
+ 5. Saves a checkpoint so future runs only process new commits
50
+ 6. Creates a versioned snapshot
51
+
52
+ ## Pre-Commit Hook Integration
53
+
54
+ When you run `alucify enable`, both a **pre-commit** and **post-commit** git hook are installed:
55
+
56
+ 1. **Pre-commit** (synchronous, ≤15s): Classifies staged files against the appgraph with a single LLM call. On success, the analysis output is staged into the same commit — one atomic commit with zero leftovers.
57
+
58
+ 2. **Post-commit** (async fallback): Only runs if the pre-commit analysis timed out or failed. Performs full async analysis in the background. Results are auto-staged into the next commit.
59
+
60
+ The pre-commit hook always exits 0 — it never blocks your commit, even if the analysis fails or times out.
61
+
62
+ ## Output
63
+
64
+ - Updates `.alucify/progress/checkpoint.json` with the latest analyzed commit
65
+ - Creates a new version snapshot in `.alucify/versions/`
66
+
67
+ ## Notes
68
+
69
+ - The first run processes all commits since your spec analysis
70
+ - Subsequent runs only process commits made after the last checkpoint
71
+ - Uncommitted changes are included in the analysis
72
+ - Uses file locking to prevent concurrent modification
73
+ - The pre-commit hook skips analysis during rebase, merge, and cherry-pick operations
@@ -0,0 +1,60 @@
1
+ ---
2
+ order: 2
3
+ title: "alucify analyze-specs"
4
+ description: "Integrate specifications and run congruency analysis against your codebase."
5
+ ---
6
+
7
+ # alucify analyze-specs
8
+
9
+ Analyzes your imported specification documents against your codebase to identify gaps, conflicts, and coverage issues.
10
+
11
+ ## Usage
12
+
13
+ ```bash
14
+ alucify analyze-specs [options]
15
+ ```
16
+
17
+ ## Options
18
+
19
+ | Flag | Description | Default |
20
+ |------|-------------|---------|
21
+ | `--mode <catalog\|fast\|full>` | Analysis depth | `catalog` |
22
+ | `--auth <apiKey\|claudeCode>` | Authentication mode | `claudeCode` |
23
+ | `--api-key <key>` | Anthropic API key (required when `--auth apiKey`) | — |
24
+
25
+ ## Prerequisites
26
+
27
+ - Run `alucify analyze-code` first to create a baseline
28
+ - Add specs with `alucify add-spec` before analyzing
29
+
30
+ ## Analysis Modes
31
+
32
+ - **`catalog`** (Speed) — Mechanical projection of spec changes. **No AI calls, no cost.**
33
+ - **`fast`** (Balanced) — AI-powered extraction and congruency checks using Claude Sonnet.
34
+ - **`full`** (Quality) — Comprehensive analysis: requirement extraction, gap detection, full congruency using Claude Opus.
35
+
36
+ ## Examples
37
+
38
+ ```bash
39
+ # Analyze specs with free mechanical mode
40
+ alucify analyze-specs
41
+
42
+ # AI-powered analysis
43
+ alucify analyze-specs --mode balanced
44
+
45
+ # Full analysis with API key
46
+ alucify analyze-specs --mode full --auth apiKey --api-key sk-ant-...
47
+ ```
48
+
49
+ ## Output
50
+
51
+ Creates `.alucify/appgraph-project.json` — a combined model of your codebase plus spec analysis results.
52
+
53
+ After spec analysis completes, **progress analysis runs automatically** if your project has requirements linked to implementation code. This establishes the initial implementation status for all components — you don't need to run `analyze-progress` separately after your first spec analysis.
54
+
55
+ ## What It Finds
56
+
57
+ - **Coverage gaps** — Requirements with no corresponding code
58
+ - **Conflicts** — Contradictions between specs and existing code
59
+ - **Congruency issues** — Misalignments between what's specified and what's built
60
+ - **AI coding risks** — Issues that could cause problems for AI coding agents
@@ -0,0 +1,56 @@
1
+ ---
2
+ order: 5
3
+ title: "alucify capture-intent"
4
+ description: "Extract requirements and decisions from Claude Code sessions and add them to your AppGraph."
5
+ ---
6
+
7
+ # alucify capture-intent
8
+
9
+ Reads your recent Claude Code session history and extracts project-level context — requirements you clarified, design decisions you made, scope you defined — then stages it for integration into your AppGraph.
10
+
11
+ ## Usage
12
+
13
+ ```bash
14
+ alucify capture-intent [options]
15
+ ```
16
+
17
+ ## Options
18
+
19
+ | Flag | Description | Default |
20
+ |------|-------------|---------|
21
+ | `--force` | Extract immediately, even for very recent sessions | Wait for sessions to be idle |
22
+ | `--backfill` | Re-process all past sessions from the beginning | Only new sessions since last run |
23
+ | `--session-id <id>` | Process a single specific session only | All eligible sessions |
24
+
25
+ ## Prerequisites
26
+
27
+ - `alucify enable` has been run (required to locate Claude Code session files)
28
+ - An AppGraph exists (run `alucify analyze-code` or `alucify analyze-specs` first)
29
+
30
+ ## Example Output
31
+
32
+ ```
33
+ Intent Capture
34
+ Scanned: 12 sessions
35
+ Extracted: 3 sessions → 3 intent files
36
+ Skipped: 9 sessions (no novel intent)
37
+
38
+ Extracted:
39
+ session-abc123 → .alucify/extractions/intents/01HV...json
40
+ session-def456 → .alucify/extractions/intents/01HV...json
41
+ session-ghi789 → .alucify/extractions/intents/01HV...json
42
+ ```
43
+
44
+ ## What Gets Extracted
45
+
46
+ Sessions containing project-level decisions and requirements — things that would be meaningful additions to your AppGraph. Sessions that are only execution work (running commands, iterating on output) are skipped automatically.
47
+
48
+ ## Integrating Results
49
+
50
+ `capture-intent` stages intent files but doesn't integrate them into the AppGraph. To integrate, run **Alucify: Analyze Intent** from the VS Code Command Palette, which does both capture and integration in one step.
51
+
52
+ ## Notes
53
+
54
+ - Reads local session files only — no data leaves your machine beyond the normal Claude API calls
55
+ - Extracted intent is stored in `.alucify/extractions/intents/`
56
+ - Re-running is safe — already-processed sessions are skipped unless you pass `--backfill`
@@ -0,0 +1,49 @@
1
+ ---
2
+ order: 13
3
+ title: "alucify check"
4
+ description: "Preview how uncommitted or staged changes would affect your AppGraph."
5
+ ---
6
+
7
+ # `alucify check`
8
+
9
+ Previews how your current uncommitted changes (or staged changes) would affect your AppGraph, without updating it.
10
+
11
+ ## Usage
12
+
13
+ ```bash
14
+ alucify check [--staged|--last-commit]
15
+ ```
16
+
17
+ ## Options
18
+
19
+ - `--staged` — check only files that are staged for commit (`git add`ed)
20
+ - `--last-commit` — check the files changed in the most recent commit
21
+ - *(no flag)* — check everything: staged, unstaged, and untracked files
22
+
23
+ ## What It Shows
24
+
25
+ For each changed file, `check` reports:
26
+ - Which AppGraph nodes are affected
27
+ - The expected status changes (e.g., `planned` → `in_progress`)
28
+ - [Blast radius](../../concepts/blast-radius.md) of the change
29
+ - Any new risks that would be introduced
30
+
31
+ This is the same logic the pre-commit hook runs, but manually invoked and with full output.
32
+
33
+ ## Examples
34
+
35
+ ```bash
36
+ alucify check # preview all current changes
37
+ alucify check --staged # preview what's about to be committed
38
+ alucify check --last-commit # see what the most recent commit did
39
+ ```
40
+
41
+ ## When to Use It
42
+
43
+ - **Before committing** — confirm the change has the expected impact
44
+ - **During refactoring** — see blast radius before you finish
45
+ - **Code review** — run on a PR branch locally to understand scope
46
+
47
+ ## Relation to `analyze-progress`
48
+
49
+ `check` is a preview; it doesn't write anything. [`analyze-progress`](analyze-progress.md) is the real update that commits progress state based on what actually landed.
@@ -0,0 +1,52 @@
1
+ ---
2
+ order: 14
3
+ title: "alucify context"
4
+ description: "Manage the AppGraph context surfaced to Claude Code via CLAUDE.md."
5
+ ---
6
+
7
+ # `alucify context`
8
+
9
+ Manages the project context that Alucify surfaces to Claude Code sessions.
10
+
11
+ ## Usage
12
+
13
+ ```bash
14
+ alucify context [--update-claude-md] [--json]
15
+ ```
16
+
17
+ ## Options
18
+
19
+ - `--update-claude-md` — regenerate the AppGraph-derived section of your project's `CLAUDE.md` file
20
+ - `--json` — output the current context as JSON (for scripting)
21
+ - *(no flag)* — print a human-readable summary
22
+
23
+ ## What Context Includes
24
+
25
+ - A summary of the current AppGraph (node counts by type, status counts)
26
+ - Any open AI Coding Risks that are above a severity threshold
27
+ - Requirements currently `in_progress` with gap notes
28
+ - A pointer to the MCP tools available (`query_context`, `trace_dependencies`, etc.)
29
+
30
+ This is the information Claude Code's `/alucify-plan`, `/alucify-continue`, and session start hooks rely on.
31
+
32
+ ## CLAUDE.md Integration
33
+
34
+ When you run `alucify enable`, Alucify writes an AppGraph-aware section into your project's `CLAUDE.md`. That section tells any Claude Code session how to use Alucify's MCP tools and what the current project state is.
35
+
36
+ `alucify context --update-claude-md` rewrites just that section (preserving the rest of the file), which you might want to do if:
37
+ - You've done significant analysis and want Claude Code to pick up new state
38
+ - You manually edited `CLAUDE.md` elsewhere and want the Alucify section refreshed
39
+
40
+ ## Examples
41
+
42
+ ```bash
43
+ alucify context # print human-readable context
44
+ alucify context --json # machine-readable
45
+ alucify context --update-claude-md # refresh CLAUDE.md
46
+ ```
47
+
48
+ ## See Also
49
+
50
+ - [Claude Code Integration](../../integrations/claude-code.md)
51
+ - [`alucify enable`](enable-disable.md)
52
+ - [MCP Server — Using with Claude Code](../../mcp-server/using-with-claude-code.md)
@@ -0,0 +1,40 @@
1
+ ---
2
+ order: 9
3
+ title: "alucify continue"
4
+ description: "Continue a previously started workflow from where it left off."
5
+ ---
6
+
7
+ # alucify continue
8
+
9
+ Launches a Claude Code session focused on closing gaps identified during progress tracking. If no gaps exist, falls back to planning unimplemented requirements.
10
+
11
+ ## Usage
12
+
13
+ ```bash
14
+ alucify continue
15
+ ```
16
+
17
+ No flags or options.
18
+
19
+ ## Prerequisites
20
+
21
+ - Claude Code CLI installed and authenticated
22
+ - A project with analysis and progress tracking results
23
+
24
+ ## What It Does
25
+
26
+ 1. Ensures Claude Code integration is enabled (runs `alucify enable` if needed)
27
+ 2. Checks for a gap report from the last `analyze-progress` run
28
+ 3. If gaps exist, builds a targeted prompt with specific items to address and opens Claude Code
29
+ 4. If no gaps exist, falls back to the same behavior as `alucify plan`
30
+
31
+ ## When to Use
32
+
33
+ - After running `alucify analyze-progress` and seeing unresolved gaps
34
+ - When you want Claude Code to pick up where it left off on implementation work
35
+ - As a daily workflow: commit, analyze progress, then continue
36
+
37
+ ## Notes
38
+
39
+ - This command launches Claude Code interactively — it does not produce CLI output
40
+ - Requires an active Claude Code or Claude Max subscription
@@ -0,0 +1,53 @@
1
+ ---
2
+ order: 10
3
+ title: "alucify enable / disable"
4
+ description: "Enable or disable Alucify integration with Claude Code (hooks, MCP server, CLAUDE.md)."
5
+ ---
6
+
7
+ # alucify enable / disable
8
+
9
+ Wire up (or remove) the full Alucify integration with Claude Code, giving it access to your project analysis.
10
+
11
+ ## alucify enable
12
+
13
+ ```bash
14
+ alucify enable
15
+ ```
16
+
17
+ Installs the following components:
18
+
19
+ 1. **Claude Code hooks** — Inject project context into Claude Code sessions automatically
20
+ 2. **MCP server** — Registers the Alucify MCP server in `.mcp.json` so Claude Code can query your project
21
+ 3. **CLAUDE.md rules** — Adds project context rules to your `CLAUDE.md` file
22
+ 4. **Git hooks (pre-commit + post-commit)** — Automatically analyzes and tracks commits for progress tracking
23
+
24
+ After enabling, Claude Code will have access to your project analysis through the MCP server tools. See [MCP Server Tools](../../mcp-server/tools/query.md) for what's available.
25
+
26
+ **This command is idempotent** — running it multiple times is safe. It updates existing entries rather than duplicating them.
27
+
28
+ ## alucify disable
29
+
30
+ ```bash
31
+ alucify disable
32
+ ```
33
+
34
+ Removes all integration components:
35
+
36
+ - Removes Alucify hooks from `.claude/settings.json`
37
+ - Removes MCP server config from `.mcp.json`
38
+ - Removes Alucify rules from `CLAUDE.md`
39
+ - Removes git hooks (pre-commit + post-commit)
40
+
41
+ **Your analysis data is preserved.** The `.alucify/` directory and all analysis results are left intact. Only the integration wiring is removed.
42
+
43
+ **This command is also idempotent** — safe to run multiple times.
44
+
45
+ ## When to Use
46
+
47
+ - **Enable** after running your initial analysis, when you're ready for Claude Code to use your project context
48
+ - **Disable** if you want to temporarily stop Claude Code from using Alucify context, or when removing Alucify from a project
49
+
50
+ ## Notes
51
+
52
+ - `enable` is automatically called by `alucify plan` and `alucify continue` if needed
53
+ - The MCP server can also be installed separately with `alucify mcp-install` for a lighter-weight setup
@@ -0,0 +1,30 @@
1
+ ---
2
+ order: 11
3
+ title: "alucify help"
4
+ description: "Display available CLI commands and usage information."
5
+ ---
6
+
7
+ # alucify help
8
+
9
+ Displays a summary of all available commands and their usage.
10
+
11
+ ## Usage
12
+
13
+ ```bash
14
+ alucify help
15
+ alucify --help
16
+ alucify -h
17
+ ```
18
+
19
+ ## What It Shows
20
+
21
+ A list of all available commands with brief descriptions and common options. Use this as a quick reference when you need to remember a command name or flag.
22
+
23
+ ## Getting Help for a Specific Command
24
+
25
+ Most commands also accept `--help`:
26
+
27
+ ```bash
28
+ alucify analyze-code --help
29
+ alucify status --help
30
+ ```