Skip to content

Make CLI quickstart watcher-first#13

Merged
jonathanpopham merged 4 commits intomainfrom
docs/watcher-first-quickstart
Apr 30, 2026
Merged

Make CLI quickstart watcher-first#13
jonathanpopham merged 4 commits intomainfrom
docs/watcher-first-quickstart

Conversation

@jonathanpopham
Copy link
Copy Markdown
Collaborator

@jonathanpopham jonathanpopham commented Apr 30, 2026

Summary

  • Lead CLI quickstart with running bare supermodel from the repo
  • Move supermodel analyze into a one-shot analysis section
  • Update the homepage quickstart away from setup-first/login-first framing

Validation

  • Verified bare supermodel first-run behavior with an isolated HOME
  • Verified configured supermodel starts the live watcher from a temp repo and cleans up on Ctrl+C
  • Ran supermodel skill >> CLAUDE.md in a temp repo
  • Ran supermodel analyze --no-shards in a temp repo
  • Ran jq . docs.json
  • Ran git diff --check
  • Ran mintlify openapi-check openapi.yaml

Note: mintlify broken-links still reports the existing generated API reference false positives for /api-reference, /api-reference/data-plane/call-graph, and /api-reference/data-plane/domain-graph; those were already known and are not introduced by this change.

Summary by CodeRabbit

  • Documentation
    • Quickstart reworked to a single first-run CLI command that starts a live "watcher" workflow with automatic initialization.
    • Removed the explicit setup/auth wizard; clarified stopping with Ctrl+C and cleanup of generated .graph.* sidecars.
    • Added guidance to append agent instructions via redirection, avoid duplicate Supermodel blocks, and prefer graph-before-source ordering.
    • Introduced a dedicated one-shot analysis section (including --no-shards) and updated links to watcher and analyze reference pages.

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Apr 30, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 045cba9e-76cc-4da0-b766-c8928787617b

📥 Commits

Reviewing files that changed from the base of the PR and between e99712a and 2ea3bb5.

📒 Files selected for processing (2)
  • cli/quickstart.mdx
  • index.mdx
🚧 Files skipped from review as they are similar to previous changes (2)
  • cli/quickstart.mdx
  • index.mdx

Walkthrough

Reworks quickstart to run supermodel in-repo as a live "graph watcher" (auto-setup on first run), replaces explicit browser-login/setup, documents .graph.* sidecar handling and agent-skill append usage (supermodel skill >> CLAUDE.md), and adds a one-shot supermodel analyze section with --no-shards.

Changes

Cohort / File(s) Summary
CLI Quickstart docs
cli/quickstart.mdx
Replaced interactive supermodel setup flow with in-repo supermodel live watcher guidance, instructions to keep it running (stop with Ctrl+C) and clean .graph.* sidecars, add --fs-watch option, and describe one-shot supermodel analyze (--no-shards).
Site index / quickstart entry
index.mdx
Updated quickstart narrative to reference the watcher workflow, renamed "daemon" → "watcher", adjusted agent-skill append guidance, updated links to watcher and analyze command references, and renumbered optional config section.

Sequence Diagram(s)

(none — documentation-only change, no new multi-component control flow to diagram)

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs

Poem

Run the watcher, let the graph breathe slow,
Sidecars line up — files in tidy row.
Append a skill with >>, don't overwrite,
One-shot or live, the graph will work all night. ✨

🚥 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 'Make CLI quickstart watcher-first' clearly and concisely summarizes the main change: reframing the CLI quickstart documentation to prioritize running the watcher (bare supermodel command) first, followed by supermodel analyze as a secondary one-shot option.
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 docs/watcher-first-quickstart

Review rate limit: 1/5 review remaining, refill in 39 minutes and 54 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.

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (2)
index.mdx (1)

83-93: ⚠️ Potential issue | 🟡 Minor | ⚡ Quick win

Terminology regression: “no daemon” should be “no watcher.”

This section reintroduces the old term, which conflicts with the watcher-first wording elsewhere.

