explore

explore is a command for coding agents from sangrokjung/claude-forge. It costs 14 tokens per session (2,003 once invoked), scanned A, original, MIT.

A command for exploring a codebase to understand its structure and find related files, definitions, uses, and Git history. It can expand search terms and optionally trace dependencies.

In plain words
What is it for?
Finding files and code related to a keyword, reviewing matching definitions and uses, checking related commits, and tracing dependencies.
Why use it?
It reduces the time spent searching unfamiliar code and helps reveal how a feature or keyword is connected across a project.

Command

Part of the claude-forge plugin — 5 skills, 35 commands, 17 agents shipped together

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 commands/sangrokjung/claude-forge/explore
Clone the repo
git clone --depth 1 https://github.com/sangrokjung/claude-forge

Or install claude-forge, the plugin that ships this one along with the rest of its 5 skills, 35 commands, 17 agents.

Wrote 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.

agentmods badge for explore

README.md
[![agentmods](https://agentmods.dev/badge/commands/sangrokjung/claude-forge/explore.svg)](https://agentmods.dev/commands/sangrokjung/claude-forge/explore)
Your own site
<a href="https://agentmods.dev/commands/sangrokjung/claude-forge/explore"><img src="https://agentmods.dev/badge/commands/sangrokjung/claude-forge/explore.svg" alt="Measured on agentmods" height="20"></a>
Per session 14 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,003 The whole file, excluding the scripts and references it only reads on demand.
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.00014 $0.02003
Opus 5 $0.00007 $0.01001
Sonnet 5 $0.00003 $0.00401
Haiku 4.5 $0.00001 $0.00200

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

Security

Grade A, and why

explore 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 4d 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.

commands/explore.md · 294 lines

How it starts

The opening of the file, as written. The whole thing — 294 lines — stays where its author put it; the contents beside it link to each section on GitHub.

/explore - 반복 정제 코드베이스 탐색 (v6)


0단계: 파라미터 파싱

인자 설명 기본값
검색어 탐색할 키워드, 함수명, 패턴 (필수) -
--auto 자동 정제 모드 (3회 반복) 꺼짐
--interactive 대화형 정제 모드 기본값
--depth N 최대 탐색 깊이 3
--scope 경로 탐색 범위 제한 프로젝트 루트
--deps 의존성 추적 포함 꺼짐

1단계: 키워드 확장

입력 키워드에서 관련 키워드를 자동 확장한다:

입력 확장
auth login, logout, session, jwt, token, authenticate
payment checkout, order, cart, invoice, billing
database query, model, schema, migration, connection
user profile, account, member, customer
api endpoint, route, handler, controller

2단계: 초기 탐색 (넓은 범위)

2-1. 파일명 검색

find {scope} -type f -name "*{검색어}*" \
  -not -path "*/node_modules/*" \
  -not -path "*/.git/*" \
  -not -path "*/dist/*" \
  -not -path "*/.next/*"

2-2. 코드 내용 검색

Grep 도구를 사용하여 코드 내 패턴을 검색한다.

패턴: {검색어} 범위: {scope} 또는 프로젝트 루트 제외: node_modules, .git, dist, .next, build

2-3. Git 히스토리 검색

git log --all --oneline --grep="{검색어}" -10

2-4. 초기 결과 정리

결과를 카테고리별로 분류한다:

  • 파일: 파일명에 검색어가 포함된 파일
  • 정의: 함수/클래스/타입 정의
  • 사용처: import, 호출, 참조
  • 커밋: 관련 Git 히스토리

관련도 점수 계산:

  • 파일명 매칭: +30점
  • 내용 매칭 (키워드 수): +10점/키워드
  • 디렉토리 매칭: +20점
  • import/export 빈도: +5점/건

3단계: 1차 필터링 및 요약

상위 15개 파일을 선정한다:

  1. 각 파일 첫 50줄 읽기
  2. 구조 분석 (함수, 클래스, export)
  3. 카테고리 분류

카테고리:

  • core: 핵심 로직
  • api: API 핸들러
  • ui: 컴포넌트
  • types: 타입 정의
  • utils: 유틸리티
  • test: 테스트

4단계: 정제 라운드 (반복)

--interactive 모드 (기본)

초기 결과를 사용자에게 보여주고, 정제 방향을 질문한다:

탐색 결과 (라운드 1):
  파일 [N]개 | 정의 [N]개 | 사용처 [N]개 | 커밋 [N]개

  정제 옵션:
    1. 특정 파일 자세히 보기
    2. 범위 좁히기 (디렉토리/파일 타입)
    3. 관련 패턴 추가 탐색
    4. 의존성 트리 추적
    5. 탐색 종료

사용자 선택에 따라 다음 라운드를 실행한다. 최대 --depth 횟수만큼 반복한다.

--auto 모드

자동으로 3회 정제를 수행한다:

라운드 1: 넓은 범위 탐색 (위 2단계)

라운드 2: 정의와 사용처 교차 분석

  • 정의된 파일에서 export 패턴 확인
  • 사용처에서 import 패턴 확인
  • 의존성 방향 파악

라운드 3: 핵심 파일 심층 분석

  • 가장 관련성 높은 파일 3개를 Read로 읽기
  • 함수 시그니처, 타입 정의, 주요 로직 추출
  • 관련 테스트 파일 확인

Read the full file on GitHub · 294 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. 4d ago First seen · 294 lines · 14 tokens per session scan A 8a5ca3f6ef5a

Subscribe to this mod's changes

explore is a command published in the GitHub repository sangrokjung/claude-forge (822 stars, last pushed yesterday), licensed MIT. It adds 14 tokens to every session and 2,003 once invoked, about $0.0001 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-30.