Skip to content

feat: spicrawl feedback command and a report hint on failed requests (0.2.2) - #22

Merged
DibbayajyotiRoy merged 3 commits into
mainfrom
feat/agent-feedback
Nov 28, 2026
Merged

DibbayajyotiRoy merged 3 commits into
mainfrom
feat/agent-feedback

Conversation

@DibbayajyotiRoy

@DibbayajyotiRoy DibbayajyotiRoy commented Nov 28, 2026 •

Copy link
Copy Markdown
Collaborator

Agents and people using the CLI can now report a request that failed or returned the wrong content.

What changes

  • spicrawl feedback <request-id> with --up/--down (default down), --kind, --impact, --intent, -m/--comment, validated before sending. Free; a thumbs-down on a request that cost credits refunds them, up to a daily cap. agent is spicrawl-cli/<version> plus $SPICRAWL_AGENT.
  • Report hint: when the API marks a failure as reportable, stderr shows Report it: spicrawl feedback <id> --kind broken --intent "...". --json errors always include request_id and, when reportable, feedback_command. In JSON error documents request_id now comes last (key order only).
  • Skill asset gains a Report problems section. README, CHANGELOG, version 0.2.2.

Tests

internal/cmd/feedback_test.go: flag validation and limits, request body, human/JSON output for 201/200/404/409/429, hint present/absent, JSON error document, scrape - per-line errors. 19 golden files regenerated (key order). go build, go vet, go test ./... pass.

Release

Merging publishes @spicrawl/cli 0.2.2.

Also in this release: request bodies

  • spicrawl scrape --method POST --request-body '<json or text>', or --request-body-file <path> (- reads stdin). A JSON object or array is sent as JSON; other text is sent as a string. The flags are named --request-body*, not --body, because --body already merges JSON into the whole request (the first commit's subject says --body; the flag is --request-body). batch submit does not take them.
  • When an error carries a fix, plain output prints Corrected request: with the JSON (a large body is shown as its size). --json output keeps fix in the problem document.
  • Tests: go build, go vet and go test ./... pass, with new tests for the flags and the corrected request.

Ship after the Spicrawl API release that adds body to /v1/scrape.

- spicrawl feedback <request-id> [--up|--down] [--kind] [--impact]
  [--intent] [-m comment]: report a request that failed or returned the
  wrong content. Free; a thumbs-down on a request that cost credits refunds
  them, up to a daily cap.
- When the API marks a failure as reportable, the error now prints
  "Report it: spicrawl feedback <id> ..." on stderr; --json errors always
  carry request_id and, when reportable, feedback_command.
- Skill asset: a Report problems section.

Version 0.2.2.
@DibbayajyotiRoy DibbayajyotiRoy added the enhancement New feature or request label Nov 28, 2026
@DibbayajyotiRoy DibbayajyotiRoy self-assigned this Nov 28, 2026
@DibbayajyotiRoy
DibbayajyotiRoy merged commit 12e58d3 into main Nov 28, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant