pub struct InitArgs {
pub server_url: Option<String>,
pub claude_settings: Option<ClaudeSettingsTarget>,
pub no_gitignore: bool,
pub no_user_context: bool,
pub user_context: Option<String>,
pub global: bool,
pub agent: Agent,
pub claude_telemetry: bool,
pub no_claude_telemetry: bool,
pub workspace: bool,
pub project: Option<String>,
}Expand description
Arguments of init.
Fields§
§server_url: Option<String>Visdom server URL for repo registration
claude_settings: Option<ClaudeSettingsTarget>Where to install Claude Code hooks: shared (.claude/settings.json,
typically committed) or local (.claude/settings.local.json,
personal/git-ignored). When omitted, prompts interactively if stdin
is a TTY, otherwise defaults to shared.
no_gitignore: boolSkip updating .gitignore. Use this when your project manages .gitignore separately or you want to commit the Claude settings files.
no_user_context: boolDisable the cross-repo user-level context for this project. Also
applies to --global, where it disables the user-level context
instead of the per-repo one.
user_context: Option<String>Enable the user-level context and read it from this explicit path
(conflicts with –no-user-context). Also applies to --global,
where it sets the path the user-level context is read from.
global: boolInstall Visdom once for ALL sessions of the chosen –agent on
this machine, instead of initializing the current repo: Claude Code
hooks into ~/.claude/ (settings.json + CLAUDE.md), Codex hooks into
/.codex/ (hooks.json + AGENTS.md), the GSD extension via
/.config/amp/plugins/ when unset).
Does not require git. Also writes a
user-level context config (honoring –no-user-context /
–user-context). Conflicts with the per-repo-only flags
–server-url, –claude-settings and –no-gitignore.gsd install (global), the OpenCode plugin into the user config
dir’s opencode/plugins/, or the Amp plugin into
$XDG_CONFIG_HOME/amp/plugins/ (
agent: AgentWhich agent to install hooks for. The default installs Claude Code
hooks (.claude/settings.json or settings.local.json); codex writes
.codex/hooks.json; gsd (alias gsd2) registers the GSD extension
with gsd install -l; opencode writes
a plugin under .opencode/plugins/; amp writes
a plugin under .amp/plugins/. With –global, the user-level
equivalents instead.
claude_telemetry: boolExport Claude Code’s own per-request cost to Visdom over
OpenTelemetry (the default): writes the OTel log exporter settings
and an otelHeadersHelper (the otel-headers command) into the
USER-level ~/.claude/settings.json, per-repo or with –global. An
existing exporter setup is left untouched (collector instructions
are printed instead). Without either flag, an interactive init asks
(default yes), and a non-interactive one enables it unless you
opted out before.
no_claude_telemetry: boolOpt out of Claude Code telemetry: removes Visdom’s entries from
~/.claude/settings.json and records the choice, so neither a later
init nor a CLI upgrade turns it back on.
workspace: boolBind this directory to one project, for every session started under it (an umbrella folder of checkouts, for example): resolves –project once on the server and writes its id to .visdom/tracing.toml here (created if missing). Works outside git; installs no hooks (use –global for those) and binds no repo.
project: Option<String>The project name for –workspace.
Trait Implementations§
Source§impl Args for InitArgs
impl Args for InitArgs
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl FromArgMatches for InitArgs
impl FromArgMatches for InitArgs
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches to self.