13 lines
357 B
PowerShell
13 lines
357 B
PowerShell
# planning-with-files: Pre-tool-use hook for Cursor (PowerShell)
|
|
# Reads the first 30 lines of task_plan.md to keep goals in context.
|
|
# Returns {"decision": "allow"} — this hook never blocks tools.
|
|
|
|
$PlanFile = "task_plan.md"
|
|
|
|
if (Test-Path $PlanFile) {
|
|
Get-Content $PlanFile -TotalCount 30 | Write-Host
|
|
}
|
|
|
|
Write-Output '{"decision": "allow"}'
|
|
exit 0
|