xindex 1.0.16 → 1.0.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/apps/mcpApp.ts +6 -6
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -104,12 +104,12 @@ name: ask-xi
|
|
|
104
104
|
description: Discovers relevant files via xindex semantic search — preps queries, auto-indexes on empty, returns file links with keywords. Triggered by @xi.
|
|
105
105
|
argument-hint: "[question]"
|
|
106
106
|
---
|
|
107
|
-
Surface-level codebase discovery via xindex. Tool: `xindex_search` (natural-language, meaning-based).
|
|
107
|
+
Surface-level codebase discovery via xindex. Tool: `xindex_search` (natural-language, meaning-based). Must trigger search when a session starts, a new task starts, or any codebase lookup is needed.
|
|
108
108
|
|
|
109
109
|
**Steps:**
|
|
110
|
-
1. Draft
|
|
110
|
+
1. Draft 3–5 queries from $ARGUMENTS (entry points, routing, config, tests, patterns); run `xindex_search` in parallel.
|
|
111
111
|
2. If empty/sparse/stale → scoped `xindex_index` on relevant root folders (one path per call, e.g. `src`, `skills`, `agents`), then re-search. Prefer scoped over full-repo.
|
|
112
|
-
3. Think, then run
|
|
112
|
+
3. Think, then run 3+ narrower follow-ups in parallel based on round-1 hits.
|
|
113
113
|
4. Return file paths + brief keywords showing why each matched.
|
|
114
114
|
|
|
115
115
|
Output = file links + keywords, not analysis. **Escalate to `/ask-cursor` by default** (cheap codebase reasoning); only go to `/ask-claude` for multi-file/pattern analysis or `/ask-claude-opus` for trade-offs. For reset or full re-index, delegate to `/xindex` (owns safety rules).
|
package/apps/mcpApp.ts
CHANGED
|
@@ -35,18 +35,18 @@ export function McpApp({
|
|
|
35
35
|
}): IMcpApp {
|
|
36
36
|
return async function mcpApp() {
|
|
37
37
|
const server = new McpServer({name: "xindex", version: "1.0.0"}, {
|
|
38
|
-
instructions: "@xi
|
|
38
|
+
instructions: "@xi must trigger search when a session starts, a new task starts, or any codebase lookup is needed. Run `xindex_search`: 3–5 parallel queries, then think, then 3+ narrowed follow-ups. If results are sparse, run scoped `xindex_index` (one path per call) and re-search.",
|
|
39
39
|
});
|
|
40
40
|
|
|
41
41
|
// --- search ---
|
|
42
42
|
|
|
43
43
|
server.registerTool("xindex_search", {
|
|
44
44
|
title: "Search codebase (semantic)",
|
|
45
|
-
description: "Semantic codebase
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
"
|
|
49
|
-
"If sparse, `xindex_index`
|
|
45
|
+
description: "Semantic codebase discovery by meaning. " +
|
|
46
|
+
"Must trigger when a session starts, a new task starts, or any codebase lookup is needed. " +
|
|
47
|
+
"Start with 3–5 parallel queries, then 3+ narrowed follow-ups. " +
|
|
48
|
+
"Return ranked file paths + keywords (links, not analysis). " +
|
|
49
|
+
"If sparse, run scoped `xindex_index` first (one path per call).",
|
|
50
50
|
inputSchema: z.object({
|
|
51
51
|
query: z.string()
|
|
52
52
|
.describe("Natural language search query"),
|