How krivson/devkit works
DevKit is a non-interactive macOS developer command center. Users invoke diagnostics or explicit operations through the CLI; the registry dispatches to command handlers, which collect host/network/process data or perform guarded actions, then present results. Major documented capabilities include system and macOS inspection, VPN, Git, SSH, OpenCode, cleanup, and local snapshots. The sampled code confirms CLI dispatch, network diagnostics, process inspection, snapshots, system data, configuration, and subprocess execution; unsampled command internals are represented from documented command scope, without inferred call links.
Main entry points: registry.py Command registry · runner.py Safe command runner · doctor.py Environment health · network.py Network diagnostics
Components 21
CLI dispatch
- Command-line entry
src/devkit/cli.py - Command registry
src/devkit/core/registry.py
Host diagnostics
- Environment health
src/devkit/commands/doctor.py - System summary
src/devkit/commands/system.py - macOS details
src/devkit/commands/mac.py - Network diagnostics
src/devkit/commands/network.py
Developer operations
- VPN actions
src/devkit/commands/vpn.py - Git inspection
src/devkit/commands/git.py - SSH inspection
src/devkit/commands/ssh.py - Process and ports
src/devkit/commands/process.py - Project cleanup
src/devkit/commands/cleanup.py - OpenCode actions
src/devkit/commands/opencode.py - Snapshot actions
src/devkit/commands/snapshot.py
Platform services
- Host information
src/devkit/services/system.py - Network intelligence
src/devkit/services/network.py - VPN control
src/devkit/services/vpn.py - Local snapshots
src/devkit/core/snapshot.py
Shared runtime
- User configuration
src/devkit/core/config.py - Safe command runner
src/devkit/runner.py - Console and logs
src/devkit/logger.py
Other components
- Developer
Connections 27
- Developer → Command-line entry: invokes
README.md - Command-line entry → Command registry: resolves command
src/devkit/cli.py - Command registry → Environment health: registers
src/devkit/core/registry.py - Command registry → System summary: registers
src/devkit/core/registry.py - Command registry → macOS details: registers
src/devkit/core/registry.py - Command registry → Network diagnostics: registers
src/devkit/core/registry.py - Command registry → VPN actions: registers
src/devkit/core/registry.py - Command registry → Git inspection: registers
src/devkit/core/registry.py - Command registry → SSH inspection: registers
src/devkit/core/registry.py - Command registry → Process and ports: registers
src/devkit/core/registry.py - Command registry → Project cleanup: registers
src/devkit/core/registry.py - Command registry → OpenCode actions: registers
src/devkit/core/registry.py - Command registry → Snapshot actions: registers
src/devkit/core/registry.py - System summary → Host information: collects
src/devkit/commands/system.py - Network diagnostics → Network intelligence: queries
src/devkit/commands/network.py - VPN actions → VPN control: controls
src/devkit/commands/vpn.py - Snapshot actions → Local snapshots: reads and writes
src/devkit/commands/snapshot.py - Environment health → User configuration: checks config
src/devkit/commands/doctor.py - VPN control → User configuration: loads settings
src/devkit/services/vpn.py - Environment health → Safe command runner: runs checks
src/devkit/commands/doctor.py - Git inspection → Safe command runner: runs commands
src/devkit/commands/git.py - macOS details → Safe command runner: runs commands
src/devkit/commands/mac.py - SSH inspection → Safe command runner: runs commands
src/devkit/commands/ssh.py - OpenCode actions → Safe command runner: runs commands
src/devkit/commands/opencode.py - VPN control → Safe command runner: runs scutil
src/devkit/services/vpn.py - Network diagnostics → Console and logs: reports findings
src/devkit/commands/network.py - Process and ports → Console and logs: reports results
src/devkit/commands/process.py