A computer-assisted surgery system may have a robotic arm including a surgical tool and a processor communicatively connected to the robotic aim. The processor may be configured to receive, from a neural monitor, a signal indicative of a distance between the surgical tool and a portion of a patient's anatomy including nervous tissue. The processor may be further configured to generate a command for altering a degree to which the robotic aim resists movement based on the signal received from the neural monitor; and send the command to the robotic arm.