claude-code - 💡(How to fix) Fix Semble Hooks — semantic code search injected into every prompt

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

Code Example

git clone https://github.com/benediktkraus/semble-hooks.git
cd semble-hooks
./install.sh claude-code
RAW_BUFFERClick to expand / collapse

Hook system that auto-injects relevant code chunks into every prompt via Semble semantic search.

How it works:

  1. SessionStart: auto-indexes project (<1s, CPU-only, no API key)
  2. UserPromptSubmit: semble search finds Top-5 relevant functions/classes
  3. Reranking: Definition boost, noise penalty (tests, .d.ts, generated)
  4. Injects as <relevant-code> block — agent sees code BEFORE working

98% token savings vs grep+read (Semble benchmark: 1250 queries, 63 repos, 19 languages).

Companion to DREVIHO (persistent memory hooks — same architecture).

git clone https://github.com/benediktkraus/semble-hooks.git
cd semble-hooks
./install.sh claude-code

Repo: https://github.com/benediktkraus/semble-hooks

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix Semble Hooks — semantic code search injected into every prompt