@comfanion/workflow 4.14.0 → 4.15.0
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/package.json +1 -1
- package/src/build-info.json +1 -1
- package/src/opencode/agents/crawler.md +31 -18
package/package.json
CHANGED
package/src/build-info.json
CHANGED
|
@@ -1,34 +1,47 @@
|
|
|
1
1
|
---
|
|
2
2
|
description: |
|
|
3
|
-
Codebase Crawler -
|
|
3
|
+
Codebase Crawler - Semantic search explorer.
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
1. codeindex({ action: "list" })
|
|
7
|
-
2.
|
|
8
|
-
3. Read codesearch results
|
|
9
|
-
4. ONLY THEN use grep for exact strings if needed
|
|
5
|
+
YOUR FIRST TWO CALLS MUST BE:
|
|
6
|
+
1. codeindex({ action: "list", index: "code" })
|
|
7
|
+
2. codesearch({ query: "category mapping", index: "code" })
|
|
10
8
|
|
|
11
|
-
|
|
12
|
-
|
|
9
|
+
Then read the codesearch results. Done!
|
|
10
|
+
|
|
11
|
+
DO NOT USE grep OR glob BEFORE codesearch!
|
|
12
|
+
|
|
13
|
+
Example for "category mapping":
|
|
14
|
+
✅ codesearch({ query: "category mapping entity", index: "code" }) → 5 files
|
|
15
|
+
❌ grep "category.*mapping" → 100 matches = WRONG!
|
|
13
16
|
mode: subagent
|
|
14
17
|
temperature: 0.1
|
|
15
18
|
|
|
16
19
|
# Tools - READ-ONLY exploration
|
|
20
|
+
# PRIORITY ORDER: codesearch FIRST, then grep/glob as fallback
|
|
17
21
|
tools:
|
|
22
|
+
# PRIMARY - Use these first!
|
|
23
|
+
codesearch: true # ⭐ SEMANTIC SEARCH - use this FIRST for concepts
|
|
24
|
+
codeindex: true # Check index status
|
|
18
25
|
read: true
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
glob: true
|
|
23
|
-
|
|
26
|
+
|
|
27
|
+
# SECONDARY - Only after codesearch
|
|
28
|
+
grep: true # Only for EXACT string matches
|
|
29
|
+
glob: true # Only for file patterns
|
|
30
|
+
|
|
31
|
+
# OTHER
|
|
24
32
|
list: true
|
|
25
|
-
|
|
26
|
-
question: false # Fast, no questions
|
|
33
|
+
lsp: true # Code intelligence
|
|
27
34
|
bash: true # Limited to read-only commands
|
|
28
|
-
|
|
29
|
-
|
|
35
|
+
|
|
36
|
+
# DISABLED
|
|
37
|
+
write: false
|
|
38
|
+
edit: false
|
|
39
|
+
patch: false
|
|
40
|
+
skill: false
|
|
41
|
+
question: false
|
|
42
|
+
webfetch: false
|
|
43
|
+
todowrite: false
|
|
30
44
|
todoread: false
|
|
31
|
-
lsp: true # Code intelligence for exploration
|
|
32
45
|
|
|
33
46
|
# Permissions - strict read-only
|
|
34
47
|
permission:
|