fix(dev): skip deploy for plain agents without harnesses#1313
Merged
notgitika merged 1 commit intoMay 20, 2026
Conversation
`agentcore dev` was triggering a full CDK deploy even for plain agents (Strands, LangGraph, etc.) that only need a local dev server. This blocked users from iterating locally without AWS credentials/targets configured. Now `runCliDeploy()` is only invoked when the project has harnesses (cloud-dependent resources). Plain agents start the local server immediately. Closes aws#1189
Contributor
|
Claude Security Review: no high-confidence findings. (run) |
avi-alpert
approved these changes
May 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
agentcore devwas triggering a full CDK deploy even for plain agents (Strands, LangGraph, etc.) that only need a local dev server. This is a bug, it should only deploy when the project has a harness.Changes
browser-mode.ts: GuardrunCliDeploy()withif (hasHarnesses)inlaunchBrowserDev()command.tsx: Guard the--logspath deploy with&& hasHarnessesuseDevDeploy.ts: Early-return in the TUI hook when project has no harnessesTest plan
agentcore devwith a plain Strands agent (no harness) starts local server without deployingagentcore devwith a harness project still triggers deploy as beforeagentcore dev --logswith plain agent skips deployCloses #1189