Package Exports
- @bugzy-ai/bugzy
- @bugzy-ai/bugzy/subagents
- @bugzy-ai/bugzy/subagents/metadata
- @bugzy-ai/bugzy/tasks
Readme
Bugzy
Open-source AI agent configuration for QA automation with Claude Code
Bugzy is a CLI tool that manages AI agent configuration and starts Claude Code sessions with properly configured subagents, tasks, and MCP servers for test automation.
Features
- ✅ Complete Task Library - 7 pre-built QA automation tasks
- ✅ Flexible Subagents - Test Runner, Test Code Generator, Test Debugger & Fixer, Team Communicator, Documentation Researcher, Issue Tracker
- ✅ Easy Setup - Interactive CLI configuration (
bugzy setup) - ✅ Local Execution - Runs entirely on your machine with Claude Code
- ✅ Version Control Friendly - Configuration stored in git-friendly files
- ✅ Language Agnostic - Works with any project type (Python, Ruby, Go, JavaScript, etc.)
- ✅ No Vendor Lock-in - Full control over customization
- ✅ MCP Integration - Automatic MCP server configuration
Quick Start
# Install globally
npm install -g @bugzy-ai/bugzy
# Navigate to your project
cd my-project
# Run interactive setup
bugzy setup
# Configure your MCP secrets
cp .env.example .env
vim .env # Add your MCP API tokens (Slack, Notion, etc.)
# Generate test plan (creates .env.testdata with test data)
bugzy "/generate-test-plan for [your feature]"
# Start a Claude Code session
bugzyExample Usage
# Generate a test plan
bugzy "generate test plan for user authentication"
# Or use slash commands in Claude Code
/generate-test-plan for checkout flow
/run-tests for payment processing
/verify-changes-slack deployed new featureWhat Gets Created
After running bugzy setup, your project will have:
your-project/
├── .bugzy/
│ ├── config.json # Your subagent configuration
│ └── runtime/
│ ├── project-context.md # Project information
│ └── templates/ # Customizable templates
├── .claude/
│ ├── commands/ # 8 task slash commands
│ ├── agents/ # Configured subagent prompts
│ └── .mcp.json # MCP server configuration
├── .env.example # MCP secrets template (empty values)
├── .env.testdata # Test data with actual values (from /generate-test-plan)
└── .env # Your actual secrets (gitignored)Available Subagents
| Subagent | Purpose | Integrations | Required |
|---|---|---|---|
| Test Runner | Execute automated browser tests | Playwright | ✅ Yes |
| Test Code Generator | Generate Playwright test scripts and Page Objects | Playwright | ✅ Yes |
| Test Debugger & Fixer | Debug and fix failing tests automatically | Playwright | ✅ Yes |
| Team Communicator | Send team notifications | Slack, Microsoft Teams | ❌ Optional |
| Documentation Researcher | Search documentation | Notion, Confluence | ❌ Optional |
| Issue Tracker | Create and track bugs | Linear, Jira Cloud, Jira Server, Notion, Slack | ❌ Optional |
Available Tasks
| Task | Command | Description |
|---|---|---|
| Explore Application | /explore-application |
Explore and document application features |
| Generate Test Plan | /generate-test-plan |
Create comprehensive test plans |
| Generate Test Cases | /generate-test-cases |
Generate executable test cases |
| Run Tests | /run-tests |
Execute automated tests and analyze failures |
| Verify Changes | /verify-changes |
Verify product changes via automated testing |
| Handle Message | /handle-message |
Process team messages from Slack/Teams |
| Process Event | /process-event |
Handle automated webhooks and events |
Configuration
Bugzy uses a simple configuration format:
{
"version": "1.0.0",
"project": {
"name": "my-project"
},
"subagents": {
"test-runner": "playwright",
"team-communicator": "slack",
"documentation-researcher": "notion",
"issue-tracker": "linear"
}
}Don't edit config.json manually - use bugzy setup to reconfigure.
Environment Variables
Bugzy loads environment variables for MCP servers and test configuration:
# MCP Secrets
SLACK_BOT_TOKEN=xoxb-...
NOTION_TOKEN=secret_...
LINEAR_API_KEY=lin_api_...
# Test Configuration
TEST_BASE_URL=http://localhost:3000
TEST_USER_EMAIL=test@example.com
TEST_USER_PASSWORD=secure-passwordSee Configuration Guide for complete details.
Documentation
- 📚 Getting Started Guide - Installation and first-time setup
- ⚙️ Configuration Guide - Subagent and environment setup
- 🤖 Subagents Guide - Available subagents and integrations
- 📋 Task Library - All available tasks and usage
- 🏗️ Architecture - How Bugzy works under the hood
Examples
Check out example configurations:
- Basic Setup - Minimal configuration with just Test Runner
- Full Setup - All subagents configured
Requirements
- Node.js v18 or higher
- Claude Code installed and configured
- npm or yarn package manager
Breaking Changes (v0.2.0)
New Test Execution Output Format
This is a breaking change. Bugzy now uses a hierarchical test execution format with custom Playwright reporter:
What's New:
- Custom Bugzy Reporter: Automatically creates
test-runs/YYYYMMDD-HHMMSS/structure withmanifest.json - Execution Retries: Tracks multiple attempts per test (
exec-1/,exec-2/,exec-3/) - Comprehensive Artifacts: Videos for all tests, traces/screenshots for failures only
- Manifest Format: New
manifest.jsonprovides complete test run summary and per-test execution details
Migration Path:
- Update to v0.2.0:
npm update -g bugzy - Run
bugzy setupin your project to regenerate configuration files - New files will be created:
playwright.config.ts- Uses custom Bugzy reporterreporters/bugzy-reporter.ts- Custom reporter implementation.bugzy/runtime/templates/test-result-schema.md- Complete schema documentation
Key Changes:
/run-testsnow readsmanifest.jsoninstead of.last-run.json- Test artifacts organized in
test-runs/{timestamp}/{testId}/exec-{num}/structure - Environment variable
BUGZY_EXECUTION_NUMcontrols retry attempts - Videos recorded for ALL tests (not just failures)
- Trace/screenshots only for failures (more efficient)
See .bugzy/runtime/templates/test-result-schema.md for complete format documentation.
Reconfiguration
Need to change your setup? Just run:
bugzy setupBugzy will detect your existing configuration and allow you to make changes.
Troubleshooting
Command Not Found
npm install -g @bugzy-ai/bugzyMissing Secrets
✗ Missing required MCP secrets: SLACK_BOT_TOKENAdd the missing secret to your .env file.
Claude Code Not Found
Install Claude Code and ensure it's in your PATH.
See the Getting Started Guide for more troubleshooting tips.
FAQ
Q: Do I need a package.json? A: No! Bugzy works with any project type.
Q: Can I use this with Python/Ruby/Go projects? A: Yes! Bugzy is language-agnostic.
Q: Where are my secrets stored?
A: In .env which is gitignored. .env.example (MCP secrets template) and .env.testdata (test data) are committed.
Q: Can I customize the tasks?
A: You can customize templates in .bugzy/runtime/templates/.
Q: How do I update to get new tasks?
A: Run npm update -g @bugzy-ai/bugzy && bugzy setup
License
MIT © Bugzy Team
Contributing
Contributions are welcome! Please read our contributing guidelines (coming soon).
Support
- Issues: github.com/bugzy-ai/bugzy/issues
- Discussions: github.com/bugzy-ai/bugzy/discussions
- Documentation: docs.bugzy.dev