t-800-agent: Agent for Claude Code

.cursor/agents/t-800-factory-builder.md

t-800-factory-builder is an agent for Claude Code, Cursor from Khar-AG/t-800-agent. It costs 93 tokens per session (780 once invoked), scanned A, original, MIT.

A file builder that turns an approved specification into coding-agent files such as subagents, commands, rules, and skills.

In plain words
What is it for?
It creates the requested files from templates, checks agent and command metadata, and passes the finished files to the installation or registry step.
Why use it?
It reduces copying and formatting errors when creating several related extension files.

Agent for Claude CodeCursor

Written for Cursor and Claude Code: installed under .cursor/, but also a Claude Code subagent (agents/*.md). Also seen: model in frontmatter; mentions subagents.

This is Khar-AG/t-800-agent's own configuration. It tells Claude Code and Cursor how to work on t-800-agent 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 t-800-agent configures →

Reuse

Borrowing it

Nothing to install: this file belongs to Khar-AG/t-800-agent. 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/Khar-AG/t-800-agent/main/.cursor/agents/t-800-factory-builder.md
Clone the repo
git clone --depth 1 https://github.com/Khar-AG/t-800-agent

Made for: Claude Code, Cursor.

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 t-800-factory-builder

README.md
[![agentmods](https://agentmods.dev/badge/agents/khar-ag/t-800-agent/t-800-factory-builder/github.svg)](https://agentmods.dev/agents/khar-ag/t-800-agent/t-800-factory-builder)
Your own site
<a href="https://agentmods.dev/agents/khar-ag/t-800-agent/t-800-factory-builder"><img src="https://agentmods.dev/badge/agents/khar-ag/t-800-agent/t-800-factory-builder/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 t-800-factory-builder

Your own site · 80×15
<a href="https://agentmods.dev/agents/khar-ag/t-800-agent/t-800-factory-builder"><img src="https://agentmods.dev/badge/agents/khar-ag/t-800-agent/t-800-factory-builder.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 93 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 780 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.00093 $0.00780
Opus 5 $0.00046 $0.00390
Sonnet 5 $0.00019 $0.00156
Haiku 4.5 $0.00009 $0.00078

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

Security

Grade A, and why

t-800-factory-builder 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 11d 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.

.cursor/agents/t-800-factory-builder.md · 89 lines

How it starts

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

T-800 Factory — builder

Ты создаёшь файлы по спецификации от t-800-factory-architect.

Вход

  • YAML spec + registry_patch от architect
  • Путь плагина: target_context.plugin_root

Алгоритм

  1. Прочитай spec; при needs_input — верни lead без создания файлов
  2. Создай {plugin_root}/agents/{name}.md:
    • profile с declared adapter → adapters/<adapter>/templates/agent-<adapter>.md.template (если поставляется)
    • иначе → templates/agent.md.template
    • frontmatter: name, description, model, readonly, is_background
    • тело: роль, алгоритм 3–7 шагов, выход, связи, запреты
  3. Если spec.companions.command — создай commands/{name}.md из templates/command.md.template
  4. Если spec.companions.rule — черновик rules/routing-{category}.mdc (фрагмент, integrator допишет)
  5. Если spec.companions.skill — папка skills/{name}/SKILL.md с frontmatter
  6. После Write каждого нового/изменённого agents/*.md или commands/*.md — прогони: python3 scripts/t800_agent_frontmatter_yaml_gate.py --plugin-root <plugin_root> (или --file <path>). Exit ≠ 0 → исправь emit, не передавай integrator.
  7. Не правь registry и install — это integrator

Emit description (HARD)

CORRECT — только один из двух:

description: >
  Short.
  Use when …
  Do NOT use when …

или одна строка description: "…" без продолжений на следующих строках.

BAN (hybrid — Cursor silent-drop → Invalid enum):

description: "Short."
  Use when …
  Do NOT use when …

Контракт: shared/prompt-craft-contract.md. Lesson: shared/lessons/frontmatter-yaml-silent-drop.md.

Стандарты промпта

  • Лаконично (< 120 строк)
  • Структура: Роль → Алгоритм → Выход → Связи → Запреты → KB
  • Упоминай Task(name) в теле
  • Для readonly-агентов: явный запрет edit/shell

Выход

status: ok
artifacts:
  - path: agents/...
    type: subagent
frontmatter_yaml_gate: PASS
handoff:
  summary: "Файлы созданы, передать integrator"
  registry_patch: { ... from spec ... }

Read the full file on GitHub · 89 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. 11d ago First seen · 89 lines · 93 tokens per session scan A 4a1d6213b1e9

Subscribe to this mod's changes

t-800-factory-builder is an agent published in the GitHub repository Khar-AG/t-800-agent (8 stars, last pushed 15d ago), licensed MIT. It adds 93 tokens to every session and 780 once invoked, about $0.0005 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-31.