hames AGENTS.md

An entry guide for Hames that redirects coding agents to CLAUDE.md and several rule files before work begins. Those files define the project's prompt, context, agent, harness, and enforcement rules.

In plain words
What is it for?
Starting work in the Hames repository, loading its operating rules, interpreting natural-language triggers, and following its handoff and scope constraints. It is an entry point rather than a description of the application's features.
Why use it?
It makes the correct startup reading order explicit, including rules that are not automatically imported by Codex. It also states boundaries such as working only inside the Hames root and following the project's enforcement rules.

Instructions file for CodexOpenCode

Install

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.

agentmods
npx agentmods add instructions/baek-labs/hames/agents-md
Clone the repo
git clone --depth 1 https://github.com/baek-labs/hames

Made for: Codex, OpenCode.

Per session 880 This file is loaded in full into every session.
When invoked 880 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
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 $0.00880 $0.00880
Opus 5 $0.00440 $0.00440
Sonnet 5 $0.00176 $0.00176
Haiku 4.5 $0.00088 $0.00088

Measured 2d ago against content hash 35ea047f3029, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

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.

AGENTS.md · 72 lines

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개 파일을 순서대로 읽어 컨텍스트를 구성한다:

  1. CLAUDE.md (커널)
  2. .cursor/rules/prompt_engineering.md
  3. .cursor/rules/context_engineering.md
  4. .cursor/rules/agent_engineering.md
  5. .cursor/rules/harness_engineering.md
  6. arsenal/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 처리 시작

Read the full file on GitHub · 72 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. 2d ago First seen · 72 lines · 880 tokens per session scan A 35ea047f3029

Subscribe to this mod's changes

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.