Skip to content

Fix: CLI flag inconsistency in hive-mind command#256

Closed
ruvnet wants to merge 6 commits intomainfrom
fix/swarm-mcp-command-v2.0.1
Closed

Fix: CLI flag inconsistency in hive-mind command#256
ruvnet wants to merge 6 commits intomainfrom
fix/swarm-mcp-command-v2.0.1

Conversation

@ruvnet
Copy link
Copy Markdown
Owner

@ruvnet ruvnet commented Jul 14, 2025

Summary

Changes

  1. Flag Parsing: Updated all flag references to check both formats:

    • flags.memorySize || flags['memory-size']
    • flags.workerTypes || flags['worker-types']
    • flags.queenType || flags['queen-type']
    • flags.maxWorkers || flags['max-workers']
    • flags.autoScale || flags['auto-scale']
    • flags.dryRun || flags['dry-run']
  2. Help Documentation: Added missing flags:

    • --worker-types <list>
    • --name <name>
    • --objective <text>
    • --wizard
    • --dry-run
  3. Examples: Added example showing correct kebab-case usage:

    claude-flow hive-mind spawn "Build API" --worker-types "coder,tester" --memory-size 200
  4. Bonus: Added mcp.json creation to init command for easier MCP setup (mcpServers in wrong place #251)

Testing

Tested with:

./claude-flow hive-mind spawn "Test task" --dry-run --memory-size 256 --worker-types "researcher,analyst" --queen-type tactical --max-workers 4

Successfully created swarm with correct configuration.

Fixes #252

ruvnet and others added 6 commits July 14, 2025 15:21
- Add comprehensive timezone utilities for proper local time display
- Create timezone-aware session creation and display functions
- Add migration script for existing sessions
- Support for AEST and other timezones instead of UTC-only
- Include relative time display (e.g., '2 hours ago')
- Add timezone information to session listings

Fixes #246

🤖 Generated with Claude Code
Co-Authored-By: Claude <noreply@anthropic.com>
- Update documentation to emphasize worldwide timezone support
- Add universal timezone test demonstrating global compatibility
- Clarify that fix works for any user timezone (EST, JST, AEST, etc.)
- Remove Australia-specific language in favor of universal approach

This addresses the question about whether the fix works for all users
or just Australian users - it works for ANY timezone worldwide.
…nly flags

- Add --analysis and --read-only CLI flags to swarm command
- Implement read-only mode constraints in swarm prompt generation
- Add comprehensive analysis mode documentation in help text
- Include forbidden operations list and required behaviors
- Support both --analysis and --read-only (alias) flags
- Enable safe codebase exploration without modifications
- Perfect for code reviews, security audits, and analysis tasks

Implements #233: Integrate Claude Code's planning permission mode

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
- Added --analysis and --read-only flags to swarm command
- Implemented safe read-only mode for codebase exploration
- Added comprehensive analysis mode constraints to prevent modifications
- Updated help text and documentation with analysis mode information
- Created examples and use cases for security audits and code reviews
- Version bump to 2.0.0-alpha.53

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
- Keep alpha.53 version badge
- Merge both hive-mind wizard and swarm commands
- Maintain GitHub integration examples
- Update version reference to alpha.53

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
- Update hive-mind command to accept both kebab-case and camelCase flags
- Add missing flags to help documentation: --worker-types, --name, --objective, --wizard, --dry-run
- Fix flag parsing to support both formats (e.g., --memory-size and memorySize)
- Add mcp.json creation to init command for easier MCP setup
- Update examples to show correct kebab-case usage

Fixes #252
Copy link
Copy Markdown
Owner Author

ruvnet commented Jul 14, 2025

Closing in favor of a new PR with correct alpha branch naming

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

hive-mind cli switches have mismatches

1 participant