CLI reference

aiscope [OPTIONS] [PATH]
aiscope <SUBCOMMAND> [OPTIONS] [PATH]

PATH defaults to the current directory.

Global options

FlagDescription
--textPlain text output
--diagCompiler-style diagnostics (miette)
--jsonMachine-readable JSON
--card <FILE>Render a 1280×720 PNG summary card
--specificUse the Specific reasoning mode
--userAlso read user-scope memory (e.g. ~/.claude/CLAUDE.md)
--versionPrint version and exit
--helpPrint help

If none of --text / --diag / --json / --card is passed, aiscope launches the interactive TUI.

Subcommands

aiscope scan (default)

Scan and render. Same as aiscope with no subcommand.

aiscope scan --diag .

aiscope check

Scan and exit non-zero if any HIGH-severity conflicts are found. Designed for CI gates.

aiscope check --specific .
echo $?     # 0 = clean, 1 = HIGH conflicts, 2 = error

See Exit codes.

aiscope watch

Re-scan whenever a memory file changes. Great for live editing.

aiscope watch .

Examples

# Interactive TUI on the current dir
aiscope

# CI-friendly: exit non-zero on HIGH conflicts, suppress false alarms
aiscope check --specific .

# Generate a PR-ready summary card
aiscope --card scan.png .

# Pipe JSON to jq
aiscope --json . | jq '.conflicts[] | select(.severity == "high")'

# Read user-scope memory too (opt-in)
aiscope --user .

Output to stdout vs file

All renderers except --card write to stdout and respect piping. The TUI auto-falls-back to plain text when stdout is not a TTY:

aiscope . > scan.txt    # writes plain text, not TUI escape codes