Expand description
CLI module — clap Parser types and subcommand dispatch for the symforge binary.
Subcommands:
symforge init — configure Claude, Codex, or both
symforge analytics <cmd> — inspect or reset local analytics storage
symforge hook <subcommand> — hook scripts called by Claude Code
symforge daemon — shared project/session backend
symforge trust project-config — audit, accept, or revoke project-config trust
symforge update — update the npm-managed SymForge install
Plan 03 wires these into main.rs and handles the top-level dispatch.
Modules§
- admin
symforge admin— open (or start + open) the operator dashboard (009 US3).- analytics
- browser
BrowserOpenerseam — open the dashboard URL in the OS browser (009, D4).- harness
HarnessRegistry— the catalog of known MCP clients and the per-client logic to detect / add / refresh a SymForge HTTP attach entry (the004 serveURL + Bearer key) in each client’s config.- harness_
apply - Backup-then-apply writer for harness configs: dry-run planning, timestamped backups, atomic writes, restore, and idempotency.
- harness_
command - Per-harness
symforge-admincommand-file install (009 US3, D2). - hook
- Hook binary logic — reads the OS-tagged
.symforge/sidecar.<os>.port, calls the sidecar over sync HTTP, and outputs a single JSON line to stdout. - init
symforge initcommand — client-aware Claude/Claude Desktop/Codex/Gemini/Kilo Code configuration.- onboarding
- First-run / post-update onboarding banner with persisted shown-state.
- operator_
profile OperatorSetupProfile— operator-local setup convenience state (009, D5).- serve
symforge serveCLI subcommand — operator server flags.- setup
symforge setup— guided operator setup wizard (009 US2).- trust
- CLI control surface for project-config trust.
- update
- Explicit npm-managed self-update command.
- version
- Version output with a best-effort npm update advisory.
Structs§
- Cli
- Top-level CLI parser for the
symforgebinary.
Enums§
- Commands
- Top-level subcommands.
- Hook
Subcommand - Hook subcommands — one per Claude Code tool event type.
- Init
Client - Supported
symforge inittargets.