Files
ruflo/examples
rUvandClaude 418691f236 fix: Make Claude Flow status commands fully functional (fixes #758, #760)
- Replace mock data with real metrics from .claude-flow/metrics/ files
- Fix MCP Server detection to properly show running status
- Make agent spawn and task creation fully functional with file persistence
- Update binary wrapper to prioritize local source over npm packages
- Bump version to 2.0.0-alpha.111

Changes:
- Created MetricsReader utility to read actual metrics files
- Updated status.js to display real system metrics, not hardcoded values
- Fixed agent.js to create real agent files in .claude-flow/agents/
- Fixed task.js to maintain actual task queue in .claude-flow/tasks/
- Modified ./claude-flow binary to use local source directly
- Broadened MCP detection pattern to catch all MCP variants

All status commands now show live, accurate data:
- Real memory usage, CPU load, and disk stats
- Actual agent counts and statuses from persisted files
- Live task queue with real queued tasks
- Correct MCP server running status
- Accurate session and performance metrics

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-19 14:12:36 +00:00
..
2025-06-13 23:38:46 +00:00
2025-06-13 23:38:46 +00:00
2025-06-13 23:38:46 +00:00
2025-06-13 23:38:46 +00:00
2025-06-13 23:38:46 +00:00
2025-06-16 19:09:10 +00:00
2025-06-16 19:09:10 +00:00
2025-06-16 19:09:10 +00:00
2025-06-16 19:09:10 +00:00
2025-06-16 19:09:10 +00:00
2025-06-16 19:09:10 +00:00
2025-06-16 19:09:10 +00:00
2025-06-16 19:09:10 +00:00
2025-06-16 19:09:10 +00:00
2025-06-16 19:09:10 +00:00
2025-06-16 19:09:10 +00:00
2025-06-16 19:09:10 +00:00
2025-06-16 19:09:10 +00:00
2025-06-13 23:38:46 +00:00
2025-06-13 23:38:46 +00:00

Claude Flow Examples

This directory contains examples demonstrating various features and capabilities of the Claude Flow system, organized by category.

Directory Structure

examples/
├── 01-configurations/        # System and workflow configuration examples
├── 02-workflows/            # Multi-agent workflow definitions
├── 03-demos/               # Live demonstration scripts
├── 04-testing/             # Testing and validation examples
├── 05-swarm-apps/          # Applications created by the swarm system
├── 06-tutorials/           # Step-by-step guides and tutorials
└── README.md               # This file

Quick Start

  1. New to Claude Flow? Start with 01-configurations/basic-config.json
  2. Want to see it in action? Run 03-demos/quick-demo.sh
  3. Building an app? Check 05-swarm-apps/ for complete examples
  4. Testing your setup? Use 04-testing/test-swarm-cli.sh

Categories

01. Configurations

System and workflow configuration files showing how to set up Claude Flow for different use cases.

02. Workflows

Multi-agent workflow definitions demonstrating parallel execution, task dependencies, and agent coordination.

03. Demos

Shell scripts that demonstrate the swarm system creating various types of applications.

04. Testing

Scripts for testing Claude Flow features, SPARC modes, and system functionality.

05. Swarm Apps

Complete applications created by the swarm system, including source code, tests, and documentation.

06. Tutorials

Step-by-step guides for common tasks and advanced features.

Running Examples

Most shell script examples can be run directly:

cd examples/03-demos
./quick-demo.sh

For configuration examples, use them with Claude Flow commands:

cd examples
../claude-flow swarm create "Your task description" --config ./01-configurations/basic/simple-config.json

Or from the project root:

./claude-flow swarm create "Your task description" --config ./examples/01-configurations/basic/simple-config.json

Contributing

When adding new examples:

  1. Place them in the appropriate category folder
  2. Include clear comments and documentation
  3. Test the example thoroughly
  4. Update this README if adding new categories