refactor(hooks): rename sisyphus-gpt-hephaestus-reminder to no-sisyphus-gpt

Shorter hook name, disableable via disabled_hooks config, migration added
for backward compatibility. Also forces agent switch to Hephaestus on
Sisyphus + GPT detection. Docs updated with new hook name.
This commit is contained in:
YeonGyu-Kim
2026-02-18 16:33:16 +09:00
parent 27ed1664e9
commit 2fbee82494
11 changed files with 57 additions and 26 deletions
+1 -1
View File
@@ -81,7 +81,7 @@ export function createChatMessageHandler(args: {
await hooks.keywordDetector?.["chat.message"]?.(input, output)
await hooks.claudeCodeHooks?.["chat.message"]?.(input, output)
await hooks.autoSlashCommand?.["chat.message"]?.(input, output)
await hooks.sisyphusGptHephaestusReminder?.["chat.message"]?.(input)
await hooks.noSisyphusGpt?.["chat.message"]?.(input, output)
if (hooks.startWork && isStartWorkHookOutput(output)) {
await hooks.startWork["chat.message"]?.(input, output)
}
+5 -5
View File
@@ -20,7 +20,7 @@ import {
createStartWorkHook,
createPrometheusMdOnlyHook,
createSisyphusJuniorNotepadHook,
createSisyphusGptHephaestusReminderHook,
createNoSisyphusGptHook,
createQuestionLabelTruncatorHook,
createPreemptiveCompactionHook,
} from "../../hooks"
@@ -51,7 +51,7 @@ export type SessionHooks = {
startWork: ReturnType<typeof createStartWorkHook> | null
prometheusMdOnly: ReturnType<typeof createPrometheusMdOnlyHook> | null
sisyphusJuniorNotepad: ReturnType<typeof createSisyphusJuniorNotepadHook> | null
sisyphusGptHephaestusReminder: ReturnType<typeof createSisyphusGptHephaestusReminderHook> | null
noSisyphusGpt: ReturnType<typeof createNoSisyphusGptHook> | null
questionLabelTruncator: ReturnType<typeof createQuestionLabelTruncatorHook>
taskResumeInfo: ReturnType<typeof createTaskResumeInfoHook>
anthropicEffort: ReturnType<typeof createAnthropicEffortHook> | null
@@ -158,8 +158,8 @@ export function createSessionHooks(args: {
? safeHook("sisyphus-junior-notepad", () => createSisyphusJuniorNotepadHook(ctx))
: null
const sisyphusGptHephaestusReminder = isHookEnabled("sisyphus-gpt-hephaestus-reminder")
? safeHook("sisyphus-gpt-hephaestus-reminder", () => createSisyphusGptHephaestusReminderHook(ctx))
const noSisyphusGpt = isHookEnabled("no-sisyphus-gpt")
? safeHook("no-sisyphus-gpt", () => createNoSisyphusGptHook(ctx))
: null
const questionLabelTruncator = createQuestionLabelTruncatorHook()
@@ -187,7 +187,7 @@ export function createSessionHooks(args: {
startWork,
prometheusMdOnly,
sisyphusJuniorNotepad,
sisyphusGptHephaestusReminder,
noSisyphusGpt,
questionLabelTruncator,
taskResumeInfo,
anthropicEffort,