Skip to content

feat(omp): session-start and post-edit index hooks - #281

Merged
georgeh0 merged 1 commit into
cocoindex-io:mainfrom
Roxabi:feat/omp-post-edit-index-hooks
Aug 30, 2026
Merged

feat(omp): session-start and post-edit index hooks#281
georgeh0 merged 1 commit into
cocoindex-io:mainfrom
Roxabi:feat/omp-post-edit-index-hooks

Conversation

@MickaelV0

Copy link
Copy Markdown
Contributor

Description

Oh My Pi does not execute Claude hooks/hooks.json command hooks. This adds the missing OMP equivalent of the SessionStart + PostToolUse pair, and the matching Grok/Claude PostToolUse hook.

  • extensions/ccc-index.ts via package.json#omp.extensions: fail-open ccc index on session_start and after edit tool_result (Edit/Write/MultiEdit/search_replace + OMP names) when .cocoindex_code/ exists.
  • hooks/hooks.json: keep SessionStart, add PostToolUse; resolve project root from CLAUDE_PROJECT_DIR / GROK_WORKSPACE_ROOT / git toplevel.
  • README: document the OMP extension (restart required; /reload-plugins does not reload extensions) and Grok PostToolUse.

Motivation

Upstream already ships the OMP marketplace catalog (#277) with skill + MCP. Without the TypeScript extension, OMP never auto-indexes after edits. Grok/Claude only reindexed on session start.

Breaking change

No.

Related

Follow-up to #277.

Oh My Pi does not run Claude hooks/hooks.json. Ship a TypeScript
extension (package.json#omp.extensions) that reindexes on session_start
and after edit tool results, and add the matching PostToolUse hook for
Grok/Claude. Fail-open if ccc or .cocoindex_code is missing.
@georgeh0
georgeh0 merged commit 2a3ba53 into cocoindex-io:main Aug 30, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants