---
title: "context-hub-hooks"
description: "Archive and classify completed Codex sessions in Context Hub."
canonical: https://agentpluginsdirectory.com/plugins/context-hub-hooks
last-updated: 2026-10-05
---

# context-hub-hooks
Archive and classify completed Codex sessions in Context Hub.
- Slug: context-hub-hooks
- Publisher: cher1shRXD
- Repository: https://github.com/cher1shRXD/ai-infra
- Manifest: apps/context-hooks/plugin.json
- Version: 0.6.0
- Category (editorial): other
- Skills: 0
- MCP servers: 0
- Stars: 0
- Repository created: 2026-10-01
- Repository last pushed: 2026-10-01
- Publisher type: User
- Listing: https://agentpluginsdirectory.com/plugins/context-hub-hooks
- Schema: https://agent-plugins.org/schemas/1.0.0/plugin.schema.json

## What context-hub-hooks does, in the publisher's words

회사에서 사용하는 Codex와 Claude Code의 완료된 세션을 Context Hub에 보관하는 Hook 프로젝트다.

- Stop에서 매 응답 완료 시 checkpoint하고 SessionEnd에서 마지막으로 한 번 더 보장한다.
- Hook event의 session_id와 transcript_path를 사용한다.
- transcript에서 일반적인 API key, bearer token, password 패턴을 제거한다.
- 전송 전에 로컬 outbox에 기록하여 API 장애 시 다음 세션 종료 때 재시도한다.
- 같은 세션은 upsert하므로 checkpoint마다 중복 세션이 생기지 않는다.
- API는 원문을 저장한 뒤 로컬 Ollama 임베딩으로 접근 가능한 업무 공간과 유사도를 계산한다.

원문 transcript와 재사용 가능한 memory는 서로 다른 테이블이다. 원문 전체가 벡터 memory node가 되지는 않는다.

설치 후 첫 Hook 실행에서 서버에 자동 등록된다. 별도 URL이나 API key 설정은 없다.

From the project README, punctuation lightly normalized. Full text: https://raw.githubusercontent.com/cher1shRXD/ai-infra/HEAD/apps/context-hooks/README.md
