Skip to content

CLI reference

Watch AI coding agent sessions across your machines and projects.

This page is generated from the command tree that driga --help prints, so it matches the binary built from the same commit. Run driga <command> --help for the same text in a terminal.

Running driga with no command runs driga summary.

Exit codes: 0 success; 1 failure, refusal or partial completion; 2 invalid usage or missing required non-interactive input. A command that needs confirmation exits 2 when stdin is not a terminal unless --yes is passed.

FlagDefaultDescription
-h, --helpShow context-sensitive help.
--versionPrint the driga version.
CommandDescription
driga summaryShow a one-screen summary. Bare driga opens top in a terminal.
driga flowShow a session family and its state signals.
driga agentsList agents grouped by family.
driga projectsList project status.
driga inboxList attention and completion events.
driga orphansList orphan process trees.
driga machinesList known machines and their connection health.
driga cleanupInspect and explicitly clean local agent disk candidates.
driga topOpen the interactive session viewer.
driga webServe the interactive browser dashboard on loopback.
driga askAsk a one-shot Chat question through Claude and driga’s read-only tools.
driga mcpServe read-only MCP tools over stdio.
driga doctorCheck setup and collection health.
driga initGuide optional setup.
driga configInspect or edit configuration.
driga collectRun the collector (what launchd runs).
driga serviceManage the collector service.
driga hooksManage agent hooks.
driga fleetInspect fleet identity, serving status and viewers.
driga versionPrint the driga version.

Show a one-screen summary. Bare driga opens top in a terminal.

Terminal window
driga summary [flags]
FlagDefaultDescription
--machine=<machine>allScope to a machine name, ID, device-ID prefix, local, or all.
--project=<project>Scope to one project (path, name, or dot).
--since=<since>Only show items since a duration ago or yesterday.
--snapshotForce one-shot snapshot collection without history.
--jsonPrint versioned JSON instead of tables.
--no-colorDisable colors.

Show a session family and its state signals.

Terminal window
driga flow [<session-id>] [flags]
ArgumentDefaultDescription
[<session-id>]Internal session ID (defaults to most recently active live interactive session).
FlagDefaultDescription
--machine=<machine>allScope to a machine name, ID, device-ID prefix, local, or all.
--project=<project>Scope to one project (path, name, or dot).
--since=<since>Only show items since a duration ago or yesterday.
--snapshotForce one-shot snapshot collection without history.
--jsonPrint versioned JSON instead of tables.
--no-colorDisable colors.
--minutes=<minutes>60Time window: 15, 60 or 240 minutes.

List agents grouped by family.

Without a subcommand, runs driga agents list.

SubcommandDescription
driga agents listList agents grouped by family.
driga agents showShow one session by session ID.
driga agents jumpConfirm and jump to a local session.
driga agents killConfirm and terminate a local idle session.

List agents grouped by family.

Terminal window
driga agents list [flags]
FlagDefaultDescription
--machine=<machine>allScope to a machine name, ID, device-ID prefix, local, or all.
--project=<project>Scope to one project (path, name, or dot).
--since=<since>Only show items since a duration ago or yesterday.
--snapshotForce one-shot snapshot collection without history.
--jsonPrint versioned JSON instead of tables.
--no-colorDisable colors.
--allInclude sessions ended within the last 24 hours.

Show one session by session ID.

Terminal window
driga agents show <session-id> [flags]
ArgumentDefaultDescription
<session-id>Internal session ID.
FlagDefaultDescription
--machine=<machine>allScope to a machine name, ID, device-ID prefix, local, or all.
--project=<project>Scope to one project (path, name, or dot).
--snapshotForce one-shot snapshot collection without history.
--jsonPrint versioned JSON instead of tables.
--no-colorDisable colors.

Confirm and jump to a local session.

Terminal window
driga agents jump <session-id> [flags]
ArgumentDefaultDescription
<session-id>Internal session ID.
FlagDefaultDescription
-y, --yesJump without asking for confirmation.

Confirm and terminate a local idle session.

Terminal window
driga agents kill <session-id> [flags]
ArgumentDefaultDescription
<session-id>Internal session ID.
FlagDefaultDescription
--forceEscalate survivors to SIGKILL (TerminateProcess on Windows); use —yes to skip confirmation.
-y, --yesSkip confirmation; identity and idle checks still apply.

List project status.

Without a subcommand, runs driga projects list.

SubcommandDescription
driga projects listList project status.
driga projects showShow project status, worktrees and sessions.
driga projects summarizeRefresh opt-in local project summaries through Claude.

List project status.

Terminal window
driga projects list [flags]
FlagDefaultDescription
--machine=<machine>allScope to a machine name, ID, device-ID prefix, local, or all.
--project=<project>Scope to one project (path, name, or dot).
--since=<since>Only show items since a duration ago or yesterday.
--snapshotForce one-shot snapshot collection without history.
--jsonPrint versioned JSON instead of tables.
--no-colorDisable colors.
--at-riskOnly show projects with risk flags.
--activeOnly show active projects.

Show project status, worktrees and sessions.

Terminal window
driga projects show <project> [flags]
ArgumentDefaultDescription
<project>Repository name or path.
FlagDefaultDescription
--machine=<machine>allScope to a machine name, ID, device-ID prefix, local, or all.
--snapshotForce one-shot snapshot collection without history.
--jsonPrint versioned JSON instead of tables.
--no-colorDisable colors.

Refresh opt-in local project summaries through Claude.

Terminal window
driga projects summarize [<project>...] [flags]
ArgumentDefaultDescription
[<project> ...]Local project names or paths; requires names or —all.
FlagDefaultDescription
--jsonPrint versioned JSON instead of tables.
--allSummarize every collected local project.

List attention and completion events.

Without a subcommand, runs driga inbox list.

SubcommandDescription
driga inbox listList inbox events.
driga inbox ackExplicitly acknowledge inbox events.
driga inbox jumpJump to a local inbox item without acknowledging it.

List inbox events.

Terminal window
driga inbox list [flags]
FlagDefaultDescription
--machine=<machine>allScope to a machine name, ID, device-ID prefix, local, or all.
--project=<project>Scope to one project (path, name, or dot).
--since=<since>Only show items since a duration ago or yesterday.
--snapshotForce one-shot snapshot collection without history.
--jsonPrint versioned JSON instead of tables.
--no-colorDisable colors.
--allShow all history, including acknowledged and ended events (default: current waits and up to 50 completions from 24h).

Explicitly acknowledge inbox events.

Terminal window
driga inbox ack [<item-id>] [flags]
ArgumentDefaultDescription
[<item-id>]Inbox item ID.
FlagDefaultDescription
--machine=<machine>allScope to a machine name, ID, device-ID prefix, local, or all.
--allAcknowledge every unacknowledged item.

Jump to a local inbox item without acknowledging it.

Terminal window
driga inbox jump <item-id>
ArgumentDefaultDescription
<item-id>Inbox item ID.

List orphan process trees.

Without a subcommand, runs driga orphans list.

SubcommandDescription
driga orphans listList orphan candidates.
driga orphans killConfirm and terminate an orphan tree.

List orphan candidates.

Terminal window
driga orphans list [flags]
FlagDefaultDescription
--project=<project>Scope candidates to one project (path, name, or dot).
--machine=<machine>allScope to a machine name, ID, device-ID prefix, local, or all.
--since=<since>Only show items since a duration ago or yesterday.
--snapshotForce one-shot snapshot collection without history.
--jsonPrint versioned JSON instead of tables.
--no-colorDisable colors.

Confirm and terminate an orphan tree.

Terminal window
driga orphans kill [<orphan-id>] [flags]
ArgumentDefaultDescription
[<orphan-id>]Orphan candidate ID.
FlagDefaultDescription
--machine=<machine>allSelect orphan candidates from this machine, local, or all.
--snapshotCollect one snapshot before selecting candidates.
-y, --yesSkip confirmation; identity and idle checks still apply.
--allSelect all local orphan candidates; verify and confirm each unless —yes.
--forceEscalate survivors to SIGKILL (TerminateProcess on Windows); confirmation is still required unless —yes.

List known machines and their connection health.

Without a subcommand, runs driga machines list.

SubcommandDescription
driga machines listList known machines and connection health.
driga machines showShow one machine (default: local).
driga machines reset-idRegenerate the local machine identity.

List known machines and connection health.

Terminal window
driga machines list [flags]
FlagDefaultDescription
--machine=<machine>allScope to a machine name, ID, device-ID prefix, local, or all.
--snapshotForce one-shot snapshot collection without history.
--jsonPrint versioned JSON instead of tables.
--no-colorDisable colors.

Show one machine (default: local).

Terminal window
driga machines show [<machine>] [flags]
ArgumentDefaultDescription
[<machine>]localMachine name, ID, device-ID prefix, or local.
FlagDefaultDescription
--project=<project>Scope process detail to one project (path, name, or dot).
--snapshotForce one-shot snapshot collection without history.
--jsonPrint versioned JSON instead of tables.
--no-colorDisable colors.
--fullShow all retained MCP trends and full process detail.

Regenerate the local machine identity.

Terminal window
driga machines reset-id [flags]
FlagDefaultDescription
-y, --yesApply without asking for confirmation.

Inspect and explicitly clean local agent disk candidates.

Without a subcommand, runs driga cleanup list.

SubcommandDescription
driga cleanup listList local disk cleanup candidates.
driga cleanup removeVerify and remove selected local disk candidates.

List local disk cleanup candidates.

Terminal window
driga cleanup list [flags]
FlagDefaultDescription
--jsonPrint versioned JSON instead of tables.
--kind=<kind>Filter by worktree, scratch, or history.
--sizesWalk candidate sizes on demand.
--whyInclude worktrees that do not qualify, with reasons.

Verify and remove selected local disk candidates.

Terminal window
driga cleanup remove [<candidate-id>] [flags]
ArgumentDefaultDescription
[<candidate-id>]Candidate ID to clean after confirmation.
FlagDefaultDescription
--jsonPrint versioned JSON instead of tables.
--kind=<kind>Filter by worktree or scratch (required with —all); history is report-only.
--sizesWalk candidate sizes on demand (30s cap per walk).
--allRemove ready candidates of —kind; skip candidates needing review and report failures.
--dry-runPrint exact commands after verification without removing anything.
-y, --yesConfirm the displayed action without prompting.
--include-ignoredAllow listed non-regenerable ignored files for one explicit ID.

Open the interactive session viewer.

Terminal window
driga top [flags]
FlagDefaultDescription
--machine=<machine>allScope to a machine name, ID, device-ID prefix, local, or all.
--project=<project>Scope to one project (path, name, or dot).
--since=<since>Only show items since a duration ago or yesterday.
--snapshotForce one-shot snapshot collection without history.
--no-colorDisable colors.
--theme=<theme>TUI theme: system, light or dark (overrides ui.theme).
--tab=<tab>flowInitial tab: flow, projects or machines.

Serve the interactive browser dashboard on loopback.

Terminal window
driga web [flags]
FlagDefaultDescription
--machine=<machine>allScope to a machine name, ID, device-ID prefix, local, or all.
--project=<project>Scope to one project (path, name, or dot).
--since=<since>Only show items since a duration ago or yesterday.
--snapshotForce one-shot snapshot collection without history.
--listen=<listen>127.0.0.1:0Loopback address and port for the dashboard.
--openOpen the dashboard in your browser.

Ask a one-shot Chat question through Claude and driga’s read-only tools.

Terminal window
driga ask <question>... [flags]
ArgumentDefaultDescription
<question> ...One-shot Chat question using Claude and driga’s read-only tools.
FlagDefaultDescription
--machine=<machine>allScope to a machine name, ID, device-ID prefix, local, or all.
--project=<project>Scope to one project (path, name, or dot).
--jsonPrint versioned JSON instead of tables.

Serve read-only MCP tools over stdio.

Read-only MCP server on stdio. Reading never acknowledges inbox items; snapshot mode has no history.
Claude Code: claude mcp add --scope user driga -- driga mcp
Codex configuration:
[mcp_servers.driga]
command = "driga"
args = ["mcp"]
Terminal window
driga mcp [flags]
FlagDefaultDescription
--snapshotForce one-shot snapshot collection for read tools (no history).

Check setup and collection health.

Terminal window
driga doctor [flags]
FlagDefaultDescription
--jsonPrint versioned JSON instead of tables.

Guide optional setup.

Terminal window
driga init [flags]
FlagDefaultDescription
-y, --yesAccept each optional setup change without asking.

Inspect or edit configuration.

SubcommandDescription
driga config pathPrint the config path.
driga config showPrint effective values including defaults.
driga config editEdit the config with $EDITOR (default vi).

Print the config path.

Terminal window
driga config path [flags]
FlagDefaultDescription
--jsonPrint versioned JSON instead of tables.

Print effective values including defaults.

Terminal window
driga config show

Edit the config with $EDITOR (default vi).

Terminal window
driga config edit

Run the collector (what launchd runs).

Terminal window
driga collect [flags]
FlagDefaultDescription
--serveEnable fleet serving alongside collection (overrides fleet.serve).
--listen=<listen>Fleet private IP or interface and port (requires serving).
--onceCollect once into the persistent database and exit.
--cpu-profile=<cpu-profile>Write a CPU profile of the collector to this file.
--profile-for=<profile-for>2mHow long —cpu-profile records before it stops.

Manage the collector service.

SubcommandDescription
driga service installInstall and start the collector service.
driga service startStart the collector service.
driga service stopStop the collector service.
driga service restartRestart the collector service.
driga service statusShow collector service status.
driga service logsPrint collector logs.
driga service uninstallUninstall the collector service.

Install and start the collector service.

Terminal window
driga service install

Start the collector service.

Terminal window
driga service start

Stop the collector service.

Terminal window
driga service stop

