take-ur-turn: Instructions file for Codex

AGENTS.md

take-ur-turn AGENTS.md is an instructions file for Codex, OpenCode from ianf-ai/take-ur-turn. It costs 1,126 tokens per session, scanned A, original, Apache-2.0.

A set of AGENTS.md instructions for developing Take Ur Turn, a system where multiple coding agents share task context and pass work through design, implementation, review, and approval stages. It documents the TypeScript project structure, local JSON storage, and development rules.

In plain words
What is it for?
Use it when changing the Take Ur Turn code, its shared-context MCP server, task workflow, schemas, or tests.
Why use it?
It gives agents the project’s current design, file conventions, data rules, and requirement to run tests or builds before finishing work.

Instructions file for CodexOpenCode

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

This is ianf-ai/take-ur-turn's own configuration. It tells Codex and OpenCode how to work on take-ur-turn 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 take-ur-turn configures →

Reuse

Borrowing it

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

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 take-ur-turn AGENTS.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/ianf-ai/take-ur-turn/agents-md"><img src="https://agentmods.dev/badge/instructions/ianf-ai/take-ur-turn/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,126 This file is loaded in full into every session.
When invoked 1,126 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.01126 $0.01126
Opus 5.5 $0.00450 $0.00450
Sonnet 5.5 $0.00225 $0.00225
Haiku 4.5 $0.00113 $0.00113

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

Security

Grade A, and why

take-ur-turn 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 9d 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 · 65 lines

How it starts

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

AGENTS.md

本文件给参与本仓库开发的 coding agent(Codex CLI / ZCode / Pi 等)提供项目约定。

项目简介

TUT(Take Ur Turn):多 coding agent 协作系统。核心是 Context Hub——本地 MCP Server,作为 Agent 之间的共享记忆;任务状态由记录序列派生(纯函数,写入永不因流程被拒),Notifier 轮询状态变化、按 manual/auto 模式驱动设计 → 实现 → Review → 修改的流转,人只做关键节点审批。

当前有效方案是 design/system-design.md(系统设计文档),开发以它为准。开发前必读:

  • design/system-design.md — 架构、状态派生规则、MCP 工具 schema、代码结构
  • design/context-design.md — 上下文放什么、怎么管理(scope、记录类型、正文内容要求)

技术栈

  • 语言:TypeScript(Node.js ≥ 20)
  • MCP SDK:@modelcontextprotocol/sdk
  • 存储:本地 JSON 文件(.context-hub/ 目录,按 task 组织,每次写入带版本号);全部读写经 Store/HTTP 接口进行,新功能不得绕过接口直接操作存储文件
  • 依赖原则:当前零运行时外部依赖(MCP SDK 除外,zod 与 SDK 并列显式声明以保单实例),不引入数据库

目录结构(约定)

take-ur-turn/
├── design/
│   ├── system-design.md               # 系统设计(当前有效方案)
│   ├── context-design.md              # 上下文设计(放什么、怎么管理)
│   ├── herdr-host.md                   # Herdr 宿主实现
│   └── standalone-host.md              # Standalone 宿主实现
├── skills/            # Agent skill 文本
├── scripts/           # 粘合脚本(信号源 / 启动器契约)
├── src/               # Context Hub 源码
├── test/              # vitest 测试
└── .context-hub/      # 运行时数据(gitignore)

开发约定

  • 完成编码后必须运行测试/构建验证,不允许只改代码不验证就交差
  • 状态派生规则以 design/system-design.md 3.1 节的规则表为准,修改规则属于设计变更,先在 system-design.md 中更新
  • MCP 工具的输入输出 schema 保持向后兼容;破坏性变更需在任务中明确说明
  • 并发写入同一任务时需处理文件锁或乐观并发
  • 提交信息使用英文,格式:type: summary(如 feat: add context.publish tool)

不变量(所有 Agent 必须遵守)

  • 记录永不删除:.context-hub/ 落盘的记录是不可变的审计材料;处置误写的正确动作是 tut decide close 或补一条说明 note,绝不是删文件
  • 写入永不拒绝 ≠ 许可:Hub 不做流程执法是信任设计,任何 Agent 不得利用写入自由绕过人工审批门
  • 预写答案的评测材料存放纪律:预先写明答案或预期结果的材料(预写答案的评测方案、含预选结果的实验材料)不得放入本仓库——Agent 会读到预写内容——存于仓库外

角色分工(多 Agent 协作时)

角色 职责 典型载体
Architect 需求分析、技术方案、架构决策 Codex CLI (GPT)
Executor 编码实现、按 review 反馈修改 Pi (GLM)
Reviewer 代码与方案 Review Codex CLI (GPT)
Host(驱动者) 环境检查、开工盘点与任务发起、轮次推进、审批点汇报、异常处置与纠偏落实——驱动不代工 任一 Agent;担任时加载 skills/host.md

Read the full file on GitHub · 65 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. 9d ago Changed · +2 lines · +35 tokens per session 02b3a0aa5bd8
  2. 10d ago Changed · -3 lines · -79 tokens per session 19e737c8aada
  3. 1mo ago Changed · +3 lines · +66 tokens per session 4a738aafa798
  4. 1mo ago Changed · +4 lines · +126 tokens per session ee7e31e343f4
  5. 1mo ago Changed d6db58738556
  6. 2mo ago First seen · 59 lines · 978 tokens per session scan A b88a87dd44ee

Subscribe to this mod's changes

take-ur-turn AGENTS.md is an instructions file published in the GitHub repository ianf-ai/take-ur-turn (1 stars, last pushed 5d ago), licensed Apache-2.0. It adds 1,126 tokens to every session, about $0.0045 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

Other instructions, from other repositories

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 9,715 tokens

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,461 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, cache eligibility and rollout and applying the notice (cutover).

microsoft/vscode · 5,262 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,680 tokens

vscode copilot-instructions.md

Copilot instructions for microsoft/vscode, covering vs code copilot instructions, project overview, root folders, core architecture (src/ folder) and built-in extensions (extensions/ folder).

microsoft/vscode · 2,750 tokens

deno copilot-instructions.md

Copilot instructions for denoland/deno, covering deno development guide for github copilot, network access, high level overview, key directories and key files to understand first.

denoland/deno · 3,077 tokens