# US 2025/0165890 A1 · Automated software development workflows via multi-agent computational framework

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2025/0165890 A1
- Document ID: US20250165890A1
- Status: Published application
- Kind: A1
- Application number: 18/754,624
- Filed: 2024-06-26
- Published: 2025-05-22
- Earliest claimed: 2023-11-22
- Assignees: Twilio Inc.
- Applicants: Twilio Inc.
- Inventors: Wesley Medford
- Web page: https://patentgrep.com/patent/US20250165890A1

## CPC

- G06F 8/71: Version control (security arrangements therefor G06F21/57); Configuration management
- G06Q 10/063118: {Staff planning in a project environment}
- G06F 8/10: Requirements analysis; Specification techniques
- G06F 8/20: Software design
- G06Q 10/0633: Workflow analysis
- G06Q 10/103: {Workflow collaboration or project management}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06Q: INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR

## Abstract

The disclosure presents a multi-agent AI system utilizing specialized Large Language Models (LLMs) to automate and enhance software development workflows. This system integrates a memory-augmented generative pre-trained transformer (MemGPT) agent for dynamic context management, a Critic Agent for semi-adversarial quality feedback, and other specialized agents for task delegation and execution. The MemGPT agent interacts with an embedding storage to manage extended contextual information, enabling the system to handle complex software projects with enhanced accuracy and efficiency. This innovative approach significantly reduces manual intervention, streamlines the development process, and improves software quality, offering a robust solution to the challenges of modern software development environments.

## Claims

### Claim 1

A computer-implemented system using an agent-based framework for automating software development workflows, the system comprising:
a memory-augmented generative pre-trained transformer (MemGPT) agent configured to dynamically manage extended context by interacting with an embedding storage to retrieve and store data representations;
a Critic Agent configured to provide semi-adversarial feedback on software development outputs generated by other agents within the system, the Critic Agent implemented using a large language model (LLM) conditioned by a system prompt specifically designed to instruct the LLM to evaluate and critique plans and code for adherence to predefined quality standards;
a plurality of specialized agents each configured with distinct roles in a software development process, wherein each agent is associated with a tailored system prompt that guides an LLM in generating role-specific outputs, the agents comprising:
a Planner Agent responsible for task delegation and high-level planning, configured to generate comprehensive project plans by processing inputs through an LLM conditioned to understand and organize project requirements into executable tasks;
an Engineer Agent responsible for code generation, configured to produce functional software code by interpreting plans and specifications through an LLM conditioned to apply software engineering principles and coding practices;
an Executor Agent responsible for executing and testing the generated code, configured to operate in a controlled environment and provide feedback on code performance and errors, utilizing an LLM to interpret execution results and suggest modifications or corrections;
wherein the MemGPT agent enhances the functionality of the system by allowing each agent to access a broader context than typically permissible by standard LLM context windows, thereby enabling more comprehensive understanding and interaction with complex software development tasks; and
wherein the Critic Agent serves as a semi-adversarial feedback mechanism that is integral to continuous improvement of the software development outputs, ensuring that each iteration adheres more closely to project specifications and quality metrics.

### Claim 2 (depends on 1)

The computer-implemented system of claim 1, wherein the embedding storage is configured to store vector representations of code snippets and application documentation, and the MemGPT agent is further configured to update the embedding storage based on feedback from one or more agents.

### Claim 3 (depends on 1)

The computer-implemented system of claim 1, wherein the system further comprises a user interface module configured to receive input from a user regarding project goals and parameters, and to display the generated project plans for user review and approval before task delegation to the Engineer Agent.

### Claim 4 (depends on 1)

The computer-implemented system of claim 1, wherein the Engineer Agent is further configured to interact with a version control system to commit the generated code to a code repository, and the system further comprises a version control interface module configured to manage interactions between the Engineer Agent and the version control system.

### Claim 5 (depends on 1)

The computer-implemented system of claim 1, wherein the agent-based framework is implemented using Autogen.

### Claim 6 (depends on 1)

The computer-implemented system of claim 1, wherein the Critic Agent is further configured to utilize a feedback loop mechanism that incorporates user feedback into its semi-adversarial analysis, enhancing precision of its critiques based on real-world user interactions and responses.

### Claim 7 (depends on 1)

The computer-implemented system of claim 1, wherein the Executor Agent is additionally configured to simulate different operating environments to test the generated code under various conditions, thereby ensuring robustness and compatibility across multiple platforms before deployment.

### Claim 8

A method for automating software development workflows in a computer-implemented system with an agent-based framework, the method comprising:
implementing a plurality of specialized agents, each with a large language model (LLM) and a system prompt that specifies its role within the system for tasks including planning, critiquing, executing, and revising both project plans and software code;
receiving a user-specified task and routing this task to a Planner Agent to generate an initial plan;
dynamically routing the initial plan to a Critic Agent to critique the plan;
returning the critiqued plan to the Planner Agent for revisions;
upon approval of the revised plan, routing the revised plan to an Executor Agent to execute the revised plan and generate or revise software code;
routing the generated or revised software code to the Critic Agent for critique; and
committing the approved software code to a code repository, ensuring version control and maintenance within a collaborative software development environment;
wherein a context window for each agent's operation is enhanced by using a MemGPT agent to retrieve and incorporate relevant embeddings from an embedding storage into the prompts provided to each agent, thereby enriching the information basis for their operations and improving accuracy and relevance of their outputs.

