[Feature] Extract System Prompt
Is there an existing issue for the same feature request?
- [x] I have checked the existing issues.
Describe the feature request
Add support for finding the system prompts used in the workflow and showing it in the report.
Do you have any ideas for the technical implementation?
No response
This feature has been implemented! 🎉
The System Prompts section now appears prominently in all generated reports, showing:
✅ Dedicated System Prompts Section - Prominently displayed after the Agents table
✅ Clean, readable formatting - Each prompt in its own styled card with agent name header
✅ Copy functionality - One-click copy button for each system prompt
✅ Hardened prompts support - Shows both original and hardened versions when available
✅ Framework support - Works across all supported frameworks (LangGraph, CrewAI, n8n, OpenAI Agents, Autogen)
✅ Graceful handling - Shows "No system prompts found" message when appropriate
Example Usage:
# Generate report with system prompts section
agentic-radar scan crewai -i ./my-crew -o report.html
agentic-radar scan openai-agents -i ./my-agents -o report.html
What you'll see:
- System prompts are now extracted from agent definitions and displayed in easy-to-read format
- Each agent's system prompt appears in its own styled card
- Monospace font for better readability
- Copy buttons for easy sharing/analysis
- Integration with existing prompt hardening feature
The implementation uses the existing agent extraction logic but presents system prompts in a much more accessible way than the previous tiny table cells.
Technical details:
- Added new System Prompts section in HTML template
- Uses Jinja2 filters to identify agents with non-empty system prompts
- Responsive design matching existing report aesthetics
- Comprehensive test coverage included
This addresses the core request to "find the system prompts used in the workflow and show it in the report" - they're now prominently displayed and easily accessible!
Closes #39