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 commands/talayash/agentrium/errorsgit clone --depth 1 https://github.com/talayash/agentriumWhat 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.00000 | $0.01547 |
| Opus 5 | $0.00000 | $0.00773 |
| Sonnet 5 | $0.00000 | $0.00309 |
| Haiku 4.5 | $0.00000 | $0.00155 |
Grade A, and why
errors 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 2d 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 — 124 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Retrieve end-user error reports from ct-analytics
You are pulling end-user error/exception reports stored by the ct-analytics Cloudflare Worker (D1 table errors) and writing a human-readable summary inline. Errors are populated by POST /error_report from three sources: rust_panic, rust_command, frontend. Retention is 90 days.
Arguments
$ARGUMENTS - Window in days (e.g. 1, 7, 30). Plain integer or with trailing d (e.g. 7d). Defaults to 7 if empty. Clamped to [1, 90].
Step 1: Resolve the window
- Parse
$ARGUMENTS. Strip a trailingdif present. Coerce to integer. If empty or invalid, use7. - Clamp to [1, 90].
- Tell the user the resolved window (e.g. "Pulling errors for the last 7 days...").
Step 2: Try the Worker endpoint first (preferred)
- Resolve the stats token, in this order:
$env:CT_STATS_TOKENif set- Otherwise, retrieve
STATS_TOKENfrom your auto-memory atct_analytics_tokens.md(memory typereference, slugct-analytics-tokens). Do not print the token to the user or include it in any saved file.
- If a token is available, call:
On Windows PowerShell, useGET https://ct-analytics.claude-terminal.workers.dev/errors/summary?days={N}&limit=20 Header: x-ct-token: {STATS_TOKEN}Invoke-RestMethodwith-Headers @{ 'x-ct-token' = $token }and capture to a variable; do not echo the token. - If the request returns HTTP 200 with JSON, parse it and skip to Step 4.
- If the request returns 404 (endpoint not deployed yet), tell the user the Worker needs a one-time deploy and offer to run it:
Ask before running. If they decline, fall through to Step 3.Run from workers/ct-analytics/: npx wrangler deploy - If the request fails for any other reason (no token, non-2xx, network error), fall through to Step 3.
Step 3: Fallback - query D1 directly via wrangler
Run wrangler from workers/ct-analytics/ against the production D1 (--remote). Use --json so the output is parseable. Run all queries; capture stdout per query.
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.
- 2d ago First seen · 124 lines · 0 tokens per session scan A 3b32b48fd72f
errors is a command published in the GitHub repository talayash/agentrium (39 stars, last pushed 2d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,547 tokens. 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 commands, from other repositories
spec-design
Create comprehensive technical design for a specification.
vibe-agents
Step 4 of the vibe-coding workflow: generate AGENTS.md + tool configs so the AI builder stays on track.
validate-gap
Analyze implementation gap between requirements and existing codebase.
spec-impl
Execute spec tasks using TDD methodology.
oss-docs
(user-owned) oss-docs harness — README 4-locale + docs-site publishing for the moai-adk-go OSS project (adk.mo.ai.kr, Vercel auto-deploy).
fix
Auto-detect and fix LSP errors, linting issues, and type errors.