2c6dfeadce
Implements hook that tracks whether explore/librarian agents have been used in a session. When target tools (Grep, Glob, WebFetch, context7, websearch_exa, grep_app) are called without prior agent usage, appends reminder message recommending parallel background_task calls. State persists across tool calls and resets on session compaction, allowing fresh reminders after context compaction - similar to directory-readme-injector pattern. Files: - src/hooks/agent-usage-reminder/: New hook implementation - types.ts: AgentUsageState interface - constants.ts: TARGET_TOOLS, AGENT_TOOLS, REMINDER_MESSAGE - storage.ts: File-based state persistence with compaction handling - index.ts: Hook implementation with tool.execute.after and event handlers - src/config/schema.ts: Add 'agent-usage-reminder' to HookNameSchema - src/hooks/index.ts: Export createAgentUsageReminderHook - src/index.ts: Instantiate and register hook handlers 🤖 GENERATED WITH ASSISTANCE OF [OhMyOpenCode](https://github.com/code-yeongyu/oh-my-opencode)
18 lines
1.2 KiB
TypeScript
18 lines
1.2 KiB
TypeScript
export { createTodoContinuationEnforcer, type TodoContinuationEnforcer } from "./todo-continuation-enforcer";
|
|
export { createContextWindowMonitorHook } from "./context-window-monitor";
|
|
export { createSessionNotification } from "./session-notification";
|
|
export { createSessionRecoveryHook, type SessionRecoveryHook } from "./session-recovery";
|
|
export { createCommentCheckerHooks } from "./comment-checker";
|
|
export { createGrepOutputTruncatorHook } from "./grep-output-truncator";
|
|
export { createDirectoryAgentsInjectorHook } from "./directory-agents-injector";
|
|
export { createDirectoryReadmeInjectorHook } from "./directory-readme-injector";
|
|
export { createEmptyTaskResponseDetectorHook } from "./empty-task-response-detector";
|
|
export { createAnthropicAutoCompactHook } from "./anthropic-auto-compact";
|
|
export { createThinkModeHook } from "./think-mode";
|
|
export { createClaudeCodeHooksHook } from "./claude-code-hooks";
|
|
export { createRulesInjectorHook } from "./rules-injector";
|
|
export { createBackgroundNotificationHook } from "./background-notification"
|
|
export { createAutoUpdateCheckerHook } from "./auto-update-checker";
|
|
export { createUltraworkModeHook } from "./ultrawork-mode";
|
|
export { createAgentUsageReminderHook } from "./agent-usage-reminder";
|