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 rules/hyunjunjeon/fastcampus_mcp_a2a_basic/code-index-firstgit clone --depth 1 https://github.com/HyunjunJeon/FastCampus_MCP_A2A_BasicWhat 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.00577 | $0.00577 |
| Opus 5 | $0.00289 | $0.00289 |
| Sonnet 5 | $0.00115 | $0.00115 |
| Haiku 4.5 | $0.00058 | $0.00058 |
Grade A, and why
code-index-first 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.
What it actually says
Code Index-First Workflow
항상 코드 편집/리뷰/탐색 전에 프로젝트 인덱스를 먼저 확인하고, 필요한 파일만 최소 범위로 수정합니다. 변경으로 영향받는 경로를 식별하고 관련 테스트/문서를 함께 갱신합니다.
Entry Points
- 전체 개요: code_index.md
- 소스 허브: src/code_index.md
하위 모듈 인덱스
- A2A 통합: src/a2a_integration/code_index.md
- 설정: src/config/code_index.md
- HITL 코어: src/hitl/code_index.md
- HITL 웹: src/hitl_web/code_index.md
- LangGraph 에이전트: src/lg_agents/code_index.md
- MCP 서버: src/mcp_servers/code_index.md
- 유틸리티: src/utils/code_index.md
Editing Policy
-
변경 계획 수립: 인덱스를 기반으로 수정 대상(필수 파일)과 주변 영향 경로(참조/임포트/호출부)를 식별합니다.
-
최소 변경: 요구사항을 충족하는 가장 작은 단위로 수정하고, 불필요한 리팩터링/포맷 변경을 피합니다.
-
일관성 유지: 새로운 파일/모듈을 추가할 경우, 해당 모듈의
code_index.md와 루트 인덱스에 역할을 2줄 이내로 추가합니다. -
영향 분석: 수정 후 호출 관계, A2A/HITL/LangGraph 경계면(서버/클라이언트/그래프 노드/웹 UI)을 재점검합니다.
-
검증: 관련 테스트 스위트와 예제 스크립트를 우선 실행합니다. 자세한 위치는 README.md와
tests/의 개별 테스트 파일을 참고하세요.
참고
- 인덱스와 불일치 발견 시 먼저 인덱스를 갱신한 뒤 코드를 정리합니다.
- 링크는 항상 클릭 가능한 마크다운 형태(문서)로 유지합니다.
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 · 41 lines · 577 tokens per session scan A 2d465a56df00
code-index-first is a cursor rule published in the GitHub repository HyunjunJeon/FastCampus_MCP_A2A_Basic (11 stars, last pushed 8mo ago), licensed MIT. It adds 577 tokens to every session, about $0.0029 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 cursor rules, from other repositories
angular-20
This rule provides comprehensive best practices and coding standards for Angular development, focusing on modern TypeScript, standalone components, signals, and performance optimizations.
dev-standard
Apache Superset development standards and guidelines for Cursor IDE.
cli-error-handling
CLI command error handling patterns.
prefer-direct-imports-over-module-mocks
Prefer extracting a testable core over vi.mock / vi.resetModules when unit tests need to reach production logic entangled with config, env, or singletons.
control-plane-descriptors
Control plane descriptor and instance implementation patterns.
family-instance-domain-actions
Family instance domain action implementation patterns.