Skip to main content

CLI flags

Input

Custom Commands

Custom commands are reusable instructions stored as markdown files. They can be placed in:
  • ~/.augment/commands/<name>.md - Global commands (user-wide)
  • ./.augment/commands/<name>.md - Project commands (workspace-specific)
  • ~/.claude/commands/<name>.md - Claude Code user commands
  • ./.claude/commands/<name>.md - Claude Code workspace commands
Commands are resolved in order of precedence, with Auggie-specific locations taking priority over Claude Code locations. Examples:
See Custom Commands for detailed information on creating and managing custom commands.

Sessions

Configuration

Skills are loaded automatically from .augment/skills/ and .claude/skills/ directories in both your workspace and home directory. See Skills for more information.

Rules

Inspect the rules and guidelines that Auggie detects in your workspace.

Models

List out available models and their short names to be passed into the --model flag

Tools

Manage which tools are available to the agent. You can temporarily disable tools for a session or persistently manage them via settings. Examples:
Command-line --remove-tool flags take precedence over settings. For fine-grained control over tool behavior (allow, deny, ask-user), see Permissions.

Plugins and Marketplaces

Plugin commands are available when the plugin marketplace feature is enabled for your account.
For detailed information about plugins and marketplaces, see Plugins and Marketplaces.

MCP and integrations

You can define MCP servers persistently in the settings files: ~/.augment/settings.json. Any --mcp-config flags are applied last and override settings.
For detailed usage examples, options, settings.json format, and precedence rules, see Integrations and MCP.

MCP Server Mode

Run Auggie as an MCP server to expose the codebase-retrieval tool to external AI tools like Claude Code, Cursor, and others.

Automatic Workspace Discovery

The --mcp-auto-workspace flag enables dynamic workspace discovery in MCP mode. When enabled:
  • The codebase-retrieval tool accepts a directory_path parameter to specify which workspace to search
  • Workspaces are indexed on-demand when first accessed
  • Multiple workspaces can be searched within a single MCP server session
This is useful when the MCP client (e.g., Claude Code) needs to work with multiple projects or when the workspace isn’t known at startup time. You can combine --mcp-auto-workspace with -w to pre-index a primary workspace at startup while still allowing dynamic discovery of additional workspaces. This is useful for large workspaces that take time to index, or to reduce latency on the first query to your main project. Examples:
When using --mcp-auto-workspace, the first query to a new workspace may take longer as the workspace is indexed. Subsequent queries to the same workspace will be fast.

Authentication

Diagnostics

Flags for troubleshooting and capturing logs. These are not shown in auggie --help but are stable and can be used in scripts.

Additional commands

Environment Variables

Shell Environment

When Auggie executes shell commands using the launch-process tool, it sets the following environment variable: Example usage in a script:

See Also