semble-hooks — automatic code context for every prompt via Semble #27437
benediktkraus
started this conversation in
Show and tell
Replies: 1 comment
-
|
Hey there. Thanks for sharing this. This is a really interesting idea and something we have been discussing internally. We love seeing how the community is pushing the boundaries of the CLI. We will definitely keep this in mind for future iterations. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
What I built
semble-hooks — hooks that automatically inject the most relevant code chunks from your project into every Gemini CLI prompt.
Powered by Semble semantic code search (98% token savings vs grep+read, CPU-only, 16MB static model, no API key).
Gemini CLI integration
semble searchwith your prompt, injects top-5 code chunks as<relevant-code>~/.gemini/extensions/semble-hooks/Install
pip install semble git clone https://github.com/benediktkraus/semble-hooks.git cd semble-hooks ./install.sh geminiAlso supports Claude Code, Codex CLI, and OpenClaw.
Before vs After
Before: Agent spends 5-10 turns doing grep → read → grep → read to find relevant code.
After: Agent gets the 5 most relevant code chunks in the first turn.
Feedback welcome!
Beta Was this translation helpful? Give feedback.
All reactions