type4me AGENTS.md

type4me AGENTS.md is an instructions file for Codex, OpenCode from joewongjc/type4me. It costs 4,622 tokens per session, scanned C, original, MIT.

A development guide for Type4Me, a macOS menu-bar voice-input application that turns speech into text.

In plain words
What is it for?
Naming branches and managing development work involving speech recognition, audio processing, Swift Package Manager, and the application's build and run process.
Why use it?
It sets rules for organizing branches and making changes in a project that supports local and online speech-recognition services.

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

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

README.md
[![agentmods](https://agentmods.dev/badge/instructions/joewongjc/type4me/agents-md.svg)](https://agentmods.dev/instructions/joewongjc/type4me/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/joewongjc/type4me/agents-md"><img src="https://agentmods.dev/badge/instructions/joewongjc/type4me/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 4,622 This file is loaded in full into every session.
When invoked 4,622 The same file — it is already loaded in full.
Security scan C 1 finding. 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.04622 $0.04622
Opus 5 $0.02311 $0.02311
Sonnet 5 $0.00924 $0.00924
Haiku 4.5 $0.00462 $0.00462

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

Security

Grade C, and why

type4me AGENTS.md scanned grade C with 1 finding 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 4d 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.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

**Important**: SPM caches manifest evaluation in `~/Library/Caches/org.swift.swiftpm`. When switching variants manually (not via build-dmg.sh), clear this cache: `rm -rf .build ~/Library/Caches/org.swift.swiftpm`
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.

Type4Me — Development Guide

Overview

macOS menu bar voice input tool with dual-engine local ASR, multi-provider cloud ASR, and LLM post-processing. Local ASR: SenseVoice via native sherpa-onnx (streaming) + Qwen3-ASR (final calibration, Python WebSocket service managed by SenseVoiceServerManager). Cloud ASR: 14 providers implemented (Volcano, StepFun streaming, StepFun batch, MiMo batch, OpenAI, Deepgram, Cartesia, AssemblyAI, ElevenLabs, Gemini, Grok, Soniox, Bailian, Baidu), plus Apple Speech. Swift Package Manager project, no Xcode project file. Optional sherpa-onnx.xcframework enables local SenseVoice, Silero VAD, and punctuation restoration.

Branch Naming and Lifecycle

Use one short-lived branch for one independently reviewable change. Branches must use lowercase ASCII kebab-case and follow this form:

<type>/<issue-number-optional>-<concise-description>

Examples:

feat/241-cartesia-streaming-asr
fix/247-agent-context-cleanup
docs/intelli-sense-pangu-terminology
perf/reduce-startup-latency
refactor/session-output-pipeline
test/recognition-session-recovery
chore/update-swift-format
release/2.1.1
hotfix/251-crash-on-launch

Allowed types

Type Use for
feat A user-visible capability or substantial new behavior.
fix A defect fix. Prefix the issue number when one exists.
docs Documentation-only changes.
perf A measurable performance improvement without a primary behavior change.
refactor Internal restructuring with no intended behavior change.
test Test-only additions or repairs.
chore Tooling, repository maintenance, or non-product housekeeping.
release Release preparation and versioning.
hotfix An urgent production fix.

Rules

  • Do not use agent, tool, model, or personal prefixes such as agent/, codex/, builder/, or a username. These are execution details, not work categories.
  • Do not create a branch named only after a PR number, and do not combine unrelated changes on one branch.
  • Keep descriptions specific but compact: prefer fix/247-agent-context-cleanup over fix/247-fix-the-problem-reported-in-the-agent-context-issue.
  • Use the same branch name locally and on its published review branch. origin/main is updated only with explicit user authorization.
  • Before merging or opening a PR, rebase or otherwise bring the branch up to date with the current origin/main as appropriate for the requested workflow. Use --force-with-lease, never a blind force push, after a published branch is rebased.
  • After the change is confirmed in main, delete its local and published remote branches unless there is an explicitly stated reason to retain them. Never delete an integration branch without explicit authorization.
  • main is the integration branch. Work directly on it, or push directly to origin/main, only when the user explicitly asks for a direct change.

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. 4d ago First seen · 325 lines · 4,622 tokens per session scan C 150baca22e64

Subscribe to this mod's changes

type4me AGENTS.md is an instructions file published in the GitHub repository joewongjc/type4me (1,422 stars, last pushed yesterday), licensed MIT. It adds 4,622 tokens to every session, about $0.0231 per session on Opus 5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other instructions, from other repositories

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 6,785 tokens

spec-kit AGENTS.md

AGENTS.md instructions for github/spec-kit, covering agents.md, about spec kit and specify, quickstart — add a new integration in 5 steps, integration architecture and integrationmanifest — file tracking.

github/spec-kit · 7,104 tokens

codex AGENTS.md

AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.

openai/codex · 5,182 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,345 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, applying the notice (cutover) and fallback chain (never fail the build).

microsoft/vscode · 5,001 tokens

next.js AGENTS.md

Instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,296 tokens