rfc-link

rfc-link is a command for Claude Code from studioKjm/ai-harness-template. It costs 25 tokens per session (1,107 once invoked), scanned A, original, MIT.

A command for recording that a code change is authorized by an accepted RFC, a written proposal that defines an approved technical decision.

In plain words
What is it for?
Linking files or modules in a pull request to an accepted RFC, especially for large changes or paths such as authentication and database migrations.
Why use it?
It removes review warnings for large or sensitive changes by connecting them to the decision that approved the work.

Command for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is python3 .harness/methodologies/rfc-driven/scripts/rfc.py list --status accepted.

Part of the harness plugin — 44 commands, 11 agents shipped together

Good fit Linking files or modules in a pull request to an accepted RFC, especially for large changes or paths such as authentication and database migrations.

Compare 6 commands from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/studioKjm/ai-harness-template
agentmods
npx agentmods add commands/studiokjm/ai-harness-template/rfc-link

Made for: Claude Code.

Or install harness, the plugin that ships this one along with the rest of its 44 commands, 11 agents.

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 rfc-link

README.md
[![agentmods](https://agentmods.dev/badge/commands/studiokjm/ai-harness-template/rfc-link.svg)](https://agentmods.dev/commands/studiokjm/ai-harness-template/rfc-link)
Your own site
<a href="https://agentmods.dev/commands/studiokjm/ai-harness-template/rfc-link"><img src="https://agentmods.dev/badge/commands/studiokjm/ai-harness-template/rfc-link.svg" alt="Measured on agentmods" height="20"></a>
Per session 25 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,107 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.00025 $0.01107
Opus 5 $0.00013 $0.00553
Sonnet 5 $0.00005 $0.00221
Haiku 4.5 $0.00003 $0.00111

Measured 8d ago against content hash 30de325399bb, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

rfc-link 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 8d 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.

methodologies/rfc-driven/commands/rfc-link.md · 127 lines

How it starts

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

Tell the gate "this big change is OK because RFC X authorized it."

When to use

  • Working on a PR that exceeds the RFC threshold (>500 LOC per file or >1000 total)
  • File touches a path in always_required_paths (auth, migrations, etc.)
  • Want to suppress the rfc-driven gate warning for a legitimate change

Usage

/rfc-link <rfc-id> --files F1 [F2 ...] [--modules M1 [...]]
/rfc declare-pr --rfc-id RID --pr-files F1 [F2 ...]

Both forms update the same data — link is more general (modules + files), declare-pr is specific to "the files in my current PR".

Prerequisites

  • Target RFC must be in accepted state (script blocks otherwise)
  • File paths should be repo-root relative

Instructions

Step 1 — Find the relevant accepted RFC

python3 .harness/methodologies/rfc-driven/scripts/rfc.py list --status accepted

If no relevant RFC exists, stop and create one — don't link to a tangentially related RFC.

Step 2 — Link files

# Add specific files
python3 .harness/methodologies/rfc-driven/scripts/rfc.py \
  link rfc-2026-04-30-eventbus-replacement \
  --files src/events/publisher.ts src/events/consumer.ts

# Add a whole module
python3 .harness/methodologies/rfc-driven/scripts/rfc.py \
  link rfc-2026-04-30-eventbus-replacement \
  --modules src/events/

# Both at once
python3 .harness/methodologies/rfc-driven/scripts/rfc.py \
  link rfc-2026-04-30-eventbus-replacement \
  --files src/main.ts \
  --modules src/events/ src/messaging/

Step 3 — Declare current PR's files (convenience)

If you're working on a feature branch and want to link all currently changed files:

# List changed files in your branch
git diff --name-only main...HEAD > /tmp/pr-files.txt

# Declare them
python3 .harness/methodologies/rfc-driven/scripts/rfc.py \
  declare-pr \
  --rfc-id rfc-2026-04-30-eventbus-replacement \
  --pr-files $(cat /tmp/pr-files.txt)

Step 4 — Verify the gate now allows the change

Read the full file on GitHub · 127 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. 8d ago First seen · 127 lines · 25 tokens per session scan A 30de325399bb

Subscribe to this mod's changes

rfc-link is a command published in the GitHub repository studioKjm/ai-harness-template (43 stars, last pushed 3mo ago), licensed MIT. It adds 25 tokens to every session and 1,107 once invoked, about $0.0001 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.