Skip to content

Add CLI documentation tab#7

Merged
jonathanpopham merged 2 commits intomainfrom
add-cli-docs
Apr 29, 2026
Merged

Add CLI documentation tab#7
jonathanpopham merged 2 commits intomainfrom
add-cli-docs

Conversation

@jonathanpopham
Copy link
Copy Markdown
Collaborator

@jonathanpopham jonathanpopham commented Apr 29, 2026

Summary

  • New CLI tab in docs.json with three groups (Get started, Guides, Reference)
  • Seven new pages under cli/ covering install, quickstart, file mode, agents, configuration, and a full command reference
  • Landing page (index.mdx) now exposes the CLI alongside the API in a CardGroup

Pages were authored from authoritative supermodel <cmd> --help output and the v0.6.0 source tree (cmd/*.go). Includes the skill and update commands (added in v0.6.0) and the three-file shard format.

Test plan

  • mintlify dev boots and the CLI tab renders
  • All in-page links resolve (/cli/overview → siblings)
  • Mintlify components (<Steps>, <CardGroup>, <Tabs>-free) render correctly
  • docs.json JSON is valid (verified locally with python3 -c "import json; json.load(open('docs.json'))")

Summary by CodeRabbit

  • Documentation
    • Added comprehensive CLI documentation suite including installation guide with multiple installation methods (Homebrew, curl, npm, source build), quickstart guide, and detailed command reference for all CLI commands.
    • Updated landing page navigation to highlight CLI documentation and installation guide.

New "CLI" tab covering the Supermodel command-line tool, sourced from
the v0.6.0 source tree (cmd/*.go) and authoritative --help output.

Pages:
  cli/overview      — what the CLI does, the .graph.* sidecar pattern
  cli/install       — brew, curl, npm, source, setup wizard, self-update
  cli/quickstart    — login → analyze --three-file → skill → watch
  cli/file-mode     — watch daemon, three-file shards, hook, clean
  cli/agents        — Claude Code, Cursor, Copilot, Windsurf, Aider, MCP
  cli/configuration — config file, env vars, CI defaults
  cli/commands      — full reference for every command, flag, and alias

Also surfaces the CLI from the docs landing page (CardGroup with API +
CLI) so it's discoverable from /.
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Apr 29, 2026

Walkthrough

This pull request adds comprehensive CLI documentation to the Supermodel docs site, including installation and quickstart guides, a new CLI navigation section, and reference pages for 22 individual CLI commands covering authentication, analysis, graph visualization, code cleanup, and integration tooling.

Changes

Cohort / File(s) Summary
Navigation & Structure
docs.json, index.mdx
Added new CLI documentation tab with command groupings in docs.json; updated landing page to feature CLI installation alongside API Reference in a "Where to start" section.
Getting Started Guides
cli/install.mdx, cli/quickstart.mdx
Introduced installation instructions (Homebrew, curl, npm, source build) and a quickstart flow covering authentication, repository analysis, caching, and result-oriented commands.
CLI Command References
cli/commands/analyze.mdx, cli/commands/audit.mdx, cli/commands/blast-radius.mdx, cli/commands/clean.mdx, cli/commands/compact.mdx, cli/commands/dead-code.mdx, cli/commands/docs.mdx, cli/commands/find.mdx, cli/commands/focus.mdx, cli/commands/graph.mdx, cli/commands/hook.mdx, cli/commands/login.mdx, cli/commands/logout.mdx, cli/commands/mcp.mdx, cli/commands/restore.mdx, cli/commands/setup.mdx, cli/commands/share.mdx, cli/commands/skill.mdx, cli/commands/status.mdx, cli/commands/update.mdx, cli/commands/version.mdx, cli/commands/watch.mdx
Added 22 command documentation pages covering authentication (login/logout), analysis (analyze/audit/blast-radius), inspection (dead-code/find/focus/graph), utilities (clean/compact/docs/restore), configuration (setup/hook), integration (mcp), publishing (share), version management (update/version), and the watch daemon.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~10 minutes

Poem

📚 CLI docs have arrived, so neat and tidy,
Twenty-two commands ready for anybody,
From install to login, analyze to clean,
The clearest command reference you've ever seen! 🚀

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and specifically describes the main change: adding a new CLI documentation tab to the navigation structure.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch add-cli-docs

Review rate limit: 3/5 reviews remaining, refill in 21 minutes and 33 seconds.

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 4

🧹 Nitpick comments (1)
cli/install.mdx (1)

18-19: Consider adding an integrity-verification step for the curl installer.

curl ... | sh is convenient, but adding a checksum/signature verification option in docs would improve supply-chain safety for cautious users and CI environments.

Also applies to: 74-75

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@cli/install.mdx` around lines 18 - 19, Replace the direct pipe-to-shell
example "curl -fsSL https://supermodeltools.com/install.sh | sh" with a
documented two-step alternative: first download the script to a file (e.g., save
as install.sh) and fetch a published checksum/signature alongside it, then
verify the file using shasum/sha256sum and/or gpg before executing; update the
examples around the existing curl string so you show (1) curl -o install.sh
<url>, (2) curl -o install.sh.sha256 or curl <url>.asc, (3) verify with
sha256sum --check or gpg --verify, and only then run sh install.sh, and mention
the optional CI-friendly non-interactive flags. Ensure the docs include the
exact curl command string being replaced and a short note pointing to where
users can find the canonical checksum/signature.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@cli/commands.mdx`:
- Around line 52-55: The docs for the `clean` command currently say “Remove all
`.graph.*` files” which conflicts with the promoted three-file shard set; update
the `clean` command description so it explicitly lists the full set of shard
filenames it removes (e.g., `.graph.*`, `.calls.*`, `.deps.*`, and `.impact.*`)
or state that it removes any shard files matching the pattern
`.{graph,calls,deps,impact}.*`; change the line under the `clean` heading to
unambiguously reflect this behavior so users know exactly which files `clean`
deletes.

In `@cli/configuration.mdx`:
- Around line 16-25: Update the wording that currently mentions only ".graph.*"
(the "files: true" description and any sentences that call out ".graph.*") to
use the broader term "graph sidecars" and explicitly note that this includes all
shard formats such as ".graph.*", ".calls.*", ".deps.*", and ".impact.*"; ensure
the phrase replaces any narrow mentions so the Environment variables /
SUPERMODEL_FILES description consistently refers to "graph sidecars" (including
those specific shard file patterns).

In `@cli/install.mdx`:
- Line 3: Update the cli/install.mdx docs to include an explicit Windows-native
install example alongside the macOS/Linux lines: add a PowerShell npm install
snippet (e.g., "npm install -g `@supermodel/cli`" run in an elevated PowerShell)
and optionally a native package manager variant (winget or choco) with the exact
command to install the Supermodel CLI; place these examples where the existing
platform install commands appear so Windows is unambiguous and mirrors the
macOS/Linux examples already present.

In `@cli/overview.mdx`:
- Line 7: The sentence in overview.mdx claiming “no prompt changes” conflicts
with guidance in cli/quickstart.mdx and cli/file-mode.mdx that recommend
appending "supermodel skill" to agent instructions; update the phrasing in
overview.mdx (the line containing “no prompt changes, no extra context windows,
no agent-specific integration”) to a softened version such as “works without
deep agent-specific integrations, with optional prompt guidance” so it
accurately reflects that the CLI can be used out-of-the-box but may benefit from
optional prompt/appended instructions like `supermodel skill`.

---

Nitpick comments:
In `@cli/install.mdx`:
- Around line 18-19: Replace the direct pipe-to-shell example "curl -fsSL
https://supermodeltools.com/install.sh | sh" with a documented two-step
alternative: first download the script to a file (e.g., save as install.sh) and
fetch a published checksum/signature alongside it, then verify the file using
shasum/sha256sum and/or gpg before executing; update the examples around the
existing curl string so you show (1) curl -o install.sh <url>, (2) curl -o
install.sh.sha256 or curl <url>.asc, (3) verify with sha256sum --check or gpg
--verify, and only then run sh install.sh, and mention the optional CI-friendly
non-interactive flags. Ensure the docs include the exact curl command string
being replaced and a short note pointing to where users can find the canonical
checksum/signature.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 7c85ecb6-c0b7-419b-8a6b-17a79c0cbc2a

📥 Commits

Reviewing files that changed from the base of the PR and between c5d7d51 and 7bc69df.

📒 Files selected for processing (9)
  • cli/agents.mdx
  • cli/commands.mdx
  • cli/configuration.mdx
  • cli/file-mode.mdx
  • cli/install.mdx
  • cli/overview.mdx
  • cli/quickstart.mdx
  • docs.json
  • index.mdx

Comment thread cli/commands.mdx Outdated
Comment on lines +52 to +55
### `clean`

Remove all `.graph.*` files from the repository.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor

Clarify clean scope for three-file shards.

Line 54 says “Remove all .graph.* files,” but the docs now promote .calls.*, .deps.*, and .impact.* as the default shard set. Please explicitly state whether clean removes those too, so users don’t get conflicting expectations.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@cli/commands.mdx` around lines 52 - 55, The docs for the `clean` command
currently say “Remove all `.graph.*` files” which conflicts with the promoted
three-file shard set; update the `clean` command description so it explicitly
lists the full set of shard filenames it removes (e.g., `.graph.*`, `.calls.*`,
`.deps.*`, and `.impact.*`) or state that it removes any shard files matching
the pattern `.{graph,calls,deps,impact}.*`; change the line under the `clean`
heading to unambiguously reflect this behavior so users know exactly which files
`clean` deletes.

Comment thread cli/configuration.mdx Outdated
Comment on lines +16 to +25
files: true # write .graph.* sidecars (or SUPERMODEL_FILES=false)
```

## Environment variables

| Variable | Purpose |
|---|---|
| `SUPERMODEL_API_KEY` | API key. Overrides the config file. |
| `SUPERMODEL_API_BASE` | API base URL. Overrides the config file. |
| `SUPERMODEL_FILES` | Set to `false` to disable `.graph.*` writing globally. |
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor

Sidecar terminology is a bit inconsistent.

Line 16 and Line 25 frame file writes as only .graph.*, while other new pages describe .calls.*/.deps.*/.impact.* as standard output. Suggest broadening wording to “graph sidecars” (including all shard formats).

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@cli/configuration.mdx` around lines 16 - 25, Update the wording that
currently mentions only ".graph.*" (the "files: true" description and any
sentences that call out ".graph.*") to use the broader term "graph sidecars" and
explicitly note that this includes all shard formats such as ".graph.*",
".calls.*", ".deps.*", and ".impact.*"; ensure the phrase replaces any narrow
mentions so the Environment variables / SUPERMODEL_FILES description
consistently refers to "graph sidecars" (including those specific shard file
patterns).

Comment thread cli/install.mdx Outdated
@@ -0,0 +1,86 @@
---
title: 'Installation'
description: 'Install the Supermodel CLI on macOS, Linux, or Windows'
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor

Windows support is stated but not explicitly shown.

Line 3 says Windows is supported, but there’s no concrete Windows-native install example. Adding one explicit path (e.g., npm on PowerShell, or another official method) would remove ambiguity.

Also applies to: 15-27

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@cli/install.mdx` at line 3, Update the cli/install.mdx docs to include an
explicit Windows-native install example alongside the macOS/Linux lines: add a
PowerShell npm install snippet (e.g., "npm install -g `@supermodel/cli`" run in an
elevated PowerShell) and optionally a native package manager variant (winget or
choco) with the exact command to install the Supermodel CLI; place these
examples where the existing platform install commands appear so Windows is
unambiguous and mirrors the macOS/Linux examples already present.

Comment thread cli/overview.mdx Outdated
icon: 'terminal'
---

The Supermodel CLI maps every file, function, and call relationship in your repo, then writes plain-text `.graph.*` sidecar files next to each source file. Your agent picks them up automatically through its normal file-reading tools — no prompt changes, no extra context windows, no agent-specific integration.
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor

Onboarding claim conflicts with other new docs.

Line 7 says “no prompt changes,” but cli/quickstart.mdx (Line 50-56) and cli/file-mode.mdx (Line 71-77) recommend appending supermodel skill to agent instructions. Consider softening this line (for example: “works without deep agent-specific integrations, with optional prompt guidance”).

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@cli/overview.mdx` at line 7, The sentence in overview.mdx claiming “no prompt
changes” conflicts with guidance in cli/quickstart.mdx and cli/file-mode.mdx
that recommend appending "supermodel skill" to agent instructions; update the
phrasing in overview.mdx (the line containing “no prompt changes, no extra
context windows, no agent-specific integration”) to a softened version such as
“works without deep agent-specific integrations, with optional prompt guidance”
so it accurately reflects that the CLI can be used out-of-the-box but may
benefit from optional prompt/appended instructions like `supermodel skill`.

Restructures the CLI tab to match the API reference style — each
command gets its own dedicated page. Drops the overview, file-mode,
agents, and configuration pages; the CLI is just a CLI, install
instructions and a quickstart are enough surrounding context.

Navigation:
  Get started → install, quickstart
  Commands    → one page per subcommand (22 total, including the
                bare `supermodel` watch daemon)

Each command page mirrors the structure used in IDE/terminal docs:
synopsis, description, flags table, examples, aliases.
Copy link
Copy Markdown

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@cli/commands/docs.mdx`:
- Line 6: The documentation uses a lowercase "markdown" in the phrase "converts
the returned code graph to markdown"; update that token to "Markdown" (capital
M) to follow proper noun/style conventions — locate the exact sentence in the
docs.mdx content and replace "markdown" with "Markdown" so the sentence reads
"converts the returned code graph to Markdown".
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 5adc295a-0c31-4eec-9bbf-7d49368a3f74

