Skip to content

docs: add beta agent pre-run script page - #631

Merged
omerbensaadon merged 24 commits into
mainfrom
tembo/beta-agent-pre-run-script
Jul 17, 2026
Merged

docs: add beta agent pre-run script page#631
omerbensaadon merged 24 commits into
mainfrom
tembo/beta-agent-pre-run-script

Conversation

@tembo

@tembotemboBot commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

summary

  • add beta/agent-pre-run-script.mdx as a url-only beta docs page
  • mark the page hidden: true and leave it out of docs.json so it is not listed in navigation
  • document the proposed customer-facing path as /beta/agent-pre-run-script

validation

  • git merge --no-edit origin/main returned already up to date
  • npx --yes mintlify validate

Want tembo to make any changes? Add a comment with @tembo and i'll get back to work!

View on TemboView Agent SettingsView on slack


Note

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.mdx for the beta agent post-trigger hooks feature (direct URL only; not in nav).

The page documents how per-agent shell commands run in /workspace after repo setup and before the agent starts: stdout becomes pre-run thread context, non-zero exits block the run, and TRIGGER_PAYLOAD is 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.

@tembotemboBot added the tembo Pull request created by Tembo label Jul 17, 2026
@mintlify

mintlifyBot commented Jul 17, 2026

Copy link
Copy Markdown

Preview deployment for your docs. Learn more about Mintlify Previews.

ProjectStatusPreviewUpdated (UTC)
tembo🟢 ReadyView PreviewJul 17, 2026, 1:06 AM

💡 Tip: Enable Workflows to automatically generate PRs for you.

Comment threadbeta/agent-pre-run-script.mdx Outdated
#!/usr/bin/env bash
set -euo pipefail

echo "$TRIGGER_PAYLOAD" | jq .

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

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

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.

@mintlify

mintlifyBot commented Jul 17, 2026

Copy link
Copy Markdown

Preview deployment for your docs. Learn more about Mintlify Previews.

ProjectStatusPreviewUpdated (UTC)
tembo🟡 BuildingJul 17, 2026, 1:05 AM

💡 Tip: Enable Workflows to automatically generate PRs for you.

Comment threadbeta/agent-pre-run-script.mdx Outdated
Comment threadbeta/agent-pre-run-script.mdx Outdated
Comment threadbeta/agent-pre-run-script.mdx Outdated
Comment threadbeta/agent-pre-run-script.mdx Outdated
Comment threadbeta/agent-pre-run-script.mdx Outdated
Comment threadbeta/agent-pre-run-script.mdx Outdated
first round of edits
Co-authored-by: Omer Bensaadon <omerbensaadon@gmail.com>
Comment threadbeta/agent-pre-run-script.mdx Outdated
Comment threadbeta/agent-pre-run-script.mdx Outdated
Co-authored-by: Omer <omerbensaadon@gmail.com>
Comment threadbeta/agent-post-trigger-hook.mdx Outdated
Comment threadbeta/agent-post-trigger-hook.mdx Outdated
Co-authored-by: Omer Bensaadon <omerbensaadon@gmail.com>
Comment threadbeta/agent-post-trigger-hook.mdx Outdated
Comment threadbeta/agent-post-trigger-hook.mdx Outdated
Co-authored-by: Omer Bensaadon <omerbensaadon@gmail.com>
Comment threadbeta/agent-post-trigger-hook.mdx Outdated
Comment threadbeta/agent-post-trigger-hook.mdx Outdated
Comment threadbeta/agent-post-trigger-hook.mdx Outdated
Comment threadbeta/agent-post-trigger-hook.mdx
Comment threadbeta/agent-post-trigger-hook.mdx

@benjabenja left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

we sometimes use "pre-run script" and other times "post-trigger hooks" - should stick with one of them. other than that, lgtm.

@omerbensaadon
omerbensaadon merged commit 55346c1 into mainJul 17, 2026
3 checks passed
@omerbensaadon
omerbensaadon deleted the tembo/beta-agent-pre-run-script branch July 17, 2026 15:53
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

temboPull request created by Tembo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@omerbensaadon@benja@vrmiguel