When Prometheus (Planner) spawns subagents via task tools (sisyphus_task, task, call_omo_agent), a system directive is injected into the prompt to ensure subagents understand they are in a planning consultation context and must NOT modify files. 🤖 GENERATED WITH ASSISTANCE OF [OhMyOpenCode](https://github.com/code-yeongyu/oh-my-opencode)
31 lines
900 B
TypeScript
31 lines
900 B
TypeScript
export const HOOK_NAME = "prometheus-md-only"
|
|
|
|
export const PROMETHEUS_AGENTS = ["Prometheus (Planner)"]
|
|
|
|
export const ALLOWED_EXTENSIONS = [".md"]
|
|
|
|
export const ALLOWED_PATH_PREFIX = ".sisyphus/"
|
|
|
|
export const BLOCKED_TOOLS = ["Write", "Edit", "write", "edit"]
|
|
|
|
export const PLANNING_CONSULT_WARNING = `
|
|
|
|
---
|
|
|
|
[SYSTEM DIRECTIVE - READ-ONLY PLANNING CONSULTATION]
|
|
|
|
You are being invoked by Prometheus (Planner), 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.
|
|
|
|
---
|
|
|
|
`
|