Command
CLI Tools
Command
/fix-bug
Systematic approach to fixing a bug in the codebase.
Install
> /plugin marketplace add mixedbread-ai/mgrep > /plugin install mgrep@Mixedbread-Grep
How it fires
How this command gets triggered: by you, by Claude, or both.
- Fires itselfClaude auto-loads it when your prompt matches the work.
- You can call itInvoke it directly when you want it.
- Slash command
/fix-bug
Context preview
What this command does when you run it.
Systematic approach to fixing a bug in the codebase.
Command definition
fix-bug.mdFix Bug
Systematic approach to fixing a bug in the codebase.
Arguments
- `$ARGUMENTS` - Description of the bug or issue reference
Steps
1. **Understand the bug**
- Search for related code using mgrep: `mgrep "$ARGUMENTS"`
- Read the relevant files to understand the current behavior
2. **Write a failing test first** (when practical)
- Add a test in `test/test.bats` that reproduces the bug
- Verify the test fails: `bats test/test.bats --filter "test name"`
3. **Identify the root cause**
- Trace the code flow from entry point to the buggy behavior
- Check `src/lib/` for utility functions that might be involved
4. **Implement the fix**
- Make the minimal change necessary to fix the issue
- Follow existing code patterns and style
5. **Verify the fix**
- Run the specific test: `bats test/test.bats --filter "test name"`
- Run all tests: `pnpm test`
- Run type check: `pnpm typecheck`
6. **Document if needed**
- If the bug was caused by a non-obvious pattern, add a comment explaining why
- Update AGENTS.md "Common Pitfalls" section if this could trip up others
7. **Commit with proper message**
- Use format: `fix(scope): description of fix`
Ships withmgrep
A calm, CLI-native way to semantically grep everything, like code, images, pdfs and more.
Get the whole plugin
Stats
4,414
Stars
176
Forks
Maintained
Maintenance
TypeScript
Language
Apache-2.0
License
5mo ago
Last commit
11mo ago
Created
1d ago
Added
Repo: mixedbread-ai/mgrep
Other commands on mgrep.
Command
Command
Command
Command

