Repository navigation
[Feature] Add configurable pre-execution enforcement hooks to Prime Agent #3896
rabii-chaarani
started this conversation in
Feature requests
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.
I would like to configure enforcement hooks in Prime Agent without maintaining a custom Rust build.
Requested capability
Please expose configurable hooks through a supported mechanism, such as an external command that receives and returns structured JSON.
The pre-execution hook should:
Receive the tool name, validated arguments, working directory, session identity and tool-call ID. For Python execution, include the complete cell source.
Return an explicit allow or deny decision, with a reason returned to the agent.
Complete before tool execution begins.
Deny execution when a configured enforcement hook fails, times out or returns an invalid response.
Apply consistently to interactive, headless, ACP, resumed and background sessions, with defined inheritance for child agents.
Have documented configuration precedence so project settings cannot silently disable a mandatory user-level policy.
A post-execution hook would also be useful for recording outcomes. Its role should be clearly distinguished from preventing an action.
All reactions