agy-headless-bridge: Instructions file for Codex

AGENTS.md

agy-headless-bridge AGENTS.md is an instructions file for Codex, OpenCode from rhishi99/agy-headless-bridge. It costs 1,167 tokens per session, scanned A, original, MIT.

Repository instructions for coding agents working on the agy-headless-bridge project. They describe protected files, testing before claiming success, token limits, memory notes, and pull-request and branching rules.

In plain words
What is it for?
They are for guiding agent work on the bridge, including keeping public interfaces compatible, synchronizing manifests, running tests, and following branch and pull-request practices.
Why use it?
They give agents project-specific rules so changes follow the repository's compatibility and workflow requirements. TDD, or test-driven development, means using tests as part of the development process.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: reads .claude/ paths; mentions .claude-plugin; mentions CLAUDE.md.

This is rhishi99/agy-headless-bridge's own configuration. It tells Codex and OpenCode how to work on agy-headless-bridge 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 agy-headless-bridge configures →

Reuse

Borrowing it

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

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 agy-headless-bridge AGENTS.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/rhishi99/agy-headless-bridge/agents-md"><img src="https://agentmods.dev/badge/instructions/rhishi99/agy-headless-bridge/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,167 This file is loaded in full into every session.
When invoked 1,167 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.01167 $0.01167
Opus 5.5 $0.00467 $0.00467
Sonnet 5.5 $0.00233 $0.00233
Haiku 4.5 $0.00117 $0.00117

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

Security

Grade A, and why

agy-headless-bridge 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 · 80 lines

How it starts

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

agy-headless-bridge — Multi-Agent Engineering Rules & Protocol

This document defines the operating rules for all AI coding agents (Claude Code, Antigravity/agy, Codex, and subagents) working in this repository.


1. Operating Rules & Core Invariants

  1. Repository Scope & Mission: agy-headless-bridge is the headless ConPTY bridge, direct JSON runner, and MCP server enabling headless automation of Google Antigravity CLI (agy).
  2. Protected & Canonical Files:
    • src/agy_headless_bridge/: Core package. Keep public signatures and CLI contract backwards-compatible.
    • server.json & .claude-plugin/: MCP and plugin manifests. Must stay synchronized on version bumps.
    • CLAUDE.md & AGENTS.md: Update only when system workflows or rules evolve.
  3. End Every Turn With Next Step: State clearly what was done and provide a concrete, actionable next step.
  4. Validate Live Before Claiming Success: Always run test suites and verify output before asserting completion. Evidence before assertions always.

2. Token Budget Discipline (MANDATORY)

Rhishi operates with strict token budget discipline across projects. Maximize work done per token:

  1. RTK Command Prefixing: rtk-prefix EVERY shell command — no exceptions (e.g., rtk git status, rtk pytest -q). Applies inside chained commands too.
  2. Terse, Dense Output: Keep responses concise and decision-dense. Avoid conversational filler or echoing back files verbatim.
  3. Batched Memory Reads: At session/task start, read auto-memory MEMORY.md + relevant obsidian-memory/ note BEFORE reading source code. Prefer targeted reads (rtk grep, line ranges) over whole-file dumps.
  4. Batched Memory Writes: Write memory/obsidian ONCE at task end (batched). Never write mid-session.
  5. Filtered Test & Lint Runs: Always use filtered runs (rtk pytest -q), never raw unfiltered dumps that pollute the context window.
  6. Subagent Delegation: Delegate broad multi-step exploration, heavy documentation scans, or isolated experiments to a subagent (senior-software-architect, etc.) so the main thread context only processes the compressed result. Keep subagent count low (1–3 max).

Read the full file on GitHub · 80 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 First seen · 80 lines · 1,167 tokens per session scan A d7807f2595bc

Subscribe to this mod's changes

agy-headless-bridge AGENTS.md is an instructions file published in the GitHub repository rhishi99/agy-headless-bridge (23 stars, last pushed yesterday), licensed MIT. It adds 1,167 tokens to every session, about $0.0047 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-11-28.

Related

agy-headless-bridge AGENTS.md compared with instructions from other repositories

agy-headless-bridge AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
agy-headless-bridge AGENTS.mdrhishi99/agy-headless-bridgeInstructions file23yesterdayMITA1,167Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file196ktodayMITA9,887GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file144ktodayMITA7,230Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file196ktodayMITA5,685GitHub Copilot
langchain AGENTS.mdlangchain-ai/langchainInstructions file150kyesterdayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file196ktodayMITA3,303GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file289k2d agoMITA4,393Codex, OpenCode