Suggested consistency fix
-For one-shot analysis (no daemon), use:
+For one-shot analysis (no watcher), use:
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@index.mdx` around lines 83 - 93, The text uses inconsistent terminology:
replace the phrase "no daemon" with "no watcher" in the section describing
one-shot analysis so it matches the watcher-first language used elsewhere;
update the sentence that currently reads "For one-shot analysis (no daemon),
use:" to "For one-shot analysis (no watcher), use:" and scan nearby mentions of
"daemon" in the same paragraph to ensure they use "watcher" instead (refer to
the examples 'supermodel' and 'supermodel analyze' to locate the exact lines).
cli/quickstart.mdx (1)

71-71: ⚠️ Potential issue | 🟡 Minor | ⚡ Quick win

Command reference sentence over-promises for an analyze-specific link.

Line 71 says “every command” but links to /cli/commands/analyze (single command page). Please either point to a full commands index or narrow the wording. Same copy issue appears in index.mdx Line 107.

Suggested wording-only fix
-See the [command reference](/cli/commands/analyze) for every command, flag, and example.
+See the [`analyze` command reference](/cli/commands/analyze) for flags and examples.
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@cli/quickstart.mdx` at line 71, The sentence "See the [command
reference](/cli/commands/analyze) for every command, flag, and example."
over-promises because the link targets a single command; either update the link
target to the full commands index (/cli/commands) or change the copy to
reference the analyze command only (e.g., "See the [analyze
command](/cli/commands/analyze) for flags and examples."). Apply the same change
to the identical line in index.mdx so both files (the sentence text "See the
[command reference](/cli/commands/analyze) for every command, flag, and
example.") are consistent.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Outside diff comments:
In `@cli/quickstart.mdx`:
- Line 71: The sentence "See the [command reference](/cli/commands/analyze) for
every command, flag, and example." over-promises because the link targets a
single command; either update the link target to the full commands index
(/cli/commands) or change the copy to reference the analyze command only (e.g.,
"See the [analyze command](/cli/commands/analyze) for flags and examples.").
Apply the same change to the identical line in index.mdx so both files (the
sentence text "See the [command reference](/cli/commands/analyze) for every
command, flag, and example.") are consistent.

In `@index.mdx`:
- Around line 83-93: The text uses inconsistent terminology: replace the phrase
"no daemon" with "no watcher" in the section describing one-shot analysis so it
matches the watcher-first language used elsewhere; update the sentence that
currently reads "For one-shot analysis (no daemon), use:" to "For one-shot
analysis (no watcher), use:" and scan nearby mentions of "daemon" in the same
paragraph to ensure they use "watcher" instead (refer to the examples
'supermodel' and 'supermodel analyze' to locate the exact lines).

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 04e94400-5d61-4baa-b7bf-43c1faf05ce6

📥 Commits

Reviewing files that changed from the base of the PR and between c4072be and c5fef6b.

📒 Files selected for processing (2)
  • cli/quickstart.mdx
  • index.mdx

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.

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

29-31: ⚡ Quick win

Prevent duplicate agent instructions on repeated runs.

Using >> every time will append another copy of the same prompt block to CLAUDE.md. A tiny clarification here would save users from instruction-file bloat.

Proposed doc tweak
-supermodel skill >> CLAUDE.md
-# or AGENTS.md, .cursorrules, etc.
+supermodel skill > CLAUDE.md
+# use >> only if you intentionally want to append again
+# or AGENTS.md, .cursorrules, etc.
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@cli/quickstart.mdx` around lines 29 - 31, The doc currently shows "supermodel
skill >> CLAUDE.md" which will append the prompt every run and cause duplicate
blocks; update the quickstart text to clarify use: instruct users to use a
single right-angle redirect (>) to overwrite the file if they want only the
latest prompt, or explicitly note that ">>" appends and should be used only when
intentionally accumulating prompts (or instruct to manually remove existing
blocks before re-running). Reference the exact example string "supermodel skill
>> CLAUDE.md" so the change is made next to that line in the docs.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Nitpick comments:
In `@cli/quickstart.mdx`:
- Around line 29-31: The doc currently shows "supermodel skill >> CLAUDE.md"
which will append the prompt every run and cause duplicate blocks; update the
quickstart text to clarify use: instruct users to use a single right-angle
redirect (>) to overwrite the file if they want only the latest prompt, or
explicitly note that ">>" appends and should be used only when intentionally
accumulating prompts (or instruct to manually remove existing blocks before
re-running). Reference the exact example string "supermodel skill >> CLAUDE.md"
so the change is made next to that line in the docs.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 1c130b6f-8207-4520-9299-f0537384a6df

📥 Commits

Reviewing files that changed from the base of the PR and between c5fef6b and 8348a2d.

📒 Files selected for processing (2)
  • cli/quickstart.mdx
  • index.mdx

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: 2

🤖 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/quickstart.mdx`:
- Line 24: The sentence currently implies file-change updates happen
automatically; change it to explicitly state that live updates require either
installing the supermodel hook (via `supermodel hook`) to send notifications or
running the watcher with the `--fs-watch` flag, e.g., append a clause saying
"Note: file-change updates are driven by supermodel hook notifications unless
you enable the local filesystem watcher with `--fs-watch`" so users who skip
hook installation won't assume the watcher is broken.
- Around line 14-16: Update the wording that currently states "On first run,
`supermodel` opens the setup flow automatically." to align with the command
docs: clarify that setup is only invoked when no prior configuration exists (or
when running the separate setup command), and that the live graph watcher (the
daemon) only starts either after a completed setup or when the user explicitly
requests daemon mode (e.g., via the daemon flag); replace the unconditional
phrasing with a conditional sentence that mentions the separate setup command
and the daemon/--daemon behavior and keep the subsequent sentence about starting
the live graph watcher conditional on setup completion or explicit daemon
invocation.
🪄 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: 7a2e357d-efc7-40a3-ab0c-faf9ea16b359

📥 Commits

Reviewing files that changed from the base of the PR and between 8348a2d and e99712a.

📒 Files selected for processing (2)
  • cli/quickstart.mdx
  • index.mdx
🚧 Files skipped from review as they are similar to previous changes (1)
  • index.mdx

Comment thread cli/quickstart.mdx Outdated
Comment on lines +14 to +16
On first run, `supermodel` opens the setup flow automatically. It authenticates you, confirms the repo, offers to install the Claude Code hook, and enables `.graph.*` sidecar files.

```bash
supermodel login --token smsk_live_...
After setup, the same command starts the live graph watcher:
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 | 🟠 Major | ⚡ Quick win

Align first-run setup wording with command docs

Line 14 currently reads as unconditional behavior, but your command references describe setup as a separate command and daemon mode separately. This contradiction can confuse first-time users about what actually happens when they run supermodel.

Suggested wording tweak
-On first run, `supermodel` opens the setup flow automatically. It authenticates you, confirms the repo, offers to install the Claude Code hook, and enables `.graph.*` sidecar files.
+If Supermodel is not configured yet, `supermodel` opens the setup flow first. It authenticates you, confirms the repo, offers to install the Claude Code hook, and enables `.graph.*` sidecar files.
📝 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
On first run, `supermodel` opens the setup flow automatically. It authenticates you, confirms the repo, offers to install the Claude Code hook, and enables `.graph.*` sidecar files.
```bash
supermodel login --token smsk_live_...
After setup, the same command starts the live graph watcher:
If Supermodel is not configured yet, `supermodel` opens the setup flow first. It authenticates you, confirms the repo, offers to install the Claude Code hook, and enables `.graph.*` sidecar files.
After setup, the same command starts the live graph watcher:
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@cli/quickstart.mdx` around lines 14 - 16, Update the wording that currently
states "On first run, `supermodel` opens the setup flow automatically." to align
with the command docs: clarify that setup is only invoked when no prior
configuration exists (or when running the separate setup command), and that the
live graph watcher (the daemon) only starts either after a completed setup or
when the user explicitly requests daemon mode (e.g., via the daemon flag);
replace the unconditional phrasing with a conditional sentence that mentions the
separate setup command and the daemon/--daemon behavior and keep the subsequent
sentence about starting the live graph watcher conditional on setup completion
or explicit daemon invocation.

Comment thread cli/quickstart.mdx Outdated
@jonathanpopham jonathanpopham merged commit 50b581d into main Apr 30, 2026
2 checks passed
@jonathanpopham jonathanpopham deleted the docs/watcher-first-quickstart branch April 30, 2026 22:27
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