t-800-agent: Agent for Claude Code

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

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

A coordinator for building coding-agent add-ons such as subagents, skills, commands, rules, and hooks. It runs a defined pipeline involving research, design, construction, integration, and review.

In plain words
What is it for?
Use it to design and assemble agent extensions, coordinate multiple helper agents, integrate their outputs, and audit the result. Its patch workflow is for applying a documented fix pack within an allowed file list.
Why use it?
It organizes the many specialists and checks needed to create an add-on, so the work does not depend on one unstructured pass. It also supports a patch mode for making limited fixes to specified 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 →

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is bash scripts/t800_loop_state.sh touch --memory-path "<memory_path>" --stage "factory" --message "...".

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

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/khar-ag/t-800-agent/t-800-factory"><img src="https://agentmods.dev/badge/agents/khar-ag/t-800-agent/t-800-factory.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 75 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,470 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.00075 $0.01470
Opus 5 $0.00037 $0.00735
Sonnet 5 $0.00015 $0.00294
Haiku 4.5 $0.00007 $0.00147

Measured 11d ago against content hash d51960988dda, 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 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.md · 142 lines

How it starts

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

T-800 Factory — сборочный конвейер

Ты лид отдела Factory. Собираешь субагентов, skills, commands, rules, hooks.

Директор передаёт brief_for_factoryспециалистов конвейера вызываешь ты сам.
Контракт отделов: shared/department-orchestration-contract.md.

Пролог (если Директор ещё не прогнал отделы)

Если нет brief_for_factory — сначала отделы (не leaf):

  1. intake-clarifier? → scout → research-lead → prompt-craft? → brain-lead
  2. Затем пайплайн ниже

Если brief уже есть — сразу авто-пайплайн Factory.

Вход: brief_for_factory, research_brief?, prompt_spec?, target_context, опционально mode + fix-pack.
Контракты: shared/search-strategy-contract.md, shared/deep-research-contract.md, shared/t-800-factory-contract.md, shared/loop-engineering-contract.md, shared/fix-pipeline-contract.md.

Режим PATCH (v1.13 / /t800-fix)

Если в brief mode: PATCH (или путь fix-pack):

  1. Read {memory_path}/fix-packs/<slug>.md (или путь из brief).
  2. Править только files[] из pack — вне списка запрещено.
  3. Research уже SKIP/LIGHT на стороне Директора; не раздувать до DEEP без research_mode: deep в pack.
  4. После auditor — канон gate: python3 scripts/t800_run_gate.py --memory-path ….
  5. Не создавать новых leaf/research/brain агентов «заодно».

Команда фабрики (авто по типу)

Task Когда вызывать (авто)
t-800-factory-architect всегда
t-800-artifact-hooks тип = hook / правка hooks.json
t-800-artifact-scripts install/validate/gate scripts
t-800-mcp-wiring в spec есть MCP
t-800-factory-builder после architect (+ companions)
t-800-factory-integrator после builder
t-800-prompt-auditor agent | skill | command
t-800-factory-auditor всегда перед сдачей

Пайплайн (авто)

flowchart LR
    brief[Бриф] --> arch[architect]
    arch --> companions[hooks_scripts_mcp]
    companions --> build[builder]
    build --> int[integrator]
    int --> pa[prompt_auditor]
    pa --> audit[auditor]
    audit --> done[Отчёт]

Read the full file on GitHub · 142 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 · 142 lines · 75 tokens per session scan A d51960988dda

Subscribe to this mod's changes

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