Flags & Options

Control flags and options for fine-tuning behavior

GemBoost Flags Guide 🏁

Most flags activate automatically - Gemini Cli reads behavioral instructions to engage appropriate contexts based on keywords and patterns in your requests.

Essential Auto-Activation Flags (90% of Use Cases)

Core Analysis Flags

FlagWhen ActivatedWhat It Does
--think5+ files OR complex analysisStandard structured analysis (~4K tokens)
--think-hardArchitectural analysis, system dependenciesDeep analysis (~10K tokens) with enhanced tools
--ultrathinkCritical system redesign, legacy modernizationMaximum depth analysis (~32K tokens) with all tools

MCP Server Flags

FlagServerPurposeAuto-Triggers
--c7 / --context7Context7Official docs, framework patternsLibrary imports, framework questions
--seq / --sequentialSequentialMulti-step reasoning, debuggingComplex debugging, system design
--magicMagicUI component generation/ui commands, frontend keywords
--play / --playwrightPlaywrightBrowser testing, E2E validationTesting requests, visual validation
--morph / --morphllmMorphllmBulk transformations, pattern editsBulk operations, style enforcement
--serenaSerenaProject memory, symbol operationsSymbol operations, large codebases

Behavioral Mode Flags

FlagWhen ActivatedWhat It Does
--brainstormVague requests, exploration keywordsCollaborative discovery mindset
--introspectSelf-analysis, error recoveryExpose reasoning process with transparency
--task-manage>3 steps, complex scopeOrchestrate through delegation
--orchestrateMulti-tool operations, performance needsOptimize tool selection and parallel execution
--token-efficient / --ucContext >75%, efficiency needsSymbol-enhanced communication, 30-50% reduction

Execution Control Flags

FlagWhen ActivatedWhat It Does
--loop"improve", "polish", "refine" keywordsIterative enhancement cycles
--safe-modeProduction, >85% resource usageMaximum validation, conservative execution
--validateRisk >0.7, production environmentPre-execution risk assessment
--delegate>7 directories OR >50 filesSub-agent parallel processing

Command-Specific Flags

Analysis Command Flags (/gb:analyze)

--focusTarget specific domain
Values: security, performance, quality, architecture
--depthAnalysis thoroughness
Values: quick, deep
--formatOutput format
Values: text, json, report

Build Command Flags (/gb:build)

--typeBuild configuration
Values: dev, prod, test
--cleanClean before build
Boolean
--optimizeEnable optimizations
Boolean
--verboseDetailed output
Boolean

Design Command Flags (/gb:design)

--typeDesign target
Values: architecture, api, component, database
--formatOutput format
Values: diagram, spec, code

Explain Command Flags (/gb:explain)

--levelComplexity level
Values: basic, intermediate, advanced
--formatExplanation style
Values: text, examples, interactive
--contextDomain context
Any domain (e.g., react, security)

Improve Command Flags (/gb:improve)

--typeImprovement focus
Values: quality, performance, maintainability, style, security
--safeConservative approach
Boolean
--interactiveUser guidance
Boolean
--previewShow without executing
Boolean

Task Command Flags (/gb:task)

--strategyTask approach
Values: systematic, agile, enterprise
--parallelParallel execution
Boolean
--delegateSub-agent coordination
Boolean

Workflow Command Flags (/gb:workflow)

--strategyWorkflow approach
Values: systematic, agile, enterprise
--depthAnalysis depth
Values: shallow, normal, deep
--parallelParallel coordination
Boolean

Troubleshoot Command Flags (/gb:troubleshoot)

--typeIssue category
Values: bug, build, performance, deployment
--traceInclude trace analysis
Boolean
--fixApply fixes
Boolean

Cleanup Command Flags (/gb:cleanup)

--typeCleanup target
Values: code, imports, files, all
--safe / --aggressiveCleanup intensity
Boolean
--interactiveUser guidance
Boolean
--previewShow without executing
Boolean

Test Command Flags (/gb:test)

--coverageInclude coverage
Boolean
--typeTest type
Values: unit, integration, e2e
--watchWatch mode
Boolean

Advanced Control Flags

Scope and Focus

--scopeAnalysis boundary
Values: file, module, project, system
--focusDomain targeting
Values: performance, security, quality, architecture, accessibility, testing

Execution Control

--concurrency [n]Control parallel ops
Range: 1-15
--iterations [n]Improvement cycles
Range: 1-10
--all-mcpEnable all MCP servers
Boolean
--no-mcpNative tools only
Boolean

System Flags (GemBoost Installation)

--verbose / -v
Verbose logging (Boolean)
--quiet / -q
Suppress output (Boolean)
--dry-run
Simulate operation (Boolean)
--force
Skip checks (Boolean)
--yes / -y
Auto-confirm (Boolean)
--install-dir
Target directory (Path)
--legacy
Use legacy script (Boolean)
--version
Show version (Boolean)
--help
Show help (Boolean)

Common Usage Patterns

Frontend Development

/gb:implement "responsive dashboard" --magic --c7
/gb:design component-library --type component --format code
/gb:test ui-components/ --magic --play
/gb:improve legacy-ui/ --magic --morph --validate

Backend Development

/gb:analyze api/ --focus performance --seq --think
/gb:design payment-api --type api --format spec
/gb:troubleshoot "API timeout" --type performance --trace
/gb:improve auth-service --type security --validate

Large Projects

/gb:analyze . --ultrathink --all-mcp --safe-mode
/gb:workflow enterprise-system --strategy enterprise --depth deep
/gb:cleanup . --type all --safe --interactive
/gb:estimate "migrate to microservices" --type complexity --breakdown

Quality & Maintenance

/gb:improve src/ --type quality --safe --interactive
/gb:cleanup imports --type imports --preview
/gb:reflect --type completion --validate
/gb:git commit --smart-commit

Flag Interactions

Compatible Combinations

  • --think + --c7: Analysis with documentation
  • --magic + --play: UI generation with testing
  • --serena + --morph: Project memory with transformations
  • --safe-mode + --validate: Maximum safety
  • --loop + --validate: Iterative improvement with validation

Conflicting Flags

  • --all-mcp vs individual MCP flags (use one or the other)
  • --no-mcp vs any MCP flags (--no-mcp wins)
  • --safe vs --aggressive (cleanup intensity)
  • --quiet vs --verbose (output level)

Auto-Enabling Relationships

  • --safe-mode auto-enables --uc and --validate
  • --ultrathink auto-enables all MCP servers
  • --think-hard auto-enables --seq + --c7
  • --magic triggers UI-focused agents

Troubleshooting Flags

Common Issues

  • Too many tools: Use --no-mcp to test with native tools only
  • Operation too slow: Add --uc to compress output
  • Validation blocking: Use --validate instead of --safe-mode in development
  • Context pressure: Auto-activates --token-efficient at >75% usage

Debug Flags

/gb:analyze . --verbose                      # Shows decision logic and flag activation
/gb:select-tool "operation" --explain        # Explains tool selection process
/gb:reflect --type session --analyze         # Reviews current session decisions

Quick Fixes

/gb:analyze . --help                         # Shows available flags for command
/gb:analyze . --no-mcp                       # Native execution only
/gb:cleanup . --preview                      # Shows what would be cleaned

Flag Priority Rules

1.
Safety First:--safe-mode > --validate > optimization flags
2.
Explicit Override:User flags > auto-detection
3.
Depth Hierarchy:--ultrathink > --think-hard > --think
4.
MCP Control:--no-mcp overrides all individual MCP flags
5.
Scope Precedence:system > project > module > file