Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add instructions/baek-labs/hames/agents-mdgit clone --depth 1 https://github.com/baek-labs/hamesWhat 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 | $0.00880 | $0.00880 |
| Opus 5 | $0.00440 | $0.00440 |
| Sonnet 5 | $0.00176 | $0.00176 |
| Haiku 4.5 | $0.00088 | $0.00088 |
Grade A, and why
hames 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 2d 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 — 72 lines — stays where its author put it; the contents beside it link to each section on GitHub.
HAMES SYSTEM CODEX ENTRY [STRATEGIC_OS — Redirect to CLAUDE.md]
Created: 2026-05-05 Codex CLI의 자동 로드 진입 파일. **단일 진실 출처는
CLAUDE.md**이다.
Entry Redirect
이 워크스페이스의 모든 운영 규칙은 CLAUDE.md에 정의되어 있다.
시동 시 아래 6개 파일을 순서대로 읽어 컨텍스트를 구성한다:
CLAUDE.md(커널).cursor/rules/prompt_engineering.md.cursor/rules/context_engineering.md.cursor/rules/agent_engineering.md.cursor/rules/harness_engineering.mdarsenal/CLAUDE.md
Codex CLI는
@import자동 펼침이 없다.CLAUDE.md의@경로라인을 보면 그 파일들도 명시적으로 추가 로드한다.
⚠ MANDATORY ENFORCEMENT
방어선 1/2의 단일 정의 위치는 .cursor/rules/enforcement.md다.
시동 시 위 6개 파일에 더해 enforcement.md도 명시적으로 읽고 그 안의 규칙을 따른다.
Codex 전용 보충
- 시동 시 본 파일(
AGENTS.md)이 자동 로드되며, 그 결과로 위 redirect를 수행해야 한다. HamesSystem 적용= 규칙 활성화 확인 트리거. 별도 스크립트 실행 없음.- 자연어 트리거 해석은
context_engineering.md[2] CURRENT MODE 섹션의 단일 정의를 따른다. - Windows PowerShell에서 한글/이모지 파일 내용을 출력하기 전에는
arsenal/set_hames_utf8.ps1부트스트랩 적용을 우선한다. 적용 여부가 불명확하면Get-Content출력만으로 파일 손상을 판단하지 말고 UTF-8 명시 읽기 또는 verifier로 확인한다.
Hard Constraints (요약 — 상세는 harness_engineering.md)
- Scope: Hames root(
{{HAMES_ROOT}}) 내부에서 작업. 외부 파일 수정 금지. - Critical Actions:
DELETE_FILE,OVERWRITE_EXISTING,SEND_EMAIL,DEPLOY_CODE,EXECUTE_SHELL,MOVE_FILE— 명시적 사용자 승인 필요. - Workspace Lock:
.claude/.workspace_lock이 ON일 때 lock된 워크스페이스 외부 쓰기 금지. Codex 환경에 hook이 미설치되어 있다면 모델 자율 준수로 동일 규칙 적용. - Verifier: 산출물은 verifier 통과 전 정식 완료로 간주하지 않음.
핸드오프 처리
ai_comm/Memory/.hames_start_codex.md는 핸드오프/재개 부트스트랩이다. 기본 작업 소스가 아니다.- 사용자가 handoff/resume 연속성을 명시적으로 요청하거나, 파일에
Session lock: ON이 명시된 경우에만 읽고 적용한다. Session lock: ON명시 시 active workspace/agent/task를 현재 세션의 최우선 입력으로 고정한다.Session lock: OFF또는 누락 시 일반 명령에서는 부트스트랩을 읽거나 적용하지 않는다. 사용자 지시와 현재 커맨드 라우팅이 우선이다.- 오래된 부트스트랩 task 문구가
/lock,HamesSystem 적용, 일반 워크스페이스 명령에 개입하면 안 된다.
Activation 흐름
Codex CLI 시동
↓
AGENTS.md 자동 로드 (이 파일)
↓
CLAUDE.md → 4개 룰 모듈 → arsenal/CLAUDE.md 명시적 추가 로드
↓
HamesSystem 활성화 완료
↓
사용자 task 처리 시작
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.
- 2d ago First seen · 72 lines · 880 tokens per session scan A 35ea047f3029
hames AGENTS.md is an instructions file published in the GitHub repository baek-labs/hames (5 stars, last pushed 1mo ago), licensed MIT. It adds 880 tokens to every session, about $0.0044 per session on Opus 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.
Other instructions, from other repositories
sofagent GEMINI.md
Instructions for KongFangXun/sofagent, covering gemini.md · sofagent gemini cli 适配(薄挂载), 会话开始时按序加载(四层加载链), 审计强制(平台无关) and 连接 mcp server.
sofagent AGENTS.md
Instructions for KongFangXun/sofagent, covering agents.md · sofagent codex 适配(薄挂载), 会话开始时按序加载(四层加载链), modelinstructionsfile(可选), /.codex/config.toml and 审计强制(平台无关).
sail CLAUDE.md
Instructions for standardapplied/sail, covering claude.md, why sail exists, tech stack, infrastructure inside containers and conventions.
b3rys-team-os CLAUDE.md
Instructions for b3rys/b3rys-team-os, covering team-collab — project rules, 정체, 핵심 결정 (불변), 디렉토리 규칙 and 작업 규칙.
tmux-rc AGENTS.md
Instructions for querystory/tmux-rc, covering agents.md — working conventions for tmux-rc, testing changes on the live dev instance, develop in worktrees, off main, review before merge and ui iconography: no emoji — inline lucide icons.
skills AGENTS.md
Instructions for mryll/skills, covering agents.md, skill file format and non-obvious rules.