Restart the collector service.

Terminal window
driga service restart

Show collector service status.

Terminal window
driga service status

Print collector logs.

Terminal window
driga service logs [flags]
FlagDefaultDescription
-f, --followFollow collector log output.

Uninstall the collector service.

Terminal window
driga service uninstall

Manage agent hooks.

SubcommandDescription
driga hooks installPreview and install agent hooks.
driga hooks uninstallPreview and remove Driga’s agent hooks.
driga hooks statusShow installed agent hooks.

Preview and install agent hooks.

Terminal window
driga hooks install [<adapter>] [flags]
ArgumentDefaultDescription
[<adapter>]allAdapter: claude, codex, copilot, or all.
FlagDefaultDescription
--dry-runPrint the diff without writing or prompting.
-y, --yesApply without asking for confirmation.
--otlpConfigure optional metadata-only loopback OTLP instead of hooks.
--tracesInclude Claude beta spans (requires —otlp).

Preview and remove Driga’s agent hooks.

Terminal window
driga hooks uninstall [<adapter>] [flags]
ArgumentDefaultDescription
[<adapter>]allAdapter: claude, codex, copilot, or all.
FlagDefaultDescription
--dry-runPrint the diff without writing or prompting.
-y, --yesApply without asking for confirmation.
--otlpConfigure optional metadata-only loopback OTLP instead of hooks.
--tracesInclude Claude beta spans (requires —otlp).

Show installed agent hooks.

Terminal window
driga hooks status [<adapter>] [flags]
ArgumentDefaultDescription
[<adapter>]allAdapter: claude, codex, copilot, or all.
FlagDefaultDescription
--otlpShow optional loopback OTLP status.

Inspect fleet identity, serving status and viewers.

SubcommandDescription
driga fleet peersList paired machines.
driga fleet viewersList identities trusted to read this machine.
driga fleet enrollOpen a bounded pairing window.
driga fleet rekeyRegenerate identity; invalidate all pairings.
driga fleet idPrint this machine’s fleet device ID.
driga fleet statusShow the serving collector’s live state.

List paired machines.

SubcommandDescription
driga fleet peers listList paired machines.
driga fleet peers addPair with a serving machine.
driga fleet peers removeRemove a peer locally.

List paired machines.

Terminal window
driga fleet peers list [flags]
FlagDefaultDescription
--jsonPrint versioned JSON instead of tables.

Pair with a serving machine.

Terminal window
driga fleet peers add <host> [flags]
ArgumentDefaultDescription
<host>Peer host[:port] (default port 7411).
FlagDefaultDescription
-y, --yesSkip confirmation only with —device-id identity pinning.
--jsonPrint versioned JSON instead of tables.
--name=<name>Local name for the peer.
--device-id=<device-id>Require this peer device ID (headless).

Remove a peer locally.

Terminal window
driga fleet peers remove <peer> [flags]
ArgumentDefaultDescription
<peer>Peer name, device ID or machine ID (removed peers with —purge).
FlagDefaultDescription
-y, --yesApply without asking for confirmation.
--purgeDelete this peer’s cached rows.

List identities trusted to read this machine.

SubcommandDescription
driga fleet viewers listList identities trusted to read this machine.
driga fleet viewers revokeRevoke a viewer immediately.

List identities trusted to read this machine.

Terminal window
driga fleet viewers list [flags]
FlagDefaultDescription
--jsonPrint versioned JSON instead of tables.

Revoke a viewer immediately.

Terminal window
driga fleet viewers revoke <viewer> [flags]
ArgumentDefaultDescription
<viewer>Viewer name or device ID.
FlagDefaultDescription
-y, --yesApply without asking for confirmation.

Open a bounded pairing window.

Terminal window
driga fleet enroll [flags]
FlagDefaultDescription
-y, --yesSkip confirmation only with —allow-viewer identity pinning.
--allow-ackAllow this viewer to acknowledge inbox items.
--allow-viewer=<allow-viewer>Pre-authorize exactly this viewer device ID (headless).
--window=<window>Enrollment duration (default fleet.enroll_window, at most 10m).

Regenerate identity; invalidate all pairings.

Terminal window
driga fleet rekey [flags]
FlagDefaultDescription
-y, --yesApply without asking for confirmation.

Print this machine’s fleet device ID.

Terminal window
driga fleet id [flags]
FlagDefaultDescription
--jsonPrint versioned JSON instead of tables.

Show the serving collector’s live state.

Terminal window
driga fleet status [flags]
FlagDefaultDescription
--jsonPrint versioned JSON instead of tables.

Print the driga version.

Terminal window
driga version [flags]
FlagDefaultDescription
--jsonPrint versioned JSON instead of tables.