@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.
@@ -163,10 +163,15 @@ function renderClaudeSessionStartHook() {
163
163
  return [
164
164
  '# gctree Claude Code SessionStart note',
165
165
  '',
166
- '- gctree init installs real SessionStart/UserPromptSubmit hooks via `.claude/hooks/hooks.json`.',
167
- '- At session start, use the injected hook context to confirm the active gc-branch.',
168
- '- Refer to gctree branches as **gc-branches** in user-facing language.',
169
- '- If hook context is missing or stale, resolve summaries before planning or implementation when branch-level context may change the answer.',
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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@handsupmin/gc-tree",
3
- "version": "0.8.18",
3
+ "version": "0.8.19",
4
4
  "description": "Global Context Tree, a lightweight branch-aware global context orchestrator for AI coding tools",
5
5
  "type": "module",
6
6
  "private": false,