opencode-bar: Instructions file for Codex

AGENTS.md

opencode-bar AGENTS.md is an instructions file for Codex, OpenCode from opgginc/opencode-bar. It costs 11,870 tokens per session, scanned A, original, MIT.

A repository-specific instruction file for the OpenCode Bar project. It defines coding rules, English-language requirements, product naming, and user-interface styling conventions.

In plain words
What is it for?
Use it when editing the project, writing comments or commit messages, preparing pull requests, naming the product, or changing user-facing interface text and styling.
Why use it?
It keeps code, messages, reviews, and interface text consistent with the project's existing decisions and restrictions.

Instructions file for CodexOpenCode

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

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

Reuse

Borrowing it

Nothing to install: this file belongs to opgginc/opencode-bar. 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/opgginc/opencode-bar/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/opgginc/opencode-bar

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 opencode-bar AGENTS.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/opgginc/opencode-bar/agents-md"><img src="https://agentmods.dev/badge/instructions/opgginc/opencode-bar/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 11,870 This file is loaded in full into every session.
When invoked 11,870 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.11870 $0.11870
Opus 5.5 $0.04748 $0.04748
Sonnet 5.5 $0.02374 $0.02374
Haiku 4.5 $0.01187 $0.01187

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

Security

Grade A, and why

opencode-bar 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 1mo 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 · 669 lines

How it starts

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

Important Restriction

  • All of comments in code base, commit message, PR content and title should be written in English.
    • If you find any Korean text, please translate it to English.
  • UI Language
    • All user-facing text in the app MUST be in English.
  • Default review language: English.

Obey design decisions that specifically decided before by me

  • All the decision is speicifed in @AGENTS-design-decisions.md file.

Coding Rules

Branding Guides

  • Official Brand: OpenCode Bar
    • Don't use mis-capitalized or malformed forms like Opencode Bar or versions without the space (e.g. OpenCodeBar).
  • File Name:
    • OpenCode Bar if it allows whitespace.
    • OpenCode-Bar if it allows dash.
    • opencode-bar (all lowercase) if the environment prefers lowercase file names.
    • opencodebar (all lowercase, no separators) if it doesn't allow whitespace or dashes.
  • Bundle ID: com.copilotmonitor.CopilotMonitor

UI Styling Rules

  • No colors for text emphasis: Do NOT use NSColor attributes like .foregroundColor for menu items or labels.
  • DO NOT USE SPACES TO ALIGN TEXT: Don't use spaces like " Words:" to align the spacing.
  • Use instead:
    • Bold: NSFont.boldSystemFont(ofSize:) for important text
    • Underline: .underlineStyle: NSUnderlineStyle.single.rawValue for critical warnings
    • SF Symbols: Use NSImage(systemSymbolName:accessibilityDescription:) for menu item icons
    • Emphasis: Use system colors like secondaryLabelColor and etc.
    • Offset: Use offset for aligning text with other items and lines. Use the below constants.
  • Do NOT use:
    • Emoji: Never use emoji for menu item icons. Always use SF Symbols instead.
    • RGB color: Use only pre-defined colors by system (systemGreen, systemOrange, and etc) to consider dark/light mode compatiblity.
  • Exception:
    • While you can't use color for text, progress bars and status indicators can use system color.
    • You can use color for text which is right-aligned text only.
  • Others
    • Never use random spaces for separating label
      • BEST:
        • Left: "OpenRouter"
        • Right: "$37.42" - Additional Custom View Label on the right with right-aligned text (by offset calculating)
      • OK: "OpenRouter: $37.42"
      • OK: "OpenRouter ($37.42)"
      • NO: "OpenRouter $37.42" (stupid random spaces)
    • USD
      • Use only two decimals when expressing dollars. (e.g. $00.00)

Read the full file on GitHub · 669 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. 1mo ago Changed · +4 lines · +49 tokens per session 6a0eac9135a4
  2. 1mo ago First seen · 665 lines · 11,821 tokens per session scan A 0abf4dba012c

Subscribe to this mod's changes

opencode-bar AGENTS.md is an instructions file published in the GitHub repository opgginc/opencode-bar (323 stars, last pushed 20d ago), licensed MIT. It adds 11,870 tokens to every session, about $0.0475 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