Add agent hooks for post functionality#172
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adds a new unpublished markdown post introducing VS Code Agent Hooks and how they fit into the broader Copilot customization workflow.
Changes:
- Adds a full Agent Hooks explainer post with lifecycle event descriptions.
- Includes hook configuration examples for formatting, blocking commands, and injecting context.
- Adds safety, troubleshooting, Claude compatibility, and customization-stack guidance.
Comments suppressed due to low confidence (1)
posts/danieldiaz-qaa/2.agent-hooks.md:210
- This section states that VS Code hook inputs use camelCase, but the earlier PreToolUse example and parser use
tool_name/tool_inputin snake_case. One of these examples is wrong; align the payload shape and parser throughout the post so readers can copy a working hook.
- **Tool input property names**: Claude Code uses `snake_case` (e.g. `tool_input.file_path`), VS Code uses `camelCase` (e.g. `tool_input.filePath`)
- **Tool names**: different. Claude uses `Write`/`Edit`, VS Code uses `create_file`/`replace_string_in_file`
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
Dry-run output: |
pabloromeo
approved these changes
May 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request adds a new unpublished post, "Your agent follows instructions. Until it doesn't.", which introduces and explains Agent Hooks in VS Code. The post provides a comprehensive overview of how Agent Hooks work, their importance compared to instructions and skills, practical usage examples, safety considerations, and integration with other customization features.
Key additions and themes:
New Content: Agent Hooks Overview
2.agent-hooks.md) explaining what Agent Hooks are, how they differ from instructions and skills, and why they matter for deterministic automation in agent workflows.Practical Guidance and Examples
Safety and Troubleshooting
Cross-Platform and Integration Notes