opencode-codebase-index 0.15.0 → 0.16.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/hooks/hooks.json CHANGED
@@ -6,8 +6,8 @@
6
6
  "hooks": [
7
7
  {
8
8
  "type": "command",
9
- "command": "printf '\nUse codebase_peek for quick location discovery, then codebase_search for implementation details. Use index_status before searching on first run.\\n'",
10
- "commandWindows": "Write-Output 'Use codebase_peek for quick location discovery, then codebase_search for implementation details. Use index_status before searching on first run.'",
9
+ "command": "printf '\nFor repository questions, use index_status when readiness is unknown, then call codebase_context before shell search, grep, or broad file reads. Pass symbol for definitions or from+to for dependency paths; use specialized lookup and graph tools afterward.\\n'",
10
+ "commandWindows": "Write-Output 'For repository questions, use index_status when readiness is unknown, then call codebase_context before shell search, grep, or broad file reads. Pass symbol for definitions or from+to for dependency paths; use specialized lookup and graph tools afterward.'",
11
11
  "statusMessage": "Codebase Index ready"
12
12
  }
13
13
  ]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-codebase-index",
3
- "version": "0.15.0",
3
+ "version": "0.16.0",
4
4
  "description": "Semantic codebase indexing and search for OpenCode - find code by meaning, not just keywords",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: codebase-search
3
- description: Semantic code and documentation search by meaning for Pi and Codex workflows. Use codebase_peek to find WHERE code is first, then codebase_search for implementation details.
3
+ description: Preferred local codebase-understanding workflow for Pi and Codex. Start with codebase_context before shell search or broad reads, then use specialized semantic and graph tools.
4
4
  ---
5
5
 
6
6
  # Codebase Search Skill
@@ -9,17 +9,19 @@ Use this skill when you need local repository knowledge before web lookup.
9
9
 
10
10
  ## Core workflow
11
11
 
12
- 1. `codebase_peek(query, ...)` to find likely locations quickly with metadata-only results.
13
- 2. `codebase_search(query, ...)` when you need full code context.
14
- 3. `call_graph(name, direction)` when you need callers/callees after locating a symbol.
15
- 4. `find_similar(code)` for duplicate patterns and refactor planning.
16
- 5. `implementation_lookup(query)` when you need the authoritative definition location.
12
+ 1. Run `index_status` when index readiness or freshness is unknown.
13
+ 2. Use `codebase_context(query, ...)` before shell search, grep, or broad file reads. Pass `symbol` for an authoritative definition or `from` + `to` for a dependency path.
14
+ 3. Use `codebase_peek(query, ...)` for specialized metadata-only conceptual lookup.
15
+ 4. Use `codebase_search(query, ...)` when you need full code context.
16
+ 5. Use `implementation_lookup(query)` for known-symbol definitions and `call_graph` / `call_graph_path` for execution flow.
17
+ 6. Use `find_similar(code)` for duplicate patterns and refactor planning.
17
18
 
18
19
  If results are weak, run `index_status` (check readiness) and `index_codebase`.
19
20
 
20
21
  ## Tool Priority
21
22
 
22
- - `codebase_peek` for discovery (fastest, cheap tokens).
23
+ - `codebase_context` as the preferred first repository tool and unified router.
24
+ - `codebase_peek` for specialized discovery (fastest, cheap tokens).
23
25
  - `codebase_search` for exact implementation review.
24
26
  - `find_similar` for pattern matching and duplication.
25
27
  - `call_graph` and `call_graph_path` for execution flow.