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 skills add agentproto/ts --skill ap-read-outputgit clone --depth 1 https://github.com/agentproto/tsWrote 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/agentproto/ts/ap-read-output)<a href="https://agentmods.dev/skills/agentproto/ts/ap-read-output"><img src="https://agentmods.dev/badge/skills/agentproto/ts/ap-read-output/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/agentproto/ts/ap-read-output"><img src="https://agentmods.dev/badge/skills/agentproto/ts/ap-read-output.svg" alt="Reviewed on agentmods" width="80" 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.00089 | $0.00768 |
| Opus 5.5 | $0.00036 | $0.00307 |
| Sonnet 5.5 | $0.00018 | $0.00154 |
| Haiku 4.5 | $0.00009 | $0.00077 |
Grade A, and why
ap-read-output scanned grade A with 1 finding 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 2mo 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.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
curl http://127.0.0.1:18790/sessions/sess_5f9a3c38/events How it starts
The opening of the file, as written. The whole thing — 73 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Read Agent Output
When to use
You need to inspect what a session (spawned via ap-spawn-agent) actually
produced — a quick tail check, the full transcript, a cost readout, or a
human-readable summary/timeline.
MCP tools
{ "tool": "agent_output", "args": { "sessionId": "sess_5f9a3c38", "lastN": 50, "clean": true } }
lastN caps at 500. clean:true strips ANSI escape codes for readable
text.
{ "tool": "agent_export", "args": { "sessionId": "sess_5f9a3c38", "format": "markdown" } }
agent_export works on stopped sessions too — use it when you need the
whole conversation, not just the tail.
{ "tool": "conversation_read", "args": { "sessionId": "sess_5f9a3c38" } }
{ "tool": "conversation_locate", "args": { "sessionId": "sess_5f9a3c38", "query": "signup validation fix" } }
{ "tool": "session_usage", "args": { "sessionId": "sess_5f9a3c38" } }
{ "tool": "agentproto_session_story", "args": { "sessionId": "sess_5f9a3c38" } }
{ "tool": "summarize_session", "args": { "sessionId": "sess_5f9a3c38" } }
session_usage— cost and token counts for the session.agentproto_session_story— a human-readable timeline of what happened.summarize_session— a one-sentence summary plus a coarse state (e.g. running / idle / done).
CLI
agentproto sessions export sess_5f9a3c38
agentproto sessions story sess_5f9a3c38
agentproto sessions mirror sess_5f9a3c38 # read-only live tail
HTTP
curl http://127.0.0.1:18790/sessions/sess_5f9a3c38/events
Gotchas
agent_outputreads from a tail ring buffer, not the full transcript — long sessions will have earlier output evicted. Useagent_exportwhen you need everything, including the beginning.- The
awaitingInputflag over-signals: it fires both when a turn simply finished and when the agent is genuinely blocked waiting on a question. Don't trust the flag alone — read the last content line of the output to tell "done" from "stuck waiting on you."
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.
- 2mo ago First seen · 73 lines · 89 tokens per session scan A 394904c6c3ac
ap-read-output is a skill published in the GitHub repository agentproto/ts (11 stars, last pushed today), licensed Apache-2.0. It adds 89 tokens to every session and 768 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-04.
ap-read-output compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| ap-read-outputagentproto/ts | Skill | 11 | today | Apache-2.0 | A | 89 | Claude Code, Codex |
| skill-creator-primersammcj/agentic-coding | Skill | 174 | 4d ago | Apache-2.0 | A | 74 | Claude Code |
| llm-wikisammcj/agentic-coding | Skill | 174 | 4d ago | Apache-2.0 | A | 82 | Claude Code |
| extract-wisdomsammcj/agentic-coding | Skill | 174 | 4d ago | Apache-2.0 | A | 43 | Claude Code |
| apply-mantel-stylessammcj/agentic-coding | Skill | 174 | 4d ago | Apache-2.0 | A | 37 | Claude Code, Codex |
| home-assistantsammcj/agentic-coding | Skill | 174 | 4d ago | Apache-2.0 | A | 57 | Claude Code |
| deepevalsammcj/agentic-coding | Skill | 174 | 4d ago | Apache-2.0 | A | 19 | Claude Code, Codex |