
Putting Amazon Ergo to Work: Beyond Code Generation – AI-Powered Unit Test Generation with Kiro
Explore Amazon Ergo, Amazon’s open-weights AI model for software engineering, in Kiro through a hands-on experiment generating JUnit tests for an existing Java application
On December 1, 2026, Amazon announced Amazon Ergo, a new open-weights foundation model designed for software engineering and agentic workflows. The announcement caught my attention because Amazon is introducing a model specifically focused on software development tasks, including building features, debugging, refactoring and working through complex engineering problems.
I wanted to try Ergo on a practical development task rather than just explore its capabilities through a product overview. For my first experiment, I chose JUnit test generation for an existing Java application and used Amazon Ergo through Kiro.
Before getting into the experiment, let's look at what Amazon Ergo brings and some of its technical details.
Introducing Amazon Ergo
Amazon Ergo is a frontier model developed by Amazon Frontier Model Research (FMR). It is designed for software engineering and professional workloads that require reasoning, planning and execution across multiple steps.
One of the interesting aspects of Ergo is its focus on agentic workflows. Instead of responding with code alone, an AI coding agent can use the model to understand a task, plan the required changes, interact with development tools, execute actions and check the results.
For software developers, this opens up opportunities beyond code completion. Some examples include understanding existing codebases, implementing features from design documents, debugging issues, generating tests and working through application modernization tasks.
Amazon has released Ergo as an open-weights model, giving developers the option to download its model weights, run it on their own infrastructure and customize it with their own data.
This flexibility is particularly interesting for organizations looking to explore different deployment and customization approaches for AI-assisted development.
Understanding Amazon Ergo's architecture and capabilities
There are a few technical details worth understanding before using the model.
Amazon Ergo uses a Mixture-of-Experts (MoE) Transformer architecture. It has approximately 1.1 trillion parameters in total, with 55 billion parameters active for each token.
In a Mixture-of-Experts architecture, the model activates selected parts of its network for processing rather than using every parameter for every token. This is one of the approaches used to improve computational efficiency.
Here are some of the key specifications published in the Amazon Bedrock model documentation.

The one-million-token context window is particularly interesting for software engineering. When working with existing applications, developers often need to consider multiple source files, dependencies, configurations and test classes. A larger context window provides more room for this information to be considered together.
Amazon also reports that Ergo delivers more than 400 output tokens per second on Amazon Bedrock. This performance is achieved through the combined optimization of the model, hardware and software.
Another important aspect is its support for agentic development workflows. On Amazon Bedrock, Ergo supports features such as client-side tool use, structured outputs, prompt caching and response streaming.
Developers can access the model through Amazon Bedrock or download the open weights for self-hosting and customization.
Using Amazon Ergo with Kiro
One of the things I wanted to explore was how Amazon Ergo fits into an existing AI-assisted development workflow.
On December 1, 2026, Kiro announced the Preview rollout of Amazon Ergo across its clients. Developers with eligible paid plans can select Ergo directly from the model selector and use it within their development sessions.
A few details are worth knowing about its current availability:
- Kiro credit multiplier: 1.2x.
- Inference geography: US geography only.

-
- > To access the latest model list, restart the Kiro IDE or CLI, or refresh Kiro Web, and select Amazon Ergo from the model selector.The US-only inference geography is particularly important for developers working with enterprise source code. Organizations should review their data residency and internal security requirements before using it with project code.
My experiment: Generating JUnit tests using Amazon Ergo in Kiro
For my first experiment, I chose JUnit test generation for an existing Java application.
Writing unit tests is a regular part of Java development. It requires understanding the implementation, expected behaviour, dependencies and different execution paths. I wanted to explore how Amazon Ergo could assist with this task using the existing project context in Kiro.
After selecting Amazon Ergo in Kiro, I provided the following prompt to generate unit tests for the existing Java service implementation.
Prompt

Ifocused the request on generating tests that follow the project's existing conventions rather than introducing a separate testing structure or unnecessary dependencies.
The generated tests need to be reviewed and validated within the project. In particular, the assertions should verify the expected business behaviour, and the test cases should cover meaningful scenarios rather than simply execute the available methods.
For me, this is an interesting development workflow to explore because test generation is a task where the output can be checked against the existing implementation and actual test execution results.



Final thoughts
My interest in Amazon Ergo is its focus on software engineering and agentic workflows, along with the flexibility that comes with open weights.
Trying it through Kiro with a JUnit generation task gave me a practical starting point to explore how it can support everyday Java development.
I would like to explore more involved tasks next, particularly legacy application analysis, Java modernization and test development across larger codebases.
As with any AI coding assistant, generated code needs to be reviewed, executed and validated by developers. The important part is understanding how well the model handles the existing codebase and how reliably its output fits into the development workflow.
Amazon Ergo is a new addition to the AWS developer tooling ecosystem, and I am interested to see how it evolves.
Enjoyed reading this content? Let the author know!
Your likes, comments, shares, and saves help creators reach more builders.
Loading recommendations
Loading article