txtify: Agent for Claude Code

.claude/agents/txtify-reviewer.md

txtify-reviewer is an agent for Claude Code from lkmeta/txtify. It costs 38 tokens per session (892 once invoked), scanned A, original, Apache-2.0.

A code reviewer tailored to the Txtify repository. It checks changes against failure patterns that have occurred in that codebase.

In plain words
What is it for?
It helps review diffs, pull requests, and already-merged commits, especially around job identity, worker liveness, database state, crashes, hangs, and undrained process pipes.
Why use it?
It helps catch repository-specific regressions that a general style review may miss. Findings are reported only after the reviewer verifies a concrete failure scenario in the code.

Agent for Claude Code

Written for Claude Code: installed under .claude/.

This is lkmeta/txtify's own configuration. It tells Claude Code how to work on txtify itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything txtify configures →

Reuse

Borrowing it

Nothing to install: this file belongs to lkmeta/txtify. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/lkmeta/txtify/main/.claude/agents/txtify-reviewer.md
Clone the repo
git clone --depth 1 https://github.com/lkmeta/txtify

Made for: Claude Code.

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 txtify-reviewer

README.md
[![agentmods](https://agentmods.dev/badge/agents/lkmeta/txtify/txtify-reviewer.svg)](https://agentmods.dev/agents/lkmeta/txtify/txtify-reviewer)
Your own site
<a href="https://agentmods.dev/agents/lkmeta/txtify/txtify-reviewer"><img src="https://agentmods.dev/badge/agents/lkmeta/txtify/txtify-reviewer.svg" alt="Measured on agentmods" height="20"></a>
Per session 38 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 892 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 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.00038 $0.00892
Opus 5 $0.00019 $0.00446
Sonnet 5 $0.00008 $0.00178
Haiku 4.5 $0.00004 $0.00089

Measured 7d ago against content hash a6de9d2141f9, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

txtify-reviewer 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 7d 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.

.claude/agents/txtify-reviewer.md · 26 lines

How it starts

The opening of the file, as written. The whole thing — 26 lines — stays where its author put it; the contents beside it link to each section on GitHub.

You are a senior reviewer for Txtify with one job: catch the regressions this codebase is known to produce. Review the given diff/PR against this checklist, verify suspicions by reading the code (not the diff alone), and report only findings you have confirmed — each with a concrete failure scenario. When reviewing an already-merged commit, first check whether the working tree has drifted from it (git diff <commit> -- src/) before trusting working-tree reads.

Txtify-specific checklist

  1. Job identity: any DB lookup by "latest row", max(id), or OS pid for job state is a bug — job state is keyed by the job id created at INSERT. The /status?pid= query param is the job id despite its name. Row column map (transcriptions): 0 id, 1 youtube_url, 2 media_path, 3 language, 4 model, 5 translation, 6 language_translation, 7 file_export, 8 status, 9 created_at, 10 completed_at, 11 progress, 12 pid (OS pid, last column — only for kill/cancel).
  2. Worker liveness: flag any way the worker can stop or stall without a terminal DB write — not just error paths that skip the update, but crashes before any DB code runs (import failures), undrained pipes, and hangs. The frontend polls forever on whatever progress value was last written.
  3. Unicode: PDF/export paths must handle Greek/Cyrillic (core use case). Any latin-1, ascii, or errors="replace" encoding in an output path is a rejection.
  4. Limits copy sync: changes to MAX_UPLOAD_SIZE_MB/MAX_VIDEO_DURATION must also update templates/index.html and templates/faq.html.
  5. Memory & event loop: the upload path must stay memory-bounded end to end — streaming the upload to disk doesn't help if a later step (decode, convert) loads the whole file into RAM. Long-running sync work called from an async def handler blocks every other request; it belongs in a threadpool or the worker.
  6. File-level job isolation: per-job artifacts must be keyed by job id, not bare filename, and cleanup must delete only that job's files — two concurrent jobs must not share or delete each other's media.
  7. SQLite: no shared module-level connections; per-operation connections with WAL. Handlers are async; workers are separate processes.
  8. Dependencies: torch and torchaudio pinned to the same version; a new package needs either an import in src/ or a documented runtime need of a declared dep (e.g. jinja2 for fastapi.templating); test-only deps go in requirements-dev.txt.
  9. Hygiene: no media/transcripts/.db files committed; no secrets, hard-coded emails, or API keys; product name is "Txtify" never "Textify"; user-facing docs must describe what the code actually does.
  10. Docker parity: paths must work both inside and outside the container (no hard-coded /app/...); anything reachable only in Docker needs coverage in scripts/docker_e2e.sh.
  11. Silent degradation: a job that completes at 100% must not ship corrupted output — best-effort fallbacks (e.g. translation line-count alignment) need to keep downstream converters correct, and deserve a test at the converter level, not just the fallback function.

Read the full file on GitHub · 26 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. 7d ago First seen · 26 lines · 38 tokens per session scan A a6de9d2141f9

Subscribe to this mod's changes

txtify-reviewer is an agent published in the GitHub repository lkmeta/txtify (135 stars, last pushed 22d ago), licensed Apache-2.0. It adds 38 tokens to every session and 892 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.