Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
git clone --depth 1 https://github.com/codeready-toolchain/tarsyWrote 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.
[](https://agentmods.dev/commands/codeready-toolchain/tarsy/promote-to-adr)<a href="https://agentmods.dev/commands/codeready-toolchain/tarsy/promote-to-adr"><img src="https://agentmods.dev/badge/commands/codeready-toolchain/tarsy/promote-to-adr/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.
<a href="https://agentmods.dev/commands/codeready-toolchain/tarsy/promote-to-adr"><img src="https://agentmods.dev/badge/commands/codeready-toolchain/tarsy/promote-to-adr.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00011 | $0.00786 |
| Opus 5.5 | $0.00004 | $0.00314 |
| Sonnet 5.5 | $0.00002 | $0.00157 |
| Haiku 4.5 | $0.00001 | $0.00079 |
Grade A, and why
promote-to-adr 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 1mo 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.
How it starts
The opening of the file, as written. The whole thing — 71 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Promote Proposal to ADR
Move an implemented proposal from docs/proposals/ to docs/adr/ as a numbered Architecture Decision Record.
The user will specify which proposal to promote (by name or file path). If unclear, ask.
Steps
-
Determine the next ADR number. List
docs/adr/and find the highest existingNNNN-prefix. The new ADR gets the next sequential number, zero-padded to 4 digits (e.g.,0001,0002). -
Read the design document (
docs/proposals/{name}-design.md) in full. -
Check for a companion questions document (
docs/proposals/{name}-questions.md). If it exists, read it and extract any decision rationale not already present in the design doc. -
Create the ADR at
docs/adr/{NNNN}-{name}.md.Do NOT copy the proposal verbatim. Distill it into an architectural decision record. The ADR should capture what was decided and why, not how it was implemented file-by-file.
Header:
- Title:
# ADR-{NNNN}: {Title}(use the existing title, drop suffixes like "— Design Document") - Status:
Implemented - Date: today's date
- Remove any references to the questions document
What to KEEP (the decision record):
- Overview / problem statement
- Design principles
- Decisions tables with rationale — this is the core of the ADR. If the design doc has a Decisions table, add a Rationale column with compact reasoning from the questions doc (if available)
- Architecture: conceptual descriptions, ASCII diagrams, behavioral contracts, data flow
- Configuration YAML examples (user-facing contract)
- Conceptual tables (e.g., type mappings, enum values, API endpoints)
- High-level migration strategy (e.g., "data-preserving migration with enum renames")
- Future considerations
- References to other ADRs
What to REMOVE (implementation detail):
- "Affected Files" tables and file-level change lists
- "Implementation Plan" / "Implementation Phases" step-by-step checklists
- Go/SQL/TypeScript/Python code snippets (struct definitions, function bodies, ent schemas)
- File path references (e.g.,
pkg/agent/controller/factory.go) — use component names instead - Line number references
- PR-level breakdowns
- Risk assessments
- Testing strategy sections
- Title:
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.
- 1mo ago Changed · +4 lines · +11 tokens per session 7cc8a75829cc
- 3mo ago First seen · 67 lines · 0 tokens per session scan A 4d4dc52eba79
promote-to-adr is a command published in the GitHub repository codeready-toolchain/tarsy (10 stars, last pushed 10d ago), licensed Apache-2.0. It adds 11 tokens to every session and 786 once invoked, about $0.0000 per session on Opus 5.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.
promote-to-adr compared with commands from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| promote-to-adrcodeready-toolchain/tarsy | Command | 10 | 10d ago | Apache-2.0 | A | 11 | Claude Code, Cursor |
| showspencermarx/open-code-review | Command | 395 | 19d ago | Apache-2.0 | A | 7 | Claude Code |
| test-featureLykhoyda/rn-dev-agent | Command | 20 | 1mo ago | MIT | A | 30 | Claude Code |
| sync-coordinatorspencermarx/open-code-review | Command | 395 | 19d ago | Apache-2.0 | A | 0 | Claude Code |
| bottleneck-detectspencermarx/open-code-review | Command | 395 | 19d ago | Apache-2.0 | A | 0 | Claude Code |
| sparc-mcpspencermarx/open-code-review | Command | 395 | 19d ago | Apache-2.0 | A | 28 | Claude Code |
| sparc-modesspencermarx/open-code-review | Command | 395 | 19d ago | Apache-2.0 | A | 0 | Claude Code |