A software factory is an autonomous agent system that does software development work. Events, schedules and people all trigger it. Its sessions are durable, so it can keep working on a task for hours at a time. It takes on as much of the development lifecycle as it can: triaging issues, reproducing bugs, writing fixes, reviewing changes and keeping a codebase healthy.
Today we’re open sourcing Strands Factory, the reference architecture the Strands team uses for its own software factory. It’s built on the Strands Harness and the Strands Harness SDK. It runs in your AWS account on Amazon Bedrock AgentCore Runtime. Our team runs its own deployment of it, an agent called Strandly. Strandly built the Strands Harness and Harness SDK in Rust that we’re releasing in developer preview this week.
Murat and I have been building Strands Factory with the rest of the Strands team. It now does a lot of our day-to-day engineering work.
What it does
You ask in plain language, wherever you already work: a mention on a pull request, a message in Slack, a chat in your terminal. The agent works out what kind of job it is, does the work in its own sandbox, and reports back in the same place.
On Strands, it reviews pull requests, reproduces bug reports, triages new issues, turns issues into pull requests with tests, ports changes between the SDK languages, checks dependency bumps and drafts release notes. Some of that work runs on a schedule. Here it is answering a question in Slack:

Its reviews test behavior as well as reading code. When it suspects a problem, it runs the same experiment against the base and head commits. Here’s the start of one finding from a pull request review:
This test passes on main too, so it can't catch the ordering it was added to guard.With agenerator([]) there is no content, so the assertion holds whether the cancelcheck runs before or after the new _has_unsigned_reasoning branch. The case that canactually regress is cancel plus an unsigned reasoning block.The review went on to suggest a replacement test, which it had confirmed passes on the branch.
It changes code through pull requests. A maintainer approves each one before it merges.
How it works
Each surface has its own ingress, a small service that checks who’s calling before a request reaches the agent. The agent then decides what to do. Every command it runs goes to a separate sandbox.
Sessions are durable. Each GitHub issue or pull request, Slack thread and web chat has its own session, so work picks up where it left off on any surface. The Strands Harness’s context management summarizes old turns and offloads large tool results, so a session can run for a very long time. The factory also keeps long-term memory in Amazon Bedrock AgentCore Memory: team facts and preferences that every run can recall. Each person also has personal memory, which follows them across their Slack DMs, the web interface, the CLI and their editor.
We run the agent and the sandbox as two separate runtimes. The agent runtime holds the agent’s credentials and state: the GitHub token, the configuration secret, sessions and memory. It has no shell. Every command the model writes runs in the sandbox runtime, which has a shell, git and a workspace. That’s where the agent runs code it didn’t write, such as a repository’s build scripts or a package it installs. Because the credentials and state live in the other runtime, nothing running in the sandbox can read the GitHub token or change the agent’s sessions and memory. If no sandbox is configured, the agent refuses to start instead of running commands next to its credentials.
Keeping the credentials out of the sandbox also means we can give it a large disk, internet access and model access.
A large, persistent sandbox
A maintainer’s work means cloning large repositories, installing toolchains, building and running full test suites, and then coming back to the same checkout the next day. An agent doing that work needs the same.
Our sandbox started as a microVM. Builds kept running out of disk. We moved it to AgentCore Runtime instances, persistent EC2 instances that Amazon Bedrock AgentCore Runtime manages. Each session gets its own instance with a 40 GiB encrypted volume that persists between turns. The Rust build needed that space: one debug build of the Strands Harness in Rust writes about 5 GB of build artifacts before any test runs.
The sandbox also has internet access, because builds need git clone, pip install and npm ci. In our deployment it can also call models on Amazon Bedrock, because we build agents and their tests need a model. We accept both because the credentials live in the agent runtime. The sandbox never gets the agent’s GitHub token. If it needs to push branches, you can give it a separate git token limited to the repositories you pick.
An outside contributor on GitHub
Strandly’s GitHub account has roughly the standing of an outside contributor. It isn’t a member of our organization. It can’t push to our repositories or administer them. On the main SDK repository it has triage rights, enough to label and assign issues. To change code, it pushes a branch to its own fork and opens a pull request like anyone else. A maintainer has to approve that pull request before it merges.
A bad run can still post a misleading comment, mislabel an issue or open a pull request nobody wanted. It can’t change the code on any branch of our repositories, because GitHub’s permissions don’t allow it, whatever the agent does. That’s what let us give the agent a real shell, long sessions and hours of unsupervised work.
The factory adds its own checks on top. Every GitHub write is checked against the repositories you list and an allow-list of operations. A separate job audits what the agent’s GitHub account did. The security model sets out what the factory provides, what you own, and the risks we chose to accept. It recommends the same setup for your agent’s GitHub account: no organization membership, a fine-grained token, and branch protection that requires a human approval.
The model decides how to delegate
Strands Factory has no workflow graph. There’s one orchestrating agent. It decides when to delegate, to how many subagents, and on which model tier: a small, fast model, the orchestrator’s own model, or the strongest model at maximum effort. Each subagent is built by the same code as the orchestrator, with the same prompt and the same sandbox, plus a role and usually a narrower set of tools.
Subagents run in the background. Starting a subagent returns a task id straight away. Each subagent’s report comes back when it’s ready. The agent stays responsive while work is in flight. It can keep reading code, answer a follow-up, or send out more work based on the first report.
Every subagent starts with a fresh context. The Strands Harness lets a subagent inherit the whole conversation, only its text, or nothing. We give our subagents nothing, so each one knows only what the orchestrator tells it. The orchestrator writes a short brief. Anything larger goes into files in the shared workspace. The brief points to them. This costs time, because each subagent has to build its own picture of the code. It’s worth it for reviews in particular: a reviewer that has read the author’s reasoning tends to agree with it.
Roles narrow what a subagent can do. Skills define roles. A role can take tools away from a subagent. The code reviewer gets no write or edit tools. The adversarial tester gets no GitHub tool: it reports what it broke. The orchestrator decides what to post.
The agent can orchestrate in code. With programmatic tool calling, the agent writes a short Python script that chains its other tools, loops over them and catches the calls that fail. Only what the script prints comes back into its context. It can also build prompts in that code, such as one brief per changed module, then start a subagent for each in a single step. The reports return to the orchestrator and not to the script, so the model still reads every result and decides what happens next.
The orchestrator owns the result. Its prompt tells it to synthesize what subagents report and not to relay it. In a code review, it checks the riskiest claims against the code itself. When it verifies a bug report, it reruns the script that reproduces the bug before it posts.
The agent doesn’t decide when it’s done
When the agent stops, a goal loop hands the work to a critic: a second agent with the same tools and the same sandbox, whose job is to judge whether the work meets the goal. The critic checks the agent’s claims for itself. It reads the files, reruns the tests and asks GitHub whether the pull request exists. Then it passes the work, or sends the agent back with the specific requirement it missed, for up to three attempts.
What the critic checks against comes from skills. A skill is a folder the agent loads when a job calls for it. It can hold a procedure for the agent to follow, roles for its subagents, and a GOALS.md file of acceptance criteria for the critic. Here’s one line from the goals for implement, the skill that turns an issue into a pull request:
Every changed behaviour has a test that fails without the change (spot-check one).Strands Factory ships 14 skills, among them code-review, implement, bug-verify, first-response and port. A deployment can add its own.
The goal loop makes each task take longer. We think that’s worth it in a software factory, where nobody is waiting on each reply and a result you can rely on matters more.
Working with it
To use Strands Factory, you deploy it into your AWS account. Each deployment also builds its own command-line client, named after the deployment, as a Python wheel you share with your team. We use strandly-example here. Install the wheel, sign in once in the browser, and start a chat with the agent from your terminal:
pipx install ./strandly_example_client-*.whlstrandly-example loginstrandly-example chatEditors and coding agents can connect to it too, over ACP and MCP. The quickstart has the setup for each.
On GitHub, mention it on an issue or pull request. It replies on the same issue or pull request:
@strandly-example please review this PR, focusing on the retry logicOr call it from a GitHub Actions workflow. This one triages every new issue and authenticates with the job’s OIDC token:
name: Triage new issueson: issues: types: [opened]permissions: id-token: writejobs: triage: runs-on: ubuntu-latest steps: - uses: strands-agents/devtools/strands-factory/action@main # pin a commit SHA with: url: https://abc123.execute-api.us-west-2.amazonaws.com prompt: | Use the triage skill on this issue. Label it and post one comment.In Slack, you DM the agent and it replies in the thread. You can ask it a quick question or kick off a piece of work, from your desk or your phone.
To schedule work, ask for it in plain language, for example “every weekday at 9:00, triage new issues in strands-agents/harness-sdk”. The agent creates the schedule. It can also schedule follow-up work for itself. You can see and manage schedules in the web interface, which also installs as an app on your phone. Here are our deployment’s schedules:

