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: skills/codealive-context-engine/SKILL.md
+23-19Lines changed: 23 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -40,15 +40,25 @@ Do NOT retry the failed script until setup completes successfully.
40
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
-
|**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
-
|**Chat with Codebase**|`chat.py`| Slow | High |**Not recommended.** Call ONLY when the user explicitly asks (e.g. "use chat"). |
43
+
|**Repository Ontology**|`ontology.py`| Fast | Low | High-level orientation for exactly one repository |
44
+
|**File Tree**|`tree.py`| Fast | Free | Bounded repository tree inspection |
45
+
|**Read File**|`read_file.py`| Fast | Free | Read one repository-relative file path, optionally with a line range |
46
+
|**Fetch Artifacts**|`fetch.py`| Fast | Free | Retrieve full content for search result identifiers |
47
+
|**Artifact Relationships**|`relationships.py`| Fast | Free | Full call graph, inheritance, or symbol references for one artifact |
48
+
|**ArtifactQuery Schema**|`schema.py`| Fast | Free | Inspect supported metadata query entities, fields, and examples |
49
+
|**Artifact Metadata Query**|`metadata.py`| Fast | Low | Read-only aggregate/query analytics across indexed repositories |
50
+
|**Chat with Codebase**|`chat.py`| Slow | High | Stateless synthesized Q&A. Call ONLY when the user explicitly asks. |
46
51
47
52
**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.
48
53
49
-
**Chat is not recommended:**`chat.py` invokes an LLM on the server side, can take up to 30 seconds, and is significantly more expensive per call. Do NOT call it unless the user has explicitly requested it (e.g. "use chat", "use codebase_consultant", "call the chat tool"). Phrases like "ask CodeAlive" or "search CodeAlive" do NOT qualify — they refer to search tools.
54
+
**Chat is not recommended:**`chat.py` invokes an LLM on the server side, can take substantially longer than retrieval, and is significantly more expensive per call. It is stateless in v3: include prior findings, artifact identifiers, assumptions, scope, and constraints in each question. Do NOT call it unless the user has explicitly requested it (e.g. "use chat", "call the chat tool"). Phrases like "ask CodeAlive" or "search CodeAlive" do NOT qualify — they refer to search tools.
50
55
51
-
**Highest-confidence guidance:** If your agent supports subagents and the task needs maximum reliability or depth, prefer a subagent-driven workflow that combines `search.py`, `grep.py`, `fetch.py`, `relationships.py`, and local file reads.
56
+
**Repairable tool errors:** Treat a returned `<tool_error>` as a failed call,
57
+
not as an empty successful result. Follow its `<try>` guidance, repair the
58
+
arguments, and retry only when the `<retry>` field permits it. Tool API v3
59
+
always preserves the same error in `obj.error` for JSON-mode automation.
60
+
61
+
**Highest-confidence guidance:** If your agent supports subagents and the task needs maximum reliability or depth, prefer a subagent-driven workflow that combines `ontology.py`, `search.py`, `grep.py`, `fetch.py`, `tree.py`/`read_file.py`, `relationships.py`, `metadata.py`, and local file reads.
52
62
53
63
**Three-step workflow (search → triage → load real content):**
54
64
1.**Search** — find relevant code locations with descriptions and identifiers
### 5. Chat with codebase (not recommended — only if user explicitly asks)
145
155
146
156
```bash
147
-
python scripts/chat.py "Explain the authentication flow" my-backend
148
-
python scripts/chat.py "What about security considerations?"--continue CONV_ID
157
+
python scripts/chat.py "Explain the authentication flow. Prior context: none." my-backend
158
+
python scripts/chat.py "Given these prior findings and identifiers: ..., what about security considerations?"my-backend
149
159
```
150
160
151
-
**Do not call chat unless the user explicitly asks for it.** Use search, grep, fetch, and relationships for all other tasks.
161
+
**Do not call chat unless the user explicitly asks for it.**v3 chat is stateless and has no `conversation_id`; include all needed context in each question. Use ontology, search, grep, fetch/read, relationships, and metadata queries for all other tasks.
| Identifiers source |`identifier` field from search results |
228
238
| Identifier format |`{owner/repo}::{path}::{symbol}` (symbols), `{owner/repo}::{path}` (files) |
229
239
|`--data-source NAME_OR_ID`| Optional. Data source Name or Id (from a result's `Source:` line) to disambiguate an identifier indexed in more than one data source |
@@ -295,23 +305,17 @@ don't match the artifact's real logic.
295
305
296
306
### `chat.py` — Chat with Codebase (not recommended)
297
307
298
-
**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.
308
+
**Do NOT call unless the user explicitly asks** (e.g. "use chat", "call the chat tool"). Phrases like "ask CodeAlive" or "search CodeAlive" refer to search tools, not chat.
299
309
300
-
Sends your question to an AI consultant that has full context of the indexed codebase. Returns synthesized, ready-to-use answers. Supports conversation continuity for follow-ups.
310
+
Sends your self-contained question to an AI consultant that has full context of the selected indexed codebase. Returns synthesized, ready-to-use answers.
301
311
302
-
**This is slow and expensive** — runs an LLM on the server side, up to 30 seconds per call. For all standard tasks (finding code, understanding architecture, debugging), use `search.py`, `grep.py`, `fetch.py`, and `relationships.py` instead.
312
+
**This is slow and expensive** — runs an LLM on the server side and can take substantially longer than retrieval. It is stateless in v3, so include prior findings, identifiers, assumptions, scope, and constraints in each question. For all standard tasks (finding code, understanding architecture, debugging), use ontology, search, grep, fetch/read, relationships, and metadata queries instead.
|`--continue <id>`| Continue a previous conversation (saves context and cost) |
311
-
312
-
**Conversation continuity:** Every successful response includes a `conversation_id` (a 24-character hex Mongo ObjectId, e.g. `69fceb3e7b2a6a7efdd18180`) and a `message_id` of the same format. Pass `--continue <conversation_id>` for follow-up questions — this preserves context and is cheaper than starting fresh.
313
-
314
-
Format guarantee: any value not matching `^[0-9a-fA-F]{24}$` is rejected client-side before the request is sent.
318
+
There is no public `conversation_id` in v3. For follow-ups, restate the relevant context in the next `question`.
0 commit comments