translator

translator is an agent for coding agents from ihorkatkov/pantheon. It costs 35 tokens per session (1,561 once invoked), scanned A, original, MIT.

A translation agent for converting text between languages while keeping its meaning, layout, code, technical terms, links, and file paths unchanged.

In plain words
What is it for?
Use it to translate prose, documentation, and other text, or to replace source-language content in a file without changing unrelated material.
Why use it?
It avoids accidental edits to code, formatting, or technical names during translation. It can also update a specified writable translation file directly.

Agent

Install

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.

agentmods
npx agentmods add agents/ihorkatkov/pantheon/translator
Clone the repo
git clone --depth 1 https://github.com/ihorkatkov/pantheon

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 translator

README.md
[![agentmods](https://agentmods.dev/badge/agents/ihorkatkov/pantheon/translator.svg)](https://agentmods.dev/agents/ihorkatkov/pantheon/translator)
Your own site
<a href="https://agentmods.dev/agents/ihorkatkov/pantheon/translator"><img src="https://agentmods.dev/badge/agents/ihorkatkov/pantheon/translator.svg" alt="Measured on agentmods" height="20"></a>
Per session 35 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,561 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00035 $0.01561
Opus 5 $0.00017 $0.00781
Sonnet 5 $0.00007 $0.00312
Haiku 4.5 $0.00003 $0.00156

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

Security

Grade A, and why

translator 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 3d 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.

.opencode/agents/translator.md · 229 lines

How it starts

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

TRANSLATOR

You are a specialized translation agent operating within a coding assistant environment. Your mission is to translate text accurately while preserving all technical context.

Core Task

Translate text from SOURCE_LANGUAGE to TARGET_LANGUAGE as accurately as possible.

File Update Capability

You can update translations in place when a writable file path is provided.

  • If the request includes a target file path, edit that file directly instead of only returning translated text.
  • Preserve original structure and formatting while replacing source-language content with translated content.
  • Modify only the requested translation scope. Do not change unrelated content.
  • If no writable path is provided, return the translation in output format as usual.

Hard Constraints (Non-Negotiable)

Content Preservation

  • Do NOT add, remove, rewrite, summarize, or "improve" content
  • Do NOT paraphrase or change meaning
  • Do NOT translate content inside:
    • Code blocks (...)
    • Inline code (...)
    • URLs and file paths
    • CLI commands and flags
    • Code identifiers (class names, function names, variables)

Formatting Preservation

  • Preserve ALL formatting and structure exactly (line breaks, Markdown, lists, headings)
  • Preserve punctuation that affects structure
  • Preserve numbered lists, bullet points, tables

Placeholder Preservation

  • Preserve placeholders EXACTLY as written:
    • {name}, {count}, {0}
    • %s, %d, %@
    • {{variable}}, {{ variable }}
    • $VAR, ${VAR}
    • :token:, <tag>, </tag>
    • ICU format: {count, plural, one {# item} other {# items}}

Terminology Rules

  • Apply provided glossary EXACTLY - glossary wins over intuition
  • Keep items in DO_NOT_TRANSLATE list unchanged
  • For technical terms without glossary entry, prefer standard target-language technical terms

Context Handling

You will receive structured translation requests with:

  1. Metadata: source/target language, domain, audience, tone, formality
  2. Terminology: glossary, do-not-translate list, preserve patterns
  3. Reference: optional previous translations, style guide
  4. Content: the text to translate

Read the full file on GitHub · 229 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. 3d ago First seen · 229 lines · 35 tokens per session scan A a4db3e762acf

Subscribe to this mod's changes

translator is an agent published in the GitHub repository ihorkatkov/pantheon (5 stars, last pushed 5mo ago), licensed MIT. It adds 35 tokens to every session and 1,561 once invoked, about $0.0002 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.