에이전트 워크플로¶
2단계 조회¶
cgrep agent는 결정적 출력과 낮은 토큰 사용량에 맞게 최적화되어 있습니다.
locate: 후보를 작고 간결하게 반환expand: 선택한 ID에 대해서만 풍부한 컨텍스트 조회
# 1단계: locate (json2 중심 출력)
cgrep agent locate "where token validation happens" --changed --budget balanced --compact
# 단축 별칭 형태:
cgrep a l "where token validation happens" -u -B balanced --compact
# 첫 번째 결과 ID 선택 예시
ID=$(cgrep agent locate "token validation" --compact | jq -r '.results[0].id')
# 2단계: 선택 결과 확장
cgrep agent expand --id "$ID" -C 8 --compact
참고:
- agent locate/expand는 페이로드 최소화 기본값 사용
- agent locate는 반복 프롬프트에 대한 캐시를 지원
연동 설치¶
지원 에이전트에 지침 설치:
cgrep agent install claude-code
cgrep agent install codex
cgrep agent install copilot
cgrep agent install cursor
cgrep agent install opencode
제거:
cgrep agent uninstall claude-code
cgrep agent uninstall codex
cgrep agent uninstall copilot
cgrep agent uninstall cursor
cgrep agent uninstall opencode
기존 install-*, uninstall-* 명령도 호환성 때문에 유지됩니다.
Cursor 참고:
- agent install cursor는 프로젝트 로컬 규칙 파일 .cursor/rules/cgrep.mdc를 생성합니다.
- Cursor용 MCP도 지원합니다: cgrep mcp install cursor