
neuralnotwerk/cgg
Developer tools이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기
Rust의 오프라인 멀티 언어 호출 그래프 생성기 — 어떤 폴더에서 포인트, 그래프를 가져옵니다.
개요
cgg는 소스 코드에서 호출 그래프를 생성합니다. 디렉토리에 포인트, mermaid 다이어그램을 얻을. 언어 서버 없음, 빌드 단계 없음, 구성 없음 — 1 바이너리, 즉시 결과. 기본 출력은 — 코딩 에이전트 (Copilot, Claude, Cursor, Aider, etc.)가 코드베이스에서 서로 호출하는 방법을 이해하기 위해 컨텍스트에서 직접 읽을 수 있는 형식입니다. 에이전트가 "이 함수를 호출하는 것은 무엇입니까?" 또는 "이 함수가 의존합니까?", cgg 답변은 이미 이해하는 형식입니다. (Claude Code, Kiro, Cline, Roo Code, OpenCode, Cursor, Aider, Copilot, 계속, 윈드 서핑, Goose, ...) : 점프. 기술에 따라 3 번의 기술 / 사용, 설치 및 cgg를 확장하는 방법을 가르치십시오; script/install-skill.sh는 config로 삭제합니다.
개요(AI 번역)
cgg는 소스 코드에서 호출 그래프를 생성합니다. 디렉토리에 포인트,
mermaid 다이어그램을 가져옵니다. 언어 서버 없음, 빌드 단계 없음, 없음
구성 - 한 바이너리, 즉시 결과.
기본 출력은 **mermaid flowcharts ** — 코딩 형식
대리인 (Copilot, 클로드, 커서, 아이더, 등)는 안으로 직접 읽을 수 있습니다
codebase에서 함수가 서로 호출하는 방법을 이해하기 위해 context.
에이전트가 “이 함수를 호출 할 때?” 또는 "what does
이 함수는 의존합니까?, cgg는 이미 에이전트 형식의 답변
이해하기
이 파일을 읽으십시오 ** (Claude Code, Kiro, Cline, Roo Code, OpenCode, Cursor, Aider, Copilot, 계속, 윈드 서핑, Goose, …) : 로 이동 ** 코딩 에이전트에 대 한 — 이을 읽으십시오.
skills/]에서 세 번의 기술이 당신에게 사용하는 방법을 가르치고, 설치 및cgg확장;scripts/install-skill.sh] config로 삭제합니다.
왜 mermaid?
Mermaid 도표는:
- ** 에이전트에 의해 읽기 ** - 일반 텍스트, 바이너리 형식, 프롬프트에 적합
- **인들에 의해 렌더링 ** — GitHub, GitLab, VS Code, 그리고 모든 주요
markdown viewer는 그(것)들을 인라인으로 만듭니다
-Filterable —
--filter+-n] 은 당신이 정확하게 추출 할 수 특정 작업에 필요한 에이전트를 subgraph
이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.
README
원문 README의 일부입니다. 원문 보기.
cgg — Call Graph Generator
cgg generates call graphs from source code. Point it at a directory,
get a mermaid diagram. No language server, no build step, no
configuration — one binary, instant results.
The primary output is mermaid flowcharts — a format that coding
agents (Copilot, Claude, Cursor, Aider, etc.) can read directly in
context to understand how functions call each other across a codebase.
When an agent needs to know “what calls this function?” or “what does
this function depend on?”, cgg answers in a format the agent already
understands.
Agents reading this file (Claude Code, Kiro, Cline, Roo Code, OpenCode, Cursor, Aider, Copilot, Continue, Windsurf, Goose, …): jump to For coding agents — read this. Three bundled skills under
skills/teach you how to use, install and extendcgg;scripts/install-skill.shdrops them into your config.
Why mermaid?
Mermaid diagrams are:
- Readable by agents — plain text, no binary formats, fits in a prompt
- Renderable by humans — GitHub, GitLab, VS Code, and every major markdown viewer renders them inline
- Filterable —
--filter+-nlets you extract exactly the subgraph an agent needs for a specific task - Diffable — text output means call graph changes show up in PRs
Other formats (JSON, DOT, GraphML) are available for toolchain integration, but mermaid is the default because it works everywhere with zero setup.
Quick start
cargo install cgg # from crates.io
cargo install --path crates/cgg # or from a clone
cgg ./src -o graph.mmd
That’s it. graph.mmd is a mermaid flowchart you can paste into any
markdown file, feed to an agent, or render in a viewer.
Prebuilt binaries, pip, npm and building from source are all covered
in INSTALL.md, with the exact package list each one needs —
verified by installing into bare containers.
Give an agent context about a module
# "Here's how the auth module works"
cgg ./src --filter 'auth::' -n 1 -o auth-graph.mmd
Trace all paths through a function
# "Show me every call chain that passes through process_order"
cgg ./src --filter 'process_order' -n 0 -o paths.mmd
Full project graph as structured JSON
cgg ./src -t json -o graph.json
Review the call surface of a PR
# Every entry-to-exit path passing through anything you changed
# in this branch — perfect for "what could this PR break?" reviews.
cgg ./src --since main..HEAD -n 0 -o pr-surface.mmd
# Or a 2-hop neighborhood around your last 5 commits.
cgg ./src --since HEAD~5 -n 2 -o recent.mmd
--since shells out to git diff and turns every callable
whose body overlaps a changed line range into a --filter seed. It
adds to any explicit --filter you also pass. Files that changed
but produced no seeds (deletions, comment-only edits, non-source
추천 도구
다른 키워드를 입력하거나 필터를 제거해 보세요.
설치
npx skillfish add neuralnotwerk/cgg