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
{{ message }}
Repository navigation
Docs: clarify network boundaries of vg serve --local and related modes #166
The CLI has several modes with different network semantics (vg serve, vg serve --local, vg code --local, vg scan --offline, explicit push/upload). Users need a clear matrix — related to but not the same as #153 (install/serve recovery checklist).
What to do
Add a short docs section with a behaviour matrix covering at least:
Mode
May fetch?
May upload?
Writes local config/artifacts?
vg serve
vg serve --local
vg code --local (if shipped)
vg scan --offline
push/upload path (if shipped)
Verify each cell against current behaviour. Explain that vg install writes assistant config by design while upload remains opt-in.
Acceptance
Matrix matches shipped behaviour
Distinguishes “no upload” from “no local writes”
Uses vg consistently
A newcomer can pick the right mode without reading source
Mentoring notes
Docs-only unless a wording/diagnostic fix is required. DCO on commits.
The flags are already documented in code, so the matrix should be filled in from these sources rather than from memory.
Global flags (src/cli-options.ts). The comment there spells out the split:
--offline answers "may this reach the network?": no model download, no catalog fetch, no upload.
--local answers "where does inference run?": on-device only, never a hosted model, and it implies --offline. The converse does not hold.
vg serve (src/commands/serve.ts). Stdio by default; --http binds 127.0.0.1:7437 unless --host changes it. Uploads are opt-in only: --share-stats uploads the counts-only usage ledger, is off by default, and is disabled under --local. --savings records counts locally only. --compress adds a loopback listener (default port from VG_PROXY_PORT or 8787).
vg scan --offline (src/reporting/commands/scan.ts): "Run without network calls; do not upload results". Pair it with --package-manifest for drift without registry lookups (README already shows vg scan --offline --package-manifest ./package-versions.zip --max-privacy).
Columns I'd use. May fetch / May upload / Binds a port / Writes local files. "Writes local files" needs its own column because vg serve writes .vibgrate/ map and cache files even when nothing leaves the machine, and vg install writes assistant config by design.
Acceptance check. Each cell should cite the flag or code path it came from in the PR description, and the doc should say plainly that --local without network still writes local artifacts unless --no-local-artifacts / --max-privacy applies (scan only). Cross-link #153 rather than repeating its recovery steps.
Activity
vibgrate-team commentedon Oct 4, 2026
Spec notes for implementers
The flags are already documented in code, so the matrix should be filled in from these sources rather than from memory.
Global flags (
src/cli-options.ts). The comment there spells out the split:--offlineanswers "may this reach the network?": no model download, no catalog fetch, no upload.--localanswers "where does inference run?": on-device only, never a hosted model, and it implies--offline. The converse does not hold.vg serve(src/commands/serve.ts). Stdio by default;--httpbinds127.0.0.1:7437unless--hostchanges it. Uploads are opt-in only:--share-statsuploads the counts-only usage ledger, is off by default, and is disabled under--local.--savingsrecords counts locally only.--compressadds a loopback listener (default port fromVG_PROXY_PORTor 8787).vg scan --offline(src/reporting/commands/scan.ts): "Run without network calls; do not upload results". Pair it with--package-manifestfor drift without registry lookups (README already showsvg scan --offline --package-manifest ./package-versions.zip --max-privacy).Columns I'd use. May fetch / May upload / Binds a port / Writes local files. "Writes local files" needs its own column because
vg servewrites.vibgrate/map and cache files even when nothing leaves the machine, andvg installwrites assistant config by design.Acceptance check. Each cell should cite the flag or code path it came from in the PR description, and the doc should say plainly that
--localwithout network still writes local artifacts unless--no-local-artifacts/--max-privacyapplies (scan only). Cross-link #153 rather than repeating its recovery steps.