Skip to content

feat: Hooks - #9093

Merged
alexhancock merged 1 commit into
mainfrom
alexhancock/hooks
May 11, 2026
Merged

feat: Hooks#9093
alexhancock merged 1 commit into
mainfrom
alexhancock/hooks

Conversation

@alexhancock

@alexhancock alexhancock commented May 7, 2026

Copy link
Copy Markdown
Collaborator

Summary

Hooks support https://open-plugins.com/agent-builders/components/hooks

Testing

Manually tested with desktop via just run-ui

Related Issues

N/A

Screenshots/Demos (for UX changes)

Screenshot 2026-05-08 at 10 39 11 AM

@michaelneale

Copy link
Copy Markdown
Collaborator

that seems nicer/crisper/cleaner than I thought! pretty cool

@alexhancock
alexhancock force-pushed the alexhancock/hooks branch from a8cef11 to 56856ad Compare May 8, 2026 14:27
@alexhancock
alexhancock marked this pull request as ready for review May 8, 2026 14:39

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 56856ad32f

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread crates/goose/src/hooks/mod.rs
Comment thread crates/goose/src/agents/agent.rs Outdated
Comment thread crates/goose-cli/src/session/mod.rs Outdated
@alexhancock
alexhancock force-pushed the alexhancock/hooks branch from 56856ad to 6626ed7 Compare May 8, 2026 17:35

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 6626ed7961

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread crates/goose/src/hooks/mod.rs
Comment thread crates/goose/src/hooks/mod.rs
Comment thread crates/goose/src/agents/agent.rs

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: efed2335d8

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread crates/goose/src/agents/agent.rs
)
.with_working_dir(session.working_dir.to_string_lossy().to_string());
self.hook_manager
.emit(crate::hooks::HookEvent::PreToolUse, ctx)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PreToolUse would allow blocking tool execution, right? Is that something we'd come back to?

Looks like open-plugins itself doesn't specify, but I believe in Claude Code this is designed such that you could e.g. have a hook deny a tool call

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Interesting! Going to merge to take advantage of the green ci but will make a note to revisit in a future change

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants