agentic-voice AGENTS.md

agentic-voice AGENTS.md is an instructions file for Codex, OpenCode from maxanatsko/agentic-voice. It costs 590 tokens per session, scanned A, original, MIT.

Repository instructions for a small local voice-output project that speaks through a text-to-speech backend, software that turns text into spoken audio.

In plain words
What is it for?
They guide changes to MCP handling, command-line input and output, speech policy, the text-to-speech client, audio playback, configuration, and the separate Swift backend.
Why use it?
They keep each part of the project focused on its own responsibility and prevent code from depending on hidden implementation details.

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/maxanatsko/agentic-voice/agents-md
Clone the repo
git clone --depth 1 https://github.com/maxanatsko/agentic-voice

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 agentic-voice AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/maxanatsko/agentic-voice/agents-md.svg)](https://agentmods.dev/instructions/maxanatsko/agentic-voice/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/maxanatsko/agentic-voice/agents-md"><img src="https://agentmods.dev/badge/instructions/maxanatsko/agentic-voice/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 590 This file is loaded in full into every session.
When invoked 590 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.00590 $0.00590
Opus 5 $0.00295 $0.00295
Sonnet 5 $0.00118 $0.00118
Haiku 4.5 $0.00059 $0.00059

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

Security

Grade A, and why

agentic-voice 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 · 63 lines

How it starts

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

Agent Guidelines

Purpose

This repository provides a minimal local voice-output capability for coding agents, speaking through a local TTS backend over a fixed HTTP contract. The bundled backend (bridge/) wraps Kokoro-82M via FluidAudio; it is not an NVIDIA product.

Engineering principles

Separation of concerns

Keep boundaries explicit:

  • MCP code handles MCP concerns only.
  • CLI code handles process input/output only.
  • VoiceService owns the speak use case and user-facing speech policy.
  • TTS backend HTTP details stay inside the TTS client (src/tts/tts-client.ts).
  • Audio playback stays inside the audio module.
  • Configuration parsing stays in config.ts.
  • bridge/ is a separate Swift package with its own toolchain; Node code must depend on it only through the documented HTTP contract, never by assuming its internals.

Do not let transport-specific objects leak into application code.

KISS

Prefer direct code over patterns. A small function or class is better than a framework, registry, factory hierarchy, or dependency injection container when there is only one implementation.

YAGNI

Do not add capabilities without a concrete requirement. In particular, avoid adding:

  • provider abstraction layers before a second TTS provider exists;
  • persistence, queues, retries, telemetry, or a web UI;
  • an embedded summarization LLM, including inside a hook — hooks (hooks/) stay fixed-phrase and deterministic, never transcript-parsing;
  • speech-to-text or full-duplex audio.

DRY

Share behavior, not coincidental syntax. MCP and CLI must use the same VoiceService. There should be one implementation each for TTS synthesis, speech-length policy, configuration, and audio playback.

Do not create generic helpers solely to remove two or three similar lines.

Code conventions

  • TypeScript, ESM, strict mode.
  • Prefer the Node.js standard library over dependencies.
  • Validate external input at boundaries.
  • Keep functions small and intention-revealing.
  • Fail with actionable error messages; do not silently swallow synthesis or playback failures.
  • Never write diagnostic output to stdout from the MCP process. stdout is reserved for MCP protocol traffic; use stderr for diagnostics.
  • Tests should focus on deterministic application behavior. Do not mock implementation details merely to increase coverage.
  • Swift code in bridge/ is not built or tested by the root tsc/node --test pipeline — verify it with swift build --package-path bridge (see bridge/README.md).

Read the full file on GitHub · 63 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 · 63 lines · 590 tokens per session scan A 12daa0f452ba

Subscribe to this mod's changes

agentic-voice AGENTS.md is an instructions file published in the GitHub repository maxanatsko/agentic-voice (1 stars, last pushed 9d ago), licensed MIT. It adds 590 tokens to every session, about $0.0030 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.