A layer of red phosphorus in rechargeable lithium metal batteries can signal when damaging dendrites threaten to create a short circuit. The strategy, which does not require a third electrode, could help bring more powerful lithium metal batteries to market.