Repository navigation
feat: add the strands harness and the agentcore dispatch backend - #300
Draft
outofcoffee wants to merge 11 commits into
Draft
outofcoffee wants to merge 11 commits into
outofcoffee wants to merge 11 commits into
Conversation
A fourth harness, built on the Strands agent harness: one generated TypeScript wrapper per provider, carrying the model and the endpoint plumbing, never credentials, launched in print mode by the orchestrator's bare and docker backends. The docker image carries the strands CLI. The agentcore backend invokes a deployed Bedrock AgentCore harness through the AgentCore CLI (--dispatch agentcore), with the project directory as the CLI's working directory and the item's instructions as the prompt. The deployed harness carries its own model and tools; the node's model is never applied to it, and the lifecycle wrapper and harness.yaml env do not apply. harness.yaml names the project and the harness where the flags do not. spinloop agentcore deploy adds the strands harness to an existing AgentCore project and deploys it via the AgentCore CLI — never creating a project or writing credentials. The project is created first, with the CLI.
The wrapper carries a model, a base URL and a key — nothing else — so a provider that requires a caller-supplied option (a Vertex project, say) must not silently render a wrapper that carries the wrong plumbing. Render now rejects such a provider naming the option, and the provider list shows strands only where the provider is renderable, so google-vertex lists opencode alone.
The command group was named after the underlying AWS product; the feature is spinloop's own word, like cloud, fleet and gateway. The command is now spinloop runtime, the backend --dispatch runtime, the flags --dispatch-runtime[-harness], the harness.yaml fields dispatch-runtime[-harness] and the internal package internal/runtime. The AgentCore CLI, the project markers and the Bedrock AgentCore harness are unchanged underneath. spinloop runtime init prints the getting-started instructions — install the AgentCore CLI, create the project, deploy the harness, check the deployment, dispatch through it — without creating anything.
…d concept The --dispatch backend names the actual dispatch target — the deployed AgentCore harness — so it goes back to agentcore, along with the --dispatch-agentcore[-harness] flags and the dispatch-agentcore[-harness] harness.yaml fields. The runtime word stays where it is a concept: the command group (spinloop runtime init/deploy) and the runtime-deploy spec.
The guidance told the operator to run 'agentcore create --name my-project', which the CLI rejects — the name must start with a letter and contain only alphanumeric characters, up to 23. It also scaffolded the CLI's default managed harness, which spinloop would then duplicate, and pointed the deploy at ./my-project after cd'ing into my-project. The guidance now creates the empty scaffold with --no-agent (the flow documented for adding your own harness), uses a valid project name, deploys into the project you cd'd into with --project ., and dispatches against the same path.
This branch has not been deployed
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.
A fourth harness, built on the Strands agent harness, plus the deployment path that puts it on AWS Bedrock AgentCore.
Summary
spinloop harness add/apply/remove/show/export/openwork with it like the other harnesses. It generates one TypeScript wrapper per provider (<configDir>/strands/<providerID>.agent.ts) carrying the model and the endpoint plumbing — a bare Bedrock id for a Bedrock selection, an explicitOpenAIModel(Chat Completions) for a custom endpoint — never credentials, and regenerated on each apply. Providers whose plumbing the wrapper cannot express (a Vertex project, say) are rejected loudly rather than silently rendered wrong.strands --print --agent <wrapper> <instructions>, in the bare and docker backends (the docker backend renders the wrapper fresh and mounts it at/item/config/agent.ts; the agent image carries the strands CLI).--dispatch agentcoreinvokes an admitted item on a deployed Bedrock AgentCore harness via the AgentCore CLI (agentcore invoke --harness <name> --prompt <instructions>, cwd = the project directory). The deployed harness carries its own model and tools — the node's model is never applied to it — and the lifecycle wrapper and harness.yamlenvdo not apply (no local process to wrap). The project and harness name come from--dispatch-agentcore/--dispatch-agentcore-harness, or harness.yaml'sdispatch-agentcore/dispatch-agentcore-harnessfields; both are validated before any item is worked, and the CLI is checked once at startup.spinloop runtime deployadds the strands harness to an existing AgentCore project and deploys it (agentcore add harnessthenagentcore deploy). The project is created first, with the CLI; spinloop never creates a project or writes credentials into it.spinloop runtime initprints the getting-started instructions — the CLI commands to run, then the deploy, then the dispatch — without creating anything.runtimecommand page,AGENTS.md, and the delta sync (harness-management,agent-dispatch, newstrands-harnessandruntime-deployspecs).Implementation details
remote/, the AgentCore CLI it drives) is TypeScript. The CLI resolves@strands-agents/harnessand@strands-agents/sdkfrom its own node_modules, so the wrapper carries nopackage.jsonand needs no install.OpenAIModelinstance (@strands-agents/sdk/models/openai) withapi: "chat"andclientConfig: { baseURL: "<url>" }— the harness's defaultopenaiprovider builds a Responses-API model, which the gateway and other OpenAI-compatible endpoints cannot serve. The key reaches the agent through its environment, read by an async function at request time — a static string would throw at construction when the variable is unset.runtimegroup, not aspinloop cloud bootstrapsubcommand — the GPU control plane stays scoped to the GPU plane.