AI-company: Instructions file for Codex

AGENTS.md

AI-company AGENTS.md is an instructions file for Codex, OpenCode from CronusL-1141/AI-company. It costs 2,229 tokens per session, scanned A, original, MIT.

A repository instruction file that tells coding agents how to work in the AI-company codebase. It covers project rules, team roles, memory handling, releases, and safe work across multiple sessions.

In plain words
What is it for?
Use it to guide coding, delegation, memory updates, release preparation, and Git worktree use in this repository.
Why use it?
It gives agents consistent local rules instead of making them infer project conventions. It also reduces conflicts when several agent sessions edit the repository.

Instructions file for CodexOpenCode

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

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

Reuse

Borrowing it

Nothing to install: this file belongs to CronusL-1141/AI-company. 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/CronusL-1141/AI-company/master/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/CronusL-1141/AI-company

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 AI-company AGENTS.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/cronusl-1141/ai-company/agents-md"><img src="https://agentmods.dev/badge/instructions/cronusl-1141/ai-company/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 2,229 This file is loaded in full into every session.
When invoked 2,229 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.02229 $0.02229
Opus 5.5 $0.00892 $0.00892
Sonnet 5.5 $0.00446 $0.00446
Haiku 4.5 $0.00223 $0.00223

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

Security

Grade A, and why

AI-company 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 16d 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 · 59 lines

How it starts

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

AGENTS.md(自动生成 · 请勿手改)

本文件是仓库根目录 CLAUDE.md 共享段的等价副本(<!-- codex:end --> 标记之前的部分),供读取 AGENTS.md 约定的编码助手使用。 下方正文逐字节复制自 CLAUDE.md 的共享段;标记之后是 Claude Code 宿主专属段(派工模型分层、Workflow 编排等),不在本文件内。

  • 改规则请改 CLAUDE.md,再跑 python3 scripts/gen_agents_md.py 重新生成本文件,与源改动同批提交。
  • 标准头正文在 plugin/harness/codex/agents_md_header.md,生成器与机检共读这一份。
  • 恒等式由红线机检 I18 对钉(scripts/check_agents_md.py):AGENTS.md ≠ 标准头 + CLAUDE.md 共享段 即红,共享段含宿主专属词亦红。

AI Team OS

技术栈: Python 3.12 + FastAPI | React 19 + Vite | SQLite 架构: Storage → API → Dashboard(详见 docs/architecture.md)

核心约束

  • 中文是默认语言(对话、文档、任务/记忆条目、commit message);例外:README.md 与 CHANGELOG.md 保持英文为正本(README.zh-CN.md / CHANGELOG.zh-CN.md 是镜像译本)、代码标识符用英文
  • 共享类型只引用 src/aiteam/types.py
  • IO 路径一律 async,请求处理里禁阻塞调用(一次同步 Git 扫描就曾拖住整个 API);秒级纯 Python 计算同样不能在请求处理里跑,放进线程也会抢 GIL,要放子进程(记忆整理 candidates 曾冻住 API 13 分钟)

Leader核心行为

  • 新需求先加入任务墙,系统级功能先写设计文档
  • 用户给出偏好、纠正或设计意图时当场落账:运行期 agent 需要被告知的写方向层(memory_add),开发期产品设计写设计文档与任务墙 decision;只影响单个任务的用 task_memo_add(字数上限、桶配额与整理流程见 docs/memory-v2-design.md)
  • 发版走 skill /os-release(清单唯一落点);不论走没走 skill:commit/tag 须用户批准,push 与 publish 由用户执行

多会话并行纪律

  • 本仓库可能同时有多个会话在工作(Claude Code 与 Codex 都算)。第二个及之后的会话改代码必须用 git worktree 隔离,禁止共享同一 checkout 写代码。
  • worktree 一律建在仓库内 .worktrees/<名字>(已 gitignore),禁止 git worktree add ../… 落到同级目录:OS 按「子目录归属」把仓库内子目录解析到本项目,同级目录解析不到。用完 git worktree remove <路径> 再 git worktree prune。
  • 确需在主 checkout 操作:动手前 git branch --show-current,切分支前 git log --oneline -3——共享 checkout 切分支会带走别人未察觉的提交(实录见 docs/architecture.md 附录)。
  • 提交前跑 bash scripts/check_invariants.sh(红线条目以脚本输出为准)。本机全量测试用 python3 -m pytest tests/ -n 4 --dist loadfile(约 5 分钟;CI 保持串行)。

刻意决策 — 禁止悄悄回退

以下设计看着反常但全是故意的(各有血泪史或机检背书),发现"可以修好"的冲动时先停手:

  • venv 禁令:四类进程共享依赖,坚持系统 Python + sys.executable(I5 只扫 src/aiteam/**.py,在 shell 里建 venv 它抓不到)
  • hook 多副本是故意的:plugin/hooks 与 src/aiteam/hooks 同名文件逐字节一致(I1,共享核 hook_core.py 在含 Codex 适配器的三处各存一份)——禁止「去重」,改一处必须同步所有副本
  • tasks.config.memo 是冻结档案:记忆 v2 升表后新 memo 只进 task_memos 表,旧 JSON 保留作历史——不是脏数据,别清理也别再写入
  • README 里的工具数/页面数以实测为准(I6 扫双语两份)——别手改回旧值
  • 模型默认值留空(仅指 DB 观测字段):agents.model 未知就空着由观测回填,别补具体型号(写死必过时)
  • 无定时器/后台守护:CC 非常驻,周期 cron 已刻意退役,一律按需工具——别"补回"调度

Read the full file on GitHub · 59 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. 16d ago Changed 1687eeffc79d
  2. 26d ago Changed · +62 tokens per session db7a38884b52
  3. 1mo ago Changed · +2 lines · +285 tokens per session f774e36f45b0
  4. 1mo ago Changed · +96 tokens per session f02899bc47df
  5. 1mo ago Changed · -9 lines · -701 tokens per session 2c0dbd22fe79
  6. 1mo ago Changed · +1 lines · +127 tokens per session 07a416c90da8
  7. 1mo ago First seen · 65 lines · 2,360 tokens per session scan A 2ecc97d9a548

Subscribe to this mod's changes

AI-company AGENTS.md is an instructions file published in the GitHub repository CronusL-1141/AI-company (374 stars, last pushed 16d ago), licensed MIT. It adds 2,229 tokens to every session, about $0.0089 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-09-08.

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,786 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,731 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