opencode-bar AGENTS.md

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

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

Made for: Codex, OpenCode.

Per session 11,821 This file is loaded in full into every session.
When invoked 11,821 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 $0.11821 $0.11821
Opus 5 $0.05910 $0.05910
Sonnet 5 $0.02364 $0.02364
Haiku 4.5 $0.01182 $0.01182

Measured yesterday against content hash 0abf4dba012c, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 yesterday.

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 · 665 lines

How it starts

The opening of the file, as written. The whole thing — 665 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 · 665 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. yesterday 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 (308 stars, last pushed 29d ago), licensed MIT. It adds 11,821 tokens to every session, about $0.0591 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.