mirror of
https://github.com/KeygraphHQ/shannon.git
synced 2026-11-25 21:54:35 +01:00
* fix(resume): retry failed agents when resuming a partial scan * fix(resume): reopen the report only when a class failed
1.9 KiB
1.9 KiB
Workspaces and Resuming
Shannon uses workspaces to store scan state, logs, prompts, and deliverables. Workspaces allow interrupted or failed runs to resume without re-running completed agents.
How Workspaces Work
- Every run creates a workspace.
- Auto-named workspaces use the target hostname and a session ID, such as
example-com_shannon-1771007534808. npxmode stores workspaces in~/.shannon/workspaces/.- Source-build mode stores workspaces in
./workspaces/. - Use
-w <name>to give a run a custom name. - To resume a run, pass the same workspace name with
-w. - Each agent's progress is checkpointed so resumed runs can skip completed work.
- Resuming a
partialscan retries only the agents that failed. Shannon then writes the report again so it includes the retried results, so finding numbers and wording can differ from the previous report. - The final report is surfaced at the workspace root as
Security-Assessment-Report.pdfandSecurity-Assessment-Report.md. Run internals — deliverables, logs, prompts, and session state — live under a hidden.shannon/directory.
Note
The URL must match the original workspace URL when resuming. Shannon rejects mismatched URLs to prevent cross-target contamination.
Examples
Start with a named workspace:
npx @keygraph/shannon start -u https://example.com -r /path/to/repo -w my-audit
Resume the same workspace:
npx @keygraph/shannon start -u https://example.com -r /path/to/repo -w my-audit
Resume an auto-named workspace:
npx @keygraph/shannon start -u https://example.com -r /path/to/repo -w example-com_shannon-1771007534808
List running and completed scans:
npx @keygraph/shannon scans
Source-build equivalents:
./shannon start -u https://example.com -r /path/to/repo -w my-audit
./shannon start -u https://example.com -r /path/to/repo -w example-com_shannon-1771007534808
./shannon scans