### Claim 9 (depends on 8)

The method of claim 8, wherein the embedding storage is configured to store vector representations of code snippets and application documentation, and the method further comprises updating the embedding storage based on feedback from one or more agents to refine the stored vector representations and improve contextual accuracy for future operations of the agents.

### Claim 10 (depends on 8)

The method of claim 8, wherein the system further comprises a user interface module, and the method further comprises:
receiving input from a user via the user interface module regarding project goals and parameters;
displaying the generated project plans on the user interface for user review and approval;
upon user approval, routing the approved project plan to an Engineer Agent for task execution.

### Claim 11 (depends on 8)

The method of claim 8, wherein an Engineer Agent is further configured to interact with a version control system, and the method further comprises:
managing interactions between the Engineer Agent and the version control system through a version control interface module;
committing the generated code by the Engineer Agent to a code repository via the version control system, ensuring that the code is properly version-controlled and stored.

### Claim 12 (depends on 8)

The method of claim 8, wherein the agent-based framework is implemented using Autogen, and the method further comprises utilizing Autogen to manage and coordinate interactions and data flow between the specialized agents.

### Claim 13 (depends on 8)

The method of claim 8, wherein the Critic Agent is further configured to utilize a feedback loop mechanism, and the method further comprises:
incorporating user feedback into a semi-adversarial analysis performed by the Critic Agent;
enhancing precision of the critiques provided by the Critic Agent based on real-world user interactions and responses, thereby aligning the software development outputs more closely with user expectations and requirements.

### Claim 14 (depends on 8)

The method of claim 8, wherein the Executor Agent is additionally configured to simulate different operating environments, and the method further comprises:
testing the generated software code under various conditions by simulating different operating environments;
ensuring compatibility of the software code across multiple platforms before its final approval and deployment, thereby reducing risk of deployment failures and enhancing adaptability of the generated software code to diverse operational conditions.

### Claim 15

A system for automating software development workflows with an agent-based framework, the system comprising:
at least one processor;
at least one memory storage device storing instructions thereon, which, when executed by the at least one processor, cause the system to perform operations comprising:
implementing a plurality of specialized agents, each with a large language model (LLM) and a system prompt that specifies its role within the system for tasks including planning, critiquing, executing, and revising both project plans and software code;
receiving a user-specified task and routing this task to a Planner Agent to generate an initial plan;
dynamically routing the initial plan to a Critic Agent to critique the plan;
returning the critiqued plan to the Planner Agent for revisions;
upon approval of the revised plan, routing the revised plan to an Executor Agent to execute the revised plan and generate or revise software code;
routing the generated or revised software code to the Critic Agent for critique; and
committing the approved software code to a code repository, ensuring version control and maintenance within a collaborative software development environment;
wherein a context window for each agent's operation is enhanced by using a MemGPT agent to retrieve and incorporate relevant embeddings from an embedding storage into the prompts provided to each agent, thereby enriching the information basis for their operations and improving accuracy and relevance of their outputs.

### Claim 16 (depends on 15)

The system of claim 15, wherein the embedding storage is configured to store vector representations of code snippets and application documentation, and the operations further comprise updating the embedding storage based on feedback from one or more agents to refine the stored vector representations and improve contextual accuracy for future operations of the agents.

### Claim 17 (depends on 15)

The system of claim 15, wherein the system further comprises a user interface module, and the operations further comprise:
receiving input from a user via the user interface module regarding project goals and parameters;
displaying the generated project plans on the user interface for user review and approval;
upon user approval, routing the approved project plan to an Engineer Agent for task execution.

### Claim 18 (depends on 15)

The system of claim 15, wherein an Engineer Agent is further configured to interact with a version control system, and the operations further comprise:
managing interactions between the Engineer Agent and the version control system through a version control interface module;
committing the generated code by the Engineer Agent to a code repository via the version control system, ensuring that the code is properly version-controlled and stored.

### Claim 19 (depends on 15)

The system of claim 15, wherein the agent-based framework is implemented using Autogen, and the operations further comprise utilizing Autogen to manage and coordinate interactions and data flow between the specialized agents.

### Claim 20 (depends on 15)

The system of claim 15, wherein the Critic Agent is further configured to utilize a feedback loop mechanism, and the operations further comprise:
incorporating user feedback into a semi-adversarial analysis performed by the Critic Agent;
enhancing precision of the critiques provided by the Critic Agent based on real-world user interactions and responses, thereby aligning the software development outputs more closely with user expectations and requirements.
