Diction AGENTS.md

Diction AGENTS.md is an instructions file for Codex, OpenCode from DictionLabs/Diction. It costs 3,074 tokens per session, scanned A, original, MIT.

Reference instructions for a Diction Gateway, a self-hosted service that connects the Diction iPhone app to speech-to-text systems. It documents its health check, model list, transcription routes, security settings, and optional text processing.

In plain words
What is it for?
Use it when building or troubleshooting clients that check the gateway, list speech backends, stream transcriptions, send audio for transcription, or use its text-processing routes.
Why use it?
It gives an agent the exact information needed to call the service correctly and understand which routes are available or blocked.

Instructions file for CodexOpenCode

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 instructions/dictionlabs/diction/agents-md
Clone the repo
git clone --depth 1 https://github.com/DictionLabs/Diction

Made for: Codex, OpenCode.

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 Diction AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/dictionlabs/diction/agents-md.svg)](https://agentmods.dev/instructions/dictionlabs/diction/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/dictionlabs/diction/agents-md"><img src="https://agentmods.dev/badge/instructions/dictionlabs/diction/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 3,074 This file is loaded in full into every session.
When invoked 3,074 The same file — it is already loaded in full.
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.03074 $0.03074
Opus 5 $0.01537 $0.01537
Sonnet 5 $0.00615 $0.00615
Haiku 4.5 $0.00307 $0.00307

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

Security

Grade A, and why

Diction AGENTS.md 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.

AGENTS.md · 325 lines

How it starts

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

Diction Gateway -- Agent Reference

Machine-legible reference for the Diction self-hosted gateway. Covers routes, wire formats, environment variables, capabilities, and what the gateway can and cannot do.

Overview

The gateway is a Go HTTP service that sits between the Diction iOS app and one or more OpenAI-compatible speech-to-text backends. It handles:

  • WebSocket streaming for low-latency transcription
  • HTTP transcription fallback
  • Optional LLM post-processing (transcript cleanup, voice editing, suggestions)
  • Optional trial token auth (Diction One -- not for self-hosters)

WARNING: TEXT_ROUTES_OPEN=false (default). /v1/text/* routes return 403 until you explicitly set TEXT_ROUTES_OPEN=true or AUTH_ENABLED=true. This is a deliberate speed bump -- not a security control. Set it before calling those routes.

Routes

GET /health

Health check. Returns 200 when the gateway is up.

Response: 200 OK
Body: "ok"

GET /v1/models

Lists configured speech backends (OpenAI-compatible + Diction legacy grouping). Also includes a top-level capabilities object describing what this gateway instance can do (additive -- never removes data[] or providers[]).

Response: 200 OK
Content-Type: application/json

{
  "object": "list",
  "data": [
    { "id": "nvidia/parakeet-tdt-0.6b-v3", "object": "model", "created": 0, "owned_by": "nvidia" }
  ],
  "providers": [
    {
      "id": "parakeet",
      "name": "NVIDIA Parakeet",
      "models": [{ "id": "parakeet-v3", "name": "Parakeet v3", "description": "...", "available": true }]
    }
  ],
  "capabilities": {
    "llm": true,
    "text_process": true,
    "text_suggest": true
  }
}

capabilities object:

Field Type Meaning
llm bool LLM_BASE_URL + LLM_MODEL are set and LLM is active
text_process bool /v1/text/process is open (llm=true AND TEXT_ROUTES_OPEN=true, or auth=true)
text_suggest bool /v1/text/suggest is open (same condition as text_process)
text_summarize bool /v1/text/summarize is open (same condition as text_process)
formatting bool the formatting context key is honoured on cleanup (llm=true)

Read the full file on GitHub · 325 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 · 325 lines · 3,074 tokens per session scan A ad03e436d299

Subscribe to this mod's changes

Diction AGENTS.md is an instructions file published in the GitHub repository DictionLabs/Diction (192 stars, last pushed 6d ago), licensed MIT. It adds 3,074 tokens to every session, about $0.0154 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.