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 nweii/agent-stuff --skill tirith-configgit clone --depth 1 https://github.com/nweii/agent-stuffWrote 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/nweii/agent-stuff/tirith-config)<a href="https://agentmods.dev/skills/nweii/agent-stuff/tirith-config"><img src="https://agentmods.dev/badge/skills/nweii/agent-stuff/tirith-config/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/nweii/agent-stuff/tirith-config"><img src="https://agentmods.dev/badge/skills/nweii/agent-stuff/tirith-config.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.00066 | $0.02377 |
| Opus 5.5 | $0.00026 | $0.00951 |
| Sonnet 5.5 | $0.00013 | $0.00475 |
| Haiku 4.5 | $0.00007 | $0.00238 |
Grade B, and why
tirith-config scanned grade B with 2 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 1mo 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.
Downloads and executes remote codemediumSupply chain
curl | sh runs whatever the server returns today, which is not necessarily what it returned when this was reviewed.
Tirith intercepts shell commands and pasted content to catch homograph URLs (Cyrillic lookalikes, mixed scripts), ANSI escape injection, and `curl | bash`–style pipe-to-shell patterns. This skill encodes operating proced Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
Tirith intercepts shell commands and pasted content to catch homograph URLs (Cyrillic lookalikes, mixed scripts), ANSI escape injection, and `curl | bash`–style pipe-to-shell patterns. This skill encodes operating proced How it starts
The opening of the file, as written. The whole thing — 129 lines — stays where its author put it; the contents beside it link to each section on GitHub.
tirith-config
Tirith intercepts shell commands and pasted content to catch homograph URLs (Cyrillic lookalikes, mixed scripts), ANSI escape injection, and curl | bash–style pipe-to-shell patterns. This skill encodes operating procedure — decision logic, verification rituals, and inherent gotchas. The current allowlist and tool version are not encoded here; query them at runtime.
Operating model
Tirith has four moving parts. Treat the live config as source of truth, not memory:
- Shell hook — sourced via
eval "$(tirith init --shell zsh)"in the user's shell profile. This is what wires per-command interception. Hook source files at~/.local/share/tirith/shell/are inert until the eval line is added to the profile. - Policy file —
~/.config/tirith/policy.yaml(global) and.tirith/policy.yaml(per-project, walks up from cwd). The per-project file wins when present. - Audit log —
~/.local/share/tirith/log.jsonl. Redacted previews, not full commands. - Receipts — created by
tirith run <url>. Verifiable later withtirith receipt verify <sha256>.
tirith doctor is the canonical health check; it surfaces hook status, policy detection, and bypass mode in one shot.
Decision tree: a command was blocked
Four responses, each appropriate for a different shape of problem:
Run tirith why first. The rule ID decides which response fits: a pipe-to-shell rule (curl_pipe_shell) and a hostname rule (lookalike_tld, which flags .dev, .app, .zip and similar TLDs) both clear through trust, but only the first is about the script itself.
- Trust the source — for a vendor you trust.
tirith trust lastshows the last trigger and offers to trust its domain interactively;tirith trust from-last-triggerprints the narrowest matchingtirith trust addcommand (--applyruns it). Entries are scoped to one rule when--ruleis given, expire after 30 days unless--permanentor--ttlsays otherwise, and are recorded in the trust audit (tirith trust list,tirith trust audit). Prefer this over the policy allowlist for anything short of a canonical installer. - Allowlist the hostname — only for canonical installer domains you pipe-shell from repeatedly (e.g.,
get.docker.com,sh.rustup.rs). Add toallowlist:in~/.config/tirith/policy.yaml. An entry suppresses every hostname-scoped rule for that exact host,lookalike_tldincluded; content-level checks (homograph, mixed-script, ANSI) still run. It never expires, which is why trust (1) is the better default. - Download, read, run —
curl -fsSL <url> -o /tmp/install.sh, read the file, thensh /tmp/install.sh. A plain download is not pipe-to-shell and only trips hostname rules, which warn. This is the most reliable one-off path, and the only one that takes interpreter arguments (curl … | bash -s -- --prefix /opt). tirith run <url>— downloads to a temp file, shows SHA256, runs static analysis, and writes a receipt. It fetches the URL itself, so the originalcurlflags have no counterpart. Execution is Linux-only: on macOS it inspects and stops, so follow it with (3) to actually install.tirith run <url> | shpipes the analysis report, not the script, into the shell.TIRITH=0prefix — honored when the command is checked at Enter, not by the paste scanner. The paste scanner analyzes the pasted text and does not read an assignment inside it, so pastingTIRITH=0 curl … | shis still blocked at paste time, and typingTIRITH=0before pasting does not help because only the pasted chunk is scanned. It works for a command typed in full.export TIRITH=0disables both checks for the whole shell untilunset TIRITH, which is broader than the problem. Policy'sallow_bypass_envgoverns both. Confirm against the installed build:tirith check --interactive --shell posix -- 'TIRITH=0 curl -fsSL https://example.com/x.sh | sh'exits 0, while the same text piped totirith paste --shell posix --interactiveexits 1.
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.
- 1mo ago Changed · +18 lines · -3 tokens per session b741ffed4c20
- 3mo ago First seen · 111 lines · 69 tokens per session scan B 3db5baf6f89d
tirith-config is a skill published in the GitHub repository nweii/agent-stuff (10 stars, last pushed 15d ago), licensed MIT. It adds 66 tokens to every session and 2,377 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it B with 2 findings (downloads and executes remote code, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
tirith-config compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| tirith-confignweii/agent-stuff | Skill | 10 | 15d ago | MIT | B | 66 | Claude Code, Codex |
| local-ai-agentsmicrosoft/ai-agents-for-beginners | Skill | 82k | today | MIT | A | 200 | Claude Code, Codex |
| imagegenopenai/codex | Skill | 137k | today | Apache-2.0 | A | 113 | Codex |
| playwright-climicrosoft/playwright | Skill | 102k | today | Apache-2.0 | A | 19 | Claude Code |
| browser-automationopenclaw/openclaw | Skill | 396k | today | MIT | A | 36 | Claude Code |
| free-llm-apismnfst/awesome-free-llm-apis | Skill | 15k | yesterday | CC0-1.0 | A | 113 | Claude Code, Codex |
| systematic-debuggingobra/superpowers | Skill | 331k | 5d ago | MIT | A | 21 | Claude Code |