oh-my-opencode-slim: Instructions file for Codex

AGENTS.md

oh-my-opencode-slim AGENTS.md is an instructions file for Codex, OpenCode from alvinunreal/oh-my-opencode-slim. It costs 2,713 tokens per session, scanned A, original, MIT.

A repository-specific instruction document for AI coding agents working on oh-my-opencode-slim, a TypeScript and Bun project. It describes the project, coding conventions, commands, and general rules.

In plain words
What is it for?
Use it when changing this repository to guide implementation, run its checks, format code, build the project, and run all or selected tests.
Why use it?
It gives an agent the local context needed to follow the repository’s expected style and use the right build, test, type-check, and lint commands.

Instructions file for CodexOpenCode

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

This is alvinunreal/oh-my-opencode-slim's own configuration. It tells Codex and OpenCode how to work on oh-my-opencode-slim 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 oh-my-opencode-slim configures →

About the project

oh-my-opencode-slim is a plugin that coordinates multiple specialized AI agents inside OpenCode, assigning codebase exploration, documentation research, architecture review, design, and implementation to different agents. It is for developers who want agent teams to divide and reconcile software-development work while mixing models from different providers. The catalogue entries are the plugin’s bundled agents, skills, and instruction.

alvinunreal/oh-my-opencode-slim · 9,839 stars · on GitHub · ohmyopencodeslim.com

Reuse

Borrowing it

Nothing to install: this file belongs to alvinunreal/oh-my-opencode-slim. 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/alvinunreal/oh-my-opencode-slim/master/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/alvinunreal/oh-my-opencode-slim

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 oh-my-opencode-slim AGENTS.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/alvinunreal/oh-my-opencode-slim/agents-md"><img src="https://agentmods.dev/badge/instructions/alvinunreal/oh-my-opencode-slim/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 2,713 This file is loaded in full into every session.
When invoked 2,713 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.02713 $0.02713
Opus 5.5 $0.01085 $0.01085
Sonnet 5.5 $0.00543 $0.00543
Haiku 4.5 $0.00271 $0.00271

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

Security

Grade A, and why

oh-my-opencode-slim 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 2d 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 · 228 lines

How it starts

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

Agent Coding Guidelines

This document provides guidelines for AI agents operating in this repository.

Project Overview

oh-my-opencode-slim - A lightweight agent orchestration plugin for OpenCode, a slimmed-down fork of oh-my-opencode. Built with TypeScript, Bun, and Biome.

Design Constraints

oh-my-opencode-slim is a lightweight harness. Every change is reviewed against:

  • Lightweight first — adopt the smallest implementation that meets the requirement; no speculative abstraction, redundant configuration, or unnecessary indirection.
  • No duplicate design — when OpenCode v2 already owns a mechanism, reuse or observe it instead of building a parallel plugin-side state machine. Check the pinned host source under .slim/clonedeps/repos/opencode/ before adding plugin-side machinery.
  • One source of truth for tool instructions — tool usage lives in tool descriptions; never restate it in agent prompts. When prompt prose and a tool description overlap, deleting the prose is the preferred change.
  • Model-facing bytes are a budget — prompts and tool descriptions are paid on every request, in every preset. Removal is the preferred change; an addition must state the behavior it buys, verified by rendering and counting, and must serve the cheapest supported preset, not just the dev default.

Commands

Command Description
bun run build Build TypeScript to dist/ (both index.ts and cli/index.ts)
bun run typecheck Run TypeScript type checking without emitting
bun test Run all tests with Bun
bun run lint Run Biome linter on entire codebase
bun run format Format entire codebase with Biome
bun run check Run Biome check with auto-fix (lint + format + organize imports)
bun run check:ci Run Biome check without auto-fix (CI mode)
bun run dev Build and run with OpenCode

Running a single test: Use Bun's test filtering with the -t flag:

bun test -t "test-name-pattern"

Read the full file on GitHub · 228 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. 2d ago Changed · +9 lines · +222 tokens per session 64a9d29d4e59
  2. 7d ago Changed · +16 tokens per session 672afc3df482
  3. 10d ago Changed · -1 tokens per session 25dbb2eb85fb
  4. 14d ago Changed · +13 lines · +157 tokens per session b558361485c3
  5. 24d ago Changed · +2 lines · +36 tokens per session f1fd0303523e
  6. 1mo ago Changed · +66 tokens per session 5b6f30e3f936
  7. 2mo ago First seen · 204 lines · 2,217 tokens per session scan A b8c41ed8e328

Subscribe to this mod's changes

oh-my-opencode-slim AGENTS.md is an instructions file published in the GitHub repository alvinunreal/oh-my-opencode-slim (9,839 stars, last pushed 3d ago), licensed MIT. It adds 2,713 tokens to every session, about $0.0109 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

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,461 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

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

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