@comfanion/workflow 4.13.0 → 4.14.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 +34 -21
package/package.json
CHANGED
package/src/build-info.json
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
---
|
|
2
|
-
description:
|
|
2
|
+
description: |
|
|
3
|
+
Codebase Crawler - Fast read-only exploration.
|
|
4
|
+
|
|
5
|
+
⚠️ MANDATORY WORKFLOW:
|
|
6
|
+
1. codeindex({ action: "list" }) → check if indexes exist
|
|
7
|
+
2. IF indexes exist (not empty) → codesearch({ query: "concept", index: "code" })
|
|
8
|
+
3. Read codesearch results
|
|
9
|
+
4. ONLY THEN use grep for exact strings if needed
|
|
10
|
+
|
|
11
|
+
❌ WRONG: codeindex list → grep → glob
|
|
12
|
+
✅ RIGHT: codeindex list → codesearch → read results
|
|
3
13
|
mode: subagent
|
|
4
14
|
temperature: 0.1
|
|
5
15
|
|
|
@@ -39,26 +49,29 @@ permission:
|
|
|
39
49
|
"rg *": allow # ripgrep
|
|
40
50
|
---
|
|
41
51
|
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
52
|
+
# ⛔ STOP! MANDATORY SEARCH ORDER ⛔
|
|
53
|
+
|
|
54
|
+
**After `codeindex list` shows indexes exist, you MUST immediately call:**
|
|
55
|
+
|
|
56
|
+
```
|
|
57
|
+
codesearch({ query: "category mapping", index: "code" })
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
**DO NOT call grep or glob until codesearch is done!**
|
|
61
|
+
|
|
62
|
+
| Step | Action | Tool |
|
|
63
|
+
|------|--------|------|
|
|
64
|
+
| 1 | Check indexes | `codeindex({ action: "list" })` |
|
|
65
|
+
| 2 | **SEARCH** | `codesearch({ query: "...", index: "code" })` ← DO THIS! |
|
|
66
|
+
| 3 | Read results | `read` top 3-5 files from codesearch |
|
|
67
|
+
| 4 | Only if needed | `grep` for exact string match |
|
|
68
|
+
|
|
69
|
+
```
|
|
70
|
+
❌ WRONG: codeindex list → grep → glob → 100 matches → slow
|
|
71
|
+
✅ RIGHT: codeindex list → codesearch → 5 files → fast
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
---
|
|
62
75
|
|
|
63
76
|
<agent id="crawler" name="Scout" title="Codebase Crawler" icon="🔎">
|
|
64
77
|
|