Skip to Content
CLI ReferenceGlobal Flags

Global Flags

These flags apply to most ah commands.

Logging

FlagDescriptionDefault
--log-level <LEVEL>Log verbosity: error, warn, info, debug, traceinfo
--log-format <FORMAT>Log format: plaintext, jsonplaintext
--log-dir <PATH>Directory for log filesPlatform-specific
--log-file <PATH>Log filename

Repository

FlagDescription
--repo <PATH>Target repository path
--config <PATH>Additional configuration file

Filesystem Snapshots

FlagDescription
--fs-snapshots <PROVIDER>Snapshot provider

Providers

ValueDescription
autoAuto-detect best provider (default)
zfsZFS filesystem snapshots
btrfsBtrfs filesystem snapshots
agentfsAgentFS overlay (cross-platform)
agentfs-fuseAgentFS using FUSE
agentfs-interposeAgentFS using DYLD injection (macOS)
gitGit shadow commits
disableDisable snapshots

Output

FlagDescription
--jsonEnable JSON output mode
--non-interactiveSingle turn, no follow-up prompt

Experimental Features

FlagDescription
--experimental-features <FEATURE>Enable experimental features (repeatable)

Examples

Debug logging:

ah --log-level debug agent start --agent claude --prompt "Task"

JSON output:

ah --json health

Specific snapshot provider:

ah --fs-snapshots zfs agent start --agent claude --prompt "Task"

Experimental features:

ah --experimental-features gemini agent start --agent gemini --prompt "Task"

Multiple experimental features:

ah --experimental-features gemini --experimental-features copilot health