Borrowing it
Nothing to install: this file belongs to jh941213/codex-lattice. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/jh941213/codex-lattice/main/AGENTS.mdgit clone --depth 1 https://github.com/jh941213/codex-latticeWrote 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.
[](https://agentmods.dev/instructions/jh941213/codex-lattice/agents-md)<a href="https://agentmods.dev/instructions/jh941213/codex-lattice/agents-md"><img src="https://agentmods.dev/badge/instructions/jh941213/codex-lattice/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.
<a href="https://agentmods.dev/instructions/jh941213/codex-lattice/agents-md"><img src="https://agentmods.dev/badge/instructions/jh941213/codex-lattice/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.03523 | $0.03523 |
| Opus 5.5 | $0.01409 | $0.01409 |
| Sonnet 5.5 | $0.00705 | $0.00705 |
| Haiku 4.5 | $0.00352 | $0.00352 |
Grade A, and why
codex-lattice 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.
How it starts
The opening of the file, as written. The whole thing — 137 lines — stays where its author put it; the contents beside it link to each section on GitHub.
AGENTS.md
Codex 는 이기준을 잘 읽고 작업을 수행합니다.
Codex Lattice Rules
- 매 작업 시작 시 이 문서를 기준으로 Git 전략을 먼저 정한다: 현재 브랜치, 변경 범위, 커밋 분리 기준, 검증 명령, 롤백 방식.
- 작업 단위가 커밋 가능해지면
.codex-lattice/commits/에 커밋 후보 로그를 남긴다. - 모든 hook 이벤트는
.codex-lattice/logs/events.jsonl에 기록한다. 이 파일은 운영 추적용이며 모델 컨텍스트로 먼저 읽지 않는다. - 주요 에러가 반복되거나 작업을 막으면
.codex-lattice/model-visible/MAJOR_ERRORS.md를 갱신한다. 재시도 전 이 파일은 모델이 읽어야 한다. - 여러 지시를 순차 처리하거나 compact 이후 재개할 때는
docs/harness/REFLECTION.md를 읽고 최신 사용자 요청 기준으로 방향을 재확인한다. - 코딩 작업 중 변경된 구현과 문서는 함께 움직여야 한다. 모든 작업은 최종 응답 전
docs/harness/를 실제 diff와 검증 결과에 맞춰 갱신한다. - 숨은 지식 금지: 반복되는 운영 규칙은 hook, 스크립트, 또는 이 문서에 남긴다.
Always-On Harness
- Git 전략, 작업 로그, 주요 에러 로그, docs sync는 사용자가 호출하는 스킬이 아니라 모든 작업의 기본 루프다.
hooks/codex-git-strategy-log.sh는 작업 시작 프롬프트를 기준으로 Git 전략 초안을 남긴다. 에이전트는 실제 변경 전 이 전략을 확인하고 필요하면 보정한다.hooks/codex-docs-sync-log.sh는 diff가 생기면.codex-lattice/docs-sync-queue.jsonl에 동기화 큐를 남긴다. 에이전트는 최종 응답 전 이 큐를 반영해docs/harness/를 갱신한다.hooks/codex-simplify-gate.sh는 코드 diff가 누적되거나 HITL/Stop 직전에.codex-lattice/model-visible/SIMPLIFY_REQUIRED.md를 남긴다. 에이전트는 사람에게 넘기기 전에 단순화/정규화와 재검증을 끝낸다.hooks/codex-reflection-reminder.sh는 복잡한 순차 지시나 compact 이후.codex-lattice/model-visible/REFLECTION_REQUIRED.md를 남긴다. 에이전트는docs/harness/REFLECTION.md를 읽고 instruction ledger를 재구성한 뒤 계속한다.- 코드 diff가 생기면
.codex-lattice/model-visible/DOCS_AGENT_REQUIRED.md를 확인한다. sub-agent 사용이 가능한 실행에서는docs_maintainer로 기능명세/API 명세/인프라 정의/검증 문서를 맞추고, 불가능하면 부모 에이전트가 직접 갱신한다. - sub-agent를 쓰는 작업은
docs/harness/SUBAGENT_PROTOCOL.md를 따른다. 부모 에이전트가 plan/task/context를 추출해 전달하고, sub-agent에게 긴 계획 파일을 알아서 읽게 하지 않는다. - hidden logs는 기본 컨텍스트가 아니다. 장애 분석, 재시도, 감사 요청 때만 읽는다.
- 작업 시작 또는 compact 이후
.codex-lattice/model-visible/CONTEXT_PACKET.md가 있으면 먼저 읽어 필요한 파일과 검증 후보를 좁힌다. - HITL, 리뷰, PR, 최종 응답 전
.codex-lattice/model-visible/REVIEW_PACKET.md와HARNESS_HEALTH.md가 있으면 gate, risk, validation evidence를 확인한다.
Reflection Guard
- 최신 사용자 메시지가 항상 우선한다. 이전 목표, 이전 계획, compact 요약, hidden log가 최신 지시를 덮어쓰면 안 된다.
- 다단계 작업은 시작 전
docs/harness/REFLECTION.md의 instruction ledger를 만든다: 최신 요청, 순서, 의존성, 금지사항, 현재 단계, 완료 기준. - 주요 단계가 끝날 때마다 다음 행동이 최신 요청과 맞는지 확인한다. 어긋나면 즉시 멈추고 방향을 바로잡는다.
- 최종 응답 전에는 newest-request check를 수행한다. 완료, 생략, 보류, 검증, git 상태를 최신 요청 기준으로 말한다.
- 모호하지만 안전한 로컬 관례가 있으면 진행하고 가정을 문서화한다. 비용, 보안, 데이터 손실, git history가 걸리면 사용자에게 확인한다.
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.
- 2mo ago First seen · 137 lines · 3,523 tokens per session scan A b7d53319c4d0
codex-lattice AGENTS.md is an instructions file published in the GitHub repository jh941213/codex-lattice (19 stars, last pushed 5mo ago), licensed MIT. It adds 3,523 tokens to every session, about $0.0141 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-30.
codex-lattice AGENTS.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| codex-lattice AGENTS.mdjh941213/codex-lattice | Instructions file | 19 | 5mo ago | MIT | A | 3,523 | Codex, OpenCode |
| vscode buildNext.instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 9,719 | GitHub Copilot |
| next.js AGENTS.mdvercel/next.js | Instructions file | 143k | yesterday | MIT | A | 7,461 | Codex, OpenCode |
| langchain AGENTS.mdlangchain-ai/langchain | Instructions file | 149k | yesterday | MIT | A | 4,680 | Codex, OpenCode |
| vscode oss-third-party-notices.instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 5,516 | GitHub Copilot |
| vscode copilot-instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 3,093 | GitHub Copilot |
| deepseek-harness AGENTS.mddeepseek-ai/deepseek-harness | Instructions file | 274k | 2d ago | MIT | A | 4,313 | Codex, OpenCode |