Runs before the agent uses a tool for Bash, Edit, Write, MultiEdit and NotebookEdit tool calls, executing foundry-harvest-learnings.sh, foundry-git-discipline.sh, foundry-cloud-cli-exec-guard.sh and foundry-cwd-enforce.sh with --protected (4 commands). From lukasrepublic/agentic-foundry.
Runs after a tool call finishes for Agent and Workflow tool calls, executing foundry-harvest-learnings.sh and foundry-run-metrics.sh (2 commands). From lukasrepublic/agentic-foundry.
Runs when a session starts on compact, executing foundry-doctor.py, foundry-native-todo-discipline.py and foundry-compact-reinject.sh with --heal and --session-start (4 commands). From lukasrepublic/agentic-foundry.