quell reproduce
Turn a natural-language bug description into a failing pytest test.
Usage
quell reproduce "<bug description>"
quell reproduce "<bug description>" --file src/payments.py
Requirements
This command requires a configured LLM provider (Groq or OpenAI-compatible). Set up with:
quell auth set GROQ_API_KEY=gsk_...
Arguments
| Argument | Description |
|---|---|
"<bug description>" | A natural-language description of the bug to reproduce. |
Options
| Option | Description |
|---|---|
--file | Path to the source file containing the relevant code. Auto-detected if omitted. |
--output | Test output file. Default: auto-detect from existing test structure. |
--dry-run | Generate the test but don't write it. |
Example
quell reproduce "payment accepts zero amount and creates zero-value order"
Output:
def test_payment_accepts_zero_amount_bug():
"""Reproduces: payment accepts zero amount and creates zero-value order"""
with pytest.raises(ValueError):
process_payment(amount=0, currency="USD")
How it works
- Quell sends your bug description + relevant source code to the LLM
- The LLM generates a test that should fail on the current (buggy) code
- Quell runs the test — if it passes, you've confirmed the bug is fixed
- The test is verified through the 5-gate pipeline before writing
Only source code is sent to the LLM. No config files, secrets, or unrelated code.