Skip to content

feat: add the strands harness and the agentcore dispatch backend - #300

Draft
outofcoffee wants to merge 11 commits into
mainfrom
feat/strands-harness-agentcore
Draft

outofcoffee wants to merge 11 commits into
mainfrom
feat/strands-harness-agentcore

Conversation

@outofcoffee

@outofcoffee outofcoffee commented Nov 28, 2026 •

Copy link
Copy Markdown
Collaborator

A fourth harness, built on the Strands agent harness, plus the deployment path that puts it on AWS Bedrock AgentCore.

Summary

  • strands harness — a registered harness alongside opencode, Pi and lucinate: spinloop harness add/apply/remove/show/export/open work 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 explicit OpenAIModel (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.
  • One-shot form — the orchestrator runs strands as 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).
  • agentcore dispatch backend — --dispatch agentcore invokes 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.yaml env do not apply (no local process to wrap). The project and harness name come from --dispatch-agentcore / --dispatch-agentcore-harness, or harness.yaml's dispatch-agentcore / dispatch-agentcore-harness fields; both are validated before any item is worked, and the CLI is checked once at startup.
  • runtime deploy — spinloop runtime deploy adds the strands harness to an existing AgentCore project and deploys it (agentcore add harness then agentcore deploy). The project is created first, with the CLI; spinloop never creates a project or writes credentials into it. spinloop runtime init prints the getting-started instructions — the CLI commands to run, then the deploy, then the dispatch — without creating anything.
  • Docs and specs — the harness page, orchestrator page, the new runtime command page, AGENTS.md, and the delta sync (harness-management, agent-dispatch, new strands-harness and runtime-deploy specs).

Implementation details

  • The wrapper is TypeScript, not Python: the CLI loads it natively, and the repo's other Node-flavoured surface (remote/, the AgentCore CLI it drives) is TypeScript. The CLI resolves @strands-agents/harness and @strands-agents/sdk from its own node_modules, so the wrapper carries no package.json and needs no install.
  • A custom endpoint uses an explicit OpenAIModel instance (@strands-agents/sdk/models/openai) with api: "chat" and clientConfig: { baseURL: "<url>" } — the harness's default openai provider 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.
  • The deploy command is deliberately a standalone runtime group, not a spinloop cloud bootstrap subcommand — the GPU control plane stays scoped to the GPU plane.
  • The one-shot table's form now returns an error (the wrapper path is built per launch), so the dispatch's error path reports the item rather than panicking.

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.
@outofcoffee outofcoffee changed the title feat: add the strands harness and the agentcore dispatch backend feat: add the strands harness and the runtime dispatch backend Nov 28, 2026
@outofcoffee outofcoffee changed the title feat: add the strands harness and the runtime dispatch backend feat: add the strands harness and the agentcore dispatch backend Nov 28, 2026
…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

No deployments
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