huma – 一个端点都不漏的棘轮 Image: AI generated

如果你让AI Agent写API测试,它连一半都没做完就宣布"完成了",如果你想让每一个端点都无一遗漏地被测试,如果你想用棘轮强制Hurl测试的编写——huma就是那个工具。

The Agent That Stops at Endpoint 15

CommandRole
huma scanAuto-detects openapi.yaml and scans endpoints
huma scan --from <file>Scans from a specified file
huma nextShows next incomplete endpoint, or verifies and advances
huma verifyRuns current endpoint’s Hurl test; advances on pass
huma statusShows progress (TODO/PASS/IMPROVE/DONE)
huma promptOutputs agent prompt for current TODO (no side effects)
openapi.yaml ──► huma scan ──► session
                                 │
                           huma next ◄──┐
                             │          │
                     ┌───────┴───────┐  │
                     │  TODO         │  │
                     │  (no .hurl)   │  │
                     └───────┬───────┘  │
                       agent writes    │
                       .hurl           │
                             │          │
                     ┌───────┴───────┐  │
                     │  PASS/IMPROVE │──┘
                     └───────────────┘
huma scan
# Scanned 42 endpoints
huma next
# TODO  GET /api/v1/users
huma status
# 15/42 PASS  |  0 IMPROVE  |  27 TODO
StateMeaning
TODONo .hurl file
IMPROVEHurl exists but status codes missing
PASSAll expected status codes covered
DONECoverage stalled after retries
LanguageAdapterAnalyzerbackend.lang
GoGoAdaptergo/astgo
PythonPythonAdapterregexpython
Node.jsNodeAdapterregexnode
PrefixDomain
M-manifest.yaml
E-Endpoint input
H-Hurl file
S-Session state
A-Adapter/server
Legacy codebase
    │
    ▼
codistill ──► openapi.yaml
    │
    ▼
huma ──► hurl/*.hurl
    │
    ▼
yongol ──► refactored code
go install github.com/park-jun-woo/huma@latest
npx skills add park-jun-woo/huma

Code: github.com/park-jun-woo/huma


参考文献


相关文章

变更历史

  • 2026-05-26: 初版