Docs · CLI Reference (Commands & Flags)

CLI Reference (Commands & Flags).

Every flag that matters.

The short answer

anv is keyboard-first with explicit approvals: 21 native tools (read/edit/patch/run/lsp/web/mind/subagents), 8 TUI screens, three run modes for three risk levels. This is the working reference; full help ships in the binary (anv --help).

CLI Reference (Commands & Flags)

Modes

Interactive TUI · default8 screens: Startup, Agent, Git, Monitor, MCP browser, MindViz graph, Terminal panes, Swarm fleet. Keys 1-8, Tab, approvals inline (Y/N/A).
--no-tui --yolo · CIHeadless scripted runs with exit codes 0/1/2 (denied). Pipeable I/O for pipelines and cron. Auto-approve only where revert is cheap.
--plan-only · read-only Full exploration, zero mutations. Pair with repomap blast-radius for safe multi-file plans.
anv init · anv modelsScaffold .anvaya/ (<50ms, idempotent); list and switch models/providers per project.

CLI Reference (Commands & Flags)

Tools (21)

Read + navigateread_file (ranges), list_dir, dir_tree, glob, grep, search_in_file, lsp (pooled definitions, refs, diagnostics).
Write + runedit_file, rewrite_file, create/delete, patch (unified diff), run_command, run_script, backups before mutation, sandbox-checked, approval-gated.
Think + reachquestion (ask user), task (subagents), todowrite, mind (recall/record), webfetch, websearch, monitor (watch long-running processes).

Questions

Asked about CLI Reference (Commands & Flags).

How do approvals work?

Inline ▸ APPROVE? cards per tool call: Yes / No / Always-this-session / numbered presets. Denials exit 2 in CI for clean gating.

What happens on context pressure?

10-cell CTX meter (red-blink ≥90%), pre-flight gate at 95%, summarizer at 80% with hard-drop at 95%, plus Mind packing keeping turns small.

Keyboard-first?

Fully: 1-8 screens, Tab focus, Ctrl+P palette, Ctrl+T theme, Ctrl+B transparency, V inspector, Space drill-down, F1 keys. Mouse optional.

Run agents that fit on your laptop.

23.4 MB median own-process memory, measured across 1030 runs (994 verified) and fourteen harnesses. One command installs the harness and the Mind together. Nothing leaves your machine on the Ollama path.

Developer beta. macOS on Apple Silicon and Linux on x86_64 or arm64. Memory figure: --no-mind, macOS/ARM, n=3 per cell. Pre-1.0, pricing not set.