{"repo":"KristjanPikhof/Pi-YAML-Hooks","free":true,"listed":false,"github":"https://github.com/KristjanPikhof/Pi-YAML-Hooks","clone":"git clone https://github.com/KristjanPikhof/Pi-YAML-Hooks.git","description":"YAML hook automation for the PI coding agent: tool guards, session hooks, prompts, notifications, and bash actions.","language":"TypeScript","stars":13,"topics":["agent-hooks","agentic-ai","agents","ai","automation","coding-agent","developer-tools","hooks","pi","pi-coding-agent"],"license":"MIT","category":"workflow-automation","readme_excerpt":"pi-yaml-hooks pi-yaml-hooks runs YAML-configured hooks in Pi and Oh My Pi (OMP). Use it to guard tool calls, react to file and session events, add context to a prompt, or show UI feedback. The same package and hook format work in both hosts. Quick start Install the package for your host: Create a global hook file: Save this as /.pi/agent/hook/hooks.yaml for Pi or /.omp/agent/hook/hooks.yaml for OMP: Start the host and run: The command shows which files loaded, the project trust state, and the active log path. What you can configure Surface Supported values --- --- Events user.prompt.submit , tool.before. , tool.after. , file.changed , session.created , session.idle , session.deleted Actions bash , tool , notify , confirm , setStatus Conditions matchesCodeFiles , matchesAnyPath , matchesAllPaths Session scope all , main , child Commands /hooks-status , /hooks-validate , /hooks-trust , /hooks-reload , /hooks-tail-log bash actions receive JSON on stdin and PI context variables. A tool.before. bash action can block a tool call by exiting with code 2 . A user.prompt.submit bash action can return system context for the same turn on stdout. See examples for copyable hooks and the reference for the full schema. Config files and trust pi-yaml-hooks loads at most one global root file and one project root file. Host Global root Project root --- --- --- Pi /.pi/agent/hook/hooks.yaml /.pi/hook/hooks.yaml OMP default profile /.omp/agent/hook/hooks.yaml /.omp/hook/hooks.yaml OMP named profi","default_branch":null,"files":null,"tree":[],"storefront":"/r/KristjanPikhof","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/KristjanPikhof/Pi-YAML-Hooks/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}