Intervention Types
Prompt Correction
Rewrites or supplements your agent’s system prompt to address instruction drift, goal abandonment, or behavior that contradicts the agent’s intended role. Agent Therapy generates a specific prompt amendment based on the session findings — you review it, edit if needed, and apply it.Best for: Instruction Drift, Goal Abandonment, Hallucination Burst
Constraint Injection
Adds targeted guardrails to the agent’s active context to prevent a specific failure behavior from continuing. Unlike a full prompt rewrite, constraint injection inserts a focused, scoped directive — for example, a prohibition on making a certain type of tool call, or an instruction to express uncertainty in a particular domain.Best for: Hallucination Burst, Tool Call Failure Cascade
Behavioral Reset
Clears the agent’s current conversation context to break out of a repetitive loop or stop a cascading failure from compounding further. The agent restarts with a clean context, re-grounded in its system prompt. Behavioral Reset is the fastest way to stop active dysfunction.Best for: Repetitive Loop, Tool Call Failure Cascade
Conversation Pruning
Removes specific turns from the agent’s context window — typically low-value exchanges, erroneous tool responses, or turns that are crowding out critical early context. Unlike a full reset, pruning preserves the conversational thread while freeing up context space and removing noise.Best for: Context Overflow, Repetitive Loop
When to Use Each Type
Use this reference to match a detected failure mode to the most appropriate intervention. In many cases, a combination of intervention types produces the best outcome.Applying an Intervention
You can apply an intervention through the dashboard or directly via the API.Via the Dashboard
- Open any session report that contains findings.
- Click Apply Intervention next to the finding you want to address.
- Review the recommended intervention type and the proposed change (e.g., the amended prompt or the turns selected for pruning).
- Edit the proposed change if needed, then click Confirm & Apply.
Via the API
Send aPOST request to /v1/interventions with the session ID, the target finding, the intervention type, and any relevant parameters.
Listing Available Intervention Types
Before applying an intervention programmatically, you can fetch the current catalog of supported intervention types and their metadata with a single API call. This is useful for building dynamic UIs, validatingintervention_type values, or checking which parameters each type accepts.
Intervention History
Every intervention is permanently logged and linked to the session that prompted it. In the dashboard, navigate to Agents → select your agent → Interventions to see a full chronological history including the intervention type, the finding it addressed, who applied it, and when. Via the API, retrieve intervention history for an agent:- Verify that issues were addressed — reviewers can see that a reported problem was acted on.
- Correlate interventions with score changes — confirm that an intervention improved the Health Score in subsequent sessions.
- Demonstrate compliance — provide auditors with a full timeline of detected issues and corrective actions taken.