Documentation Index
Fetch the complete documentation index at: https://raindrop.ai/docs/llms.txt
Use this file to discover all available pages before exploring further.
What is Self Diagnostics
Self Diagnostics allows your AI agents to proactively report their own issues back to your team. Agents are exponentially smarter than before. They often understand their own failures better than we do. Imagine your agent keeps failing to install a package, or can’t find something a user is asking for in your docs. With Self Diagnostics, it can just tell you.Default signal categories
Out of the box, the agent will detect and report four categories of issues:| Category | What it catches |
|---|---|
| missing_context | Critical information, credentials, or access is missing and the user cannot provide it |
| repeatedly_broken_tool | A tool has failed or not returned the expected response after multiple attempts. |
| capability_gap | The task requires a tool, permission, or capability the agent doesn’t have |
| complete_task_failure | The agent was unable to accomplish the task despite making genuine attempts |
Enabling Self Diagnostics
Self Diagnostics is enabled through the SDK when you instrument your agent. AddselfDiagnostics: { enabled: true } to your wrap() call:
Customization
You can define your own signal categories and add domain-specific guidance. When you provide customsignals, they replace the defaults entirely:
Viewing Self Diagnostics in the dashboard
Self Diagnostics reports appear in a dedicated Self Diagnostics tab on the Signals page. From here you can:- Track issue rates over time with signal charts
- Drill into individual incidents to see the agent’s description of what went wrong
- Set up alerts to get notified when problems spike
How it relates to Signals
Self Diagnostics signals are a special type of Signal. While standard signals are detected by Raindrop’s classifiers or tracked manually via the SDK, Self Diagnostics signals come directly from the agent itself. They appear withsignal_type: "agent" and are grouped separately so you can distinguish agent-reported issues from other signal types.
Other ways to report Self Diagnostics
Beyondwrap(), the SDK offers two additional approaches for more advanced use cases:
createSelfDiagnosticsTool()— Create a standalone self-diagnostics tool for agents that don’t usewrap(). See the TypeScript SDK docs.selfDiagnose()— Manually report a diagnostic from your own code, no LLM tool call needed. See the TypeScript SDK docs.