assess_risk
Analyze coding prompts for security risks by assessing potential dangers, blast radius, and complexity before code execution in Cursor editor.
Instructions
Assess the risk level of your coding prompt using Orcho risk analysis API. CRITICAL: You (Cursor AI) have access to the editor state - ALWAYS include context when available: 1) Pass the currently open/active file path as current_file (you can see this in the editor tabs), 2) Analyze the user prompt to determine which files will be modified and pass them as other_files array. Without context, only basic risk assessment is available. With context, you get blast radius and complexity analysis.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task | Yes | The coding task or prompt you want to assess for risk. | |
| current_file | No | STRONGLY RECOMMENDED: Path to the currently open/active file in the Cursor editor (e.g., "src/main.js" or "mcp-server.js"). You (Cursor AI) can see which file is open in the editor tabs - always pass this if available. This enables context-aware assessment with blast radius and complexity analysis. If no file is open or unknown, omit this parameter. | |
| other_files | No | STRONGLY RECOMMENDED: Array of file paths that will be touched/modified by this prompt. Analyze the user prompt to determine which files will be affected (e.g., if prompt says "update login.js and auth.js", include ["login.js", "auth.js"]). If no other files will be touched, pass an empty array []. This enables accurate blast radius calculation. Always try to include this based on prompt analysis. | |
| dependency_graph | No | Optional JSON dependency graph of the project. Can be generated from package.json, requirements.txt, etc. | |
| weights | No | Optional custom weights for risk calculation factors. | |
| aiignore_file | No | Optional path to .aiignore file for excluding files from analysis. |