📥 Commits

Reviewing files that changed from the base of the PR and between 7bc69df and 756ec05.

📒 Files selected for processing (26)
  • cli/commands/analyze.mdx
  • cli/commands/audit.mdx
  • cli/commands/blast-radius.mdx
  • cli/commands/clean.mdx
  • cli/commands/compact.mdx
  • cli/commands/dead-code.mdx
  • cli/commands/docs.mdx
  • cli/commands/find.mdx
  • cli/commands/focus.mdx
  • cli/commands/graph.mdx
  • cli/commands/hook.mdx
  • cli/commands/login.mdx
  • cli/commands/logout.mdx
  • cli/commands/mcp.mdx
  • cli/commands/restore.mdx
  • cli/commands/setup.mdx
  • cli/commands/share.mdx
  • cli/commands/skill.mdx
  • cli/commands/status.mdx
  • cli/commands/update.mdx
  • cli/commands/version.mdx
  • cli/commands/watch.mdx
  • cli/install.mdx
  • cli/quickstart.mdx
  • docs.json
  • index.mdx
✅ Files skipped from review due to trivial changes (24)
  • cli/commands/hook.mdx
  • cli/commands/logout.mdx
  • cli/commands/skill.mdx
  • cli/commands/clean.mdx
  • cli/commands/analyze.mdx
  • cli/commands/focus.mdx
  • docs.json
  • cli/commands/status.mdx
  • cli/commands/update.mdx
  • cli/commands/find.mdx
  • cli/commands/share.mdx
  • cli/install.mdx
  • cli/quickstart.mdx
  • cli/commands/watch.mdx
  • cli/commands/login.mdx
  • cli/commands/setup.mdx
  • cli/commands/mcp.mdx
  • cli/commands/blast-radius.mdx
  • cli/commands/restore.mdx
  • cli/commands/dead-code.mdx
  • cli/commands/graph.mdx
  • cli/commands/compact.mdx
  • cli/commands/audit.mdx
  • cli/commands/version.mdx
