tri-party-framework: Instructions file for Codex

AGENTS.md

tri-party-framework AGENTS.md is an instructions file for Codex, OpenCode from r-design-j/tri-party-framework. It costs 2,002 tokens per session, scanned A, original, MIT.

A project instruction file containing working agreements and review standards for the tri-party-framework project. It also describes how to extract reusable standards from daily work summaries.

In plain words
What is it for?
Checking work against review requirements, documenting daily decisions, and turning recurring practices into instructions for future work.
Why use it?
It gives future coding sessions shared rules for reviewing output and recording decisions. This helps keep work consistent across sessions.

Instructions file for CodexOpenCode

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

This is r-design-j/tri-party-framework's own configuration. It tells Codex and OpenCode how to work on tri-party-framework 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 tri-party-framework configures →

Reuse

Borrowing it

Nothing to install: this file belongs to r-design-j/tri-party-framework. 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/r-design-j/tri-party-framework/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/r-design-j/tri-party-framework

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 tri-party-framework AGENTS.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/r-design-j/tri-party-framework/agents-md"><img src="https://agentmods.dev/badge/instructions/r-design-j/tri-party-framework/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 2,002 This file is loaded in full into every session.
When invoked 2,002 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.02002 $0.02002
Opus 5.5 $0.00801 $0.00801
Sonnet 5.5 $0.00400 $0.00400
Haiku 4.5 $0.00200 $0.00200

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

Security

Grade A, and why

tri-party-framework 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 2mo 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 · 91 lines

How it starts

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

Global Codex Working Agreements

Output Review Standard

  • Before sending any user-visible Codex window output, final response, document content, Figma/design change summary, or generated artifact for review, perform at least 3 self-review passes.
  • The 3 passes must check:
    • Alignment with the user's latest request and wording.
    • Completeness and correctness of the actual result, not just the intended result.
    • Visible quality issues such as overlap, overflow, missing content, wrong labels, wrong hierarchy, or unclear placement when the work involves UI, Figma, documents, slides, or screenshots.
  • Do not say the work is done until the review passes. If a check fails, fix it first and review again.
  • When the user asks to "固化" a working agreement, prefer adding it here so future Codex sessions inherit it.

Daily Work Standard Extraction

  • At the end of each working day, summarize that day's completed work items and decisions.
  • From the daily work summary, extract reusable, abstract, and implementable standards rather than only recording events.
  • Present the extracted standards as a clear list, with each item written so it can be applied to future tri-party framework optimization.
  • Treat these standards as real operational data and source material for continuously improving the existing tri-party framework system.
  • When summarizing, explicitly look for optimization opportunities, missing capabilities, reusable patterns, and feature ideas that could enrich the framework.
  • The Codex, Claude, and Gemini model parties should cross-check each other's reasoning where relevant, identify reusable lessons, and use the results as input for ongoing self-iteration.

Tri-party Framework Definition

  • "Tri-party framework" and "three-party protocol" mean collaboration among exactly these three model parties: Codex, Claude, and Gemini.
  • Default capability roles:
    • Codex: primary owner for real project code, repository edits, implementation, tests, and in-worktree execution.
    • Claude: primary owner for complex reasoning, long-chain agent planning, architecture tradeoff analysis, and autonomous multi-step strategy.
    • Gemini: primary owner for multimodal work involving PDFs, video, audio, images, Google Search/Maps/URL context, and Google ecosystem synthesis.
  • Current model bindings live in docs/framework/model-binding.yaml.
  • The executable protocol and source-check template live in docs/framework/tri-party-protocol.md.
  • Prefer the executable scripts scripts/triparty-preflight.sh and scripts/triparty-review.sh for source checks and repeatable tri-party reviews before relying on manual CLI calls.
  • Codex sub-agents, local explorer agents, worker agents, or other Codex-internal delegations do not count as Claude or Gemini.
  • Before claiming that a result is a tri-party conclusion, verify and state the source of each party's input:
    • Codex: local Codex reasoning or execution result.
    • Claude: direct Claude CLI/tool/API result, connector result, or user-provided Claude transcript.
    • Gemini: direct Gemini CLI/tool/API result, connector result, or user-provided Gemini transcript.
  • Source availability checks must include both exposed tools/connectors and local shell CLI availability, including type -a claude and type -a gemini when shell access is available.
  • If Claude or Gemini is not actually available in the current environment, do not simulate or substitute them with Codex sub-agents. Label the result as "Codex-only provisional" or "Codex plus Codex sub-agents" instead.
  • Any summary that mentions Codex, Claude, and Gemini must include a source-status line showing whether each party was directly called, supplied by the user, or unavailable.
  • When one or more parties are unavailable, proceed only with clearly marked partial analysis and list the missing party inputs needed for a true tri-party review.
  • If a previous response incorrectly described Codex sub-agent output as tri-party output, correct the record immediately and add the failure mode to the daily standard extraction candidates.

Read the full file on GitHub · 91 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. 2mo ago First seen · 91 lines · 2,002 tokens per session scan A 63e9a113fd63

Subscribe to this mod's changes

tri-party-framework AGENTS.md is an instructions file published in the GitHub repository r-design-j/tri-party-framework (4 stars, last pushed 4mo ago), licensed MIT. It adds 2,002 tokens to every session, about $0.0080 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-31.

Related

tri-party-framework AGENTS.md compared with instructions from other repositories

tri-party-framework AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
tri-party-framework AGENTS.mdr-design-j/tri-party-frameworkInstructions file44mo agoMITA2,002Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149ktodayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file275k2d agoMITA4,313Codex, OpenCode