Skip to content
Development
Hook

Hooks

What cocoindex-code runs automatically, and when. A hook is a command Claude Code fires at a fixed moment, without you asking for it.

From plugin
cocoindex-code
2.6k1 skill1 hook1 MCP
Install
> /plugin marketplace add cocoindex-io/cocoindex-code
> /plugin install cocoindex-code@cocoindex-code

Ships with cocoindex-code. Installing the plugin gets these hooks.

What fires, and when

SessionStart

Fires once when a session begins, and again after a context compaction. It is where a plugin sets up its environment, or restores state the compaction dropped.

  • command -v ccc >/dev/null && test -d "${CLAUDE_PROJECT_DIR}/.cocoindex_code" && (cd "${CLAUDE_PROJECT_DIR}" && ccc index) 2>/dev/null || true
Read hooks/hooks.json
Ships withcocoindex-code

A super light-weight embedded code search engine CLI (AST based) that just works - improves speed and efficiency for coding agent 🌟 Star if you like it!

Get the whole plugin
Stats
2,619
Stars
210
Forks
Active
Maintenance
Python
Language
Apache-2.0
License
3d ago
Last commit
6mo ago
Created

Repo: cocoindex-io/cocoindex-code