How cskwork/scopeweaver works
ScopeWeaver is an LLM-driven autonomous penetration-testing system: users configure a task and scope, agents explore assets, and the system records findings and evidence for review and reporting. Its Go backend exposes a JSON API and runs the exploration engine; the Next.js frontend provides task, finding, chat, and administration views. The README documents additional asset sync, interception approvals, MCP, Ollama, and notifications. Some subsystem links rely on README descriptions because their implementation was not sampled; those relationships are shown as documented, not inferred call chains.
Main entry points: worker.go Agent workers · engine.go Task engine · server.go HTTP API · findings.go Findings
Components 19
User interface
- Web console
web/src/app/(main)/chat/page.tsx
Backend orchestration
- HTTP API
server/server.go - Task engine
server/engine.go - Timeout settlement
server/engine_timeout.go - Task registry
db/tasks.go - PostgreSQL
Testing workflow
- Agent workers
agent/worker.go - Findings
db/findings.go - Asset scope
db/assets.go - Traffic evidence
traffic/traffic.go - Action approvals
intercept/intercept.go - Report exports
report/report.go - Side questions
sidequestion/service.go
External integrations
- Model providers
agent/provider.go - Native Ollama
ollama/client.go - Remote MCP
mcphttp/client.go - ScopeSentry sync
server/sync_scopesentry.go - Notifications
notify/notify.go
Other components
- Security tester
Connections 21
- Security tester → Web console: uses
README.md - Web console → HTTP API: calls API
- HTTP API → Task engine: routes tasks
- Task engine → Agent workers: runs workers
- Task engine → Task registry: persists tasks
- Timeout settlement → Task engine: settles runs
server/engine_timeout.go - Timeout settlement → Agent workers: cancels runs
server/engine_timeout.go - Security tester → Task registry: defines task
README.md - Agent workers → Model providers: requests completion
- Model providers → Native Ollama: may use
README.md - Agent workers → Findings: records findings
- Agent workers → Asset scope: explores scope
- Security tester → Action approvals: reviews approvals
README.md - Security tester → Traffic evidence: reviews evidence
README.md - Findings → Report exports: exports findings
README.md - Security tester → Side questions: asks questions
README.md - Security tester → ScopeSentry sync: imports assets
README.md - ScopeSentry sync → Asset scope: merges scope
README.md - Security tester → Remote MCP: configures MCP
README.md - Findings → Notifications: notifies changes
README.md - HTTP API → PostgreSQL: stores product data
README.md