cursorrules

A workspace rule loader for Cursor that uses CLAUDE.md as the main source of instructions and reads related rule files when starting.

In plain words
What is it for?
It is for setting up a Cursor session, loading rule and context documents, activating workspace modes, and optionally reading a handoff file from an earlier session.
Why use it?
It gives Cursor one defined set of operating rules and context, reducing confusion when rules are spread across several files.

Cursor rule for Cursor

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 rules/baek-labs/hames/cursorrules
Clone the repo
git clone --depth 1 https://github.com/baek-labs/hames

Made for: Cursor.

Per session 525 This file is loaded in full into every session.
When invoked 525 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.00525 $0.00525
Opus 5 $0.00262 $0.00262
Sonnet 5 $0.00105 $0.00105
Haiku 4.5 $0.00052 $0.00052

Measured yesterday against content hash 3d88e821d9a8, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

cursorrules 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 yesterday.

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.

.cursorrules · 45 lines

What it actually says

HAMES SYSTEM CURSOR ENTRY v5.5 [STRATEGIC_OS — Redirect to CLAUDE.md]

Updated: 2026-06-16 Cursor의 자동 로드 진입 파일. **단일 진실 출처는 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

Cursor는 @import 자동 펼침이 없을 수 있다. CLAUDE.md@경로 라인을 보면 그 파일들도 명시적으로 추가 로드한다.


⚠ MANDATORY ENFORCEMENT

방어선 1/2의 단일 정의 위치는 .cursor/rules/enforcement.md다. 시동 시 위 6개 파일에 더해 enforcement.md도 명시적으로 읽고 그 안의 규칙을 따른다.


Cursor 전용 보충

  • .cursorrules 로드 시점에 규칙 활성화 완료. 별도 스크립트 실행 불필요.
  • HamesSystem 적용 = 규칙 활성화 확인 트리거. 스크립트/파일 생성 없음.
  • 자연어 트리거 해석은 context_engineering.md [2] CURRENT MODE 섹션의 단일 정의를 따른다 (HamesSystem 적용, <Workspace> 모드로, <Workspace> 모드로 고정, 고정 해제).

핸드오프 처리

  • ai_comm/Memory/.hames_start_gemini.md가 존재하면 핸드오프 부트스트랩으로 읽는다.
  • Session lock: ON 명시 시에만 active workspace/agent/task를 고정한다.
  • Session lock: OFF 또는 누락 시 부트스트랩은 권고이며 사용자 지시가 우선.
  • 부트스트랩 파일은 정본(Standard). 세션 상태 변경을 기록하지 않으며 그대로 유지한다.
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. yesterday First seen · 45 lines · 525 tokens per session scan A 3d88e821d9a8

Subscribe to this mod's changes

cursorrules is a cursor rule published in the GitHub repository baek-labs/hames (5 stars, last pushed 1mo ago), licensed MIT. It adds 525 tokens to every session, about $0.0026 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.