Uh oh!
There was an error while loading. Please reload this page.
docs: add beta agent pre-run script page - #631
Conversation
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Workflows to automatically generate PRs for you. |
| #!/usr/bin/env bash | ||
| set -euo pipefail | ||
| echo "$TRIGGER_PAYLOAD" | jq . |
There was a problem hiding this comment.
Since script stdout is passed into agent context, this example can encourage dumping full webhook payloads that may include sensitive fields. It would be safer to show extracting only the fields needed for setup instead of printing the whole payload.
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Workflows to automatically generate PRs for you. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
first round of edits Co-authored-by: Omer Bensaadon <omerbensaadon@gmail.com>
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Co-authored-by: Omer <omerbensaadon@gmail.com>
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Co-authored-by: Omer Bensaadon <omerbensaadon@gmail.com>
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Co-authored-by: Omer Bensaadon <omerbensaadon@gmail.com>
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
benja
left a comment
There was a problem hiding this comment.
we sometimes use "pre-run script" and other times "post-trigger hooks" - should stick with one of them. other than that, lgtm.
Uh oh!
There was an error while loading. Please reload this page.
summary
beta/agent-pre-run-script.mdxas a url-only beta docs pagehidden: trueand leave it out ofdocs.jsonso it is not listed in navigation/beta/agent-pre-run-scriptvalidation
git merge --no-edit origin/mainreturnedalready up to datenpx --yes mintlify validateNote
Low Risk
Documentation-only addition with no product or runtime code changes.
Overview
Adds a new hidden Mintlify page at
beta/agent-post-trigger-hook.mdxfor the beta agent post-trigger hooks feature (direct URL only; not in nav).The page documents how per-agent shell commands run in
/workspaceafter repo setup and before the agent starts: stdout becomes pre-run thread context, non-zero exits block the run, andTRIGGER_PAYLOADis available for integration triggers. It includes setup steps, examples (secrets, Linear description checks), resume vs retry behavior, and a pointer to repo-level Hooks vs Snapshots for dependencies.Reviewed by Cursor Bugbot for commit 5c0512d. Bugbot is set up for automated code reviews on this repo. Configure here.