tirith-config

tirith-config is a skill for Claude Code, Codex from nweii/agent-stuff. It costs 66 tokens per session (2,377 once invoked), scanned B, original, MIT.

Operating guidance for Tirith, a terminal command checker that looks for deceptive URLs, hidden terminal control codes, and commands that pipe downloaded content directly into a shell.

In plain words
What is it for?
Use it when editing Tirith policy files, debugging blocked commands, choosing an approved way to run a command, checking bypass options, or running its health check.
Why use it?
It helps explain why a command was blocked and how to change policies or verify the protection without guessing from stale configuration.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when editing Tirith policy files, debugging blocked commands, choosing an approved way to run a command, checking bypass options, or running its health check.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/nweii/agent-stuff/tirith-config
Install

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.

Any agent
npx skills add nweii/agent-stuff --skill tirith-config
Clone the repo
git clone --depth 1 https://github.com/nweii/agent-stuff

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for tirith-config

README.md
[![agentmods](https://agentmods.dev/badge/skills/nweii/agent-stuff/tirith-config/github.svg)](https://agentmods.dev/skills/nweii/agent-stuff/tirith-config)
Your own site
<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.

agentmods 80×15 button for tirith-config

Your own site · 80×15
<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>
Per session 66 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,377 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 2 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 1mo ago against content hash b741ffed4c20, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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
skills/tirith-config/SKILL.md · 129 lines

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 with tirith 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.

  1. Trust the source — for a vendor you trust. tirith trust last shows the last trigger and offers to trust its domain interactively; tirith trust from-last-trigger prints the narrowest matching tirith trust add command (--apply runs it). Entries are scoped to one rule when --rule is given, expire after 30 days unless --permanent or --ttl says 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.
  2. Allowlist the hostname — only for canonical installer domains you pipe-shell from repeatedly (e.g., get.docker.com, sh.rustup.rs). Add to allowlist: in ~/.config/tirith/policy.yaml. An entry suppresses every hostname-scoped rule for that exact host, lookalike_tld included; content-level checks (homograph, mixed-script, ANSI) still run. It never expires, which is why trust (1) is the better default.
  3. Download, read, run — curl -fsSL <url> -o /tmp/install.sh, read the file, then sh /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).
  4. tirith run <url> — downloads to a temp file, shows SHA256, runs static analysis, and writes a receipt. It fetches the URL itself, so the original curl flags have no counterpart. Execution is Linux-only: on macOS it inspects and stops, so follow it with (3) to actually install. tirith run <url> | sh pipes the analysis report, not the script, into the shell.
  5. TIRITH=0 prefix — 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 pasting TIRITH=0 curl … | sh is still blocked at paste time, and typing TIRITH=0 before pasting does not help because only the pasted chunk is scanned. It works for a command typed in full. export TIRITH=0 disables both checks for the whole shell until unset TIRITH, which is broader than the problem. Policy's allow_bypass_env governs 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 to tirith paste --shell posix --interactive exits 1.

Read the full file on GitHub · 129 lines

Changes

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.

  1. 1mo ago Changed · +18 lines · -3 tokens per session b741ffed4c20
  2. 3mo ago First seen · 111 lines · 69 tokens per session scan B 3db5baf6f89d

Subscribe to this mod's changes

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.

Related

tirith-config compared with skills from other repositories

tirith-config next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
tirith-confignweii/agent-stuffSkill1015d agoMITB66Claude Code, Codex
local-ai-agentsmicrosoft/ai-agents-for-beginnersSkill82ktodayMITA200Claude Code, Codex
imagegenopenai/codexSkill137ktodayApache-2.0A113Codex
playwright-climicrosoft/playwrightSkill102ktodayApache-2.0A19Claude Code
browser-automationopenclaw/openclawSkill396ktodayMITA36Claude Code
free-llm-apismnfst/awesome-free-llm-apisSkill15kyesterdayCC0-1.0A113Claude Code, Codex
systematic-debuggingobra/superpowersSkill331k5d agoMITA21Claude Code