🚧 Files skipped from review as they are similar to previous changes (1)
  • index.mdx

Comment thread cli/commands/docs.mdx
description: 'Generate static architecture documentation for a repository'
---

Generates a static HTML site documenting the architecture of a codebase. The command uploads the repository to the Supermodel API, converts the returned code graph to markdown, and builds a browsable static site with search, dependency graphs, taxonomy navigation, and SEO metadata. The site also emits machine-readable artifacts (JSON-LD and `LLMS.txt`) alongside the HTML.
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor

Capitalize “Markdown” (proper noun).

Line [6] says “converts … to markdown”. For consistency/style (and per typical doclint expectations), it should be “Markdown”.

✅ Proposed fix
-Generates a static HTML site documenting the architecture of a codebase. The command uploads the repository to the Supermodel API, converts the returned code graph to markdown, and builds a browsable static site with search, dependency graphs, taxonomy navigation, and SEO metadata. The site also emits machine-readable artifacts (JSON-LD and `LLMS.txt`) alongside the HTML.
+Generates a static HTML site documenting the architecture of a codebase. The command uploads the repository to the Supermodel API, converts the returned code graph to Markdown, and builds a browsable static site with search, dependency graphs, taxonomy navigation, and SEO metadata. The site also emits machine-readable artifacts (JSON-LD and `LLMS.txt`) alongside the HTML.
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
Generates a static HTML site documenting the architecture of a codebase. The command uploads the repository to the Supermodel API, converts the returned code graph to markdown, and builds a browsable static site with search, dependency graphs, taxonomy navigation, and SEO metadata. The site also emits machine-readable artifacts (JSON-LD and `LLMS.txt`) alongside the HTML.
Generates a static HTML site documenting the architecture of a codebase. The command uploads the repository to the Supermodel API, converts the returned code graph to Markdown, and builds a browsable static site with search, dependency graphs, taxonomy navigation, and SEO metadata. The site also emits machine-readable artifacts (JSON-LD and `LLMS.txt`) alongside the HTML.
🧰 Tools
🪛 LanguageTool

[uncategorized] ~6-~6: Did you mean the formatting language “Markdown” (= proper noun)?
Context: ...PI, converts the returned code graph to markdown, and builds a browsable static site wit...

(MARKDOWN_NNP)

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@cli/commands/docs.mdx` at line 6, The documentation uses a lowercase
"markdown" in the phrase "converts the returned code graph to markdown"; update
that token to "Markdown" (capital M) to follow proper noun/style conventions —
locate the exact sentence in the docs.mdx content and replace "markdown" with
"Markdown" so the sentence reads "converts the returned code graph to Markdown".

@jonathanpopham jonathanpopham merged commit 414f936 into main Apr 29, 2026
2 checks passed
jonathanpopham added a commit to supermodeltools/cli that referenced this pull request Apr 29, 2026
* Link to CLI docs from the README

Adds the new docs.supermodeltools.com/cli home as a prominent link near
the top of the README and as a row in the Links table. The docs cover
install, file mode, agent integration, configuration, and a full
command reference — see supermodeltools/docs#7.

* Point CLI docs link at install page
@coderabbitai coderabbitai Bot mentioned this pull request Apr 29, 2026
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant