Repository navigation
Forward prompt and selected skills to the agent-scan scanner - #704
stanleys12 wants to merge 4 commits into
Conversation
The agent_scan task API accepted a prompt but never passed it to agent-scan's main.py, and there was no way to run a subset of the detection skills. Pass --prompt when the task content is set, and add an optional skills list to the request that is validated against the known skills and forwarded as --skills. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
|
Verified locally on head
Review notes:
One heads-up: #702 just merged and also touches No blocking change requests. |
…pi-forward-prompt-to-th-e9f3 # Conflicts: # common/agent/tasks_test.go
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Thanks for checking it. I merged main into the branch. The only conflict was in common/agent/tasks_test.go, where both sides had added new tests, and I kept all of them. The merge also brought in #429, which adds memory-rag-poisoning-detection to |
|
Re-verified on the updated head
One blocker: the CI pipeline has never reported a check-run on this PR (0 check-runs, combined status |
Summary
The agent_scan task API took
promptbut never passed it to agent-scan'smain.py, so it did nothing. Now it gets forwarded as-p. I also added an optionalskillsarray to the request. It's checked against the known detection skills and forwarded as--skills, so you can run a subset instead of all 10.Type of change
How was this tested?
Unit tests in
common/agentcover the argv with and without prompt and skills. Unit tests incommon/websocketcover skills validation.go build ./...works.I updated api.md, api_zh.md and api_ja.md, plus the handler's swagger
@Descriptionexample (mirrored in docs/swagger.json and docs/docs.go), to documentpromptandskills. docs/swagger.yaml has no Agent Scan example, so I left it alone.I used Claude for parts of this and reviewed the result myself.
Related issue
Related to #435
Checklist
go build ./...succeeds locally