getProgress query that provides detailed, real-time progress information. This is accessed through the Temporal Web UI and provides structured data about workflow state, completed agents, and metrics.
Unlike other Shannon commands, workflow queries are accessed through the Temporal Web UI at http://localhost:8233, not via the
./shannon CLI script.Accessing Workflow Queries
Via Temporal Web UI
- Open Temporal Web UI: http://localhost:8233
- Find your workflow: Search by workflow ID or workspace name
- Click on the workflow to view details
- Navigate to Query tab
- Select
getProgressquery - Click Execute
Via Temporal CLI
Alternatively, use the Temporal CLI (requires Temporal CLI installation):Query Response Structure
ThegetProgress query returns detailed JSON with workflow state:
Query Fields
Workflow Metadata
Unique workflow identifier (e.g.,
audit_shannon-1234567890)Target URL being tested
Current workflow phase:
pre-recon, recon, vulnerability-analysis, exploitation, or reportingTotal number of pipeline phases (always 5)
Number of fully completed phases
Agent State
Detailed state for each agent in the pipeline:
- status:
queued,running,completed,failed,skipped - startTime: ISO 8601 timestamp when agent started
- endTime: ISO 8601 timestamp when agent completed
- duration: Execution time in seconds
- progress: Current activity description (for running agents)
- metrics: Token usage and cost data
- deliverable: Path to generated deliverable file
- error: Error message (if failed)
Metrics
Cumulative tokens used across all completed agents
Cumulative cost in USD
Total workflow execution time in seconds
Estimated completion time based on current progress (ISO 8601)
Exploit Queue
List of vulnerability agents that found exploitable issues and queued exploit agents:
Errors
List of errors encountered during workflow execution:
Agent Status Values
queued
Agent is scheduled but hasn’t started yet:- Agent is waiting for parallel execution slot
- Or waiting for previous sequential phase to complete
- No resources consumed yet
running
Agent is actively executing:- Agent SDK session is active
- Tools are being invoked (bash, file operations, MCP)
- Tokens are being consumed
completed
Agent finished successfully:- Agent executed successfully
- Deliverable generated and validated
- Metrics recorded
- Workflow continues to next agent
failed
Agent encountered non-retryable error:- Agent encountered permanent error
- Workflow may continue with other agents
- Manual intervention required to fix issue
- Resume workflow after fixing
skipped
Agent was skipped (resume scenario):- Agent completed in previous workflow execution
- Deliverable exists and is valid
- Workflow resumed from later checkpoint
Querying Active Workflows
Monitoring Progress
Extract Specific Metrics
Comparison with Other Monitoring
| Method | Real-time | Structured Data | Historical | Access |
|---|---|---|---|---|
| getProgress Query | ✅ | ✅ JSON | ❌ | Temporal UI/CLI |
| ./shannon logs | ✅ | ❌ Plain text | ✅ | Terminal |
| ./shannon workspaces | ✅ | ⚠️ Table view | ❌ | Terminal |
| Temporal Event History | ✅ | ✅ JSON | ✅ | Temporal UI |
| audit-logs/ | ❌ | ✅ JSON/Text | ✅ | Filesystem |
When to Use Each
getProgress Query
getProgress Query
Best for:
- Real-time structured data
- Integration with monitoring systems
- Automated progress tracking
- Cost and metrics monitoring
- You need programmatic access to state
- Building dashboards or alerts
- Tracking multiple concurrent workflows
./shannon logs
./shannon logs
Best for:
- Human-readable progress updates
- Debugging agent execution
- Following real-time narrative
- Understanding agent decisions
- Monitoring a single workflow
- Troubleshooting issues
- Learning how agents work
./shannon workspaces
./shannon workspaces
Best for:
- Quick status overview
- Managing multiple workspaces
- Finding workflow IDs
- Resume decision-making
- You have multiple active workflows
- Deciding which workflow to resume
- Getting a high-level overview
Example Use Cases
Cost Monitoring Dashboard
Build a dashboard that tracks costs across all active workflows:Progress Notification
Send notification when workflow reaches specific phase:Parallel Workflow Tracking
Monitor progress of multiple concurrent workflows:Next Steps
Temporal Orchestration
Learn about Temporal workflow system
View Logs
Stream real-time workflow logs
Workspaces
List and manage all workspaces
Metrics Tracking
Understanding metrics and cost tracking
