Demo Project: Fix the Greeting Bug
A minimal Go project for demonstrating bc multi-agent orchestration.
The Bug
The greet() function returns "Hello" but should return "Welcome".
# Run the test to see the failure
go test -v
Demo with bc
# Initialize bc workspace
bc init
# Start the orchestration
bc up
# Create a GitHub issue for the fix task
gh issue create -t "Fix greeting bug" -b "greet() should return 'Welcome' instead of 'Hello'. Run tests to verify."
# Check agent status
bc status
Expected Outcome
After bc processes the task:
- An engineer agent picks up the work
- Identifies the bug in greeting.go
- Changes "Hello" to "Welcome"
- Runs tests to verify the fix
- Commits the change
Verify the Fix
# Run tests - should pass after fix
go test -v
# Run the program
go run .
# Output: Welcome