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-streamingnpx skills add HashLoad/horse --skill horse-streaminggit 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-streaming)<a href="https://agentmods.dev/skills/hashload/horse/horse-streaming"><img src="https://agentmods.dev/badge/skills/hashload/horse/horse-streaming.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.1 | $0.00035 | $0.00617 |
| Opus 5 | $0.00017 | $0.00309 |
| Sonnet 5 | $0.00007 | $0.00123 |
| Haiku 4.5 | $0.00003 | $0.00062 |
Grade A, and why
horse-streaming 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 6d 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 — 43 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Horse Streaming Development Guide
Esta skill guia o desenvolvimento, depuração e manutenção de fluxos de streaming de dados (Web Streams / SSE) no framework Horse.
🟢 Conceitos Fundamentais
- Web Streams (NDJSON): Envio de dados formatados como múltiplos JSONs delimitados por quebras de linha (
\n), utilizando o cabeçalhoTransfer-Encoding: chunked. - Server-Sent Events (SSE): Fluxo unidirecional persistente onde o servidor envia eventos estruturados sob o formato
event: message\ndata: ...\n\ncom o Content-Typetext/event-stream.
🟢 Como usar nas Rotas do Horse
Para enviar dados via streaming, o manipulador da rota deve definir o ContentType adequado e invocar o Res.SendStream:
THorse.Get('/stream',
procedure(Req: THorseRequest; Res: THorseResponse; Next: TProc)
begin
Res.ContentType('application/x-ndjson; charset=utf-8');
Res.SendStream(
procedure(const AWriter: IHorseStreamWriter)
begin
if AWriter.IsConnected then
AWriter.Write('{"data": "teste"}'#10);
end);
end);
🟢 Implementação dos Provedores Físicos
Ao criar ou estender novos provedores lógicos de transporte no Horse:
- Deve-se herdar uma classe especializada de
THorseStreamWriterBasee implementar os métodosWrite(escrita física),IsConnected(validação física de conectividade do socket) eClose(fim de transmissão/descarregamento de buffers). - Registrar a fábrica através de
THorseResponse.RegisterStreamWriterFactory(Factory).
🟢 Peculiaridades por Provedor
Indy (TIdHTTPAppResponse)
- Conexão: A thread física é acessada via o campo
FThreadda Friend Class. - Envio de Headers: Invocar
MoveCookiesAndCustomHeadersdoTIdHTTPAppResponsepara carregar headers customizados e cookies antes doWriteHeader. - Flag de Envio: Marcar
FSent := TruenoTIdHTTPAppResponsepara impedir que o WebBroker dispare novamente os headers no fim do dispatcher. - Bypass de HTML do Indy: Preencher
ContentStreamcom umTMemoryStreamvazio,FreeContentStream := TrueeContentLength := 0para desativar a injeção do HTML default de 200 OK de 39 bytes pelo Indy.
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.
- 6d ago First seen · 43 lines · 35 tokens per session scan A ab8acc608313
horse-streaming is a skill published in the GitHub repository HashLoad/horse (1,371 stars, last pushed yesterday), licensed MIT. It adds 35 tokens to every session and 617 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.
hunt-wordpress
Use when an authorized target exposes WordPress core, plugin, theme, REST, or XML-RPC behavior.
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)…