Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Sibyl Claude Code Hooks

Automatic integration between Sibyl and Claude Code.

Install

moon run install-hooks

Then restart Claude Code.

Enhanced Query Generation (Optional)

For smarter semantic search queries, set your Anthropic API key:

export ANTHROPIC_API_KEY=sk-...

With this enabled, the hook uses Haiku 4.5 to generate contextual search queries based on the conversation history. Falls back to keyword extraction without it.

No SDK needed - uses raw HTTP requests.

What It Does

Hook Trigger Action
SessionStart Session begins Loads active tasks, reminds about sibyl add
UserPromptSubmit Before processing prompt Searches Sibyl, injects relevant knowledge

Uninstall

moon run uninstall-hooks

Or manually: rm -rf ~/.claude/hooks/sibyl

Files

  • session-start.py - Context loading at session start
  • user-prompt-submit.py - Knowledge injection into prompts
  • configure.py - Updates ~/.claude/settings.json (includes Stop hook prompt)