feat(hook): inject project + global memories at session start#128
feat(hook): inject project + global memories at session start#128
Conversation
session-start hook now queries ghost.db directly and outputs full project context (memories + learned summary) plus global memories (_global project) into Claude's context on every session start. Claude no longer needs to call ghost_project_context manually — context is always present from message one, including cross-project preferences and conventions. Closes #127
Old redirects told Claude to call ghost_list_projects + ghost_project_context manually. Now that the hook injects context directly, update those files to reflect the new behavior. mcp init now detects old-style redirects (containing ghost_list_projects) and rewrites them to the current format.
|
Warning Rate limit exceeded
⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Closes #127
What
The
session-starthook now queriesghost.dbdirectly and writes full project context into Claude's stdin before the first message — no tool calls required.Before: Hook output a static reminder telling Claude to call
ghost_project_context. Claude sometimes ignored it.After: Hook outputs project memories + learned summary + global memories (
_global) directly. Context is always present from message one.Output format
Falls back to static reminder if project not found or DB unavailable.