Skip to content

feat(prompt): add deployed-app verification step to default workflow#84

Open
thisistonydang wants to merge 1 commit intomainfrom
thisistonydang/agent-browser
Open

feat(prompt): add deployed-app verification step to default workflow#84
thisistonydang wants to merge 1 commit intomainfrom
thisistonydang/agent-browser

Conversation

@thisistonydang
Copy link
Copy Markdown
Collaborator

Summary

Adds a new step 8 to the default agent workflow in content/dev-guidelines.md: run and test the deployed app end to end with agent-browser before reporting done. The new section instructs agents to load the deployed app, smoke-test it, inspect logs via the Databricks CLI, and loop on redeploys until clean.

This content is concatenated into every /api/bootstrap-prompt response (powered by composeAgentPrompt in src/lib/copy-preamble.ts), so it ships immediately to:

  • the homepage Copy prompt for your agent button
  • every recipe / cookbook / example detail page's Copy prompt button

Pending dependency

This PR is pending databricks/databricks-agent-skills#63, which adds the agent-browser reference (references/appkit/agent-browser.md) to the databricks-apps skill. Once that PR lands, agents that have the databricks-apps skill loaded will automatically follow the full recipe (deployed URL with --headed --profile <dir> for one-time SSO, daemon flag gotchas, databricks apps run-local edge case for header-injection testing).

The new step is written to degrade gracefully when the skill isn't available — bullet 1 has an inline npm install -g agent-browser fallback so non-Databricks-skilled agents still execute the verification loop manually.

Test plan

  • npm run fmt passes
  • npm run typecheck passes
  • npx vitest run tests/bootstrap-prompt.test.ts passes (13/13)
  • Pre-commit hook (prettier -c . + typecheck + verify:images + build) passes
  • Eyeball /api/bootstrap-prompt response on the preview deployment to confirm the new section renders inline
  • Eyeball the homepage Copy prompt for your agent button output on the preview deployment

Extends dev-guidelines.md (concatenated into every /api/bootstrap-prompt
response and the homepage Copy-prompt button payload) with a new step 8:
drive the deployed app end to end with `agent-browser`, loop on log
inspection and redeploys, and only report done after a clean pass.

Routes agents to the `databricks-apps` skill's agent-browser reference
when available, with an inline `npm install -g agent-browser` fallback
for agents that don't have the skill loaded.

Pending databricks/databricks-agent-skills#63 (adds the agent-browser
reference to the `databricks-apps` skill).
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.

1 participant