codebase
무료Use when indexing a code repository into Cognee's code graph or querying it (callers, impact analysis, paths, endpoints) from Antigravity.
한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.
Index a repository (local path or git URL) into Cognee's code graph and answer exact structural queries with no LLM calls: callers, dependencies, impact of changing a symbol, call paths, endpoints, re-index changes.
한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.
설치 방법 보기설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.
Build and query an architectural graph of a codebase (symbols, calls, imports, endpoints, dependencies) via Cognee's enola-backed pipeline. Requires a Cognee server >= 1.5.3. Indexing makes no LLM or embedding calls — it is fast, deterministic, and token-free.
Before running a Cognee search, send one short user-visible progress sentence, for example: "Searching Cognee for the earlier decision…" or "Checking Cognee's code graph for callers of this function…". Name Cognee in the normal working text before the tool call; keep this to one update per related search batch. Afterwards, describe relevant findings, an empty result, or a failed search accurately. Do not claim Cognee improved the answer merely because a search ran.
"${CLAUDE_PLUGIN_ROOT}/scripts/cognee-index-repo.sh" <repo-path-or-git-url> [--dataset <name>] [--index-vectors] [--wait <seconds>]
. or /path/to/repo): works when the Cognee server
shares this filesystem — the default local plugin server does. Cloud servers
reject local paths; pass a git URL instead.https://github.com/org/repo): the server shallow-clones it.
Freshness follows pushed commits — local edits are invisible to it.codebase-<repo-name>-<digest>, one per indexed repo —
narrow datasets keep code searches fast, and the path digest keeps two
checkouts that share a basename (~/work/a/service, ~/work/b/service) from
landing in one graph. The name is printed on success; you rarely need it,
because --code searches resolve it from the current checkout.--index-vectors: also embeds the code facts so semantic/hybrid search can
see them (needs an embedding provider). Without it, code knowledge is
reachable ONLY through code search below — conceptual questions about the
code then rely on ingested docs/READMEs.--wait 60 polls until
the graph is queryable. Poll manually via
GET /api/v1/datasets/status?dataset=<id>&pipeline=code_graph_pipeline.Indexing writes enola's snapshot to <repo>/.enola/ (untracked) — add it to
.gitignore or global excludes. The plugin's change detection ignores it.
Indexing is also the freshness opt-in: for local-path repos the plugin records a git fingerprint and automatically re-submits the repo in the background when a turn changed the working tree, so the graph tracks your edits. Re-indexing an unchanged repo is skipped server-side (content hashes), so re-running the command is always safe.
Opening the agent inside a git repository indexes it automatically in the background at session start — no setup step. What happens depends on the server, because indexing a repo means the code has to be readable by it:
| Situation | Behavior |
|---|---|
| Local server (default), new repo | Indexed automatically — the server reads the working tree in place, so the code never leaves the machine |
| Cloud/remote server, new repo | Not indexed automatically; run the index command with a git URL, or set COGNEE_CODE_AUTOINDEX=always |
| Already-indexed repo | Always refreshed if the tree changed since the last index — regardless of the setting above |
| Not a git repo / no code files / very large repo (>3000 source files) | Skipped; index it explicitly if you want it |
Set COGNEE_CODE_AUTOINDEX=off to disable automatic indexing of new repos
(explicitly indexed repos keep refreshing). Explicit indexing has no size cap.
The graph tracks different things depending on where the Cognee server runs. Both are normal, expected behavior — but the results look identical, so know which one applies:
| Server | Graph reflects | Stays current via |
|---|---|---|
| Local (default) | The working tree, uncommitted and untracked changes included | Automatic re-index after any turn that changed a file |
| Cloud / remote | The last pushed commit — the server clones the repo and cannot read this machine's disk | Pushing, then re-indexing |
On a cloud server, local edits are invisible to the graph until they are pushed. Nothing
errors and nothing looks unusual: a question about a symbol you just renamed locally is
answered from the pushed state, confidently. So when the answer matters and the work is
in progress, either push first or say so in the answer. {"operation": "delta"} shows
what the last index actually changed and is the fastest way to check what the graph
currently knows.
Local-path indexing therefore requires a server that shares this filesystem; cloud servers reject local paths and need a git URL.
"${CLAUDE_PLUGIN_ROOT}/scripts/cognee-search.sh" "<seed>" 10 --code [--code-query '<json>']
The repository's code dataset is resolved from the current directory, so
--dataset is only needed to query a repo you are not standing in.
Without --code-query, the query text is a seed name (exact/suffix/substring
match). With it, pick one exact operation:
| Operation | Answers | Example |
|---|---|---|
query_facts | filtered listing | {"operation":"query_facts","kind":"route","limit":50} — all API endpoints |
explore | neighborhood of one node | {"operation":"explore","name":"UserService","max_depth":1} |
traverse | follow edges from seeds | {"operation":"traverse","start":"main","direction":"forward","max_depth":3} |
find_path | how A reaches B | {"operation":"find_path","source":"AuthMiddleware","target":"Database"} |
impact_analysis | what breaks if X changes | {"operation":"impact_analysis","targets":["process_payment"]} |
architecture (>=1.6.3) | module, route, storage and service map | {"operation":"architecture","diagram":"mermaid"} |
insights (>=1.6.3) | explainer findings with cited facts | {"operation":"insights","diagram":"mermaid"} |
delta | what the last index changed | {"operation":"delta"} |
An ambiguous seed returns an error listing the candidates — pick one and
retry with its exact id or a repo filter. A seed that doesn't resolve
returns empty (not an error): the graph simply has no such symbol.
--code. Exact, instant, no tokens.cognee-search.sh (hybrid/graph). Remember: graph-only code is
invisible there unless indexed with --index-vectors or docs were ingested.PaymentProcessor), then --code gives the exact structure around it.{"operation":"delta"} shows what the
last re-index added/updated/removed. Use it when facts look stale.Treat results as a map, not ground truth — verify important claims against the actual files before editing.
To store a single code file in normal memory under its real filename (routes down the zero-LLM code path server-side, no cross-file edges):
"${CLAUDE_PLUGIN_ROOT}/scripts/cognee-remember.sh" --file src/payments.py --node-set project_docs
Prefer the repo index above when you care about callers/imports across files.
Once a repo is indexed from its checkout, the per-prompt memory recall adds a
code lane automatically when your prompt mentions an identifier-shaped token
(process_payment, UserService, billing/api.py) — the facts appear in the
injected context as === Code graph facts ===. No action needed.
아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.
로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.
아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.
Use when indexing a code repository into Cognee's code graph or querying it (callers, impact analysis, paths, endpoints) from Antigravity.
한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.
Use when indexing a code repository into Cognee's code graph or querying it (callers, impact analysis, paths, endpoints) from Codex.
한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.
Explain a repository's architecture (modules, routes, storage, services), find risky hotspots, draw a Mermaid diagram of the code graph, or review how far a change reaches, from Cognee's code graph.
한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.
A digest of a week or more of the user's own coding-agent sessions (default 7 days): sessions per day and project, most-edited files and the lessons Cognee learned, written up as shipped, decided and still open.
한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.
A multi-day digest of the user's own coding-agent sessions — sessions per day and project, most-edited files, and every lesson Cognee distilled into the knowledge graph in that window. Use only when the user explicitly asks for a weekly digest, a retro, a recap or report of their recent sessions, or asks for the `cognee-digest` skill by name. Not for questions about code or the current task.
한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.
Use when an agent must stand up the OpenClaw↔Cognee integration with FalkorDB as the vector + graph store. This skill is SELF-CONTAINED — it tells you to generate every file (Dockerfile, sitecustomize.py, docker-compose.yaml) from the exact contents below, build a custom Cognee image that loads the FalkorDB adapter, run Cognee + FalkorDB together, self-verify the adapter registered, and point the OpenClaw cognee plugin at it (including per-agent graphs). No other files in this directory are required.
한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.