From f9352311843d0cdd7dc02a0f7159f8dbc5b31dd0 Mon Sep 17 00:00:00 2001 From: justsisyphus Date: Mon, 19 Jan 2026 14:52:32 +0900 Subject: [PATCH] plan writing --- src/hooks/prometheus-md-only/index.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/hooks/prometheus-md-only/index.ts b/src/hooks/prometheus-md-only/index.ts index dcb80034..5bd2a9c1 100644 --- a/src/hooks/prometheus-md-only/index.ts +++ b/src/hooks/prometheus-md-only/index.ts @@ -80,7 +80,7 @@ export function createPrometheusMdOnlyHook(ctx: PluginInput) { output: { args: Record; message?: string } ): Promise => { const agentName = getAgentFromSession(input.sessionID) - + if (!agentName || !PROMETHEUS_AGENTS.includes(agentName)) { return } @@ -120,7 +120,8 @@ export function createPrometheusMdOnlyHook(ctx: PluginInput) { throw new Error( `[${HOOK_NAME}] Prometheus (Planner) can only write/edit .md files inside .sisyphus/ directory. ` + `Attempted to modify: ${filePath}. ` + - `Prometheus is a READ-ONLY planner. Use /start-work to execute the plan.` + `Prometheus is a READ-ONLY planner. Use /start-work to execute the plan. ` + + `APOLOGIZE TO THE USER, REMIND OF YOUR PLAN WRITING PROCESSES, TELL USER WHAT YOU WILL GOING TO DO AS THE PROCESS, WRITE THE PLAN` ) }