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
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: agents/codealive-context-explorer.md
+7-4Lines changed: 7 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,7 @@ You are a code exploration specialist. **Your default tool is CodeAlive — not
16
16
Unless the request is unambiguously a local-only file lookup ("read line 42 of foo.ts", "is bar.py in this repo"), your first turn MUST include both of these calls before any answer:
17
17
18
18
```bash
19
-
python scripts/datasources.py
19
+
python scripts/datasources.py --query "<the user's question or task>"
20
20
python scripts/search.py "<question paraphrased as a concept query>"<data_source>
21
21
```
22
22
@@ -28,9 +28,12 @@ The scripts directory is relative to the skill location. If a path fails, fall b
28
28
29
29
### 1. List data sources — run FIRST every session
30
30
```bash
31
-
python scripts/datasources.py
31
+
python scripts/datasources.py --query "<the user's question or task>"
32
32
```
33
-
Without this you do not know what to search against. Instant, free, cheap.
33
+
Without this you do not know what to search against. Pass the user's question as `--query` so
34
+
the backend returns only the relevant sources, each with a `relevanceReason`. The output tells
35
+
you when sources were omitted, and when filtering was unavailable (the full list is returned
36
+
instead — fail-open). Omit `--query` only when the user asks for the complete inventory.
34
37
35
38
### 2. Semantic search — your default discovery tool
36
39
```bash
@@ -64,7 +67,7 @@ Use after `search.py` or `fetch.py` to expand a call graph, inheritance, or symb
64
67
65
68
Standard loop, in order:
66
69
67
-
1.**`datasources.py`** — every session, no exceptions.
70
+
1.**`datasources.py --query "<user's task>"`** — every session, no exceptions. The relevance-filtered shortlist tells you what to search against; if a source you expected is missing, rerun without `--query` to see the full list.
68
71
2.**`search.py`** with the main concept — every session, no exceptions. Run it even when you have a guess; the search confirms or refutes it with real evidence.
69
72
3.**`grep.py`** for specific identifiers, error messages, or config keys surfaced in step 2.
70
73
4.**`fetch.py`** on the most relevant identifiers (descriptions are triage pointers only — never reason from them).
Copy file name to clipboardExpand all lines: skills/codealive-context-engine/SKILL.md
+17-3Lines changed: 17 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -37,7 +37,7 @@ Do NOT retry the failed script until setup completes successfully.
37
37
38
38
| Tool | Script | Speed | Cost | Best For |
39
39
|------|--------|-------|------|----------|
40
-
|**List Data Sources**|`datasources.py`| Instant | Free | Discovering indexed repos and workspaces |
40
+
|**List Data Sources**|`datasources.py`| Instant | Free | Discovering indexed repos and workspaces. With `--query "task"`, runs an AI relevance filter (low cost, not instant) returning only the relevant sources|
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
43
|**Fetch Artifacts**|`fetch.py`| Fast | Low | Retrieving full content; function-like artifacts also include up to 3 outgoing/incoming calls as a preview |
@@ -106,9 +106,13 @@ logic.
106
106
### 1. Discover what's indexed
107
107
108
108
```bash
109
-
python scripts/datasources.py
109
+
python scripts/datasources.py --query "the user's task in natural language"
110
110
```
111
111
112
+
Recommended: pass the user's task as `--query` so the backend returns only the relevant
113
+
data sources, each with a `relevanceReason`. Omit `--query` to list everything (instant,
|`--query "TASK"`| The user's task/intent in natural language. The backend runs an AI relevance filter and returns only the relevant sources, each with a `relevanceReason`. Recommended whenever you know what the user is trying to accomplish |
0 commit comments