@handsupmin/gc-tree 0.8.18 → 0.8.19
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/dist/src/scaffold.js +9 -4
- package/package.json +1 -1
package/dist/src/scaffold.js
CHANGED
|
@@ -163,10 +163,15 @@ function renderClaudeSessionStartHook() {
|
|
|
163
163
|
return [
|
|
164
164
|
'# gctree Claude Code SessionStart note',
|
|
165
165
|
'',
|
|
166
|
-
'-
|
|
167
|
-
'
|
|
168
|
-
'
|
|
169
|
-
'
|
|
166
|
+
'- Before any codebase task — feature, schema change, bug fix, admin work, or any question about how the codebase works — do **not** grep or read code first. Follow this exact order:',
|
|
167
|
+
' 1. Run `gctree resolve --query "<task or term>"`. If matched, use the result directly.',
|
|
168
|
+
' 2. Only if scope is **included**: if step 1 found nothing, try broader related queries.',
|
|
169
|
+
' 3. If concept exists in a doc but not indexed → propose adding an Index Entry.',
|
|
170
|
+
' 4. Only if gc-tree has nothing should you search code.',
|
|
171
|
+
' — If scope is **unmapped** or **excluded**: do step 1 only; if no match, proceed normally.',
|
|
172
|
+
'- When a UserPromptSubmit hook provides `[gc-tree] USE FIRST`, treat matched docs as mandatory. Do not grep or Explore until you have read every injected summary.',
|
|
173
|
+
'- Only use tools if matched docs are clearly insufficient — meaning the answer cannot be derived from them.',
|
|
174
|
+
'- If hook context is missing, run `gctree resolve --query "<task>"` yourself before planning.',
|
|
170
175
|
'',
|
|
171
176
|
].join('\n');
|
|
172
177
|
}
|