trinity: Instructions file for Codex

AGENTS.md

trinity AGENTS.md is an instructions file for Codex, OpenCode from trinity-tick/trinity. It costs 2,740 tokens per session, scanned A, original, MIT.

Repository instructions describing Trinity’s memory layer in AGENTS.md. The file records coding-agent context such as sessions, goals, todos, and recent project state.

In plain words
What is it for?
Reading active goals and recent context, understanding Trinity’s memory files, and following the repository’s instructions for working with that memory.
Why use it?
They help an AI agent understand the repository’s stored memory and current work when it starts a session.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions CLAUDE.md; mentions AGENTS.md.

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

Reuse

Borrowing it

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

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 trinity AGENTS.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/trinity-tick/trinity/agents-md"><img src="https://agentmods.dev/badge/instructions/trinity-tick/trinity/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 2,740 This file is loaded in full into every session.
When invoked 2,740 The same file — it is already loaded in full.
Security scan A 1 finding. 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.02740 $0.02740
Opus 5.5 $0.01096 $0.01096
Sonnet 5.5 $0.00548 $0.00548
Haiku 4.5 $0.00274 $0.00274

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

Security

Grade A, and why

trinity AGENTS.md scanned grade A with 1 finding 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -s http://127.0.0.1:8001/health
AGENTS.md · 139 lines

How it starts

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

AGENTS.md — Trinity Memory

本文件由 Trinity 生成(2026-08-24 15:26:38)。它让接入本仓库/工作区的 AI Agent 自动了解 Trinity 记忆层的存在、用法与当前状态。 相关规范背景:OpenAI AGENTS.md / Anthropic CLAUDE.md 的"文件即记忆"标准。

Trinity 记忆层实时快照(生成于 2026-09-02 03:21:12,snapshot 任务自动刷新)

指标 值
会话数 246
结构事件数 28533
目标数 71
Todos 108
计划 0

活跃目标(active goals)

状态 阶段 轮次 目标
active active 0 继续执行优化(第三轮):1) GEN-3 生成侧再优化——KU/SS-P 类目专用提示词 + 上下文剪枝实验(每问只喂最相关 3-5 条 vs 10 条,测噪音对 AnswerAcc 的影响),全量 500q 对比 0.678 基线;2) CH-1 KG/混合通道归因——用 search_hybrid(fusion)
active - 0 按已批准的建议清单全面优化 Trinity:P0-1 用 DSH agent/workflow 修复 Trinity 已知 bug(pytest 5 fail/6 error + keyword 多词 FTS5 检索 bug);P0-2 用 dsh-credentials 消除 PG 密码/API key 明文并让维护
active - 0 处理 benchmarks.md 遗留四项:① 跑官方 LongMemEval-S(500题)/LoCoMo(1982题) 或明确不可行时降级(如官方子集+如实标注)并更新对比表;② 统一 SQuAD 评测入口(消除 35.6% vs 98.3% 双口径);③ 修复 Cluster Stress Raft 三节点全 l
active - 0 执行 smartcos-wms 剩余全部建议:①golangci 债务逐包清理(errcheck 249/unused 47/ineffassign 29 等共 328 项,清理后 lint 显著归零或大幅下降且 build/test 全绿);②实现 12 个 MOCK-ONLY API 端点(carriers/rou
active - 0 按行业操作页形态(扫码优先+任务队列+动作按钮+状态自动流转)重做 SmartCos WMS 全部作业页面:收货作业(ArrivalCounting)、上架作业(Putaway)、称重作业(PackageWeighing)、发货作业(ShipConfirm)、复核作业(VerificationWorkbench)、打包
active - 0 按 wms-ui-assessment 建议全方位精细化执行:P1(拣货/收货行级扫码确认、发货运单回传记录、工作台 AI 闭环状态卡)、P2(复核页组件化、上架 AI 建议卡突出、收货差异转质检)、P3(称重 DWS 读秤增强、打包页对接 box_types 主数据、盘点体验微调);每项后端+前端落地、真实数据/端点
active - 0 执行 EXECUTION_PLAN_V2.md 全部 14 个项目(A1-A5、B1-B5、C1-C4):每个项目产出可运行工件并验证,修复评测发现的 2 个 API bug,更新执行计划状态,最终汇总完成情况与遗留项。
active - 0 按已批准的 Trinity 发展规划执行全部建议:里程碑1(统一 SQuAD 评测口径、修复 Cluster Stress Raft 单 leader 异常、跑官方 LongMemEval-S/LoCoMo/BEAM 1M-10M 基准、同步版本号 v8.2.0);里程碑2(decay 接入真实 LLM 摘要、决策并落
active - 0 按 docs_site/optimization-plan.md 的 8 个优化点全方位执行:1) 答案生成评测 harness(mock 500q × DeepSeek → accuracy/latency/cost,逐类目报告);2) PG FTS GIN 索引 + BEAM 规模复测(对比有/无索引延迟);3)
active active 0 完成旺店通WMS操作规则规范迭代收尾:依据已有9域规则文档与知识来源,补齐并验证三个补充域文件(企业版补充域/帮助手册补充域/跨境版补充域)到 C:/Users/Administrator/KnowledgeBase/AI_WMS/smartcos-wms/docs/,并将迭代结果写入Trinity记忆。

Read the full file on GitHub · 139 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 Changed · +1 lines · +26 tokens per session ae312ef51578
  2. 2mo ago First seen · 138 lines · 2,714 tokens per session scan A accd77f6a57b

Subscribe to this mod's changes

trinity AGENTS.md is an instructions file published in the GitHub repository trinity-tick/trinity (1 stars, last pushed 27d ago), licensed MIT. It adds 2,740 tokens to every session, about $0.0110 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

trinity AGENTS.md compared with instructions from other repositories

trinity AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
trinity AGENTS.mdtrinity-tick/trinityInstructions file127d agoMITA2,740Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode