oh-my-opencode-slim AGENTS.md

oh-my-opencode-slim AGENTS.md is an instructions file for Codex, OpenCode from alvinunreal/oh-my-opencode-slim. It costs 2,217 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.

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 · 8,651 stars · on GitHub · ohmyopencodeslim.com

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/alvinunreal/oh-my-opencode-slim/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.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.svg" alt="Measured on agentmods" height="20"></a>
Per session 2,217 This file is loaded in full into every session.
When invoked 2,217 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.1 $0.02217 $0.02217
Opus 5 $0.01108 $0.01108
Sonnet 5 $0.00443 $0.00443
Haiku 4.5 $0.00222 $0.00222

Measured 6d ago against content hash b8c41ed8e328, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, 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 6d 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 · 204 lines

How it starts

The opening of the file, as written. The whole thing — 204 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.

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"

Code Style

General Rules

  • Formatter/Linter: Biome (configured in biome.json)
  • Line width: 80 characters
  • Indentation: 2 spaces
  • Line endings: LF (Unix)
  • Quotes: Single quotes in JavaScript/TypeScript
  • Trailing commas: Always enabled

TypeScript Guidelines

  • Strict mode: Enabled in tsconfig.json
  • No explicit any: Generates a linter warning (disabled for test files)
  • Module resolution: bundler strategy
  • Declarations: Generate .d.ts files in dist/

Imports

  • Biome auto-organizes imports on save (organizeImports: "on")
  • Let the formatter handle import sorting
  • Use path aliases defined in TypeScript configuration if present

Naming Conventions

  • Variables/functions: camelCase
  • Classes/interfaces: PascalCase
  • Constants: SCREAMING_SNAKE_CASE
  • Files: kebab-case for most, PascalCase for React components

Error Handling

  • Use typed errors with descriptive messages
  • Let errors propagate appropriately rather than catching silently
  • Use Zod for runtime validation (already a dependency)

Read the full file on GitHub · 204 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. 6d 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 (8,651 stars, last pushed yesterday), licensed MIT. It adds 2,217 tokens to every session, about $0.0111 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-30.