You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Remove the retrieve_docs MCP tool; keep search_docs + get_doc_content
retrieve_docs was search_docs (find relevant docs) + get_doc_content (read one)
composed into a single call, plus opt-in scoring "explain" diagnostics agents
rarely use. It overlapped the core doc-search surface, so drop it and let
callers compose search_docs -> get_doc_content.
- remove the retrieve_docs MCP tool: handler, DB helper, response DTO aliases,
and the retrieve_docs-only doc-content readers (readIndexedDocContent /
resolveIndexedDocPath) in internal/mcp/handler_docs.go; registration in
tools_docs.go
- collapse the shared retrieval engine now that the explain path is gone:
FromDBWithOptions folds into FromDB, BuildDBResultWithOptions into
BuildDBResult; delete the Options{Explain} type and the dead MatchedFields /
ScoreDBFieldBreakdown helpers
- drop the four explain-only fields (field_scores, literal_score,
expanded_terms, expansion_score) from ragindex.RetrieveResult
- sweep docs/skills to route doc retrieval through search_docs + get_doc_content
search_docs, get_doc_content, the retrieval scoring core, ragindex, and the Wiki
are unchanged — they only ever used the non-explain path, so their behavior is
byte-identical (independently reviewed). MCP tools 26 -> 25.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
`ccg serve` is the local stdio MCP entry point. Self-hosted HTTP mode is provided by
@@ -58,7 +58,7 @@ Use `.ccg.yaml` to manage project defaults such as exclude patterns and DB setti
58
58
When looking for code locations, related implementations, call relationships, impact radius, or architecture context,
59
59
use ccg MCP tools and Agent Skills first.
60
60
61
-
- For natural-language code understanding, module exploration, and architecture context, prefer the `/ccg-docs` skill and `retrieve_docs`, `get_rag_tree`, `get_doc_content`.
61
+
- For natural-language code understanding, module exploration, and architecture context, prefer the `/ccg-docs` skill: use `search_docs` to find relevant docs, then `get_doc_content` to read one (with `get_rag_tree` for module context).
62
62
- For exact symbol locations, call relationships, and graph metadata, use ccg MCP `query_graph`, `get_node`, `get_minimal_context`, or the `/ccg` skill.
63
63
- For annotation/keyword-based candidate search, use ccg MCP `search` or `ccg search` as a supplement.
64
64
- For impact radius, flows, dead code, and structural analysis, prefer the `/ccg-analyze` skill and related MCP tools (`get_impact_radius`, `trace_flow`, `find_dead_code`, `get_architecture_overview`).
Copy file name to clipboardExpand all lines: guide/annotations.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,9 +6,9 @@ focused search can leverage business context. Annotations are indexed for
6
6
index.
7
7
8
8
For LLM-agent natural-language exploration, prefer the docs/RAG path first:
9
-
`ccg docs`, then MCP `retrieve_docs`, `get_rag_tree`, and `get_doc_content`.
10
-
Use `ccg search` when you need a focused list of
11
-
annotation/keyword-matched symbol candidates.
9
+
`ccg docs`, then use MCP `search_docs` to find relevant docs and `get_doc_content`
10
+
to read one (with `get_rag_tree` for module context). Use `ccg search` when you
11
+
need a focused list of annotation/keyword-matched symbol candidates.
12
12
13
13
Annotation quality is validated by `ccg lint`. For category meanings such as `unannotated`, `incomplete`, `dead-ref`, `contradiction`, and `drifted`, see [Lint Guide](lint.md).
14
14
@@ -65,7 +65,7 @@ The path and symbol are optional, so `ccg://auth-svc/internal/auth` can point at
65
65
66
66
## Retrieval Quality
67
67
68
-
Annotations are retrieval features. `retrieve_docs` and generated docs rank
68
+
Annotations are retrieval features. `search_docs` and generated docs rank
69
69
file-level evidence from structured buckets such as `@index`, `@intent`,
70
70
`@domainRule`, `@sideEffect`, `@requires`, `@ensures`, and `@see`. Better
71
71
annotations make natural-language retrieval more precise, but only when the
Copy file name to clipboardExpand all lines: guide/ko/README.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,10 +6,10 @@ code-context-graph의 문서 인덱스입니다. 한국어 문서는 영어 가
6
6
7
7
CCG는 GPT, Claude, Codex 같은 LLM 기반 코딩 에이전트가 개발 중 코드베이스 맥락을 정확하고 작게 가져오도록 만든 로컬/셀프호스트 context infrastructure입니다. 일반 SaaS 관리자용 제품이 아니라, CLI, MCP, 로그, 문서를 이해하는 개발자와 코딩 에이전트가 코드 검색, 영향 분석, 호출 그래프, 문서/RAG, bounded response를 활용하도록 설계되었습니다.
8
8
9
-
LLM 에이전트 워크플로우에서는 자연어 기반 코드 탐색을 DB-backed
10
-
`retrieve_docs`에서 시작하십시오. Top1 정답을 강제하기보다 작은 파일 후보,
11
-
matched fields, evidence node로 빠르게 경로를 좁힌 뒤 graph/search 도구로
12
-
정확한 위치와 관계를 확인하는 흐름을 권장합니다.
9
+
LLM 에이전트 워크플로우에서는 자연어 기반 코드 탐색을 docs/RAG 경로에서
10
+
시작하십시오. `search_docs`로 관련 문서를 찾은 뒤 `get_doc_content`로 하나를
Copy file name to clipboardExpand all lines: guide/ko/annotations.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@
4
4
5
5
코드에 구조화된 메타데이터를 추가하여 AI, 생성 문서, RAG, 집중 검색이 비즈니스 컨텍스트를 활용할 수 있도록 합니다. 어노테이션은 `ccg search`를 위해 인덱싱되며, RAG 인덱스의 입력이 되는 생성 Markdown에도 반영됩니다.
6
6
7
-
LLM 에이전트의 자연어 기반 코드 탐색에는 docs/RAG 경로를 먼저 사용하십시오. `ccg docs`를 실행한 뒤 MCP `retrieve_docs`, `get_rag_tree`, `get_doc_content`를 사용합니다. `ccg search`는 어노테이션/키워드에 매칭되는 심볼 후보 목록이 필요할 때 사용하십시오.
7
+
LLM 에이전트의 자연어 기반 코드 탐색에는 docs/RAG 경로를 먼저 사용하십시오. `ccg docs`를 실행한 뒤 MCP `search_docs`로 관련 문서를 찾고 `get_doc_content`로 하나를 읽습니다(모듈 맥락은 `get_rag_tree`). `ccg search`는 어노테이션/키워드에 매칭되는 심볼 후보 목록이 필요할 때 사용하십시오.
8
8
9
9
어노테이션 품질은 `ccg lint`에 의해 검증됩니다. `unannotated`, `incomplete`, `dead-ref`, `contradiction`, `drifted`와 같은 카테고리의 의미는 [Lint 가이드](lint.md)를 참조하십시오.
10
10
@@ -61,7 +61,7 @@ path와 symbol은 선택 사항입니다. `ccg://auth-svc/internal/auth`는 패
61
61
62
62
## Retrieval 품질 (Retrieval Quality)
63
63
64
-
어노테이션은 retrieval feature입니다. `retrieve_docs`와 생성 문서는
64
+
어노테이션은 retrieval feature입니다. `search_docs`와 생성 문서는
| 영향 분석, flow 추적 |`get_impact_radius`, `trace_flow` 같은 MCP 분석 도구 |
80
80
| 어노테이션/키워드 기반 후보 검색 |`ccg search` 또는 MCP `search`|
@@ -105,7 +105,7 @@ file/symbol node를 같은 문서 viewer로 엽니다.
105
105
`--rag-refresh=false`를 사용하십시오. 독립 `ccg rag-index` 명령은 생성 문서와
106
106
이미 계산된 community를 사용한 수동 재생성 용도로 남아 있습니다.
107
107
108
-
그 다음 MCP `retrieve_docs`로 파일 단위 후보와 제한된 Markdown 본문을 matched fields 및 graph evidence와 함께 가져옵니다. `get_rag_tree`로 모듈/커뮤니티 맥락을 펼치고, `get_doc_content`로 특정 생성 문서를 직접 읽은 뒤 정확한 graph 도구로 내려갑니다. `search_docs`와 `ccg search`는 빠른 키워드 또는 어노테이션 매칭에는 유용하지만, 넓은 자연어 질문의 기본 응답 표면으로 보기는 어렵습니다.
108
+
그 다음 MCP `search_docs`로 관련 문서를 찾고 `get_doc_content`로 하나를 직접 읽습니다. `get_rag_tree`로 모듈/커뮤니티 맥락을 펼친 뒤 특정 생성 문서로 내려갑니다. `ccg search`는 빠른 키워드 또는 심볼 어노테이션 매칭에는 유용하지만, 넓은 자연어 질문의 기본 응답 표면으로 보기는 어렵습니다.
0 commit comments