| Job | When | What it does |
|---|---|---|
daily-activity-review | Daily | Reviews the factory’s own activity over the last day and flags anything that needs attention |
daily-new-model-watch | Daily | Checks whether the model providers Strands supports have released new models |
daily-parity-sync | Daily | Finds changes that need porting between the SDK languages |
dependabot-review | Daily | Reviews open dependency bumps |
weekly-test-simplify | Weekly | Simplifies part of a test suite |
We set up these jobs for our own deployment. A few of them use skills we wrote for Strands, which aren’t in the repository.
What made the Rust build work
Our factory built the Strands Harness and Harness SDK in Rust. Not every problem suits a software factory this well.
Low ambiguity matters more than low complexity
The Rust SDK is a large piece of software: an agent loop, four model providers, context management, tools, and a harness on top. Its size wasn’t the hard part. There was very little doubt about what correct meant. There was also a cheap way to check it. With those two things in place, a software factory gets to a working answer on a complex problem. Without them, it can stall on a small one.
Most of our own effort went into removing ambiguity before the build started. The open question for software factories, ours included, is how to get the same reliability on work that starts out less well defined.
The setup
Existing code was the spec. The best specification you can hand an agent is a working implementation. The factory could read the Python and TypeScript SDKs. Their test suites describe how Strands behaves. The factory ported those tests as it went and added live tests against Amazon Bedrock, Bedrock Mantle, Anthropic and OpenAI. The tests, not the agent, decided whether the work was right.
People and the strongest models wrote the design. Murat and I spent several days on it, talking it through with each other and with the factory agent running on the strongest models we had. We gave it two human-written Strands Rust SDKs from inside Amazon and several AI-written ones as references. The result was a spec of nearly 20,000 words covering the mission, hard constraints, 77 binding decisions, the architecture, the working process and 14 build phases. This is spec-driven development: people and the strongest models put their effort into the spec. The build then ran on models that cost less and run faster. Because the tests judged the output, we could also run the build several times on different models and compare the results.
The process
Every decision logged. No spec can cover every detail of a codebase this size. We covered as much ground as we could. Then we had the factory log every decision it made on its own and every place it changed something from the spec. Each entry records the context, the options and the choice. Here’s a shortened example:
P-71. Converse JSON as the request body.Context: the AWS SDK for Rust stores JSON documents in hash maps, so object keys come out in a different order on every request, which defeats prompt caching.Options: build AWS SDK types; call Bedrock over raw HTTP; keep the AWS SDK but send the request body as Converse JSON.Choice: keep the AWS SDK and send Converse JSON.The build logged 291 decisions. Engineers, scientists, solutions architects and developer advocates reviewed every one of them, accepting or revising each, with the closest attention on anything that touches the public API. We revised 24 of them, about 8%. Then we ran the factory again with the changes.
Phases with gates. The factory worked through the 14 phases on its own. Within a phase, the orchestrator split independent modules across subagents and reran the checks itself before accepting their work. At the end of each phase, three independent reviewer agents checked correctness, API design and behavior against the spec. The factory fixed every verified finding before moving on.
A fresh session every nine hours. A build this long doesn’t fit in one session. The agent set up a schedule that started a new session every nine hours. Each new session worked out where the build stood by reading the branch, which held the code and the spec. It didn’t rely on what earlier sessions remembered.
Validation by people. Tests only check what someone thought to test, so we also put the SDK in front of people. Engineers, scientists, solutions architects and developer advocates across AWS reviewed it. We also used it internally in our own products for a while before release. What we found there went back into the factory.
Other factories on Strands
Strands Factory isn’t the first software factory built on Strands. We borrowed ideas from the others.
AWS Emulator is a local emulator of AWS services, written entirely by autonomous agents. Three teams of agents work in a loop: one writes fidelity tests from AWS API models and checks them against real AWS, one replays those tests against the emulator and files what fails, and one fixes those issues. Every fix passes a merge gate that checks it builds, meets the coding standards, passes security checks and keeps fidelity intact. The agents run on Amazon Bedrock AgentCore Runtime as Strands agents. ‘Twas the night before launch covers what it took to run hundreds of them against one repository.
The AWS Quick team has also built an internal software factory on the Strands Harness in Rust. They use it to build production features for Quick. Strands Factory brings together what we learned from these factories and from our own.
Where we’re taking it next
Today a maintainer approves every change before it merges. Our goal is for the factory to run most of the day-to-day work on Strands, so the team can spend its time on design and on the decisions that need people. Getting there has two parts: widening what it can do without us and having it improve from its own record.
It’s already doing a lot of that work. Here’s what Strandly, our deployment, has done across the strands-agents organization since we started it at the end of June:
A wider remit
One of our next steps is risk classification. Our classifier starts with deterministic rules: who wrote the change, how big it is, whether it touches dependencies, CI or agent instructions, and whether it removes or skips tests. A change that passes all of them goes to a small, fast model with in-context examples. Our strongest models wrote that prompt after studying the full history of Strands commits, issues, discussions and pull requests, mapped as a graph of what caused what. We’ve also been experimenting with Strands Decider models for this classification.
Low-risk changes from maintainers will merge automatically. Everything else still gets a human review. As our confidence in the classifications grows, we can widen what merges without an extra review. We’ll take that one step at a time.
Learning from its own work
The factory already learns from us in small ways. Its long-term memory is built from its conversations, including what maintainers said about its earlier proposals. It checks that memory before it starts. It’s told not to raise again anything a maintainer has already turned down. A daily job has it review its own last 24 hours: pull requests that drew pushback, failed CI or stalled, and issues still waiting on it.
In our own deployment, we’re also keeping track of the times someone on the team has to step in. Someone asking in Slack “can someone review this PR?”, a maintainer fixing a label the triage got wrong, or a reviewer pointing out an edge case the agent missed all give us useful data for improving what the factory can do.
Next, we want Strandly to keep its own skills and prompts current. It already works on the stack it runs on, because it opens pull requests against the Strands Harness. In an early experiment, it studied how one of its reviews played out and opened a pull request adding two rules to its own review instructions. We want that to be routine: the factory proposes changes to its own skills, goals and prompts from what its self-review and our corrections show, tests each one, and sends it to a maintainer like any other change.
We’ll use Strands Evals for the testing. Its agent optimization searches for a better configuration (prompts, skills, tool descriptions, settings) against an experiment and returns a diff you can review.
Run your own
Strands Factory is experimental. The agent has a real shell, open internet access and a GitHub token, so its protection comes from the setup around it: a dedicated AWS account, a GitHub account for the agent with only the access an outside contributor would have, and branch protection on every repository it touches. You set those up, so read the security model before you give a deployment write access to anything.
Under the hood it’s a set of AWS CDK stacks. The deployment guide walks through deploying them:
- Bootstrap a dedicated AWS account in a Region where Amazon Bedrock AgentCore is available.
- Clone the devtools repository and write a profile listing the repositories the agent may manage.
- Deploy the stacks with the included CLI and the CDK.
- Create a GitHub account for the agent, give it a fine-grained token, and add your team.
Start it on one repository with a narrow job, like triaging new issues or reviewing dependency bumps. Widen its scope as the results give you confidence.
If you build a software factory on Strands, we’d love to hear about it. Come say hi on Discord or open an issue.