Buckets:
ktongue/docker_container / .vscode-server /extensions /ms-python.vscode-python-envs-1.20.1-linux-arm64 /.github /hooks /scripts
20.9 GB
673,093 files
Updated 4 months ago
Ctrl+K
| Name | Size | Uploaded | Xet hash |
|---|---|---|---|
| subagent_stop.py | 1.17 kB xet | d1c4bb2c | |
| stop_hook.py | 4.91 kB xet | b04dcad1 | |
| session_start.py | 5.27 kB xet | 53e59d8d | |
| post_tool_use.py | 4.21 kB xet | cde49ddd | |
| README.md | 1.23 kB xet | 955f1023 |
Copilot Agent Hooks Scripts
This directory contains Python scripts used by agent hooks to automate workflow validation.
Scripts
session_start.py
Runs at session start to inject project context:
- Current git branch and commit
- Uncommitted changes count
- Open issues (if gh CLI available)
- Snapshot health summary (if available)
- Available skills reminder
post_tool_use.py
Runs after file edit tools to provide immediate feedback:
- Runs ESLint on changed TypeScript files
- Reports lint errors back to the model
stop_hook.py
Runs before session ends to enforce workflow:
- Checks for uncommitted TypeScript changes
- Reminds about pre-commit checks
- Blocks completion if staged changes aren't committed
subagent_stop.py
Runs when subagents complete:
- Currently a passthrough for logging
- Can be extended to validate reviewer output
Requirements
These scripts use Python 3.9+ with no external dependencies (beyond what's already in the repo).
They expect:
gitCLI availableghCLI available (optional, for issue context)npxavailable for running ESLint
Hook Configuration
See .github/hooks/maintainer-hooks.json for the hook configuration that loads these scripts.
- Total size
- 20.9 GB
- Files
- 673,093
- Last updated
- Mar 19
- Pre-warmed CDN
- US EU US EU