Feat/deploy ai agent prompt - #835
Conversation
Adds a `deploy-ai-agent` prompt template that walks an end-to-end workflow for shipping an AI agent from an IDE to a cloud agent runtime (Google Agent Runtime or AWS AgentCore) via Harness CD: get the code into a repo, build & push the agent image (CI), then create the AiAgent service, environment, infrastructure, and a build-to-deploy pipeline. The prompt encodes the non-obvious contract for AI agent deployment: the agent image is a URI string on the service source (not an artifact source), a build step is mandatory, the image is chained via a shared `<+pipeline.sequenceId>` tag, and AwsAgentCore requires executionRoleArn. It embeds the CI BuildAndPushGAR/ECR steps and all six CD steps (Deploy/Shift/Rollback for each platform). Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Verified against the live NG /yaml-schema endpoint: GoogleAgentSource and AwsCoreAgentSource gate their container spec on type const "container" (lowercase), not "Container". Correct the embedded service YAML in both platform blocks and add a regression assertion. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
|
|
Review summarySolid addition — the phased A→G workflow mirrors I ran the new test file locally: 9/9 passing. Verdict: Approve with suggestions — none are blockers, but a few gaps could cause agent confusion during real "ship from IDE" runs. Strengths
Suggestions (see inline)
Happy to re-review after updates. |
Summary
deploy-ai-agentprompt template (src/prompts/deploy-ai-agent.ts) that walks an end-to-end workflow for shipping an AI agent from an IDE to a cloud agent runtime (Google Agent Runtime or AWS AgentCore) via Harness CD.AiAgentservice → create environment + infrastructure → add the CD deploy stage and run it, with a failure/retry loop.src/prompts/index.tsand addstests/prompts/deploy-ai-agent.test.ts(9 tests). README prompt count regenerated 34 → 35.Why
Harness CD recently shipped AI agent deployment (service type
AiAgent; infra kindsGoogleAgentRuntime/AwsAgentCore). This prompt brings that flow to the MCP server so an IDE coding agent can drive "ship this agent" reliably.The prompt encodes the non-obvious contract:
platform.spec.source.spec.image), not an artifact source.<+pipeline.sequenceId>tag.executionRoleArn.It embeds the CI
BuildAndPushGAR/BuildAndPushECRsteps and all six CD steps (Deploy/Shift/Rollback per platform).Notes
harness_schemain the prompt relies on live NG/yaml-schemafallback to surface the AiAgent types on FF-enabled accounts (no snapshot re-vendoring included).Test plan
pnpm typecheck— cleanpnpm standards:check— 77/77pnpm docs:check— README up to datepnpm test tests/prompts/— 72/72 (incl. 9 new)/yaml-schemasurfacesAiAgentunder the FF before merge