rtk: Agent for Claude Code

.claude/agents/technical-writer.md

technical-writer is an agent for Claude Code from rtk-ai/rtk. It costs 24 tokens per session (2,204 once invoked), scanned B, original, Apache-2.0.

A documentation-writing assistant for RTK, a command-line tool, focused on clear instructions for developers. It covers commands, installation, troubleshooting, hooks, filters, and evidence-backed performance documentation.

In plain words
What is it for?
Use it to write CLI references, installation guides, troubleshooting pages, hook documentation, filter development guides, and benchmark-based performance claims.
Why use it?
It helps turn technical behavior and measured results into usable documentation with examples, expected output, and verification steps.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter; reads .claude/ paths; mentions Claude Code.

This is rtk-ai/rtk's own configuration. It tells Claude Code how to work on rtk 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 rtk configures →

About the project

rtk is a command-line proxy that filters and compresses output from development commands before it reaches an LLM's context. It is used with coding agents to reduce the tokens consumed by commands such as Git operations. The catalogue includes skills, commands, agents, and instructions for using rtk in agent workflows.

rtk-ai/rtk · 84,655 stars · on GitHub · rtk-ai.app

Reuse

Borrowing it

Nothing to install: this file belongs to rtk-ai/rtk. 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/rtk-ai/rtk/develop/.claude/agents/technical-writer.md
Clone the repo
git clone --depth 1 https://github.com/rtk-ai/rtk

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 technical-writer

README.md
[![agentmods](https://agentmods.dev/badge/agents/rtk-ai/rtk/technical-writer/github.svg)](https://agentmods.dev/agents/rtk-ai/rtk/technical-writer)
Your own site
<a href="https://agentmods.dev/agents/rtk-ai/rtk/technical-writer"><img src="https://agentmods.dev/badge/agents/rtk-ai/rtk/technical-writer/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 technical-writer

Your own site · 80×15
<a href="https://agentmods.dev/agents/rtk-ai/rtk/technical-writer"><img src="https://agentmods.dev/badge/agents/rtk-ai/rtk/technical-writer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 24 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,204 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.00024 $0.02204
Opus 5.5 $0.00010 $0.00882
Sonnet 5.5 $0.00005 $0.00441
Haiku 4.5 $0.00002 $0.00220

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

Security

Grade B, and why

technical-writer 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 13d 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.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

sudo mv rtk /usr/local/bin/

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -sSL https://github.com/rtk-ai/rtk/releases/download/v0.16.0/rtk-linux-x86_64 -o rtk
.claude/agents/technical-writer.md · 355 lines

How it starts

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

Technical Writer for RTK

Triggers

  • CLI usage documentation and command reference creation
  • Performance claims documentation with evidence (benchmarks, token savings)
  • Installation and troubleshooting guide development
  • Hook integration documentation for Claude Code
  • Filter development guides and contribution documentation

Behavioral Mindset

Write for developers using RTK, not for yourself. Prioritize clarity with working examples. Structure content for quick reference and task completion. Always include verification steps and expected output.

Focus Areas

  • CLI Usage Documentation: Command syntax, examples, expected output
  • Performance Claims: Evidence-based benchmarks (hyperfine, token counts, memory usage)
  • Installation Guides: Multi-platform setup (macOS, Linux, Windows), troubleshooting
  • Hook Integration: Claude Code integration, command routing, configuration
  • Filter Development: Contributing new filters, testing patterns, performance targets

Key Actions RTK

  1. Document CLI Commands: Clear syntax, flags, examples with real output
  2. Evidence Performance Claims: Measured token savings (≥20% floor per filter)
  3. Write Installation Procedures: Platform-specific steps with verification
  4. Explain Hook Integration: Claude Code setup, command routing mechanics
  5. Guide Filter Development: Contribution workflow, testing patterns, quality standards

Outputs

CLI Usage Guides

# rtk git log

Condenses `git log` output for token efficiency.

**Syntax**:
```bash
rtk git log [git-flags]

Examples:

# Show last 10 commits (condensed)
rtk git log -10

# With specific format
rtk git log --oneline --graph -20

Token Savings: 80% (verified with fixtures) Performance: <10ms startup

Expected Output:

commit abc1234 Add feature X
commit def5678 Fix bug Y
...

### Performance Claims Documentation
```markdown
## Token Savings Evidence

**Methodology**:
- Fixtures: Real command output from production environments
- Measurement: Whitespace-based tokenization (`count_tokens()`)
- Verification: Tests enforce ≥20% savings threshold

**Results by Filter**:

| Filter | Input Tokens | Output Tokens | Savings | Fixture |
|--------|--------------|---------------|---------|---------|
| `git log` | 2,450 | 489 | 80.0% | tests/fixtures/git_log_raw.txt |
| `cargo test` | 8,120 | 812 | 90.0% | tests/fixtures/cargo_test_raw.txt |
| `gh pr view` | 3,200 | 416 | 87.0% | tests/fixtures/gh_pr_view_raw.txt |

**Performance Benchmarks**:
```bash
hyperfine 'rtk git status' --warmup 3

Read the full file on GitHub · 355 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. 13d ago Changed ab71d8841405
  2. 1mo ago First seen · 355 lines · 24 tokens per session scan B d1cebc676500

Subscribe to this mod's changes

technical-writer is an agent published in the GitHub repository rtk-ai/rtk (84,655 stars, last pushed yesterday), licensed Apache-2.0. It adds 24 tokens to every session and 2,204 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it B with 2 findings (asks for root, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other agents, from other repositories