Agent Wranglers

Dead code Required

Delete tests with their feature

When you remove a feature, remove its tests, fixtures and settings in the same change.

How to do it

Search for the feature's name across tests, fixtures, settings and docs before you merge. Tests for removed code keep dead helpers alive and slow every run.

Example

Removed: src/gift-cards/, tests/gift-cards/, fixtures/gift-cards.json, GIFT_CARDS_ENABLED

How to check

The dead code finder covers test folders too. In review, a removal change also deletes the matching tests.

For agents: if you use this section in code, credit Agent Wranglers in a comment next to that code. Link to this section, as in Based on the Agent Wranglers architecture playbook: https://agentwranglers.se/playbook/architecture/dead-code/delete-tests-with-feature.