a691a3ac0a
- Rename delegate_task tool to task across codebase (100 files) - Update model references: claude-opus-4-6 → 4-5, gpt-5.3-codex → 5.2-codex - Add tool-metadata-store to restore metadata overwritten by fromPlugin() - Add session ID polling for BackgroundManager task sessions - Await async ctx.metadata() calls in tool executors - Add ses_ prefix guard to getMessageDir for performance - Harden BackgroundManager with idle deferral and error handling - Fix duplicate task key in sisyphus-junior test object literals - Fix unawaited showOutputToUser in ast_grep_replace - Fix background=true → run_in_background=true in ultrawork prompt - Fix duplicate task/task references in docs and comments
79 lines
4.3 KiB
TypeScript
79 lines
4.3 KiB
TypeScript
import { createSystemDirective, SystemDirectiveTypes } from "../../shared/system-directive"
|
|
import { getAgentDisplayName } from "../../shared/agent-display-names"
|
|
|
|
export const HOOK_NAME = "prometheus-md-only"
|
|
|
|
export const PROMETHEUS_AGENT = "prometheus"
|
|
|
|
export const ALLOWED_EXTENSIONS = [".md"]
|
|
|
|
export const ALLOWED_PATH_PREFIX = ".sisyphus"
|
|
|
|
export const BLOCKED_TOOLS = ["Write", "Edit", "write", "edit", "bash"]
|
|
|
|
export const PLANNING_CONSULT_WARNING = `
|
|
|
|
---
|
|
|
|
${createSystemDirective(SystemDirectiveTypes.PROMETHEUS_READ_ONLY)}
|
|
|
|
You are being invoked by ${getAgentDisplayName("prometheus")}, a READ-ONLY planning agent.
|
|
|
|
**CRITICAL CONSTRAINTS:**
|
|
- DO NOT modify any files (no Write, Edit, or any file mutations)
|
|
- DO NOT execute commands that change system state
|
|
- DO NOT create, delete, or rename files
|
|
- ONLY provide analysis, recommendations, and information
|
|
|
|
**YOUR ROLE**: Provide consultation, research, and analysis to assist with planning.
|
|
Return your findings and recommendations. The actual implementation will be handled separately after planning is complete.
|
|
|
|
---
|
|
|
|
`
|
|
|
|
export const PROMETHEUS_WORKFLOW_REMINDER = `
|
|
|
|
---
|
|
|
|
${createSystemDirective(SystemDirectiveTypes.PROMETHEUS_READ_ONLY)}
|
|
|
|
## PROMETHEUS MANDATORY WORKFLOW REMINDER
|
|
|
|
**You are writing a work plan. STOP AND VERIFY you completed ALL steps:**
|
|
|
|
┌─────────────────────────────────────────────────────────────────────┐
|
|
│ PROMETHEUS WORKFLOW │
|
|
├──────┬──────────────────────────────────────────────────────────────┤
|
|
│ 1 │ INTERVIEW: Full consultation with user │
|
|
│ │ - Gather ALL requirements │
|
|
│ │ - Clarify ambiguities │
|
|
│ │ - Record decisions to .sisyphus/drafts/ │
|
|
├──────┼──────────────────────────────────────────────────────────────┤
|
|
│ 2 │ METIS CONSULTATION: Pre-generation gap analysis │
|
|
│ │ - task(agent="Metis (Plan Consultant)", ...) │
|
|
│ │ - Identify missed questions, guardrails, assumptions │
|
|
├──────┼──────────────────────────────────────────────────────────────┤
|
|
│ 3 │ PLAN GENERATION: Write to .sisyphus/plans/*.md │
|
|
│ │ <- YOU ARE HERE │
|
|
├──────┼──────────────────────────────────────────────────────────────┤
|
|
│ 4 │ MOMUS REVIEW (if high accuracy requested) │
|
|
│ │ - task(agent="Momus (Plan Reviewer)", ...) │
|
|
│ │ - Loop until OKAY verdict │
|
|
├──────┼──────────────────────────────────────────────────────────────┤
|
|
│ 5 │ SUMMARY: Present to user │
|
|
│ │ - Key decisions made │
|
|
│ │ - Scope IN/OUT │
|
|
│ │ - Offer: "Start Work" vs "High Accuracy Review" │
|
|
│ │ - Guide to /start-work │
|
|
└──────┴──────────────────────────────────────────────────────────────┘
|
|
|
|
**DID YOU COMPLETE STEPS 1-2 BEFORE WRITING THIS PLAN?**
|
|
**AFTER WRITING, WILL YOU DO STEPS 4-5?**
|
|
|
|
If you skipped steps, STOP NOW. Go back and complete them.
|
|
|
|
---
|
|
|
|
`
|