Diction: Instructions file for Codex

AGENTS.md

Diction AGENTS.md is an instructions file for Codex, OpenCode from DictionLabs/Diction. It costs 4,671 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

Written for Codex and OpenCode: the file is AGENTS.md.

This is DictionLabs/Diction's own configuration. It tells Codex and OpenCode how to work on Diction 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 Diction configures →

Reuse

Borrowing it

Nothing to install: this file belongs to DictionLabs/Diction. 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/DictionLabs/Diction/main/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/github.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/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 Diction AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/dictionlabs/diction/agents-md"><img src="https://agentmods.dev/badge/instructions/dictionlabs/diction/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 4,671 This file is loaded in full into every session.
When invoked 4,671 The same file — it is already loaded in full.
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.04671 $0.04671
Opus 5.5 $0.01868 $0.01868
Sonnet 5.5 $0.00934 $0.00934
Haiku 4.5 $0.00467 $0.00467

Measured 9d ago against content hash 8311ad364fad, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 9d 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 · 411 lines

How it starts

The opening of the file, as written. The whole thing — 411 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)
  • QR pairing with per-device keys, optionally required on every request

WARNING: TEXT_ROUTES_OPEN=false (default). /v1/text/* routes return 403 to callers without a pairing key until you set TEXT_ROUTES_OPEN=true. This is a deliberate speed bump, not a security control; the security control is DICTION_GATEWAY_AUTH=required.

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
  },
  "writing_tools": { "post_delivery_ms": 8000 }
}

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 · 411 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. 9d ago Changed · +43 lines · +948 tokens per session 8311ad364fad
  2. 18d ago Changed · +7 lines · +125 tokens per session afe842fa7bd0
  3. 1mo ago Changed · -43 lines · -361 tokens per session facfd0945c8b
  4. 1mo ago Changed · +43 lines · +360 tokens per session 376532710406
  5. 1mo ago Changed · +36 lines · +525 tokens per session 3dcc902af02d
  6. 2mo 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 (251 stars, last pushed yesterday), licensed MIT. It adds 4,671 tokens to every session, about $0.0187 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-30.

Related

Diction AGENTS.md compared with instructions from other repositories

Diction AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
Diction AGENTS.mdDictionLabs/DictionInstructions file251yesterdayMITA4,671Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode