Horse is a lightweight web framework for Delphi and Lazarus programs, providing tools for building HTTP servers and APIs. It is for developers who need routing, request handling, middleware, streaming, WebSockets, and related server features in those languages. Its catalogue skills support working with the framework.
Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add skills/hashload/horse/horse-request-responsenpx skills add HashLoad/horse --skill horse-request-responsegit clone --depth 1 https://github.com/HashLoad/horseWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/hashload/horse/horse-request-response)<a href="https://agentmods.dev/skills/hashload/horse/horse-request-response"><img src="https://agentmods.dev/badge/skills/hashload/horse/horse-request-response.svg" alt="Measured on agentmods" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00032 | $0.01227 |
| Opus 5 | $0.00016 | $0.00613 |
| Sonnet 5 | $0.00006 | $0.00245 |
| Haiku 4.5 | $0.00003 | $0.00123 |
Grade A, and why
horse-request-response scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 136 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Horse Request & Response
THorseRequest (Reading Request Data)
The THorseRequest object contains all details of the incoming HTTP request.
- Body: To read the raw text payload, use
Req.Body. If theJhonsonmiddleware is active, you can read the parsed JSON directly:var LBody: TJSONObject; begin LBody := Req.Body<TJSONObject>; end; - Params: For path parameters (defined with
:name), useReq.Params.Items['name'](orReq.Params['name']). - Query: For query parameters (e.g.,
?page=1&limit=10), useReq.Query.Items['page'](orReq.Query['page']). - Headers: Read request headers using
Req.Headers.Items['Authorization'].
Safe Parameter Parsing & Validation (THorseCoreParamField)
Instead of accessing raw string dictionary values (e.g., Req.Params['id']) and converting them manually, always prefer using the .Field() method to obtain a THorseCoreParamField. This provides type-safe conversions and declarative parameter validation:
- Type Conversion: Convert parameters to the target type without manually calling
StrToIntorStrToBool:var LId: Integer; LActive: Boolean; LDate: TDateTime; begin LId := Req.Params.Field('id').AsInteger; LActive := Req.Query.Field('active').AsBoolean; LDate := Req.Query.Field('since').AsISO8601DateTime; end; - Required Check: Automatically halt execution and return a 400 Bad Request with a custom error message if the parameter is missing:
var LEmail: string; begin // Automatically raises EHorseException if 'email' query param is empty LEmail := Req.Query.Field('email').Required.RequiredMessage('The "email" parameter is required.').AsString; end; - Supported Converters:
AsInteger,AsInt64,AsBoolean,AsFloat,AsCurrency,AsDateTime,AsISO8601DateTime,AsStream(for multipart uploads), andAsString.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 5d ago First seen · 136 lines · 32 tokens per session scan A 58c397b6331b
horse-request-response is a skill published in the GitHub repository HashLoad/horse (1,371 stars, last pushed 2d ago), licensed MIT. It adds 32 tokens to every session and 1,227 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other skills, from other repositories
api-design-patterns
Comprehensive API design patterns covering REST, GraphQL, gRPC, versioning, authentication, and modern API best practices.
api-design-patterns
Comprehensive API design patterns covering REST, GraphQL, gRPC, versioning, authentication, and modern API best practices.
api-design-patterns
Comprehensive API design patterns covering REST, GraphQL, gRPC, versioning, authentication, and modern API best practices.
recon-playbook
Use when starting or restructuring an authorized external web and API assessment.
create-tutorial
Scaffold a new Membrane API Gateway tutorial in the api-gateway repo — the numbered self-teaching YAML under distribution/tutorials/ /, its support files and README links, and the matching auto-discovered integration test. Use whenever the user asks to create, add, write, or scaffold a tutorial (or a tutorial step)…
optimize-interceptor-docs
Rewrite the reference documentation of a Membrane config element so the page generated at membrane-api.io comes out clean, exact, and reference-style. Use whenever the user wants to write, improve, optimize, polish, or review the docs / Javadoc / @description / @yaml example of an interceptor, plugin, or any…