ez-omo-config: Instructions file for Codex

AGENTS.md

ez-omo-config AGENTS.md is an instructions file for Codex, OpenCode from EZotoff/ez-omo-config. It costs 7,983 tokens per session, scanned B, original, MIT.

Repository instructions for EZotoff's ez-omo-config, a versioned store for OpenCode and Oh-My-OpenAgent settings. They explain which tracked files control the live configuration and where authentication data is kept.

In plain words
What is it for?
Use them to locate OpenCode and OMO settings, update provider retry rules, understand the symlink layout, and keep authentication files out of version control.
Why use it?
They prevent agents from editing the wrong configuration or committing secret credentials. They also clarify that live configuration files are symbolic links to files in the repository.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions AGENTS.md; mentions OpenCode.

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

Reuse

Borrowing it

Nothing to install: this file belongs to EZotoff/ez-omo-config. 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/EZotoff/ez-omo-config/master/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/EZotoff/ez-omo-config

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 ez-omo-config AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/ezotoff/ez-omo-config/agents-md/github.svg)](https://agentmods.dev/instructions/ezotoff/ez-omo-config/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/ezotoff/ez-omo-config/agents-md"><img src="https://agentmods.dev/badge/instructions/ezotoff/ez-omo-config/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 ez-omo-config AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/ezotoff/ez-omo-config/agents-md"><img src="https://agentmods.dev/badge/instructions/ezotoff/ez-omo-config/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 7,983 This file is loaded in full into every session.
When invoked 7,983 The same file — it is already loaded in full.
Security scan B 2 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.07983 $0.07983
Opus 5.5 $0.03193 $0.03193
Sonnet 5.5 $0.01597 $0.01597
Haiku 4.5 $0.00798 $0.00798

Measured 18d ago against content hash 1abf5ae23387, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

ez-omo-config AGENTS.md scanned grade B with 2 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 18d 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.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

**Prerequisite**: `sudo apt install -y inotify-tools` for the watcher service.

Runs shell commandslowCapability

Expected in a hook, worth knowing in a rule or an instructions file.

5. Structural fixes are mandatory for new bash/python tooling: `set -euo pipefail` for bash, `subprocess.run([...])` list-form for Python, no string interpolation into Python source.
AGENTS.md · 302 lines

How it starts

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

ez-omo-config — Agent Instructions

What This Is

This project is the versioned config store for OpenCode and Oh-My-OpenAgent (OMO). The active configs are symlinked to this repo — editing a file here IS editing the live config.

Config Locations

Purpose Store path (git-tracked) Live symlink (OpenCode reads this)
OpenCode config configs/opencode/opencode.json ~/.config/opencode/opencode.json → store
OMO config configs/oh-my-openagent/oh-my-openagent.json ~/.config/opencode/oh-my-openagent.json → store
Provider retry plugin configs/opencode/provider-connect-retry.mjs ~/.config/opencode/provider-connect-retry.mjs → store
Retry error registry configs/retry-errors.json ~/.config/opencode/retry-errors.json → store
Agent default guard configs/opencode/agent-default-guard.mjs ~/.config/opencode/agent-default-guard.mjs → store
Auth / API keys — ~/.local/share/opencode/auth.json (NEVER committed)

How It Works

Live configs are symlinks pointing into this repo:

~/.config/opencode/opencode.json        →  ~/ez-omo-config/configs/opencode/opencode.json
~/.config/opencode/oh-my-openagent.json →  ~/ez-omo-config/configs/oh-my-openagent/oh-my-openagent.json

There is ONE file, not two. Editing either path modifies the same file. Changes are immediately visible to OpenCode AND tracked by git.

Rules for Agents

  1. Edit the store path (files in this repo). The symlinks ensure OpenCode sees the change.
  2. No propagation needed. The old copy-and-adapt workflow is dead. There is no second file to sync.
  3. Never commit auth/API keys. ~/.local/share/opencode/auth.json is machine-local.
  4. No machine-specific paths. opencode.json uses relative paths for all local plugins (e.g. ./provider-connect-retry.mjs, ../../.opencode/plugin/clickable-links.ts), resolved by OpenCode against the config file's directory. No manual path updates are needed on a new machine.
  5. Validate JSON after editing. Run python3 -c "import json; json.load(open('path'))" on changed files.
  6. Server vs TUI restart. Closing/reopening the TUI does NOT restart the opencode serve server process. Plugins, OMO runtime, and in-memory session state are initialized once at server startup. Config changes (plugin array, agent settings) require a server restart to take full effect (the former omo-tg.service unit is masked/retired). Never bare-restart — running sessions lose their in-flight turns; use scripts/restart-with-continuation.sh (see "Session-safe OpenCode server restarts" in the global AGENTS.md) so active sessions are snapshotted and auto-continued. Always verify with ps -eo pid,lstart,etime,args | grep 'opencode serve' that the server start time actually changed before assuming a restart worked.

Read the full file on GitHub · 302 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. 18d ago Changed · +10 lines · +517 tokens per session 1abf5ae23387
  2. 19d ago Changed · +21 lines · +731 tokens per session 651c589a081a
  3. 25d ago Changed · -27 tokens per session a1a651f096d7
  4. 1mo ago Changed · +3 lines · +155 tokens per session 32b9402f9f54
  5. 1mo ago Changed · +13 lines · +528 tokens per session 79d722f948a4
  6. 1mo ago Changed · +21 lines · +426 tokens per session 1889f98181b4
  7. 1mo ago Changed · +1 lines · +37 tokens per session a7d85e5ca183
  8. 1mo ago Changed · +83 tokens per session 31287d661c8f
  9. 1mo ago Changed · +15 lines · +1,123 tokens per session d7e7da9fc9f0
  10. 1mo ago First seen · 218 lines · 4,410 tokens per session scan B 64346bb4cae2

Subscribe to this mod's changes

ez-omo-config AGENTS.md is an instructions file published in the GitHub repository EZotoff/ez-omo-config (6 stars, last pushed 7d ago), licensed MIT. It adds 7,983 tokens to every session, about $0.0319 per session on Opus 5.5. A static security scan graded it B with 2 findings (asks for root, runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

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 · 9,715 tokens

next.js AGENTS.md

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,581 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, cache eligibility and rollout and applying the notice (cutover).

microsoft/vscode · 5,262 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,680 tokens

deepseek-harness AGENTS.md

AGENTS.md instructions for deepseek-ai/deepseek-harness, covering agents.md, pre-stable apis and released session data, repository layout, commands and host sandbox failures.

deepseek-ai/deepseek-harness · 4,261 tokens

vscode copilot-instructions.md

Copilot instructions for microsoft/vscode, covering vs code copilot instructions, project overview, root folders, core architecture (src/ folder) and built-in extensions (extensions/ folder).

microsoft/vscode · 2,731 tokens