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
Clarify when relationships.py adds value over the fetch preview
SKILL.md and workflows.md now spell out that fetch.py already previews 3
outgoing/incoming calls, so relationships.py is mainly worth running for
full incoming lists, inheritance trees, references, or artifacts too large
to fetch. Adds a playbook table for common tool sequences and flags
compiler-generated noise (MoveNext/GetEnumerator) in outgoing calls so
agents don't build conclusions on analyzer artifacts.
Bumps plugin version to 2.0.6 (docs-only patch).
Copy file name to clipboardExpand all lines: .claude-plugin/plugin.json
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
{
2
2
"name": "codealive",
3
3
"description": "CodeAlive context engine for semantic code search and AI-powered codebase Q&A. Enables AI coding agents to understand entire codebases beyond just open files — search across all indexed repositories, trace cross-service dependencies, discover usage patterns, and get synthesized answers to architectural questions. Includes a lightweight code exploration subagent, authentication hooks, and multiple search modes (fast lexical, semantic, and deep cross-cutting). Works standalone or alongside the CodeAlive MCP server for direct tool access via the Model Context Protocol.",
Copy file name to clipboardExpand all lines: skills/codealive-context-engine/SKILL.md
+41-5Lines changed: 41 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -40,8 +40,8 @@ Do NOT retry the failed script until setup completes successfully.
40
40
|**List Data Sources**|`datasources.py`| Instant | Free | Discovering indexed repos and workspaces |
41
41
|**Semantic Search**|`search.py`| Fast | Low | Default discovery — finds code by meaning (concepts, behavior, architecture) |
42
42
|**Grep Search**|`grep.py`| Fast | Low | Finds code containing a specific string or regex (identifiers, literals, patterns) |
43
-
|**Fetch Artifacts**|`fetch.py`| Fast | Low | Retrieving full content for search results|
44
-
|**Artifact Relationships**|`relationships.py`| Fast | Low |Drilling into call graph, inheritance, references for one artifact |
43
+
|**Fetch Artifacts**|`fetch.py`| Fast | Low | Retrieving full content; function-like artifacts also include up to 3 outgoing/incoming calls as a preview|
44
+
|**Artifact Relationships**|`relationships.py`| Fast | Low |Full call graph (past the fetch preview's 3-cap), inheritance, or symbol references for one artifact |
45
45
|**Chat with Codebase**|`chat.py`| Slow | High |**Not recommended.** Call ONLY when the user explicitly asks (e.g. "use chat"). |
46
46
47
47
**Cost guidance:**`semantic_search` and `grep_search` are the default starting point — fast and cheap. Use `fetch_artifacts` to load full source and `get_artifact_relationships` to trace call graphs. All four tools are low-cost.
@@ -60,9 +60,26 @@ Do NOT retry the failed script until setup completes successfully.
60
60
file-read tool
61
61
Treat only that real `content` as ground truth.
62
62
63
-
**Optional drill-down:** once you know an artifact matters, run
64
-
`python relationships.py <identifier>` to expand its call graph, inheritance,
65
-
or references.
63
+
**Drill into `relationships.py` when the fetch preview isn't enough.** The
64
+
`fetch.py` response already previews up to 3 outgoing + 3 incoming calls for
65
+
function-like artifacts, so the call graph alone is rarely a reason to run
66
+
`relationships.py` after a full fetch of a small artifact. Reach for it when:
67
+
68
+
-**You need all incoming callers** — the fetch preview is capped at 3.
69
+
The full incoming list also surfaces test coverage (incoming from test
70
+
files).
71
+
-**You need the inheritance tree** — `--profile inheritanceOnly` returns
|`--max-count N`| Max related artifacts per relationship type (1–1000, default 50) |
223
240
|`--json`| Emit the raw JSON response instead of the formatted view |
224
241
242
+
**When this adds value vs the fetch preview:**
243
+
- You need **all incoming callers** (including tests) — the fetch preview
244
+
caps at 3 per direction
245
+
- You need the **inheritance tree** (`--profile inheritanceOnly`) — preview
246
+
doesn't include ancestors/descendants
247
+
- You need **symbol references** (`--profile referencesOnly`) — preview
248
+
doesn't include references
249
+
- The artifact is too large to fetch into context
250
+
251
+
**When it's usually redundant:** you already ran `fetch.py` on a small
252
+
artifact that fits in context. The outgoing calls you need are either in the
253
+
source you just read or in the preview's 3-cap — reach for `relationships.py`
254
+
only when you specifically need incoming calls, inheritance, or references.
255
+
256
+
**Noise caveat:** outgoing calls occasionally include compiler-generated
257
+
helpers (`MoveNext`, `GetEnumerator`, closure invocations) for methods using
258
+
`foreach`/LINQ. These are analyzer artifacts — ignore outgoing hits that
259
+
don't match the artifact's real logic.
260
+
225
261
### `chat.py` — Chat with Codebase (not recommended)
226
262
227
263
**Do NOT call unless the user explicitly asks** (e.g. "use chat", "use codebase_consultant", "call the chat tool"). Phrases like "ask CodeAlive" or "search CodeAlive" refer to search tools, not chat.
0 commit comments