- SuperCodex Version: v4.0+ Compatible
- Last Tested: 2025-01-16
- Test Environment: Linux/Windows/macOS
- Flag Syntax: β All Verified
Before using flags, verify they work correctly:
# Test basic flag recognition
/sg:analyze . --help
# Expected: Shows available flags without errors
# Test auto-flag activation
/sg:implement "test component"
# Expected: Magic + Context7 should auto-activate for UI requests
# Test manual flag override
/sg:analyze . --no-mcp
# Expected: Native execution only, no MCP serversIf tests fail: Check Installation Guide for flag system setup
SuperCodex's intelligent flag system automatically detects task complexity and context, then activates appropriate flags behind the scenes. You get optimized performance without memorizing flag combinations.
Intelligent Auto-Activation: Type /sg:analyze large-codebase/ β --think-hard + --serena + --orchestrate activate automatically. Type complex multi-file operations β --task-manage + --delegate optimize execution. Work under resource pressure β --uc compresses output.
Manual Override Available: When you want specific behavior, flags provide precise control. But in most cases, SuperCodex's automatic selection delivers optimal results.
Commands Work Great Without Flags:
# These automatically get optimal flags
/sg:analyze "mobile fitness app"
# β Auto-activates: --think, --context7
/sg:analyze src/ --focus security
# β Auto-activates: --think-hard, --serena, --orchestrate
/sg:implement "user authentication system"
# β Auto-activates: --task-manage, --c7, --magic, --validate
/sg:troubleshoot "API performance issues"
# β Auto-activates: --think-hard, --seq, --serena, --introspect
/sg:improve legacy-code/ --focus maintainability
# β Auto-activates: --task-manage, --morph, --serena, --safe-modeBehind-the-Scenes Optimization:
- Context Analysis: Keywords trigger appropriate specialists and tools
- Complexity Detection: Multi-file operations get coordination flags
- Resource Awareness: System load triggers efficiency optimizations
- Quality Gates: Risky operations automatically enable safety flags
- Performance Tuning: Optimal tool combinations selected automatically
When Manual Flags Help:
- Override automatic detection:
--no-mcpfor lightweight execution - Force specific behavior:
--ucfor compressed output - Learning and exploration:
--introspectto see reasoning - Resource control:
--concurrency 2to limit parallel operations
Flags are Modifiers that adjust SuperCodex's behavior for specific contexts and requirements:
Flag Syntax:
/sg:command [args] --flag-name [value]
# Examples
/sg:analyze src/ --focus security --depth deep
/sg:implement "auth" --task-manage --validate
/sg:troubleshoot issue/ --think-hard --uc --concurrency 3Two Types of Activation:
- Automatic (90% of use): SuperCodex detects context and activates optimal flags
- Manual (10% of use): You override or specify exact behavior needed
Flag Functions:
- Behavioral Modes: ``,
--introspect, `--task-manage` - Tool Selection:
--c7,--seq,--magic,--morph,--serena,--play - Analysis Depth:
--think,--think-hard,--ultrathink - Efficiency Control:
--uc,--concurrency,--scope - Safety & Quality:
--safe-mode,--validate,--dry-run
Auto-Activation vs Manual Override:
- Auto:
/sg:implement "React dashboard"β Magic + Context7 + task coordination - Manual:
/sg:implement "simple function" --no-mcpβ Native-only execution
Thinking Depth Control:
--think - Standard Analysis (~4K tokens)
- Auto-Triggers: Multi-component analysis, moderate complexity
- Manual Use: Force structured thinking for simple tasks
- Enables: Sequential MCP for systematic reasoning
- Sequential MCP server activates (check status output)
- Analysis follows structured methodology with clear sections
- Output includes evidence-based reasoning and conclusions
- Token usage approximately 4K or less
/sg:analyze auth-system/ --think
# β Structured analysis with evidence-based reasoningVerify: Sequential MCP should show in status output
Test: Output should have systematic structure with hypothesis testing
Check: Analysis quality should be notably higher than basic mode
--think-hard - Deep Analysis (~10K tokens)
- Auto-Triggers: Architectural analysis, system-wide dependencies
- Manual Use: Force comprehensive analysis
- Enables: Sequential + Context7 for deep understanding
/sg:troubleshoot "performance degradation" --think-hard
# β Comprehensive root cause analysis with framework patterns--ultrathink - Maximum Analysis (~32K tokens)
- Auto-Triggers: Critical system redesign, legacy modernization
- Manual Use: Force maximum analytical depth
- Enables: All MCP servers for comprehensive capability
/sg:analyze enterprise-architecture/ --ultrathink
# β Maximum depth with all tools and reasoning capacityMode Activation Flags:
`` / --bs - Interactive Discovery
- Auto-Triggers: Vague requests, exploration keywords
- Manual Use: Force collaborative requirement discovery
/sg:implement "better user experience"
# β Socratic questions to clarify requirements before implementation--introspect - Reasoning Transparency
- Auto-Triggers: Error recovery, learning contexts
- Manual Use: Expose decision-making process for learning
/sg:analyze complex-algorithm/ --introspect
# β Transparent reasoning with π€, π―, β‘ markersOutput Compression:
--uc / --ultracompressed - Token Efficiency (30-50% reduction)
- Auto-Triggers: Context usage >75%, large operations, resource pressure
- Manual Use: Force compressed communication
- Effect: Symbol-enhanced output while preserving β₯95% information quality
/sg:analyze large-project/ --uc
# β "auth.js:45 β π‘οΈ sec risk in user val()" vs verbose explanations--token-efficient - Moderate Compression
- Auto-Triggers: Medium resource pressure, efficiency requirements
- Manual Use: Balance between detail and efficiency
/sg:troubleshoot "memory leak" --token-efficient
# β Structured but concise problem analysisExecution Control:
--concurrency [n] - Parallel Operation Control (1-15)
- Auto-Triggers: Resource optimization needs
- Manual Use: Control system load and parallel processing
/sg:improve large-codebase/ --concurrency 3
# β Limit to 3 parallel operations for resource management--scope [file|module|project|system] - Analysis Boundary
- Auto-Triggers: Analysis boundary detection
- Manual Use: Explicitly define operational scope
/sg:analyze src/auth/ --scope module
# β Focus analysis on authentication module only--loop / --iterations [n] - Iterative Improvement
- Auto-Triggers: "polish", "refine", "enhance", "improve" keywords
- Manual Use: Force iterative improvement cycles
/sg:improve user-interface/ --loop --iterations 3
# β 3 improvement cycles with validation gatesDomain-Specific Analysis:
--focus [domain] - Target Expertise Application
- Available Domains:
performance,security,quality,architecture,accessibility,testing - Auto-Triggers: Domain-specific keywords and file patterns
- Manual Use: Force specific analytical perspective
# Security-focused analysis
/sg:analyze payment-system/ --focus security
# β Security specialist + vulnerability assessment + compliance validation
# Performance optimization focus
/sg:improve api-endpoints/ --focus performance
# β Performance engineer + bottleneck analysis + optimization patterns
# Architecture evaluation
/sg:analyze microservices/ --focus architecture
# β System architect + design pattern analysis + scalability assessment
# Quality improvement
/sg:review codebase/ --focus quality
# β Quality engineer + code smell detection + maintainability analysisTask Management:
--task-manage / --delegate - Complex Coordination
- Auto-Triggers: >3 steps, >2 directories, >3 files
- Manual Use: Force hierarchical task organization for simple tasks
/sg:implement "simple feature" --task-manage
# β Phase-based approach with progress tracking even for simple tasks--delegate [auto|files|folders] - Orchestration Strategy
- Auto-Triggers: >7 directories OR >50 files OR complexity >0.8
- Manual Use: Control delegation strategy
/sg:refactor enterprise-codebase/ --delegate folders
# β Delegate by directory structure for systematic organizationMCP Server Control:
Individual Server Flags:
--c7/--context7: Documentation and framework patterns--seq/--sequential: Structured multi-step reasoning--magic: Modern UI component generation--morph/--morphllm: Pattern-based code transformation--serena: Semantic understanding and project memory--play/--playwright: Browser automation and testing
# Specific server combinations
/sg:implement "dashboard" --magic --c7
# β UI generation + framework patterns
/sg:analyze complex-issue/ --seq --serena
# β Structured reasoning + project context
/sg:improve legacy-code/ --morph --serena --seq
# β Pattern transformation + context + systematic analysisServer Group Control:
--all-mcp - Maximum Capability
- Auto-Triggers: Maximum complexity scenarios, multi-domain problems
- Manual Use: Force all tools for comprehensive capability
/sg:implement "enterprise-platform" --all-mcp
# β All 6 MCP servers coordinated for maximum capability--no-mcp - Native-Only Execution
- Auto-Triggers: Performance priority, simple tasks
- Manual Use: Force lightweight execution without MCP overhead
/sg:explain "simple function" --no-mcp
# β Fast native response without MCP server coordinationTool Optimization:
--orchestrate - Intelligent Tool Selection
- Auto-Triggers: Multi-tool operations, performance constraints, >3 files
- Manual Use: Force optimal tool coordination
/sg:refactor components/ --orchestrate
# β Optimal tool selection and parallel execution coordinationRisk Management:
--validate - Pre-execution Risk Assessment
- Auto-Triggers: Risk score >0.7, resource usage >75%, production environment
- Manual Use: Force validation gates for any operation
/sg:implement "payment-processing" --validate
# β Risk assessment + validation gates before implementation--safe-mode - Maximum Conservative Execution
- Auto-Triggers: Resource usage >85%, production environment, critical operations
- Manual Use: Force maximum safety protocols
- Auto-Enables:
--ucfor efficiency,--validatefor safety
/sg:improve production-database/ --safe-mode
# β Conservative execution + auto-backup + rollback planningPreview & Testing:
--dry-run - Preview Without Execution
- Manual Use: Preview changes without applying them
/sg:cleanup legacy-code/ --dry-run
# β Show what would be cleaned up without making changes--backup - Force Backup Creation
- Auto-Triggers: Risky operations, file modifications
- Manual Use: Ensure backup creation before operations
/sg:refactor critical-module/ --backup
# β Create backup before refactoring operations--tests-required - Mandate Test Validation
- Auto-Triggers: Critical code changes, production modifications
- Manual Use: Force test execution before proceeding
/sg:improve auth-system/ --tests-required
# β Run tests and require passing before improvement applicationWorkflow Management:
--parallel - Force Parallel Execution
- Auto-Triggers: Independent operations, >3 files, multi-tool scenarios
- Manual Use: Force parallel processing for eligible operations
/sg:analyze multiple-modules/ --parallel
# β Analyze modules concurrently instead of sequentially--sequential - Force Sequential Execution
- Manual Use: Override parallel processing for dependency reasons
/sg:implement "multi-step-feature" --sequential
# β Force step-by-step execution with dependenciesResource Control:
--memory-limit [MB] - Memory Usage Control
- Auto-Triggers: Large operations, resource constraints
- Manual Use: Explicit memory management
/sg:analyze large-dataset/ --memory-limit 2048
# β Limit analysis to 2GB memory usage--timeout [seconds] - Operation Timeout
- Auto-Triggers: Complex operations, MCP server timeouts
- Manual Use: Set explicit timeout boundaries
/sg:troubleshoot "complex-performance-issue" --timeout 300
# β 5-minute timeout for troubleshooting analysisOutput Control:
--format [text|json|html|markdown] - Output Format
- Auto-Triggers: Analysis export, documentation generation
- Manual Use: Specify exact output format
/sg:analyze api-performance/ --format json --export report.json
# β JSON-formatted analysis results for processing--verbose / --quiet - Verbosity Control
- Manual Use: Override automatic verbosity decisions
/sg:build project/ --verbose
# β Detailed build output and progress information
/sg:test suite/ --quiet
# β Minimal output, results onlyDevelopment Workflow Patterns:
Full Analysis & Improvement:
/sg:analyze codebase/ --think-hard --all-mcp --orchestrate
# β Deep analysis + all tools + optimal coordinationSafe Production Changes:
/sg:improve production-api/ --safe-mode --validate --backup --tests-required
# β Maximum safety protocols for production modificationsRapid Prototyping:
/sg:implement "quick-feature" --magic --c7 --no-validate
# β Fast UI generation + patterns without safety overheadLarge-Scale Refactoring:
/sg:refactor legacy-system/ --task-manage --serena --morph --parallel --backup
# β Systematic coordination + context + transformation + safetyPerformance Investigation:
/sg:troubleshoot "slow-performance" --think-hard --focus performance --seq --play
# β Deep analysis + performance focus + reasoning + browser testingLearning & Understanding:
/sg:analyze new-codebase/ --introspect --c7 --think
# β Transparent reasoning + discovery + documentation + analysisResource-Constrained Environments:
/sg:implement "feature" --uc --concurrency 1 --no-mcp --scope file
# β Compressed output + limited resources + lightweight executionQuality Assurance Workflow:
/sg:review code-changes/ --focus quality --validate --tests-required --think
# β Quality analysis + validation + testing + structured reasoningDocumentation Generation:
/sg:document api/ --c7 --magic --format markdown --focus accessibility
# β Documentation patterns + UI examples + accessible formatComplex Architecture Design:
/sg:design "microservices-platform" --ultrathink --all-mcp --orchestrate
# β Maximum analysis + discovery + all tools + optimal coordination| Flag | Purpose | Auto-Trigger | Token Impact |
|---|---|---|---|
--think |
Standard analysis | Multi-component tasks | ~4K tokens |
--think-hard |
Deep analysis | Architectural tasks | ~10K tokens |
--ultrathink |
Maximum analysis | Critical system work | ~32K tokens |
| `` | Interactive discovery | Vague requirements | Variable |
--introspect |
Reasoning transparency | Learning contexts | +10% detail |
| Flag | Purpose | Auto-Trigger | Performance Impact |
|---|---|---|---|
--uc |
Token compression | >75% context usage | 30-50% reduction |
--token-efficient |
Moderate compression | Resource pressure | 15-30% reduction |
--concurrency N |
Parallel control | Multi-file ops | +45% speed |
--orchestrate |
Tool optimization | Complex coordination | +30% efficiency |
--scope [level] |
Boundary control | Analysis scope | Focused execution |
| Flag | MCP Server | Auto-Trigger | Best For |
|---|---|---|---|
--c7 / --context7 |
Context7 | Library imports | Documentation, patterns |
--seq / --sequential |
Sequential | Complex debugging | Systematic reasoning |
--magic |
Magic | UI requests | Component generation |
--morph / --morphllm |
Morphllm | Multi-file edits | Pattern transformation |
--serena |
Serena | Symbol operations | Project memory |
--play / --playwright |
Playwright | Browser testing | E2E automation |
--all-mcp |
All servers | Max complexity | Comprehensive capability |
--no-mcp |
None | Simple tasks | Lightweight execution |
| Flag | Domain | Expert Activation | Use Case |
|---|---|---|---|
--focus security |
Security | Security engineer | Vulnerability analysis |
--focus performance |
Performance | Performance engineer | Optimization |
--focus quality |
Quality | Quality engineer | Code review |
--focus architecture |
Architecture | System architect | Design analysis |
--focus accessibility |
Accessibility | UX specialist | Compliance validation |
--focus testing |
Testing | QA specialist | Test strategy |
| Flag | Purpose | Auto-Trigger | Safety Level |
|---|---|---|---|
--safe-mode |
Maximum safety | Production ops | Maximum |
--validate |
Risk assessment | High-risk ops | High |
--backup |
Force backup | File modifications | Standard |
--dry-run |
Preview only | Manual testing | Preview |
--tests-required |
Mandate testing | Critical changes | Validation |
| Flag | Purpose | Auto-Trigger | Coordination |
|---|---|---|---|
--task-manage |
Hierarchical organization | >3 steps | Phase-based |
--delegate [mode] |
Sub-task routing | >50 files | Intelligent routing |
--loop |
Iterative cycles | "improve" keywords | Quality cycles |
--iterations N |
Cycle count | Specific improvements | Controlled iteration |
--parallel |
Force concurrency | Independent ops | Performance |
Adaptive Flagging Based on Project Type:
React/Frontend Projects:
# Automatically optimized for React development
/sg:implement "user-dashboard"
# β Auto-flags: --magic --c7 --focus accessibility --orchestrate
# Manual optimization for specific needs
/sg:implement "dashboard" --magic --c7 --play --focus accessibility
# β UI generation + patterns + testing + accessibility validationBackend/API Projects:
# Automatically optimized for backend development
/sg:implement "payment-api"
# β Auto-flags: --focus security --validate --c7 --seq
# Manual security-first approach
/sg:implement "api" --focus security --validate --backup --tests-required
# β Security analysis + validation + safety protocolsLegacy Modernization:
# Complex legacy work gets automatic coordination
/sg:improve legacy-monolith/
# β Auto-flags: --task-manage --serena --morph --think-hard --backup
# Manual control for specific modernization strategy
/sg:improve legacy/ --ultrathink --task-manage --serena --morph --safe-mode
# β Maximum analysis + coordination + transformation + safetyPriority Hierarchy:
- Safety First:
--safe-mode>--validate> optimization flags - Explicit Override: User flags > auto-detection
- Depth Hierarchy:
--ultrathink>--think-hard>--think - MCP Control:
--no-mcpoverrides all individual MCP flags - Scope Precedence:
system>project>module>file
Conflict Resolution Examples:
# Safety overrides efficiency
/sg:implement "critical-feature" --uc --safe-mode
# β Result: Safe mode wins, auto-enables backup and validation
# Explicit scope overrides auto-detection
/sg:analyze large-project/ --scope file target.js
# β Result: Only analyzes target.js despite project size
# No-MCP overrides individual server flags
/sg:implement "feature" --magic --c7 --no-mcp
# β Result: No MCP servers used, native execution onlyResource-Responsive Flagging:
# System automatically adapts based on available resources
/sg:analyze enterprise-codebase/
# β High resources: --all-mcp --parallel --think-hard
# β Medium resources: --c7 --seq --serena --think
# β Low resources: --no-mcp --uc --scope moduleComplexity-Driven Selection:
# Flags scale with detected complexity
/sg:implement "simple helper function"
# β Auto-flags: minimal, fast execution
/sg:implement "microservices authentication"
# β Auto-flags: --ultrathink --all-mcp --task-manage --validate --orchestrateSecurity-First Development:
# Progressive security validation
/sg:implement "auth-system" --focus security --validate --tests-required
/sg:review "payment-code" --focus security --think-hard --backup
/sg:analyze "user-data" --focus security --all-mcp --safe-modePerformance Optimization Workflow:
# Systematic performance improvement
/sg:analyze --focus performance --think-hard --seq --play
/sg:improve --focus performance --morph --parallel --validate
/sg:test --focus performance --play --format json --export metrics.jsonLearning & Discovery Patterns:
# Understanding complex systems
/sg:load new-codebase/ --introspect --serena
/sg:analyze architecture/ --introspect --think-hard --c7 --all-mcp
/sg:explain concepts/ --introspect --c7 --focus accessibility- Flag not recognized: Check spelling and verify against
python3 -m SuperCodex --help - MCP flag failures: Check Node.js installation and server configuration
- Auto-flags wrong: Use manual override with
--no-mcpor specific flags - Performance degradation: Reduce complexity with
--scope fileor--concurrency 1 - Flag conflicts: Check flag priority rules and use single flags
- Reset flags: Remove all flags and let auto-detection work
- Check compatibility: Use
/sg:help flagsfor valid combinations - Restart session: Exit and restart Codex CLI to reset flag state
- Verify setup: Run
SuperCodex status --flagsto check flag system
Flag Not Recognized:
# Problem: "Unknown flag --invalid-flag"
# Quick Fix: Check flag spelling and availability
/sg:help flags # List all valid flags
python3 -m SuperCodex --help flags # System-level flag help
# Common typos: --brainstrom β, --seq β --sequentialMCP Flag Issues:
# Problem: --magic, --morph, --c7 not working
# Quick Fix: Check MCP server status
SuperCodex status --mcp # Verify server connections
node --version # Ensure Node.js v16+
npm cache clean --force # Clear package cache
/sg:command --no-mcp # Bypass MCP temporarilyFlag Combination Conflicts:
# Problem: "Flag conflict: --all-mcp and --no-mcp"
# Quick Fix: Use flag priority rules
/sg:command --no-mcp # --no-mcp overrides --all-mcp
/sg:command --ultrathink --think # --ultrathink overrides --think
/sg:command --safe-mode --uc # --safe-mode auto-enables --ucAuto-Detection Issues:
# Problem: Wrong flags auto-activated
# Quick Fix: Manual override with explicit flags
/sg:analyze simple-file.js --no-mcp # Override complex auto-detection
/sg:implement "basic function" --think # Force thinking mode
/sg:analyze clear-requirement # Force discovery modeResource Exhaustion:
# Problem: System slowing down with --all-mcp --ultrathink
# Quick Fix: Reduce resource usage
/sg:command --c7 --seq # Essential servers only
/sg:command --concurrency 1 # Limit parallel operations
/sg:command --scope file # Reduce analysis scope
/sg:command --uc # Enable compressionTimeout Issues:
# Problem: Commands hanging with complex flags
# Quick Fix: Timeout and resource management
/sg:command --timeout 60 # Set explicit timeout
/sg:command --memory-limit 2048 # Limit memory usage
/sg:command --safe-mode # Conservative execution
killall node # Reset hung MCP serversMissing API Keys:
# Problem: --magic or --morph flags fail with "API key required"
# Expected behavior: These services require paid subscriptions
export TWENTYFIRST_API_KEY="key" # For --magic flag
export MORPH_API_KEY="key" # For --morph flag
# Alternative: /sg:command --no-mcp to skip paid servicesMissing Dependencies:
# Problem: MCP flags fail with "command not found"
# Quick Fix: Install missing dependencies
node --version # Check Node.js v16+
npm install -g npx # Ensure npx available
SuperCodex install --components mcp --force # Reinstall MCP| Flag Error | Meaning | Quick Fix |
|---|---|---|
| F001 | Unknown flag | Check spelling with /sg:help flags |
| F002 | Flag conflict | Use priority rules or remove conflicting flags |
| F003 | MCP server unavailable | Check node --version and server status |
| F004 | API key missing | Set environment variables or use --no-mcp |
| F005 | Resource limit exceeded | Use --concurrency 1 or --scope file |
| F006 | Timeout exceeded | Increase --timeout or reduce complexity |
| F007 | Permission denied | Check file permissions or run with appropriate access |
| F008 | Invalid combination | Refer to flag priority hierarchy |
Level 1: Quick Fix (< 2 min)
- Remove problematic flags and try again
- Use
--no-mcpto bypass MCP server issues - Check basic flag spelling and syntax
Level 2: Detailed Help (5-15 min)
# Flag-specific diagnostics
SuperCodex diagnose --flags
/sg:help flags --verbose
cat ~/.codex/logs/flag-system.log
# Test individual flags one at a time- See Common Issues Guide for flag installation problems
Level 3: Expert Support (30+ min)
# Deep flag system analysis
SuperCodex validate-flags --all-combinations
strace -e trace=execve /sg:command --verbose 2>&1
# Check flag interaction matrix
# Review flag priority implementation- See Diagnostic Reference Guide for system-level analysis
Level 4: Community Support
- Report flag issues at GitHub Issues
- Include flag combination that failed
- Describe expected vs actual behavior
After applying flag fixes, test with:
-
/sg:help flags(should list all available flags) -
/sg:command --basic-flag(should work without errors) -
SuperCodex status --mcp(MCP flags should work if servers connected) - Flag combinations follow priority rules correctly
- Auto-detection works for simple commands
- Flag not recognized β Check spelling:
SuperCodex --help flags - MCP flag fails β Check server status:
SuperCodex status --mcp - Auto-flags wrong β Use manual override:
--no-mcpor specific flags - Performance issues β Reduce complexity:
--scope fileor--concurrency 1 - Flag conflicts β Check priority rules in documentation
Flag Not Recognized:
# Problem: Unknown flag error
/sg:analyze code/ --unknown-flag
# Solution: Check flag spelling and availability
SuperCodex --help flags
/sg:help --flagsConflicting Flags:
# Problem: Contradictory flags
/sg:implement "feature" --all-mcp --no-mcp
# Solution: Use flag priority rules
# --no-mcp overrides --all-mcp (explicit override wins)
# Use: /sg:implement "feature" --no-mcpResource Issues:
# Problem: System overload with --all-mcp --ultrathink
/sg:analyze large-project/ --all-mcp --ultrathink
# Solution: Reduce resource usage
/sg:analyze large-project/ --c7 --seq --think --concurrency 2
# Or let auto-detection handle it: /sg:analyze large-project/MCP Server Connection Problems:
# Problem: MCP flags not working
/sg:implement "dashboard" --magic # Magic server not responding
# Solutions:
# 1. Check MCP installation
SuperCodex install --list-components | grep mcp
# 2. Restart Codex CLI session (MCP connections refresh)
# 3. Use fallback approach
/sg:implement "dashboard" --no-mcp # Native execution
# 4. Reinstall MCP servers
SuperCodex install --components mcp --forcePerformance Problems:
# Problem: Slow execution with complex flags
/sg:analyze codebase/ --ultrathink --all-mcp --parallel
# Solutions:
# 1. Reduce complexity
/sg:analyze codebase/ --think --c7 --seq
# 2. Use scope limiting
/sg:analyze codebase/ --scope module --focus quality
# 3. Enable efficiency mode
/sg:analyze codebase/ --uc --concurrency 1Check Auto-Activated Flags:
# Add --verbose to see which flags were auto-activated
/sg:analyze project/ --verbose
# β Output shows: "Auto-activated: --think-hard, --serena, --orchestrate"Test Flag Combinations:
# Use --dry-run to test flag effects without execution
/sg:improve code/ --task-manage --morph --dry-run
# β Shows planned execution without making changesValidate Flag Usage:
# Check flag compatibility
SuperCodex validate-flags --think-hard --no-mcp --magic
# β Reports conflicts and suggests correctionsStart Simple:
- Trust Auto-Detection: Let SuperCodex choose flags automatically
- Add Specific Flags: Override only when you need specific behavior
- Use Common Patterns: Start with proven flag combinations
- Monitor Performance: Watch for resource usage and adjust accordingly
Progressive Enhancement:
# Week 1: Use commands without flags
/sg:analyze src/
/sg:implement "feature"
# Week 2: Add specific focus
/sg:analyze src/ --focus security
/sg:implement "feature" --magic
# Week 3: Combine for workflows
/sg:analyze src/ --focus security --think-hard
/sg:implement "feature" --magic --c7 --validate
# Month 2+: Advanced patterns
/sg:improve legacy/ --task-manage --serena --morph --safe-modeFlag Selection Strategy:
- Purpose-First: What do you want to achieve?
- Context-Aware: Consider project type and complexity
- Resource-Conscious: Monitor system load and adjust
- Safety-Minded: Use validation flags for important changes
- Learning-Oriented: Add
--introspectwhen exploring
Learning Progression:
π± Essential (Week 1)
- Quick Start Guide - Experience auto-flagging naturally
- Commands Reference - Commands automatically select optimal flags
- Installation Guide - Flag system setup
πΏ Intermediate (Week 2-3)
- Behavioral Modes - How flags activate behavioral modes
- Agents Guide - Flag interaction with specialized agents
- MCP Servers - MCP server activation flags
π² Advanced (Month 2+)
- Session Management - Long-term flag patterns
- Best Practices - Flag optimization strategies
- Examples Cookbook - Real-world flag combinations
π§ Expert
- Technical Architecture - Flag system implementation
- Contributing Code - Extending flag capabilities
Flag-Specific Learning Paths:
π― Focus Flags Mastery:
- Security:
--focus securityβ Security engineer activation - Performance:
--focus performanceβ Performance optimization patterns - Quality:
--focus qualityβ Code review and improvement workflows
π§ Analysis Depth Progression:
- Basic: No flags β automatic detection
- Structured:
--thinkβ systematic analysis - Deep:
--think-hardβ comprehensive investigation - Maximum:
--ultrathinkβ complete analytical capability
π οΈ Tool Integration Journey:
- Single Tools:
--c7,--magicβ specific capabilities - Combinations:
--c7 --seqβ coordinated workflows - Full Suite:
--all-mcpβ maximum capability - Optimization:
--orchestrateβ intelligent coordination
π‘ Pro Tips:
- Start Without Flags: Experience automatic optimization first
- Add One at a Time: Learn flag effects incrementally
- Use
--introspect: Understand decision-making process - Monitor Resources: Watch system load and adjust accordingly
- Save Patterns: Document successful flag combinations for reuse