Hooks 🪝 to execute predefined Agent tasks - From Kiro IDE #34962
sFritsch09
started this conversation in
Edit Predictions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Current Limitation:
Zed supports spawning (and rerunning) commands via its integrated terminal, with output visible there. These commands can access a limited subset of Zed state, like the current file path or selected text. However, there's no built-in way to trigger AI agent tasks based on IDE events (e.g., pre-commit), limiting context-aware automation.
Proposed Feature: Introduce AI Hooks
Add Hooks to Zed: event-triggered mechanisms that execute predefined AI agent prompts in response to IDE state changes, such as file saves or Git pre-commits. This goes beyond terminal commands by integrating AI for intelligent outputs like generated commit messages.
git:pre-commit
), agent prompts, context (e.g., file diffs), and outputs (e.g., commit messages). See examples at kiro.help/docs/kiro/hooks/examples.Key Use Case: Smart Git Commit Messages
Users want customizable prompts for AI-generated commits. Example hook config:
Benefits:
This would make Zed more AI-integrated and event-responsive. Implementation could use a config file like
.zed/hooks.json
.Beta Was this translation helpful? Give feedback.
All reactions