You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Reduce the option surface on two commands:
whygraph init (7 flags -> 3: --agent, --force, --yes)
- Drop --list-agents; the supported-agents list now renders in
`whygraph init --help` via a no-rewrap epilog.
- Drop --print entirely (flag + docstring mentions); the manual-merge
path survives for user-scoped agents via render_snippet().
- Drop --install-assets/--no-install-assets; assets always install
(still --force-gated for overwrite).
- Drop --skip-preflight; preflight diagnostics always run.
whygraph scan
- Rename --no-llm-descriptions -> --skip-analyze (same behavior),
propagated to the git-hook helper, MCP/analyze comments, CLAUDE.md,
and the docs site.
Tests updated (incl. rename of the scan flag test file); full suite,
ruff check, and ruff format --check all pass.
Copy file name to clipboardExpand all lines: CLAUDE.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -87,7 +87,7 @@ CodeGraph indexing belongs to **`whygraph scan`, not `whygraph init`** — `init
87
87
88
88
### Auto-rescan git hooks
89
89
90
-
`whygraph hooks install` (opt-in; `cli/commands/hooks.py`) wires `post-commit` / `post-merge` / `post-rewrite` to keep the DBs current as the developer works — no daemon. Each hook execs a shared helper (`.whygraph/hooks/whygraph-scan`, gitignored) that runs `whygraph scan --no-llm-descriptions --no-remote` (git history + `codegraph sync` only — fast, offline, no token; LLM descriptions stay on lazy backfill). The helper is **detached** (commits return instantly) and **single-flight + coalescing** (portable `mkdir` lock + a `pending` flag, since macOS has no `flock`), so rapid commits neither stack nor drop the latest `HEAD`. Installs are **sentinel-guarded** (`# >>> whygraph managed >>>`) and append to a foreign hook rather than clobber it. The `--no-remote` flag on `scan` exists for this path; `db/engine.py` sets `PRAGMA busy_timeout` so a background rescan and a manual scan don't collide.
90
+
`whygraph hooks install` (opt-in; `cli/commands/hooks.py`) wires `post-commit` / `post-merge` / `post-rewrite` to keep the DBs current as the developer works — no daemon. Each hook execs a shared helper (`.whygraph/hooks/whygraph-scan`, gitignored) that runs `whygraph scan --skip-analyze --no-remote` (git history + `codegraph sync` only — fast, offline, no token; LLM descriptions stay on lazy backfill). The helper is **detached** (commits return instantly) and **single-flight + coalescing** (portable `mkdir` lock + a `pending` flag, since macOS has no `flock`), so rapid commits neither stack nor drop the latest `HEAD`. Installs are **sentinel-guarded** (`# >>> whygraph managed >>>`) and append to a foreign hook rather than clobber it. The `--no-remote` flag on `scan` exists for this path; `db/engine.py` sets `PRAGMA busy_timeout` so a background rescan and a manual scan don't collide.
91
91
92
92
Deferred (net-new, not built yet): a project registry for cross-repo orchestration, a persistent/server mode, and per-branch CodeGraph/WhyGraph databases.
Copy file name to clipboardExpand all lines: docs/guide/scanning.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,7 +29,7 @@ without polluting area history.
29
29
30
30
| Flag | Default | What it does |
31
31
|---|---|---|
32
-
|`--no-llm-descriptions`| off | Skip the per-commit LLM phase. Git and GitHub crawlers still run; descriptions backfill lazily and on a later full scan. |
32
+
|`--skip-analyze`| off | Skip the per-commit LLM phase. Git and GitHub crawlers still run; descriptions backfill lazily and on a later full scan. |
33
33
|`--codegraph / --no-codegraph`| on | Refresh the CodeGraph index concurrently with the crawl. |
34
34
|`--codegraph-image TEXT`| pinned tag | Override the Docker image for the CodeGraph fallback. Ignored when a local `codegraph` binary is found. |
35
35
|`--remote / --no-remote`| on | Crawl the remote for PRs and issues per `[scan].provider`. `--no-remote` is a fast, offline, token-free scan. |
@@ -38,7 +38,7 @@ without polluting area history.
38
38
A common fast pass while iterating:
39
39
40
40
```bash
41
-
whygraph scan --no-remote --no-llm-descriptions
41
+
whygraph scan --no-remote --skip-analyze
42
42
```
43
43
44
44
!!! tip "Lazy backfill"
@@ -55,7 +55,7 @@ whygraph hooks install
55
55
```
56
56
57
57
This wires `post-commit`, `post-merge`, and `post-rewrite` to run
58
-
`whygraph scan --no-remote --no-llm-descriptions`**in the background**. Git history and a CodeGraph
58
+
`whygraph scan --no-remote --skip-analyze`**in the background**. Git history and a CodeGraph
59
59
`sync` only - no LLM, no remote calls - so commits stay instant and the scan is offline and
Copy file name to clipboardExpand all lines: docs/reference/cli.md
+5-7Lines changed: 5 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -41,14 +41,12 @@ agents are project-scoped, so the config file is written inside the repo.
41
41
42
42
| Option | Description |
43
43
|---|---|
44
-
|`--agent [claude\|codex\|copilot\|cursor\|vscode]`| Wire the MCP server into the named agent's config. On a terminal, skips the interactive agent prompt. |
44
+
|`--agent [claude\|codex\|copilot\|cursor\|vscode]`| Wire the MCP server into the named agent's config. On a terminal, skips the interactive agent prompt. Run `whygraph init --help` for the full list of supported agents. |
45
45
|`--yes` / `-y`| Accept all defaults without prompting (also implied off a TTY). Writes a default `whygraph.toml` only if none exists. |
46
-
|`--print`| Print the MCP snippet to stdout instead of writing any config file. |
47
-
|`--list-agents`| List supported agents (with config-file paths) and exit. |
48
-
|`--install-assets / --no-install-assets`| Copy the chosen agent's bundled assets into the project. Default: enabled. No-op for agents that ship no asset tree. |
49
-
|`--skip-preflight`| Skip the host-tool diagnostics that normally run first. For known-good scripted environments. |
50
46
|`--force`| When installing assets, overwrite existing files in the agent's destination directory. |
51
47
48
+
Preflight diagnostics and asset install both always run — the chosen agent's bundled assets are copied into the repo automatically (use `--force` to overwrite local edits).
49
+
52
50
See [Wiring your editor](../guide/editors.md) for the per-agent paths.
53
51
54
52
## `whygraph scan`
@@ -59,7 +57,7 @@ picks up new commits and backfills what's missing.
59
57
60
58
| Option | Default | Description |
61
59
|---|---|---|
62
-
|`--no-llm-descriptions`| off | Skip the per-commit LLM description phase. The git and GitHub crawlers still run; descriptions backfill lazily on demand and on a later full scan. |
60
+
|`--skip-analyze`| off | Skip the per-commit LLM description phase. The git and GitHub crawlers still run; descriptions backfill lazily on demand and on a later full scan. |
63
61
|`--codegraph / --no-codegraph`| on | Refresh the CodeGraph index concurrently with the crawl - `codegraph sync` when an index exists, `codegraph init -i` on first run. A failure here warns rather than aborting. |
64
62
|`--codegraph-image TEXT`| pinned tag | Override the Docker image used for the CodeGraph refresh fallback. Ignored when a local `codegraph` binary is found. |
65
63
|`--remote / --no-remote`| on | Crawl the source-control remote (GitHub PRs / issues) per `[scan].provider`. `--no-remote` skips it for a fast, offline, token-free scan. |
@@ -99,5 +97,5 @@ whygraph hooks install
99
97
```
100
98
101
99
The hooks wire `post-commit`, `post-merge`, and `post-rewrite` to run
102
-
`whygraph scan --no-remote --no-llm-descriptions` in the background. See
100
+
`whygraph scan --no-remote --skip-analyze` in the background. See
103
101
[Keep it fresh](../guide/scanning.md#keep-it-fresh) for the details.
0 commit comments